blob: b785a780e1aa521e78b8479795eb458a0b398c63 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell5690c532005-05-18 20:18:40 +00003# Generated by GNU Autoconf 2.59 for llvm 1.6cvs.
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-'
John Criswell5690c532005-05-18 20:18:40 +0000428PACKAGE_VERSION='1.6cvs'
429PACKAGE_STRING='llvm 1.6cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000441# Factoring default headers for most tests.
442ac_includes_default="\
443#include <stdio.h>
444#if HAVE_SYS_TYPES_H
445# include <sys/types.h>
446#endif
447#if HAVE_SYS_STAT_H
448# include <sys/stat.h>
449#endif
450#if STDC_HEADERS
451# include <stdlib.h>
452# include <stddef.h>
453#else
454# if HAVE_STDLIB_H
455# include <stdlib.h>
456# endif
457#endif
458#if HAVE_STRING_H
459# if !STDC_HEADERS && HAVE_MEMORY_H
460# include <memory.h>
461# endif
462# include <string.h>
463#endif
464#if HAVE_STRINGS_H
465# include <strings.h>
466#endif
467#if HAVE_INTTYPES_H
468# include <inttypes.h>
469#else
470# if HAVE_STDINT_H
471# include <stdint.h>
472# endif
473#endif
474#if HAVE_UNISTD_H
475# include <unistd.h>
476#endif"
477
Reid Spencer945de9b2005-04-22 07:27:28 +0000478ac_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 +0000479ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000480
481# Initialize some variables set by options.
482ac_init_help=
483ac_init_version=false
484# The variables have the same names as the options, with
485# dashes changed to underlines.
486cache_file=/dev/null
487exec_prefix=NONE
488no_create=
489no_recursion=
490prefix=NONE
491program_prefix=NONE
492program_suffix=NONE
493program_transform_name=s,x,x,
494silent=
495site=
496srcdir=
497verbose=
498x_includes=NONE
499x_libraries=NONE
500
501# Installation directory options.
502# These are left unexpanded so users can "make install exec_prefix=/foo"
503# and all the variables that are supposed to be based on exec_prefix
504# by default will actually change.
505# Use braces instead of parens because sh, perl, etc. also accept them.
506bindir='${exec_prefix}/bin'
507sbindir='${exec_prefix}/sbin'
508libexecdir='${exec_prefix}/libexec'
509datadir='${prefix}/share'
510sysconfdir='${prefix}/etc'
511sharedstatedir='${prefix}/com'
512localstatedir='${prefix}/var'
513libdir='${exec_prefix}/lib'
514includedir='${prefix}/include'
515oldincludedir='/usr/include'
516infodir='${prefix}/info'
517mandir='${prefix}/man'
518
519ac_prev=
520for ac_option
521do
522 # If the previous option needs an argument, assign it.
523 if test -n "$ac_prev"; then
524 eval "$ac_prev=\$ac_option"
525 ac_prev=
526 continue
527 fi
528
529 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530
531 # Accept the important Cygnus configure options, so we can diagnose typos.
532
533 case $ac_option in
534
535 -bindir | --bindir | --bindi | --bind | --bin | --bi)
536 ac_prev=bindir ;;
537 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 bindir=$ac_optarg ;;
539
540 -build | --build | --buil | --bui | --bu)
541 ac_prev=build_alias ;;
542 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543 build_alias=$ac_optarg ;;
544
545 -cache-file | --cache-file | --cache-fil | --cache-fi \
546 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547 ac_prev=cache_file ;;
548 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550 cache_file=$ac_optarg ;;
551
552 --config-cache | -C)
553 cache_file=config.cache ;;
554
555 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556 ac_prev=datadir ;;
557 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558 | --da=*)
559 datadir=$ac_optarg ;;
560
561 -disable-* | --disable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 eval "enable_$ac_feature=no" ;;
569
570 -enable-* | --enable-*)
571 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575 { (exit 1); exit 1; }; }
576 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577 case $ac_option in
578 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 *) ac_optarg=yes ;;
580 esac
581 eval "enable_$ac_feature='$ac_optarg'" ;;
582
583 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585 | --exec | --exe | --ex)
586 ac_prev=exec_prefix ;;
587 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589 | --exec=* | --exe=* | --ex=*)
590 exec_prefix=$ac_optarg ;;
591
592 -gas | --gas | --ga | --g)
593 # Obsolete; use --with-gas.
594 with_gas=yes ;;
595
596 -help | --help | --hel | --he | -h)
597 ac_init_help=long ;;
598 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599 ac_init_help=recursive ;;
600 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601 ac_init_help=short ;;
602
603 -host | --host | --hos | --ho)
604 ac_prev=host_alias ;;
605 -host=* | --host=* | --hos=* | --ho=*)
606 host_alias=$ac_optarg ;;
607
608 -includedir | --includedir | --includedi | --included | --include \
609 | --includ | --inclu | --incl | --inc)
610 ac_prev=includedir ;;
611 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612 | --includ=* | --inclu=* | --incl=* | --inc=*)
613 includedir=$ac_optarg ;;
614
615 -infodir | --infodir | --infodi | --infod | --info | --inf)
616 ac_prev=infodir ;;
617 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618 infodir=$ac_optarg ;;
619
620 -libdir | --libdir | --libdi | --libd)
621 ac_prev=libdir ;;
622 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 libdir=$ac_optarg ;;
624
625 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626 | --libexe | --libex | --libe)
627 ac_prev=libexecdir ;;
628 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629 | --libexe=* | --libex=* | --libe=*)
630 libexecdir=$ac_optarg ;;
631
632 -localstatedir | --localstatedir | --localstatedi | --localstated \
633 | --localstate | --localstat | --localsta | --localst \
634 | --locals | --local | --loca | --loc | --lo)
635 ac_prev=localstatedir ;;
636 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639 localstatedir=$ac_optarg ;;
640
641 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642 ac_prev=mandir ;;
643 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
644 mandir=$ac_optarg ;;
645
646 -nfp | --nfp | --nf)
647 # Obsolete; use --without-fp.
648 with_fp=no ;;
649
650 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651 | --no-cr | --no-c | -n)
652 no_create=yes ;;
653
654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 no_recursion=yes ;;
657
658 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660 | --oldin | --oldi | --old | --ol | --o)
661 ac_prev=oldincludedir ;;
662 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665 oldincludedir=$ac_optarg ;;
666
667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668 ac_prev=prefix ;;
669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 prefix=$ac_optarg ;;
671
672 -program-prefix | --program-prefix | --program-prefi | --program-pref \
673 | --program-pre | --program-pr | --program-p)
674 ac_prev=program_prefix ;;
675 -program-prefix=* | --program-prefix=* | --program-prefi=* \
676 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677 program_prefix=$ac_optarg ;;
678
679 -program-suffix | --program-suffix | --program-suffi | --program-suff \
680 | --program-suf | --program-su | --program-s)
681 ac_prev=program_suffix ;;
682 -program-suffix=* | --program-suffix=* | --program-suffi=* \
683 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684 program_suffix=$ac_optarg ;;
685
686 -program-transform-name | --program-transform-name \
687 | --program-transform-nam | --program-transform-na \
688 | --program-transform-n | --program-transform- \
689 | --program-transform | --program-transfor \
690 | --program-transfo | --program-transf \
691 | --program-trans | --program-tran \
692 | --progr-tra | --program-tr | --program-t)
693 ac_prev=program_transform_name ;;
694 -program-transform-name=* | --program-transform-name=* \
695 | --program-transform-nam=* | --program-transform-na=* \
696 | --program-transform-n=* | --program-transform-=* \
697 | --program-transform=* | --program-transfor=* \
698 | --program-transfo=* | --program-transf=* \
699 | --program-trans=* | --program-tran=* \
700 | --progr-tra=* | --program-tr=* | --program-t=*)
701 program_transform_name=$ac_optarg ;;
702
703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704 | -silent | --silent | --silen | --sile | --sil)
705 silent=yes ;;
706
707 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708 ac_prev=sbindir ;;
709 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710 | --sbi=* | --sb=*)
711 sbindir=$ac_optarg ;;
712
713 -sharedstatedir | --sharedstatedir | --sharedstatedi \
714 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715 | --sharedst | --shareds | --shared | --share | --shar \
716 | --sha | --sh)
717 ac_prev=sharedstatedir ;;
718 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721 | --sha=* | --sh=*)
722 sharedstatedir=$ac_optarg ;;
723
724 -site | --site | --sit)
725 ac_prev=site ;;
726 -site=* | --site=* | --sit=*)
727 site=$ac_optarg ;;
728
729 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730 ac_prev=srcdir ;;
731 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 srcdir=$ac_optarg ;;
733
734 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735 | --syscon | --sysco | --sysc | --sys | --sy)
736 ac_prev=sysconfdir ;;
737 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739 sysconfdir=$ac_optarg ;;
740
741 -target | --target | --targe | --targ | --tar | --ta | --t)
742 ac_prev=target_alias ;;
743 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744 target_alias=$ac_optarg ;;
745
746 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 verbose=yes ;;
748
749 -version | --version | --versio | --versi | --vers | -V)
750 ac_init_version=: ;;
751
752 -with-* | --with-*)
753 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package| sed 's/-/_/g'`
759 case $ac_option in
760 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 *) ac_optarg=yes ;;
762 esac
763 eval "with_$ac_package='$ac_optarg'" ;;
764
765 -without-* | --without-*)
766 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769 { echo "$as_me: error: invalid package name: $ac_package" >&2
770 { (exit 1); exit 1; }; }
771 ac_package=`echo $ac_package | sed 's/-/_/g'`
772 eval "with_$ac_package=no" ;;
773
774 --x)
775 # Obsolete; use --with-x.
776 with_x=yes ;;
777
778 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779 | --x-incl | --x-inc | --x-in | --x-i)
780 ac_prev=x_includes ;;
781 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783 x_includes=$ac_optarg ;;
784
785 -x-libraries | --x-libraries | --x-librarie | --x-librari \
786 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787 ac_prev=x_libraries ;;
788 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790 x_libraries=$ac_optarg ;;
791
792 -*) { echo "$as_me: error: unrecognized option: $ac_option
793Try \`$0 --help' for more information." >&2
794 { (exit 1); exit 1; }; }
795 ;;
796
797 *=*)
798 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802 { (exit 1); exit 1; }; }
803 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804 eval "$ac_envvar='$ac_optarg'"
805 export $ac_envvar ;;
806
807 *)
808 # FIXME: should be removed in autoconf 3.0.
809 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813 ;;
814
815 esac
816done
817
818if test -n "$ac_prev"; then
819 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820 { echo "$as_me: error: missing argument to $ac_option" >&2
821 { (exit 1); exit 1; }; }
822fi
823
824# Be sure to have absolute paths.
825for ac_var in exec_prefix prefix
826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# Be sure to have absolute paths.
836for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000837 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000838do
839 eval ac_val=$`echo $ac_var`
840 case $ac_val in
841 [\\/$]* | ?:[\\/]* ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
844 esac
845done
846
847# There might be people who depend on the old broken behavior: `$host'
848# used to hold the argument of --host etc.
849# FIXME: To remove some day.
850build=$build_alias
851host=$host_alias
852target=$target_alias
853
854# FIXME: To remove some day.
855if test "x$host_alias" != x; then
856 if test "x$build_alias" = x; then
857 cross_compiling=maybe
858 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859 If a cross compiler is detected then cross compile mode will be used." >&2
860 elif test "x$build_alias" != "x$host_alias"; then
861 cross_compiling=yes
862 fi
863fi
864
865ac_tool_prefix=
866test -n "$host_alias" && ac_tool_prefix=$host_alias-
867
868test "$silent" = yes && exec 6>/dev/null
869
870
871# Find the source files, if location was not specified.
872if test -z "$srcdir"; then
873 ac_srcdir_defaulted=yes
874 # Try the directory containing this script, then its parent.
875 ac_confdir=`(dirname "$0") 2>/dev/null ||
876$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000877 X"$0" : 'X\(//\)[^/]' \| \
878 X"$0" : 'X\(//\)$' \| \
879 X"$0" : 'X\(/\)' \| \
880 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000881echo X"$0" |
882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884 /^X\(\/\/\)$/{ s//\1/; q; }
885 /^X\(\/\).*/{ s//\1/; q; }
886 s/.*/./; q'`
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891else
892 ac_srcdir_defaulted=no
893fi
894if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897 { (exit 1); exit 1; }; }
898 else
899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900 { (exit 1); exit 1; }; }
901 fi
902fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000903(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000906srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907ac_env_build_alias_set=${build_alias+set}
908ac_env_build_alias_value=$build_alias
909ac_cv_env_build_alias_set=${build_alias+set}
910ac_cv_env_build_alias_value=$build_alias
911ac_env_host_alias_set=${host_alias+set}
912ac_env_host_alias_value=$host_alias
913ac_cv_env_host_alias_set=${host_alias+set}
914ac_cv_env_host_alias_value=$host_alias
915ac_env_target_alias_set=${target_alias+set}
916ac_env_target_alias_value=$target_alias
917ac_cv_env_target_alias_set=${target_alias+set}
918ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000919ac_env_CC_set=${CC+set}
920ac_env_CC_value=$CC
921ac_cv_env_CC_set=${CC+set}
922ac_cv_env_CC_value=$CC
923ac_env_CFLAGS_set=${CFLAGS+set}
924ac_env_CFLAGS_value=$CFLAGS
925ac_cv_env_CFLAGS_set=${CFLAGS+set}
926ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000927ac_env_LDFLAGS_set=${LDFLAGS+set}
928ac_env_LDFLAGS_value=$LDFLAGS
929ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930ac_cv_env_LDFLAGS_value=$LDFLAGS
931ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_env_CPPFLAGS_value=$CPPFLAGS
933ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000939ac_env_CXX_set=${CXX+set}
940ac_env_CXX_value=$CXX
941ac_cv_env_CXX_set=${CXX+set}
942ac_cv_env_CXX_value=$CXX
943ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944ac_env_CXXFLAGS_value=$CXXFLAGS
945ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000947ac_env_CXXCPP_set=${CXXCPP+set}
948ac_env_CXXCPP_value=$CXXCPP
949ac_cv_env_CXXCPP_set=${CXXCPP+set}
950ac_cv_env_CXXCPP_value=$CXXCPP
951ac_env_F77_set=${F77+set}
952ac_env_F77_value=$F77
953ac_cv_env_F77_set=${F77+set}
954ac_cv_env_F77_value=$F77
955ac_env_FFLAGS_set=${FFLAGS+set}
956ac_env_FFLAGS_value=$FFLAGS
957ac_cv_env_FFLAGS_set=${FFLAGS+set}
958ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000959
960#
961# Report the --help message.
962#
963if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
966 cat <<_ACEOF
John Criswell5690c532005-05-18 20:18:40 +0000967\`configure' configures llvm 1.6cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000968
969Usage: $0 [OPTION]... [VAR=VALUE]...
970
971To assign environment variables (e.g., CC, CFLAGS...), specify them as
972VAR=VALUE. See below for descriptions of some of the useful variables.
973
974Defaults for the options are specified in brackets.
975
976Configuration:
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
986
987_ACEOF
988
989 cat <<_ACEOF
990Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000992 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000994 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000995
996By default, \`make install' will install all the files in
997\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999for instance \`--prefix=\$HOME'.
1000
1001For better control, use the options below.
1002
1003Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1016_ACEOF
1017
1018 cat <<\_ACEOF
1019
1020System types:
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 --target=TARGET configure for building compilers for TARGET [HOST]
1024_ACEOF
1025fi
1026
1027if test -n "$ac_init_help"; then
1028 case $ac_init_help in
John Criswell5690c532005-05-18 20:18:40 +00001029 short | recursive ) echo "Configuration of llvm 1.6cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001030 esac
1031 cat <<\_ACEOF
1032
1033Optional Features:
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001036 --enable-optimized
1037 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001038 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001039 --enable-target Build specific host targets:
1040 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001041 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001042 --enable-shared[=PKGS]
1043 build shared libraries [default=yes]
1044 --enable-static[=PKGS]
1045 build static libraries [default=yes]
1046 --enable-fast-install[=PKGS]
1047 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001049
1050Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001053 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1054 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001055 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1058 both]
1059 --with-tags[=TAGS]
1060 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001061
1062Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001063 CC C compiler command
1064 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001069 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001075
1076Use these variables to override the choices made by `configure' or to help
1077it to find libraries and programs with nonstandard names/locations.
1078
1079Report bugs to <llvmbugs@cs.uiuc.edu>.
1080_ACEOF
1081fi
1082
1083if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1085 ac_popdir=`pwd`
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1088 ac_builddir=.
1089
1090if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094else
1095 ac_dir_suffix= ac_top_builddir=
1096fi
1097
1098case $srcdir in
1099 .) # No --srcdir option. We are building in place.
1100 ac_srcdir=.
1101 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=.
1103 else
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 fi ;;
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1109 *) # Relative path.
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001113
1114# Do not use `cd foo && pwd` to compute absolute paths, because
1115# the directories may not exist.
1116case `pwd` in
1117.) ac_abs_builddir="$ac_dir";;
1118*)
1119 case "$ac_dir" in
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_top_builddir=${ac_top_builddir}.;;
1127*)
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_srcdir=$ac_srcdir;;
1136*)
1137 case $ac_srcdir in
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_srcdir=$ac_top_srcdir;;
1145*)
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 esac;;
1151esac
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 cd $ac_dir
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1156 echo
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1159 echo
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001162 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001163 echo
1164 $ac_configure --help
1165 else
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 fi
1168 cd $ac_popdir
1169 done
1170fi
1171
1172test -n "$ac_init_help" && exit 0
1173if $ac_init_version; then
1174 cat <<\_ACEOF
John Criswell5690c532005-05-18 20:18:40 +00001175llvm configure 1.6cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001177
Reid Spencer2706f8c2004-09-19 23:53:36 +00001178Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001179This configure script is free software; the Free Software Foundation
1180gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001181
1182$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001183_ACEOF
1184 exit 0
1185fi
1186exec 5>config.log
1187cat >&5 <<_ACEOF
1188This file contains any messages produced by compilers while
1189running configure, to aid debugging if configure makes a mistake.
1190
John Criswell5690c532005-05-18 20:18:40 +00001191It was created by llvm $as_me 1.6cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001192generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001193
1194 $ $0 $@
1195
1196_ACEOF
1197{
1198cat <<_ASUNAME
1199## --------- ##
1200## Platform. ##
1201## --------- ##
1202
1203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211
1212/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219
1220_ASUNAME
1221
1222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223for as_dir in $PATH
1224do
1225 IFS=$as_save_IFS
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1228done
1229
1230} >&5
1231
1232cat >&5 <<_ACEOF
1233
1234
1235## ----------- ##
1236## Core tests. ##
1237## ----------- ##
1238
1239_ACEOF
1240
1241
1242# Keep a trace of the command line.
1243# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001245# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001246# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001247ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001248ac_configure_args0=
1249ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001250ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001251ac_must_keep_next=false
1252for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001253do
John Criswell0c38eaf2003-09-10 15:17:25 +00001254 for ac_arg
1255 do
1256 case $ac_arg in
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 continue ;;
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 esac
1264 case $ac_pass in
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 2)
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001270 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001271 case $ac_arg in
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 esac
1279 ;;
1280 -* ) ac_must_keep_next=true ;;
1281 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001282 fi
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1285 ac_sep=" "
1286 ;;
1287 esac
1288 done
John Criswell7a73b802003-06-30 21:59:07 +00001289done
John Criswell0c38eaf2003-09-10 15:17:25 +00001290$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291$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 +00001292
1293# When interrupted or exit'd, cleanup temporary files, and complete
1294# config.log. We remove comments because anyway the quotes in there
1295# would cause problems or look ugly.
1296# WARNING: Be sure not to use single quotes in there, as some shells,
1297# such as our DU 5.0 friend, will then `close' the trap.
1298trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1300 {
1301 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001302
John Criswell7a73b802003-06-30 21:59:07 +00001303 cat <<\_ASBOX
1304## ---------------- ##
1305## Cache variables. ##
1306## ---------------- ##
1307_ASBOX
1308 echo
1309 # The following way of writing the cache mishandles newlines in values,
1310{
1311 (set) 2>&1 |
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 *ac_space=\ *)
1314 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001317 ;;
1318 *)
1319 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001321 ;;
1322 esac;
1323}
1324 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001325
1326 cat <<\_ASBOX
1327## ----------------- ##
1328## Output variables. ##
1329## ----------------- ##
1330_ASBOX
1331 echo
1332 for ac_var in $ac_subst_vars
1333 do
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1336 done | sort
1337 echo
1338
1339 if test -n "$ac_subst_files"; then
1340 cat <<\_ASBOX
1341## ------------- ##
1342## Output files. ##
1343## ------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_files
1347 do
1348 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001349 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001350 done | sort
1351 echo
1352 fi
1353
John Criswell7a73b802003-06-30 21:59:07 +00001354 if test -s confdefs.h; then
1355 cat <<\_ASBOX
1356## ----------- ##
1357## confdefs.h. ##
1358## ----------- ##
1359_ASBOX
1360 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001361 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001362 echo
1363 fi
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1367 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001368 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 exit $exit_status
1371 ' 0
1372for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374done
1375ac_signal=0
1376
1377# confdefs.h avoids OS command line length limits that DEFS can exceed.
1378rm -rf conftest* confdefs.h
1379# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380echo >confdefs.h
1381
1382# Predefined preprocessor variables.
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_NAME "$PACKAGE_NAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_VERSION "$PACKAGE_VERSION"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_STRING "$PACKAGE_STRING"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406_ACEOF
1407
1408
1409# Let the site file select an alternate cache file if it wants to.
1410# Prefer explicitly selected file to automatically selected ones.
1411if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 else
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 fi
1417fi
1418for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1423 . "$ac_site_file"
1424 fi
1425done
1426
1427if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432echo "$as_me: loading cache $cache_file" >&6;}
1433 case $cache_file in
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1436 esac
1437 fi
1438else
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440echo "$as_me: creating cache $cache_file" >&6;}
1441 >$cache_file
1442fi
1443
1444# Check that the precious variables saved in the cache have kept the same
1445# value.
1446ac_cache_corrupted=false
1447for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1454 set,)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,set)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,);;
1463 *)
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001470echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001472 fi;;
1473 esac
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1476 case $ac_new_val in
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1480 esac
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 esac
1485 fi
1486done
1487if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1493fi
1494
1495ac_ext=c
1496ac_cpp='$CPP $CPPFLAGS'
1497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
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
John Criswell0c38eaf2003-09-10 15:17:25 +00001527
Misha Brukman19098e52005-05-12 22:15:34 +00001528LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529
1530
1531
1532
1533
1534
1535
John Criswell7a73b802003-06-30 21:59:07 +00001536ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001537for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001538 if test -f $ac_dir/install-sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 break
1542 elif test -f $ac_dir/install.sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 break
1546 elif test -f $ac_dir/shtool; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 break
1550 fi
1551done
1552if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001555 { (exit 1); exit 1; }; }
1556fi
1557ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
John Criswell392aaa32003-07-22 19:18:09 +00001561
Reid Spencer2706f8c2004-09-19 23:53:36 +00001562if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001565echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 fi
John Criswell93e1c722003-09-15 17:04:06 +00001568fi
1569
John Criswell33a911a2003-11-25 20:36:46 +00001570for i in `ls ${srcdir}/projects`
1571do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001572 if test -d ${srcdir}/projects/${i} ; then
1573 case ${i} in
1574 "CVS") ;;
1575 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001576
Reid Spencer4d68ba22004-09-07 16:35:45 +00001577subdirs="$subdirs projects/sample"
1578 ;;
1579 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001580
Reid Spencer4d68ba22004-09-07 16:35:45 +00001581subdirs="$subdirs projects/Stacker"
1582 ;;
1583 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001584
Reid Spencer4d68ba22004-09-07 16:35:45 +00001585subdirs="$subdirs projects/llvm-test"
1586 ;;
1587 "llvm-reopt")
1588
1589subdirs="$subdirs projects/llvm-reopt"
1590;;
1591 "llvm-gcc")
1592
1593subdirs="$subdirs projects/llvm-gcc"
1594 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001595 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001596
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001597subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001598 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001599 "llvm-tv")
1600
1601subdirs="$subdirs projects/llvm-tv"
1602 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001603 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001604
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001605subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001606 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001607 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001610 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001611 esac
John Criswell33a911a2003-11-25 20:36:46 +00001612 fi
1613done
John Criswell559a6c12003-09-30 16:31:48 +00001614
John Criswell7a73b802003-06-30 21:59:07 +00001615
1616# Make sure we can run config.sub.
1617$ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622echo "$as_me:$LINENO: checking build system type" >&5
1623echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_build_alias=$build_alias
1628test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641echo "${ECHO_T}$ac_cv_build" >&6
1642build=$ac_cv_build
1643build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648echo "$as_me:$LINENO: checking host system type" >&5
1649echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 ac_cv_host_alias=$host_alias
1654test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1660
1661fi
1662echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663echo "${ECHO_T}$ac_cv_host" >&6
1664host=$ac_cv_host
1665host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670echo "$as_me:$LINENO: checking target system type" >&5
1671echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 ac_cv_target_alias=$target_alias
1676test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683fi
1684echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685echo "${ECHO_T}$ac_cv_target" >&6
1686target=$ac_cv_target
1687target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692# The aliases save the names the user supplied, while $host etc.
1693# will get canonicalized.
1694test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1696 NONENONEs,x,x, &&
1697 program_prefix=${target_alias}-
1698
Reid Spencer7b3e8512004-12-24 06:29:05 +00001699echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001705 *-*-aix*)
1706 llvm_cv_os_type="AIX"
1707 llvm_cv_platform_type="Unix" ;;
1708 *-*-cygwin*)
1709 llvm_cv_os_type="Cygwin"
1710 llvm_cv_platform_type="Unix" ;;
1711 *-*-darwin*)
1712 llvm_cv_os_type="Darwin"
1713 llvm_cv_platform_type="Unix" ;;
1714 *-*-freebsd*)
1715 llvm_cv_os_type="FreeBSD"
1716 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001717 *-*-hpux*)
1718 llvm_cv_os_type="HP-UX"
1719 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001720 *-*-interix*)
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1723 *-*-linux*)
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1726 *-*-solaris*)
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1729 *-*-win32*)
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1732 *-*-mingw*)
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1735 *)
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001738esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001739fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001740echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001742
Reid Spencer7b3e8512004-12-24 06:29:05 +00001743if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001746 { (exit 1); exit 1; }; }
1747fi
1748
Reid Spencer7b3e8512004-12-24 06:29:05 +00001749OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001750
1751
Reid Spencer7b3e8512004-12-24 06:29:05 +00001752case $llvm_cv_platform_type in
1753 Unix)
1754
1755cat >>confdefs.h <<\_ACEOF
1756#define LLVM_ON_UNIX 1
1757_ACEOF
1758
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001759 LLVM_ON_UNIX=1
1760
1761 LLVM_ON_WIN32=0
1762
Reid Spencer7b3e8512004-12-24 06:29:05 +00001763 ;;
1764 Win32)
1765
1766cat >>confdefs.h <<\_ACEOF
1767#define LLVM_ON_WIN32 1
1768_ACEOF
1769
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001770 LLVM_ON_UNIX=0
1771
1772 LLVM_ON_WIN32=1
1773
Reid Spencer7b3e8512004-12-24 06:29:05 +00001774 ;;
1775esac
1776
Reid Spencer73fb5482004-08-31 14:20:36 +00001777echo "$as_me:$LINENO: checking target architecture" >&5
1778echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001779if test "${llvm_cv_target_arch+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001783 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001784 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001785 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1786 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001787 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001788 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001789 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001790esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001791fi
1792echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1793echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001794
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001795if test "$llvm_cv_target_arch" = "Unknown" ; then
1796 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1797echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1798fi
John Criswell76595452003-07-01 22:07:39 +00001799
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001800ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001801
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001802
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001803ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001808if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1810set dummy ${ac_tool_prefix}gcc; ac_word=$2
1811echo "$as_me:$LINENO: checking for $ac_word" >&5
1812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813if test "${ac_cv_prog_CC+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815else
1816 if test -n "$CC"; then
1817 ac_cv_prog_CC="$CC" # Let the user override the test.
1818else
1819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820for as_dir in $PATH
1821do
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1829 fi
1830done
1831done
1832
1833fi
1834fi
1835CC=$ac_cv_prog_CC
1836if test -n "$CC"; then
1837 echo "$as_me:$LINENO: result: $CC" >&5
1838echo "${ECHO_T}$CC" >&6
1839else
1840 echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842fi
1843
1844fi
1845if test -z "$ac_cv_prog_CC"; then
1846 ac_ct_CC=$CC
1847 # Extract the first word of "gcc", so it can be a program name with args.
1848set dummy gcc; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854 if test -n "$ac_ct_CC"; then
1855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CC="gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
1869done
1870
1871fi
1872fi
1873ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874if test -n "$ac_ct_CC"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876echo "${ECHO_T}$ac_ct_CC" >&6
1877else
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882 CC=$ac_ct_CC
1883else
1884 CC="$ac_cv_prog_CC"
1885fi
1886
1887if test -z "$CC"; then
1888 if test -n "$ac_tool_prefix"; then
1889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1890set dummy ${ac_tool_prefix}cc; ac_word=$2
1891echo "$as_me:$LINENO: checking for $ac_word" >&5
1892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893if test "${ac_cv_prog_CC+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
1896 if test -n "$CC"; then
1897 ac_cv_prog_CC="$CC" # Let the user override the test.
1898else
1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900for as_dir in $PATH
1901do
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906 ac_cv_prog_CC="${ac_tool_prefix}cc"
1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 break 2
1909 fi
1910done
1911done
1912
1913fi
1914fi
1915CC=$ac_cv_prog_CC
1916if test -n "$CC"; then
1917 echo "$as_me:$LINENO: result: $CC" >&5
1918echo "${ECHO_T}$CC" >&6
1919else
1920 echo "$as_me:$LINENO: result: no" >&5
1921echo "${ECHO_T}no" >&6
1922fi
1923
1924fi
1925if test -z "$ac_cv_prog_CC"; then
1926 ac_ct_CC=$CC
1927 # Extract the first word of "cc", so it can be a program name with args.
1928set dummy cc; ac_word=$2
1929echo "$as_me:$LINENO: checking for $ac_word" >&5
1930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934 if test -n "$ac_ct_CC"; then
1935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936else
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_ac_ct_CC="cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1947 fi
1948done
1949done
1950
1951fi
1952fi
1953ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954if test -n "$ac_ct_CC"; then
1955 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956echo "${ECHO_T}$ac_ct_CC" >&6
1957else
1958 echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6
1960fi
1961
1962 CC=$ac_ct_CC
1963else
1964 CC="$ac_cv_prog_CC"
1965fi
1966
1967fi
1968if test -z "$CC"; then
1969 # Extract the first word of "cc", so it can be a program name with args.
1970set dummy cc; ac_word=$2
1971echo "$as_me:$LINENO: checking for $ac_word" >&5
1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1978else
1979 ac_prog_rejected=no
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988 ac_prog_rejected=yes
1989 continue
1990 fi
1991 ac_cv_prog_CC="cc"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1994 fi
1995done
1996done
1997
1998if test $ac_prog_rejected = yes; then
1999 # We found a bogon in the path, so make sure we never use it.
2000 set dummy $ac_cv_prog_CC
2001 shift
2002 if test $# != 0; then
2003 # We chose a different compiler from the bogus one.
2004 # However, it has the same basename, so the bogon will be chosen
2005 # first if we set CC to just the basename; use the full file name.
2006 shift
2007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2008 fi
2009fi
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
2016else
2017 echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
2021fi
2022if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2024 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002025 do
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048done
2049
2050fi
2051fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052CC=$ac_cv_prog_CC
2053if test -n "$CC"; then
2054 echo "$as_me:$LINENO: result: $CC" >&5
2055echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002056else
2057 echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6
2059fi
2060
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002062 done
2063fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002064if test -z "$CC"; then
2065 ac_ct_CC=$CC
2066 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002067do
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069set dummy $ac_prog; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002085 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2088 fi
2089done
2090done
2091
2092fi
2093fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002098else
2099 echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002103 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002104done
John Criswell7a73b802003-06-30 21:59:07 +00002105
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002106 CC=$ac_ct_CC
2107fi
2108
John Criswell7a73b802003-06-30 21:59:07 +00002109fi
2110
2111
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002112test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113See \`config.log' for more details." >&5
2114echo "$as_me: error: no acceptable C compiler found in \$PATH
2115See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2117
John Criswell7a73b802003-06-30 21:59:07 +00002118# Provide some information about the compiler.
2119echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002120 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002121ac_compiler=`set X $ac_compile; echo $2`
2122{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123 (eval $ac_compiler --version </dev/null >&5) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128 (eval $ac_compiler -v </dev/null >&5) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2133 (eval $ac_compiler -V </dev/null >&5) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2137
2138cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002139/* confdefs.h. */
2140_ACEOF
2141cat confdefs.h >>conftest.$ac_ext
2142cat >>conftest.$ac_ext <<_ACEOF
2143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002144
John Criswell7a73b802003-06-30 21:59:07 +00002145int
2146main ()
2147{
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002154ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002155# Try to create an executable without -o first, disregard a.out.
2156# It will help us diagnose broken compilers, and finding out an intuition
2157# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002158echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002160ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162 (eval $ac_link_default) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
2166 # Find the output, starting from the most likely. This scheme is
2167# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2168# resort.
2169
2170# Be careful to initialize this variable, since it used to be cached.
2171# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2172ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002173# b.out is created by i960 compilers.
2174for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2175do
2176 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002177 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002179 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002180 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 # This is the source file.
2182 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002183 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002184 # We found the default executable, but exeext='' is most
2185 # certainly right.
2186 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 # FIXME: I believe we export ac_cv_exeext for Libtool,
2190 # but it would be cool to find out if it's true. Does anybody
2191 # maintain Libtool? --akim.
2192 export ac_cv_exeext
2193 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002195 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002196 esac
2197done
2198else
2199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002200sed 's/^/| /' conftest.$ac_ext >&5
2201
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002202{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002203See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002204echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002205See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002206 { (exit 77); exit 77; }; }
2207fi
2208
2209ac_exeext=$ac_cv_exeext
2210echo "$as_me:$LINENO: result: $ac_file" >&5
2211echo "${ECHO_T}$ac_file" >&6
2212
2213# Check the compiler produces executables we can run. If not, either
2214# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002215echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002217# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218# If not cross compiling, check that we can run a simple program.
2219if test "$cross_compiling" != yes; then
2220 if { ac_try='./$ac_file'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 cross_compiling=no
2227 else
2228 if test "$cross_compiling" = maybe; then
2229 cross_compiling=yes
2230 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002231 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002234echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002237 { (exit 1); exit 1; }; }
2238 fi
2239 fi
2240fi
2241echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6
2243
John Criswell0c38eaf2003-09-10 15:17:25 +00002244rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002245ac_clean_files=$ac_clean_files_save
2246# Check the compiler produces executables we can run. If not, either
2247# the compiler is broken, or we cross compile.
2248echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251echo "${ECHO_T}$cross_compiling" >&6
2252
2253echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256 (eval $ac_link) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2262# work properly (i.e., refer to `conftest.exe'), while it won't with
2263# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002264for ac_file in conftest.exe conftest conftest.*; do
2265 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002266 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002269 export ac_cv_exeext
2270 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002271 * ) break;;
2272 esac
2273done
2274else
John Criswell0c38eaf2003-09-10 15:17:25 +00002275 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&5
2277echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002279 { (exit 1); exit 1; }; }
2280fi
2281
2282rm -f conftest$ac_cv_exeext
2283echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284echo "${ECHO_T}$ac_cv_exeext" >&6
2285
2286rm -f conftest.$ac_ext
2287EXEEXT=$ac_cv_exeext
2288ac_exeext=$EXEEXT
2289echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291if test "${ac_cv_objext+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002300
John Criswell7a73b802003-06-30 21:59:07 +00002301int
2302main ()
2303{
2304
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309rm -f conftest.o conftest.obj
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 break;;
2320 esac
2321done
2322else
2323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002330 { (exit 1); exit 1; }; }
2331fi
2332
2333rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334fi
2335echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336echo "${ECHO_T}$ac_cv_objext" >&6
2337OBJEXT=$ac_cv_objext
2338ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002339echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002350
John Criswell7a73b802003-06-30 21:59:07 +00002351int
2352main ()
2353{
2354#ifndef __GNUC__
2355 choke me
2356#endif
2357
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002364 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002366 grep -v '^ *+' conftest.er1 >conftest.err
2367 rm -f conftest.er1
2368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 (eval $ac_try) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 ac_compiler_gnu=yes
2385else
2386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002387sed 's/^/| /' conftest.$ac_ext >&5
2388
John Criswell7a73b802003-06-30 21:59:07 +00002389ac_compiler_gnu=no
2390fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002393
2394fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397GCC=`test $ac_compiler_gnu = yes && echo yes`
2398ac_test_CFLAGS=${CFLAGS+set}
2399ac_save_CFLAGS=$CFLAGS
2400CFLAGS="-g"
2401echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002404 echo $ECHO_N "(cached) $ECHO_C" >&6
2405else
2406 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002407/* confdefs.h. */
2408_ACEOF
2409cat confdefs.h >>conftest.$ac_ext
2410cat >>conftest.$ac_ext <<_ACEOF
2411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002412
John Criswell7a73b802003-06-30 21:59:07 +00002413int
2414main ()
2415{
2416
2417 ;
2418 return 0;
2419}
2420_ACEOF
2421rm -f conftest.$ac_objext
2422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002423 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002425 grep -v '^ *+' conftest.er1 >conftest.err
2426 rm -f conftest.er1
2427 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002444else
2445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002446sed 's/^/| /' conftest.$ac_ext >&5
2447
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002449fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002451fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454if test "$ac_test_CFLAGS" = set; then
2455 CFLAGS=$ac_save_CFLAGS
2456elif test $ac_cv_prog_cc_g = yes; then
2457 if test "$GCC" = yes; then
2458 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002459 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002461 fi
2462else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463 if test "$GCC" = yes; then
2464 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002465 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002467 fi
2468fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474 ac_cv_prog_cc_stdc=no
2475ac_save_CC=$CC
2476cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482#include <stdarg.h>
2483#include <stdio.h>
2484#include <sys/types.h>
2485#include <sys/stat.h>
2486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2487struct buf { int x; };
2488FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489static char *e (p, i)
2490 char **p;
2491 int i;
2492{
2493 return p[i];
2494}
2495static char *f (char * (*g) (char **, int), char **p, ...)
2496{
2497 char *s;
2498 va_list v;
2499 va_start (v,p);
2500 s = g (p, va_arg (v,int));
2501 va_end (v);
2502 return s;
2503}
2504
2505/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2506 function prototypes and stuff, but not '\xHH' hex character constants.
2507 These don't provoke an error unfortunately, instead are silently treated
2508 as 'x'. The following induces an error, until -std1 is added to get
2509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2510 array size at least. It's necessary to write '\x00'==0 to get something
2511 that's true only with -std1. */
2512int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2513
2514int test (int i, double x);
2515struct s1 {int (*f) (int a);};
2516struct s2 {int (*f) (double a);};
2517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518int argc;
2519char **argv;
2520int
2521main ()
2522{
2523return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2524 ;
2525 return 0;
2526}
2527_ACEOF
2528# Don't try gcc -ansi; that turns off useful extensions and
2529# breaks some systems' header files.
2530# AIX -qlanglvl=ansi
2531# Ultrix and OSF/1 -std1
2532# HP-UX 10.20 and later -Ae
2533# HP-UX older versions -Aa -D_HPUX_SOURCE
2534# SVR4 -Xc -D__EXTENSIONS__
2535for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536do
2537 CC="$ac_save_CC $ac_arg"
2538 rm -f conftest.$ac_objext
2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540 (eval $ac_compile) 2>conftest.er1
2541 ac_status=$?
2542 grep -v '^ *+' conftest.er1 >conftest.err
2543 rm -f conftest.er1
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -z "$ac_c_werror_flag"
2548 || test ! -s conftest.err'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 ac_cv_prog_cc_stdc=$ac_arg
2561break
2562else
2563 echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566fi
2567rm -f conftest.err conftest.$ac_objext
2568done
2569rm -f conftest.$ac_ext conftest.$ac_objext
2570CC=$ac_save_CC
2571
2572fi
2573
2574case "x$ac_cv_prog_cc_stdc" in
2575 x|xno)
2576 echo "$as_me:$LINENO: result: none needed" >&5
2577echo "${ECHO_T}none needed" >&6 ;;
2578 *)
2579 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581 CC="$CC $ac_cv_prog_cc_stdc" ;;
2582esac
2583
2584# Some people use a C++ compiler to compile C. Since we use `exit',
2585# in C++ we need to declare it. In case someone uses the same compiler
2586# for both compiling C and C++ we need to have the C++ compiler decide
2587# the declaration of exit, since it's the most demanding environment.
2588cat >conftest.$ac_ext <<_ACEOF
2589#ifndef __cplusplus
2590 choke me
2591#endif
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002616 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002617 'extern "C" void std::exit (int) throw (); using std::exit;' \
2618 'extern "C" void std::exit (int); using std::exit;' \
2619 'extern "C" void exit (int) throw ();' \
2620 'extern "C" void exit (int);' \
2621 'void exit (int);'
2622do
2623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002629$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002630#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002631int
2632main ()
2633{
2634exit (42);
2635 ;
2636 return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002641 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002642 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002643 grep -v '^ *+' conftest.er1 >conftest.err
2644 rm -f conftest.er1
2645 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 :
2662else
2663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002664sed 's/^/| /' conftest.$ac_ext >&5
2665
John Criswell7a73b802003-06-30 21:59:07 +00002666continue
2667fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002670/* confdefs.h. */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002675$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002676int
2677main ()
2678{
2679exit (42);
2680 ;
2681 return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002686 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002694 || test ! -s conftest.err'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; } &&
2700 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2706 break
2707else
2708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002709sed 's/^/| /' conftest.$ac_ext >&5
2710
John Criswell7a73b802003-06-30 21:59:07 +00002711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002713done
2714rm -f conftest*
2715if test -n "$ac_declaration"; then
2716 echo '#ifdef __cplusplus' >>confdefs.h
2717 echo $ac_declaration >>confdefs.h
2718 echo '#endif' >>confdefs.h
2719fi
2720
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002721else
2722 echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725fi
2726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2735echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2736if test "${ac_cv_c_bigendian+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738else
2739 # See if sys/param.h defines the BYTE_ORDER macro.
2740cat >conftest.$ac_ext <<_ACEOF
2741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
2746#include <sys/types.h>
2747#include <sys/param.h>
2748
2749int
2750main ()
2751{
2752#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2753 bogus endian macros
2754#endif
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext
2761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>conftest.er1
2763 ac_status=$?
2764 grep -v '^ *+' conftest.er1 >conftest.err
2765 rm -f conftest.er1
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag"
2770 || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 # It does; now see whether it defined to BIG_ENDIAN or not.
2783cat >conftest.$ac_ext <<_ACEOF
2784/* confdefs.h. */
2785_ACEOF
2786cat confdefs.h >>conftest.$ac_ext
2787cat >>conftest.$ac_ext <<_ACEOF
2788/* end confdefs.h. */
2789#include <sys/types.h>
2790#include <sys/param.h>
2791
2792int
2793main ()
2794{
2795#if BYTE_ORDER != BIG_ENDIAN
2796 not big endian
2797#endif
2798
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext
2804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_c_bigendian=yes
2826else
2827 echo "$as_me: failed program was:" >&5
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
2830ac_cv_c_bigendian=no
2831fi
2832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833else
2834 echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837# It does not; compile a test program.
2838if test "$cross_compiling" = yes; then
2839 # try to guess the endianness by grepping values into an object file
2840 ac_cv_c_bigendian=unknown
2841 cat >conftest.$ac_ext <<_ACEOF
2842/* confdefs.h. */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h. */
2847short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2848short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2849void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2850short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2851short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2852void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2853int
2854main ()
2855{
2856 _ascii (); _ebcdic ();
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext
2862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2884 ac_cv_c_bigendian=yes
2885fi
2886if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2887 if test "$ac_cv_c_bigendian" = unknown; then
2888 ac_cv_c_bigendian=no
2889 else
2890 # finding both strings is unlikely to happen, but who knows?
2891 ac_cv_c_bigendian=unknown
2892 fi
2893fi
2894else
2895 echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900else
2901 cat >conftest.$ac_ext <<_ACEOF
2902/* confdefs.h. */
2903_ACEOF
2904cat confdefs.h >>conftest.$ac_ext
2905cat >>conftest.$ac_ext <<_ACEOF
2906/* end confdefs.h. */
2907int
2908main ()
2909{
2910 /* Are we little or big endian? From Harbison&Steele. */
2911 union
2912 {
2913 long l;
2914 char c[sizeof (long)];
2915 } u;
2916 u.l = 1;
2917 exit (u.c[sizeof (long) - 1] == 1);
2918}
2919_ACEOF
2920rm -f conftest$ac_exeext
2921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922 (eval $ac_link) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_cv_c_bigendian=no
2932else
2933 echo "$as_me: program exited with status $ac_status" >&5
2934echo "$as_me: failed program was:" >&5
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
2937( exit $ac_status )
2938ac_cv_c_bigendian=yes
2939fi
2940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2941fi
2942fi
2943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944fi
2945echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2946echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2947case $ac_cv_c_bigendian in
2948 yes)
2949 ENDIAN=big
2950 ;;
2951 no)
2952 ENDIAN=little
2953 ;;
2954 *)
2955 { { echo "$as_me:$LINENO: error: unknown endianness
2956presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2957echo "$as_me: error: unknown endianness
2958presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2959 { (exit 1); exit 1; }; } ;;
2960esac
2961
2962
2963
2964# Check whether --enable-optimized or --disable-optimized was given.
2965if test "${enable_optimized+set}" = set; then
2966 enableval="$enable_optimized"
2967
2968else
2969 enableval=no
2970fi;
2971if test ${enableval} = "no" ; then
2972 ENABLE_OPTIMIZED=
2973
2974else
2975 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2976
2977fi
2978
2979# Check whether --enable-jit or --disable-jit was given.
2980if test "${enable_jit+set}" = set; then
2981 enableval="$enable_jit"
2982
2983else
2984 enableval=default
2985fi;
2986if test ${enableval} = "no"
2987then
2988 JIT=
2989
2990else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002991 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002992 x86) JIT=TARGET_HAS_JIT=1
2993 ;;
2994 Sparc) JIT=TARGET_HAS_JIT=1
2995 ;;
2996 PowerPC) JIT=TARGET_HAS_JIT=1
2997 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00002998 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00002999 ;;
Reid Spencer945de9b2005-04-22 07:27:28 +00003000 Alpha) JIT=
3001 ;;
3002 IA64) JIT=
3003 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003004 *) JIT=
3005 ;;
3006 esac
3007fi
3008
Reid Spencer1f319422004-11-29 04:56:35 +00003009# Check whether --enable-doxygen or --disable-doxygen was given.
3010if test "${enable_doxygen+set}" = set; then
3011 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003012
Reid Spencer1f319422004-11-29 04:56:35 +00003013else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003014 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003015fi;
3016case "$enableval" in
3017 yes) ENABLE_DOXYGEN=1
3018 ;;
3019 no) ENABLE_DOXYGEN=0
3020 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003021 default) ENABLE_DOXYGEN=0
3022 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3024echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3025 { (exit 1); exit 1; }; } ;;
3026esac
3027
Reid Spencer945de9b2005-04-22 07:27:28 +00003028TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003029# Check whether --enable-targets or --disable-targets was given.
3030if test "${enable_targets+set}" = set; then
3031 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003032
3033else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003034 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003035fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003036case "$enableval" in
Misha Brukmanccc1c162005-04-22 18:00:34 +00003037 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003038 host-only)
3039 case "$llvm_cv_target_arch" in
3040 x86) TARGETS_TO_BUILD="X86" ;;
3041 x86_64) TARGETS_TO_BUILD="X86" ;;
3042 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3043 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3044 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3045 IA64) TARGETS_TO_BUILD="IA64" ;;
3046 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003047echo "$as_me: error: Can not set target to build" >&2;}
3048 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003049 esac
3050 ;;
3051 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3052 case "$a_target" in
3053 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3054 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3055 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3056 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3057 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3058 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3059 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3060 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3061echo "$as_me: error: Unrecognized target $a_target" >&2;}
3062 { (exit 1); exit 1; }; } ;;
3063 esac
3064 done
3065 ;;
3066esac
Reid Spencer675f0922005-04-22 17:06:18 +00003067TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003068TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3069
3070
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003071
Reid Spencer59473af2004-12-25 07:31:29 +00003072# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3073if test "${with_llvmgccdir+set}" = set; then
3074 withval="$with_llvmgccdir"
3075
3076else
3077 withval=default
3078fi;
3079case "$withval" in
3080 default) WITH_LLVMGCCDIR=default ;;
3081 /*) WITH_LLVMGCCDIR=$withval ;;
3082 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3083echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3084 { (exit 1); exit 1; }; } ;;
3085esac
3086
3087
Reid Spencer945de9b2005-04-22 07:27:28 +00003088
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003089ac_ext=c
3090ac_cpp='$CPP $CPPFLAGS'
3091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3095echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3096# On Suns, sometimes $CPP names a directory.
3097if test -n "$CPP" && test -d "$CPP"; then
3098 CPP=
3099fi
3100if test -z "$CPP"; then
3101 if test "${ac_cv_prog_CPP+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104 # Double quotes because CPP needs to be expanded
3105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3106 do
3107 ac_preproc_ok=false
3108for ac_c_preproc_warn_flag in '' yes
3109do
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#ifdef __STDC__
3123# include <limits.h>
3124#else
3125# include <assert.h>
3126#endif
3127 Syntax error
3128_ACEOF
3129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140 else
3141 ac_cpp_err=
3142 fi
3143else
3144 ac_cpp_err=yes
3145fi
3146if test -z "$ac_cpp_err"; then
3147 :
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Broken: fails on valid input.
3153continue
3154fi
3155rm -f conftest.err conftest.$ac_ext
3156
3157 # OK, works on sane cases. Now check whether non-existent headers
3158 # can be detected and how.
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
3165#include <ac_nonexistent.h>
3166_ACEOF
3167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3178 else
3179 ac_cpp_err=
3180 fi
3181else
3182 ac_cpp_err=yes
3183fi
3184if test -z "$ac_cpp_err"; then
3185 # Broken: success on invalid input.
3186continue
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 # Passes both tests.
3192ac_preproc_ok=:
3193break
3194fi
3195rm -f conftest.err conftest.$ac_ext
3196
3197done
3198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199rm -f conftest.err conftest.$ac_ext
3200if $ac_preproc_ok; then
3201 break
3202fi
3203
3204 done
3205 ac_cv_prog_CPP=$CPP
3206
3207fi
3208 CPP=$ac_cv_prog_CPP
3209else
3210 ac_cv_prog_CPP=$CPP
3211fi
3212echo "$as_me:$LINENO: result: $CPP" >&5
3213echo "${ECHO_T}$CPP" >&6
3214ac_preproc_ok=false
3215for ac_c_preproc_warn_flag in '' yes
3216do
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
3223 cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229#ifdef __STDC__
3230# include <limits.h>
3231#else
3232# include <assert.h>
3233#endif
3234 Syntax error
3235_ACEOF
3236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 else
3248 ac_cpp_err=
3249 fi
3250else
3251 ac_cpp_err=yes
3252fi
3253if test -z "$ac_cpp_err"; then
3254 :
3255else
3256 echo "$as_me: failed program was:" >&5
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 # Broken: fails on valid input.
3260continue
3261fi
3262rm -f conftest.err conftest.$ac_ext
3263
3264 # OK, works on sane cases. Now check whether non-existent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272#include <ac_nonexistent.h>
3273_ACEOF
3274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285 else
3286 ac_cpp_err=
3287 fi
3288else
3289 ac_cpp_err=yes
3290fi
3291if test -z "$ac_cpp_err"; then
3292 # Broken: success on invalid input.
3293continue
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 # Passes both tests.
3299ac_preproc_ok=:
3300break
3301fi
3302rm -f conftest.err conftest.$ac_ext
3303
3304done
3305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3306rm -f conftest.err conftest.$ac_ext
3307if $ac_preproc_ok; then
3308 :
3309else
3310 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3311See \`config.log' for more details." >&5
3312echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3313See \`config.log' for more details." >&2;}
3314 { (exit 1); exit 1; }; }
3315fi
3316
John Criswell7a73b802003-06-30 21:59:07 +00003317ac_ext=c
3318ac_cpp='$CPP $CPPFLAGS'
3319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328if test -n "$ac_tool_prefix"; then
3329 for ac_prog in gcc
3330 do
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_CC+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352done
3353done
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359 echo "$as_me:$LINENO: result: $CC" >&5
3360echo "${ECHO_T}$CC" >&6
3361else
3362 echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
3365
3366 test -n "$CC" && break
3367 done
3368fi
3369if test -z "$CC"; then
3370 ac_ct_CC=$CC
3371 for ac_prog in gcc
3372do
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374set dummy $ac_prog; ac_word=$2
3375echo "$as_me:$LINENO: checking for $ac_word" >&5
3376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394done
3395done
3396
3397fi
3398fi
3399ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400if test -n "$ac_ct_CC"; then
3401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3402echo "${ECHO_T}$ac_ct_CC" >&6
3403else
3404 echo "$as_me:$LINENO: result: no" >&5
3405echo "${ECHO_T}no" >&6
3406fi
3407
3408 test -n "$ac_ct_CC" && break
3409done
3410
3411 CC=$ac_ct_CC
3412fi
3413
3414
John Criswell0c38eaf2003-09-10 15:17:25 +00003415test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416See \`config.log' for more details." >&5
3417echo "$as_me: error: no acceptable C compiler found in \$PATH
3418See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003419 { (exit 1); exit 1; }; }
3420
3421# Provide some information about the compiler.
3422echo "$as_me:$LINENO:" \
3423 "checking for C compiler version" >&5
3424ac_compiler=`set X $ac_compile; echo $2`
3425{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3426 (eval $ac_compiler --version </dev/null >&5) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }
3430{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3431 (eval $ac_compiler -v </dev/null >&5) 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }
3435{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3436 (eval $ac_compiler -V </dev/null >&5) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }
3440
3441echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3442echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3443if test "${ac_cv_c_compiler_gnu+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003452
John Criswell7a73b802003-06-30 21:59:07 +00003453int
3454main ()
3455{
3456#ifndef __GNUC__
3457 choke me
3458#endif
3459
3460 ;
3461 return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003466 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003467 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_compiler_gnu=yes
3487else
3488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003489sed 's/^/| /' conftest.$ac_ext >&5
3490
John Criswell7a73b802003-06-30 21:59:07 +00003491ac_compiler_gnu=no
3492fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003494ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495
3496fi
3497echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3498echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3499GCC=`test $ac_compiler_gnu = yes && echo yes`
3500ac_test_CFLAGS=${CFLAGS+set}
3501ac_save_CFLAGS=$CFLAGS
3502CFLAGS="-g"
3503echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3504echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3505if test "${ac_cv_prog_cc_g+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003514
John Criswell7a73b802003-06-30 21:59:07 +00003515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext
3524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003525 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_prog_cc_g=yes
3546else
3547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003548sed 's/^/| /' conftest.$ac_ext >&5
3549
John Criswell7a73b802003-06-30 21:59:07 +00003550ac_cv_prog_cc_g=no
3551fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003553fi
3554echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3555echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3556if test "$ac_test_CFLAGS" = set; then
3557 CFLAGS=$ac_save_CFLAGS
3558elif test $ac_cv_prog_cc_g = yes; then
3559 if test "$GCC" = yes; then
3560 CFLAGS="-g -O2"
3561 else
3562 CFLAGS="-g"
3563 fi
3564else
3565 if test "$GCC" = yes; then
3566 CFLAGS="-O2"
3567 else
3568 CFLAGS=
3569 fi
3570fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003571echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3572echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3573if test "${ac_cv_prog_cc_stdc+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576 ac_cv_prog_cc_stdc=no
3577ac_save_CC=$CC
3578cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
3584#include <stdarg.h>
3585#include <stdio.h>
3586#include <sys/types.h>
3587#include <sys/stat.h>
3588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3589struct buf { int x; };
3590FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591static char *e (p, i)
3592 char **p;
3593 int i;
3594{
3595 return p[i];
3596}
3597static char *f (char * (*g) (char **, int), char **p, ...)
3598{
3599 char *s;
3600 va_list v;
3601 va_start (v,p);
3602 s = g (p, va_arg (v,int));
3603 va_end (v);
3604 return s;
3605}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003606
3607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3608 function prototypes and stuff, but not '\xHH' hex character constants.
3609 These don't provoke an error unfortunately, instead are silently treated
3610 as 'x'. The following induces an error, until -std1 is added to get
3611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3612 array size at least. It's necessary to write '\x00'==0 to get something
3613 that's true only with -std1. */
3614int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
John Criswell0c38eaf2003-09-10 15:17:25 +00003616int test (int i, double x);
3617struct s1 {int (*f) (int a);};
3618struct s2 {int (*f) (double a);};
3619int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620int argc;
3621char **argv;
3622int
3623main ()
3624{
3625return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 ;
3627 return 0;
3628}
3629_ACEOF
3630# Don't try gcc -ansi; that turns off useful extensions and
3631# breaks some systems' header files.
3632# AIX -qlanglvl=ansi
3633# Ultrix and OSF/1 -std1
3634# HP-UX 10.20 and later -Ae
3635# HP-UX older versions -Aa -D_HPUX_SOURCE
3636# SVR4 -Xc -D__EXTENSIONS__
3637for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638do
3639 CC="$ac_save_CC $ac_arg"
3640 rm -f conftest.$ac_objext
3641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003642 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003643 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_prog_cc_stdc=$ac_arg
3663break
3664else
3665 echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003669rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003670done
3671rm -f conftest.$ac_ext conftest.$ac_objext
3672CC=$ac_save_CC
3673
3674fi
3675
3676case "x$ac_cv_prog_cc_stdc" in
3677 x|xno)
3678 echo "$as_me:$LINENO: result: none needed" >&5
3679echo "${ECHO_T}none needed" >&6 ;;
3680 *)
3681 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3682echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3683 CC="$CC $ac_cv_prog_cc_stdc" ;;
3684esac
3685
John Criswell7a73b802003-06-30 21:59:07 +00003686# Some people use a C++ compiler to compile C. Since we use `exit',
3687# in C++ we need to declare it. In case someone uses the same compiler
3688# for both compiling C and C++ we need to have the C++ compiler decide
3689# the declaration of exit, since it's the most demanding environment.
3690cat >conftest.$ac_ext <<_ACEOF
3691#ifndef __cplusplus
3692 choke me
3693#endif
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003697 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003718 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003719 'extern "C" void std::exit (int) throw (); using std::exit;' \
3720 'extern "C" void std::exit (int); using std::exit;' \
3721 'extern "C" void exit (int) throw ();' \
3722 'extern "C" void exit (int);' \
3723 'void exit (int);'
3724do
3725 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003726/* confdefs.h. */
3727_ACEOF
3728cat confdefs.h >>conftest.$ac_ext
3729cat >>conftest.$ac_ext <<_ACEOF
3730/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003731$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003732#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003733int
3734main ()
3735{
3736exit (42);
3737 ;
3738 return 0;
3739}
3740_ACEOF
3741rm -f conftest.$ac_objext
3742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003743 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003750 { ac_try='test -z "$ac_c_werror_flag"
3751 || test ! -s conftest.err'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 :
3764else
3765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003766sed 's/^/| /' conftest.$ac_ext >&5
3767
John Criswell7a73b802003-06-30 21:59:07 +00003768continue
3769fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003771 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003772/* confdefs.h. */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003777$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003778int
3779main ()
3780{
3781exit (42);
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003788 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 break
3809else
3810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003811sed 's/^/| /' conftest.$ac_ext >&5
3812
John Criswell7a73b802003-06-30 21:59:07 +00003813fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003815done
3816rm -f conftest*
3817if test -n "$ac_declaration"; then
3818 echo '#ifdef __cplusplus' >>confdefs.h
3819 echo $ac_declaration >>confdefs.h
3820 echo '#endif' >>confdefs.h
3821fi
3822
3823else
3824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003825sed 's/^/| /' conftest.$ac_ext >&5
3826
John Criswell7a73b802003-06-30 21:59:07 +00003827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003829ac_ext=c
3830ac_cpp='$CPP $CPPFLAGS'
3831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003835ac_ext=cc
3836ac_cpp='$CXXCPP $CPPFLAGS'
3837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840if test -n "$ac_tool_prefix"; then
3841 for ac_prog in $CCC g++
3842 do
3843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3845echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003850 if test -n "$CXX"; then
3851 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3852else
3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003855do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864done
3865done
3866
3867fi
3868fi
3869CXX=$ac_cv_prog_CXX
3870if test -n "$CXX"; then
3871 echo "$as_me:$LINENO: result: $CXX" >&5
3872echo "${ECHO_T}$CXX" >&6
3873else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876fi
3877
3878 test -n "$CXX" && break
3879 done
3880fi
3881if test -z "$CXX"; then
3882 ac_ct_CXX=$CXX
3883 for ac_prog in $CCC g++
3884do
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886set dummy $ac_prog; ac_word=$2
3887echo "$as_me:$LINENO: checking for $ac_word" >&5
3888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 if test -n "$ac_ct_CXX"; then
3893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_ac_ct_CXX="$ac_prog"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907done
3908
3909fi
3910fi
3911ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3912if test -n "$ac_ct_CXX"; then
3913 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3914echo "${ECHO_T}$ac_ct_CXX" >&6
3915else
3916 echo "$as_me:$LINENO: result: no" >&5
3917echo "${ECHO_T}no" >&6
3918fi
3919
3920 test -n "$ac_ct_CXX" && break
3921done
3922test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3923
3924 CXX=$ac_ct_CXX
3925fi
3926
3927
3928# Provide some information about the compiler.
3929echo "$as_me:$LINENO:" \
3930 "checking for C++ compiler version" >&5
3931ac_compiler=`set X $ac_compile; echo $2`
3932{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3933 (eval $ac_compiler --version </dev/null >&5) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }
3937{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3938 (eval $ac_compiler -v </dev/null >&5) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }
3942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3943 (eval $ac_compiler -V </dev/null >&5) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3947
3948echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3949echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3950if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
John Criswell7a73b802003-06-30 21:59:07 +00003953 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003954/* confdefs.h. */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003959
3960int
3961main ()
3962{
3963#ifndef __GNUC__
3964 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003965#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003966
3967 ;
3968 return 0;
3969}
John Criswell7a73b802003-06-30 21:59:07 +00003970_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003971rm -f conftest.$ac_objext
3972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003974 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003975 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_cxx_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_compiler_gnu=yes
3994else
3995 echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998ac_compiler_gnu=no
3999fi
4000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4002
4003fi
4004echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4005echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4006GXX=`test $ac_compiler_gnu = yes && echo yes`
4007ac_test_CXXFLAGS=${CXXFLAGS+set}
4008ac_save_CXXFLAGS=$CXXFLAGS
4009CXXFLAGS="-g"
4010echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4011echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4012if test "${ac_cv_prog_cxx_g+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015 cat >conftest.$ac_ext <<_ACEOF
4016/* confdefs.h. */
4017_ACEOF
4018cat confdefs.h >>conftest.$ac_ext
4019cat >>conftest.$ac_ext <<_ACEOF
4020/* end confdefs.h. */
4021
4022int
4023main ()
4024{
4025
4026 ;
4027 return 0;
4028}
4029_ACEOF
4030rm -f conftest.$ac_objext
4031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032 (eval $ac_compile) 2>conftest.er1
4033 ac_status=$?
4034 grep -v '^ *+' conftest.er1 >conftest.err
4035 rm -f conftest.er1
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -z "$ac_cxx_werror_flag"
4040 || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 ac_cv_prog_cxx_g=yes
4053else
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
4057ac_cv_prog_cxx_g=no
4058fi
4059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060fi
4061echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4062echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4063if test "$ac_test_CXXFLAGS" = set; then
4064 CXXFLAGS=$ac_save_CXXFLAGS
4065elif test $ac_cv_prog_cxx_g = yes; then
4066 if test "$GXX" = yes; then
4067 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004068 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004069 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004070 fi
4071else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004072 if test "$GXX" = yes; then
4073 CXXFLAGS="-O2"
4074 else
4075 CXXFLAGS=
4076 fi
John Criswell7a73b802003-06-30 21:59:07 +00004077fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004078for ac_declaration in \
4079 '' \
4080 'extern "C" void std::exit (int) throw (); using std::exit;' \
4081 'extern "C" void std::exit (int); using std::exit;' \
4082 'extern "C" void exit (int) throw ();' \
4083 'extern "C" void exit (int);' \
4084 'void exit (int);'
4085do
4086 cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092$ac_declaration
4093#include <stdlib.h>
4094int
4095main ()
4096{
4097exit (42);
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004124 :
4125else
4126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004127sed 's/^/| /' conftest.$ac_ext >&5
4128
John Criswell7a73b802003-06-30 21:59:07 +00004129continue
4130fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004138$ac_declaration
4139int
4140main ()
4141{
4142exit (42);
4143 ;
4144 return 0;
4145}
John Criswell7a73b802003-06-30 21:59:07 +00004146_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004147rm -f conftest.$ac_objext
4148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004150 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004151 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_cxx_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004169 break
John Criswell7a73b802003-06-30 21:59:07 +00004170else
4171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004172sed 's/^/| /' conftest.$ac_ext >&5
4173
John Criswell7a73b802003-06-30 21:59:07 +00004174fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004176done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004177rm -f conftest*
4178if test -n "$ac_declaration"; then
4179 echo '#ifdef __cplusplus' >>confdefs.h
4180 echo $ac_declaration >>confdefs.h
4181 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004182fi
4183
4184ac_ext=c
4185ac_cpp='$CPP $CPPFLAGS'
4186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
John Criswell7a73b802003-06-30 21:59:07 +00004190echo "$as_me:$LINENO: checking " >&5
4191echo $ECHO_N "checking ... $ECHO_C" >&6
4192if test "${ac_cv_has_flex+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 for ac_prog in flex lex
4196do
4197 # Extract the first word of "$ac_prog", so it can be a program name with args.
4198set dummy $ac_prog; ac_word=$2
4199echo "$as_me:$LINENO: checking for $ac_word" >&5
4200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201if test "${ac_cv_prog_LEX+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 if test -n "$LEX"; then
4205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4206else
4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_LEX="$ac_prog"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218done
4219done
4220
4221fi
4222fi
4223LEX=$ac_cv_prog_LEX
4224if test -n "$LEX"; then
4225 echo "$as_me:$LINENO: result: $LEX" >&5
4226echo "${ECHO_T}$LEX" >&6
4227else
4228 echo "$as_me:$LINENO: result: no" >&5
4229echo "${ECHO_T}no" >&6
4230fi
4231
4232 test -n "$LEX" && break
4233done
4234test -n "$LEX" || LEX=":"
4235
4236if test -z "$LEXLIB"
4237then
4238 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4239echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4240if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243 ac_check_lib_save_LIBS=$LIBS
4244LIBS="-lfl $LIBS"
4245cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004251
4252/* Override any gcc2 internal prototype to avoid an error. */
4253#ifdef __cplusplus
4254extern "C"
4255#endif
4256/* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4258char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004259int
4260main ()
4261{
4262yywrap ();
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267rm -f conftest.$ac_objext conftest$ac_exeext
4268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004269 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_lib_fl_yywrap=yes
4290else
4291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004292sed 's/^/| /' conftest.$ac_ext >&5
4293
John Criswell7a73b802003-06-30 21:59:07 +00004294ac_cv_lib_fl_yywrap=no
4295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004296rm -f conftest.err conftest.$ac_objext \
4297 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004298LIBS=$ac_check_lib_save_LIBS
4299fi
4300echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4301echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4302if test $ac_cv_lib_fl_yywrap = yes; then
4303 LEXLIB="-lfl"
4304else
4305 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4306echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4307if test "${ac_cv_lib_l_yywrap+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 ac_check_lib_save_LIBS=$LIBS
4311LIBS="-ll $LIBS"
4312cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004318
4319/* Override any gcc2 internal prototype to avoid an error. */
4320#ifdef __cplusplus
4321extern "C"
4322#endif
4323/* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4325char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004326int
4327main ()
4328{
4329yywrap ();
4330 ;
4331 return 0;
4332}
4333_ACEOF
4334rm -f conftest.$ac_objext conftest$ac_exeext
4335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004336 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004337 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004343 { ac_try='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 (eval $ac_try) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_lib_l_yywrap=yes
4357else
4358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004359sed 's/^/| /' conftest.$ac_ext >&5
4360
John Criswell7a73b802003-06-30 21:59:07 +00004361ac_cv_lib_l_yywrap=no
4362fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004363rm -f conftest.err conftest.$ac_objext \
4364 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004365LIBS=$ac_check_lib_save_LIBS
4366fi
4367echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4368echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4369if test $ac_cv_lib_l_yywrap = yes; then
4370 LEXLIB="-ll"
4371fi
4372
4373fi
4374
4375fi
4376
4377if test "x$LEX" != "x:"; then
4378 echo "$as_me:$LINENO: checking lex output file root" >&5
4379echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4380if test "${ac_cv_prog_lex_root+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383 # The minimal lex program is just a single line: %%. But some broken lexes
4384# (Solaris, I think it was) want two %% lines, so accommodate them.
4385cat >conftest.l <<_ACEOF
4386%%
4387%%
4388_ACEOF
4389{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4390 (eval $LEX conftest.l) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4394if test -f lex.yy.c; then
4395 ac_cv_prog_lex_root=lex.yy
4396elif test -f lexyy.c; then
4397 ac_cv_prog_lex_root=lexyy
4398else
4399 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4400echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4401 { (exit 1); exit 1; }; }
4402fi
4403fi
4404echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4405echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4406rm -f conftest.l
4407LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4408
4409echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4410echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4411if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413else
4414 # POSIX says lex can declare yytext either as a pointer or an array; the
4415# default is implementation-dependent. Figure out which it is, since
4416# not all implementations provide the %pointer and %array declarations.
4417ac_cv_prog_lex_yytext_pointer=no
4418echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4419ac_save_LIBS=$LIBS
4420LIBS="$LIBS $LEXLIB"
4421cat >conftest.$ac_ext <<_ACEOF
4422`cat $LEX_OUTPUT_ROOT.c`
4423_ACEOF
4424rm -f conftest.$ac_objext conftest$ac_exeext
4425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004426 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004433 { ac_try='test -z "$ac_c_werror_flag"
4434 || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_prog_lex_yytext_pointer=yes
4447else
4448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004449sed 's/^/| /' conftest.$ac_ext >&5
4450
John Criswell7a73b802003-06-30 21:59:07 +00004451fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004452rm -f conftest.err conftest.$ac_objext \
4453 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004454LIBS=$ac_save_LIBS
4455rm -f "${LEX_OUTPUT_ROOT}.c"
4456
4457fi
4458echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4459echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4460if test $ac_cv_prog_lex_yytext_pointer = yes; then
4461
4462cat >>confdefs.h <<\_ACEOF
4463#define YYTEXT_POINTER 1
4464_ACEOF
4465
4466fi
4467
4468fi
4469
4470fi
4471echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4472echo "${ECHO_T}$ac_cv_has_flex" >&6
4473if test "$LEX" != "flex"; then
4474 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4475echo "$as_me: error: flex not found but required" >&2;}
4476 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004477else
4478 FLEX=flex
4479
John Criswell7a73b802003-06-30 21:59:07 +00004480fi
4481
4482echo "$as_me:$LINENO: checking " >&5
4483echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004484if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487 for ac_prog in 'bison -y' byacc
4488do
4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
4490set dummy $ac_prog; ac_word=$2
4491echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493if test "${ac_cv_prog_YACC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 if test -n "$YACC"; then
4497 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4498else
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_YACC="$ac_prog"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512
4513fi
4514fi
4515YACC=$ac_cv_prog_YACC
4516if test -n "$YACC"; then
4517 echo "$as_me:$LINENO: result: $YACC" >&5
4518echo "${ECHO_T}$YACC" >&6
4519else
4520 echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522fi
4523
4524 test -n "$YACC" && break
4525done
4526test -n "$YACC" || YACC="yacc"
4527
John Criswell7a73b802003-06-30 21:59:07 +00004528fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004529echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4530echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004531if test "$YACC" != "bison -y"; then
4532 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4533echo "$as_me: error: bison not found but required" >&2;}
4534 { (exit 1); exit 1; }; }
4535else
Brian Gaeke12810632004-01-13 06:52:10 +00004536 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004537
4538fi
4539
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004540echo "$as_me:$LINENO: checking for GNU make" >&5
4541echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4542if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004545 llvm_cv_gnu_make_command=''
4546 for a in "$MAKE" make gmake gnumake ; do
4547 if test -z "$a" ; then continue ; fi ;
4548 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4549 then
4550 llvm_cv_gnu_make_command=$a ;
4551 break;
John Criswell47fdd832003-07-14 16:52:07 +00004552 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004553 done
John Criswell7a73b802003-06-30 21:59:07 +00004554fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004555echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4556echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4557 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4558 ifGNUmake='' ;
4559 else
4560 ifGNUmake='#' ;
4561 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4562echo "${ECHO_T}\"Not found\"" >&6;
4563 fi
John Criswell7a73b802003-06-30 21:59:07 +00004564
John Criswell7a73b802003-06-30 21:59:07 +00004565
4566echo "$as_me:$LINENO: checking whether ln -s works" >&5
4567echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4568LN_S=$as_ln_s
4569if test "$LN_S" = "ln -s"; then
4570 echo "$as_me:$LINENO: result: yes" >&5
4571echo "${ECHO_T}yes" >&6
4572else
4573 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4574echo "${ECHO_T}no, using $LN_S" >&6
4575fi
4576
Reid Spencer8a2d4712004-12-16 17:48:14 +00004577# Extract the first word of "cmp", so it can be a program name with args.
4578set dummy cmp; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_path_CMP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 case $CMP in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4587 ;;
4588 *)
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600done
4601done
4602
4603 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4604 ;;
4605esac
4606fi
4607CMP=$ac_cv_path_CMP
4608
4609if test -n "$CMP"; then
4610 echo "$as_me:$LINENO: result: $CMP" >&5
4611echo "${ECHO_T}$CMP" >&6
4612else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615fi
4616
4617# Extract the first word of "cp", so it can be a program name with args.
4618set dummy cp; ac_word=$2
4619echo "$as_me:$LINENO: checking for $ac_word" >&5
4620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621if test "${ac_cv_path_CP+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624 case $CP in
4625 [\\/]* | ?:[\\/]*)
4626 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4627 ;;
4628 *)
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642
4643 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4644 ;;
4645esac
4646fi
4647CP=$ac_cv_path_CP
4648
4649if test -n "$CP"; then
4650 echo "$as_me:$LINENO: result: $CP" >&5
4651echo "${ECHO_T}$CP" >&6
4652else
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
4655fi
4656
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004657# Extract the first word of "date", so it can be a program name with args.
4658set dummy date; ac_word=$2
4659echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004664 case $DATE in
4665 [\\/]* | ?:[\\/]*)
4666 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004667 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004668 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004679 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004680done
4681done
John Criswell7a73b802003-06-30 21:59:07 +00004682
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004683 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004684 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004685esac
John Criswell7a73b802003-06-30 21:59:07 +00004686fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004687DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004688
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004689if test -n "$DATE"; then
4690 echo "$as_me:$LINENO: result: $DATE" >&5
4691echo "${ECHO_T}$DATE" >&6
4692else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695fi
John Criswell7a73b802003-06-30 21:59:07 +00004696
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004697# Extract the first word of "find", so it can be a program name with args.
4698set dummy find; ac_word=$2
4699echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004704 case $FIND in
4705 [\\/]* | ?:[\\/]*)
4706 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4707 ;;
4708 *)
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721done
4722
4723 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4724 ;;
4725esac
4726fi
4727FIND=$ac_cv_path_FIND
4728
4729if test -n "$FIND"; then
4730 echo "$as_me:$LINENO: result: $FIND" >&5
4731echo "${ECHO_T}$FIND" >&6
4732else
4733 echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6
4735fi
4736
4737# Extract the first word of "grep", so it can be a program name with args.
4738set dummy grep; ac_word=$2
4739echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741if test "${ac_cv_path_GREP+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744 case $GREP in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4747 ;;
4748 *)
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4764 ;;
4765esac
4766fi
4767GREP=$ac_cv_path_GREP
4768
4769if test -n "$GREP"; then
4770 echo "$as_me:$LINENO: result: $GREP" >&5
4771echo "${ECHO_T}$GREP" >&6
4772else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775fi
4776
4777# Extract the first word of "mkdir", so it can be a program name with args.
4778set dummy mkdir; ac_word=$2
4779echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781if test "${ac_cv_path_MKDIR+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 case $MKDIR in
4785 [\\/]* | ?:[\\/]*)
4786 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4787 ;;
4788 *)
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
4802
4803 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4804 ;;
4805esac
4806fi
4807MKDIR=$ac_cv_path_MKDIR
4808
4809if test -n "$MKDIR"; then
4810 echo "$as_me:$LINENO: result: $MKDIR" >&5
4811echo "${ECHO_T}$MKDIR" >&6
4812else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815fi
4816
4817# Extract the first word of "mv", so it can be a program name with args.
4818set dummy mv; ac_word=$2
4819echo "$as_me:$LINENO: checking for $ac_word" >&5
4820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821if test "${ac_cv_path_MV+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 case $MV in
4825 [\\/]* | ?:[\\/]*)
4826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4827 ;;
4828 *)
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840done
4841done
4842
4843 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4844 ;;
4845esac
4846fi
4847MV=$ac_cv_path_MV
4848
4849if test -n "$MV"; then
4850 echo "$as_me:$LINENO: result: $MV" >&5
4851echo "${ECHO_T}$MV" >&6
4852else
4853 echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
4855fi
4856
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004857if test -n "$ac_tool_prefix"; then
4858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4860echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862if test "${ac_cv_prog_RANLIB+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 if test -n "$RANLIB"; then
4866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880done
4881
4882fi
4883fi
4884RANLIB=$ac_cv_prog_RANLIB
4885if test -n "$RANLIB"; then
4886 echo "$as_me:$LINENO: result: $RANLIB" >&5
4887echo "${ECHO_T}$RANLIB" >&6
4888else
4889 echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6
4891fi
4892
4893fi
4894if test -z "$ac_cv_prog_RANLIB"; then
4895 ac_ct_RANLIB=$RANLIB
4896 # Extract the first word of "ranlib", so it can be a program name with args.
4897set dummy ranlib; ac_word=$2
4898echo "$as_me:$LINENO: checking for $ac_word" >&5
4899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 if test -n "$ac_ct_RANLIB"; then
4904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4905else
4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_RANLIB="ranlib"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917done
4918done
4919
4920 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4921fi
4922fi
4923ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4924if test -n "$ac_ct_RANLIB"; then
4925 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4926echo "${ECHO_T}$ac_ct_RANLIB" >&6
4927else
4928 echo "$as_me:$LINENO: result: no" >&5
4929echo "${ECHO_T}no" >&6
4930fi
4931
4932 RANLIB=$ac_ct_RANLIB
4933else
4934 RANLIB="$ac_cv_prog_RANLIB"
4935fi
4936
4937# Extract the first word of "rm", so it can be a program name with args.
4938set dummy rm; ac_word=$2
4939echo "$as_me:$LINENO: checking for $ac_word" >&5
4940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941if test "${ac_cv_path_RM+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944 case $RM in
4945 [\\/]* | ?:[\\/]*)
4946 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4947 ;;
4948 *)
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960done
4961done
4962
4963 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4964 ;;
4965esac
4966fi
4967RM=$ac_cv_path_RM
4968
4969if test -n "$RM"; then
4970 echo "$as_me:$LINENO: result: $RM" >&5
4971echo "${ECHO_T}$RM" >&6
4972else
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
4975fi
4976
4977# Extract the first word of "sed", so it can be a program name with args.
4978set dummy sed; ac_word=$2
4979echo "$as_me:$LINENO: checking for $ac_word" >&5
4980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981if test "${ac_cv_path_SED+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984 case $SED in
4985 [\\/]* | ?:[\\/]*)
4986 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4987 ;;
4988 *)
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001done
5002
5003 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5004 ;;
5005esac
5006fi
5007SED=$ac_cv_path_SED
5008
5009if test -n "$SED"; then
5010 echo "$as_me:$LINENO: result: $SED" >&5
5011echo "${ECHO_T}$SED" >&6
5012else
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015fi
5016
5017# Extract the first word of "tar", so it can be a program name with args.
5018set dummy tar; ac_word=$2
5019echo "$as_me:$LINENO: checking for $ac_word" >&5
5020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021if test "${ac_cv_path_TAR+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 case $TAR in
5025 [\\/]* | ?:[\\/]*)
5026 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5027 ;;
5028 *)
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041done
5042
5043 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5044 ;;
5045esac
5046fi
5047TAR=$ac_cv_path_TAR
5048
5049if test -n "$TAR"; then
5050 echo "$as_me:$LINENO: result: $TAR" >&5
5051echo "${ECHO_T}$TAR" >&6
5052else
5053 echo "$as_me:$LINENO: result: no" >&5
5054echo "${ECHO_T}no" >&6
5055fi
5056
5057
5058# Find a good install program. We prefer a C program (faster),
5059# so one script is as good as another. But avoid the broken or
5060# incompatible versions:
5061# SysV /etc/install, /usr/sbin/install
5062# SunOS /usr/etc/install
5063# IRIX /sbin/install
5064# AIX /bin/install
5065# AmigaOS /C/install, which installs bootblocks on floppy discs
5066# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5067# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5068# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5069# OS/2's system install, which has a completely different semantic
5070# ./install, which can be erroneously created by make from ./install.sh.
5071echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5072echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5073if test -z "$INSTALL"; then
5074if test "${ac_cv_path_install+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 # Account for people who put trailing slashes in PATH elements.
5083case $as_dir/ in
5084 ./ | .// | /cC/* | \
5085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5086 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5087 /usr/ucb/* ) ;;
5088 *)
5089 # OSF1 and SCO ODT 3.0 have their own names for install.
5090 # Don't use installbsd from OSF since it installs stuff as root
5091 # by default.
5092 for ac_prog in ginstall scoinst install; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5095 if test $ac_prog = install &&
5096 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5097 # AIX install. It has an incompatible calling convention.
5098 :
5099 elif test $ac_prog = install &&
5100 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5101 # program-specific install script used by HP pwplus--don't use.
5102 :
5103 else
5104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5105 break 3
5106 fi
5107 fi
5108 done
5109 done
5110 ;;
5111esac
5112done
5113
5114
5115fi
5116 if test "${ac_cv_path_install+set}" = set; then
5117 INSTALL=$ac_cv_path_install
5118 else
5119 # As a last resort, use the slow shell script. We don't cache a
5120 # path for INSTALL within a source directory, because that will
5121 # break other packages using the cache if that directory is
5122 # removed, or if the path is relative.
5123 INSTALL=$ac_install_sh
5124 fi
5125fi
5126echo "$as_me:$LINENO: result: $INSTALL" >&5
5127echo "${ECHO_T}$INSTALL" >&6
5128
5129# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5130# It thinks the first close brace ends the variable substitution.
5131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5132
5133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5134
5135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5136
5137
5138# Extract the first word of "bzip2", so it can be a program name with args.
5139set dummy bzip2; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_path_BZIP2+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 case $BZIP2 in
5146 [\\/]* | ?:[\\/]*)
5147 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5148 ;;
5149 *)
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161done
5162done
5163
5164 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5165 ;;
5166esac
5167fi
5168BZIP2=$ac_cv_path_BZIP2
5169
5170if test -n "$BZIP2"; then
5171 echo "$as_me:$LINENO: result: $BZIP2" >&5
5172echo "${ECHO_T}$BZIP2" >&6
5173else
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
5176fi
5177
5178# Extract the first word of "dot", so it can be a program name with args.
5179set dummy dot; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_path_DOT+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185 case $DOT in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5188 ;;
5189 *)
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202done
5203
5204 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5205 ;;
5206esac
5207fi
5208DOT=$ac_cv_path_DOT
5209
5210if test -n "$DOT"; then
5211 echo "$as_me:$LINENO: result: $DOT" >&5
5212echo "${ECHO_T}$DOT" >&6
5213else
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218# Extract the first word of "doxygen", so it can be a program name with args.
5219set dummy doxygen; ac_word=$2
5220echo "$as_me:$LINENO: checking for $ac_word" >&5
5221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222if test "${ac_cv_path_DOXYGEN+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 case $DOXYGEN in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5228 ;;
5229 *)
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242done
5243
5244 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5245 ;;
5246esac
5247fi
5248DOXYGEN=$ac_cv_path_DOXYGEN
5249
5250if test -n "$DOXYGEN"; then
5251 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5252echo "${ECHO_T}$DOXYGEN" >&6
5253else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256fi
5257
5258# Extract the first word of "etags", so it can be a program name with args.
5259set dummy etags; ac_word=$2
5260echo "$as_me:$LINENO: checking for $ac_word" >&5
5261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262if test "${ac_cv_path_ETAGS+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 case $ETAGS in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5268 ;;
5269 *)
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281done
5282done
5283
5284 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5285 ;;
5286esac
5287fi
5288ETAGS=$ac_cv_path_ETAGS
5289
5290if test -n "$ETAGS"; then
5291 echo "$as_me:$LINENO: result: $ETAGS" >&5
5292echo "${ECHO_T}$ETAGS" >&6
5293else
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
5296fi
5297
5298# Extract the first word of "groff", so it can be a program name with args.
5299set dummy groff; ac_word=$2
5300echo "$as_me:$LINENO: checking for $ac_word" >&5
5301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302if test "${ac_cv_path_GROFF+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305 case $GROFF in
5306 [\\/]* | ?:[\\/]*)
5307 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5308 ;;
5309 *)
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321done
5322done
5323
5324 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5325 ;;
5326esac
5327fi
5328GROFF=$ac_cv_path_GROFF
5329
5330if test -n "$GROFF"; then
5331 echo "$as_me:$LINENO: result: $GROFF" >&5
5332echo "${ECHO_T}$GROFF" >&6
5333else
5334 echo "$as_me:$LINENO: result: no" >&5
5335echo "${ECHO_T}no" >&6
5336fi
5337
5338# Extract the first word of "gzip", so it can be a program name with args.
5339set dummy gzip; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_path_GZIP+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345 case $GZIP in
5346 [\\/]* | ?:[\\/]*)
5347 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5348 ;;
5349 *)
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361done
5362done
5363
5364 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5365 ;;
5366esac
5367fi
5368GZIP=$ac_cv_path_GZIP
5369
5370if test -n "$GZIP"; then
5371 echo "$as_me:$LINENO: result: $GZIP" >&5
5372echo "${ECHO_T}$GZIP" >&6
5373else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378# Extract the first word of "pod2html", so it can be a program name with args.
5379set dummy pod2html; ac_word=$2
5380echo "$as_me:$LINENO: checking for $ac_word" >&5
5381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382if test "${ac_cv_path_POD2HTML+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385 case $POD2HTML in
5386 [\\/]* | ?:[\\/]*)
5387 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5388 ;;
5389 *)
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402done
5403
5404 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5405 ;;
5406esac
5407fi
5408POD2HTML=$ac_cv_path_POD2HTML
5409
5410if test -n "$POD2HTML"; then
5411 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5412echo "${ECHO_T}$POD2HTML" >&6
5413else
5414 echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
5416fi
5417
5418# Extract the first word of "pod2man", so it can be a program name with args.
5419set dummy pod2man; ac_word=$2
5420echo "$as_me:$LINENO: checking for $ac_word" >&5
5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422if test "${ac_cv_path_POD2MAN+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 case $POD2MAN in
5426 [\\/]* | ?:[\\/]*)
5427 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5428 ;;
5429 *)
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442done
5443
5444 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5445 ;;
5446esac
5447fi
5448POD2MAN=$ac_cv_path_POD2MAN
5449
5450if test -n "$POD2MAN"; then
5451 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5452echo "${ECHO_T}$POD2MAN" >&6
5453else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456fi
5457
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005458# Extract the first word of "runtest", so it can be a program name with args.
5459set dummy runtest; ac_word=$2
5460echo "$as_me:$LINENO: checking for $ac_word" >&5
5461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462if test "${ac_cv_path_RUNTEST+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 case $RUNTEST in
5466 [\\/]* | ?:[\\/]*)
5467 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5468 ;;
5469 *)
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482done
5483
5484 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5485 ;;
5486esac
5487fi
5488RUNTEST=$ac_cv_path_RUNTEST
5489
5490if test -n "$RUNTEST"; then
5491 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5492echo "${ECHO_T}$RUNTEST" >&6
5493else
5494 echo "$as_me:$LINENO: result: no" >&5
5495echo "${ECHO_T}no" >&6
5496fi
5497
Reid Spencer0fcb9412004-11-30 08:11:54 +00005498
Reid Spencer0fcb9412004-11-30 08:11:54 +00005499no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005500echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5501echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005502
5503# Check whether --with-tclinclude or --without-tclinclude was given.
5504if test "${with_tclinclude+set}" = set; then
5505 withval="$with_tclinclude"
5506 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005507else
5508 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005509fi;
5510if test "${ac_cv_path_tclsh+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513
5514if test x"${with_tclinclude}" != x ; then
5515 if test -f ${with_tclinclude}/tclsh ; then
5516 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5517 elif test -f ${with_tclinclude}/src/tclsh ; then
5518 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5519 else
5520 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5521echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5522 { (exit 1); exit 1; }; }
5523 fi
5524fi
5525
Reid Spencer0fcb9412004-11-30 08:11:54 +00005526if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005527 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005528echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005529 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 +00005530do
5531 # Extract the first word of "$ac_prog", so it can be a program name with args.
5532set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005533echo "$as_me:$LINENO: checking for $ac_word" >&5
5534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005535if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
Reid Spencercda35f82004-12-02 04:17:20 +00005538 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005539 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005540 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005541 ;;
5542 *)
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH
5545do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005550 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554done
5555done
5556
5557 ;;
5558esac
5559fi
Reid Spencercda35f82004-12-02 04:17:20 +00005560TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005561
Reid Spencercda35f82004-12-02 04:17:20 +00005562if test -n "$TCLSH"; then
5563 echo "$as_me:$LINENO: result: $TCLSH" >&5
5564echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005565else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568fi
5569
Reid Spencercda35f82004-12-02 04:17:20 +00005570 test -n "$TCLSH" && break
5571done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005572
Reid Spencercda35f82004-12-02 04:17:20 +00005573 if test x"${TCLSH}" = x ; then
5574 ac_cv_path_tclsh='';
5575 else
5576 ac_cv_path_tclsh="${TCLSH}";
5577 fi
5578else
5579 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5580echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5581 TCLSH="${ac_cv_path_tclsh}"
5582
5583fi
5584
5585fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005586
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005587# Extract the first word of "zip", so it can be a program name with args.
5588set dummy zip; ac_word=$2
5589echo "$as_me:$LINENO: checking for $ac_word" >&5
5590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5591if test "${ac_cv_path_ZIP+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 case $ZIP in
5595 [\\/]* | ?:[\\/]*)
5596 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5597 ;;
5598 *)
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610done
5611done
5612
5613 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5614 ;;
5615esac
5616fi
5617ZIP=$ac_cv_path_ZIP
5618
5619if test -n "$ZIP"; then
5620 echo "$as_me:$LINENO: result: $ZIP" >&5
5621echo "${ECHO_T}$ZIP" >&6
5622else
5623 echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5625fi
5626
5627
5628echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5629echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5630if test "${llvm_cv_link_use_r+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005634ac_cpp='$CPP $CPPFLAGS'
5635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005639 oldcflags="$CFLAGS"
5640 CFLAGS="$CFLAGS -Wl,-R."
5641 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005642/* confdefs.h. */
5643_ACEOF
5644cat confdefs.h >>conftest.$ac_ext
5645cat >>conftest.$ac_ext <<_ACEOF
5646/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005647
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005648int
5649main ()
5650{
5651int main() { return 0; }
5652 ;
5653 return 0;
5654}
John Criswell47fdd832003-07-14 16:52:07 +00005655_ACEOF
5656rm -f conftest.$ac_objext conftest$ac_exeext
5657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005658 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005664 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005665 { ac_try='test -z "$ac_c_werror_flag"
5666 || test ! -s conftest.err'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; } &&
5672 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005678 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005679else
John Criswell47fdd832003-07-14 16:52:07 +00005680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005681sed 's/^/| /' conftest.$ac_ext >&5
5682
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005683llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005684fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005685rm -f conftest.err conftest.$ac_objext \
5686 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005687 CFLAGS="$oldcflags"
5688 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005689ac_cpp='$CPP $CPPFLAGS'
5690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005694
John Criswell7a73b802003-06-30 21:59:07 +00005695fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005696echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5697echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5698if test "$llvm_cv_link_use_r" = yes ; then
5699
5700cat >>confdefs.h <<\_ACEOF
5701#define HAVE_LINK_R 1
5702_ACEOF
5703
John Criswell47fdd832003-07-14 16:52:07 +00005704 fi
John Criswell47fdd832003-07-14 16:52:07 +00005705
John Criswell47fdd832003-07-14 16:52:07 +00005706
John Criswell47fdd832003-07-14 16:52:07 +00005707
John Criswell7a73b802003-06-30 21:59:07 +00005708
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005709echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5710echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5711if test "${ac_cv_c_const+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713else
5714 cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720
5721int
5722main ()
5723{
5724/* FIXME: Include the comments suggested by Paul. */
5725#ifndef __cplusplus
5726 /* Ultrix mips cc rejects this. */
5727 typedef int charset[2];
5728 const charset x;
5729 /* SunOS 4.1.1 cc rejects this. */
5730 char const *const *ccp;
5731 char **p;
5732 /* NEC SVR4.0.2 mips cc rejects this. */
5733 struct point {int x, y;};
5734 static struct point const zero = {0,0};
5735 /* AIX XL C 1.02.0.0 rejects this.
5736 It does not let you subtract one const X* pointer from another in
5737 an arm of an if-expression whose if-part is not a constant
5738 expression */
5739 const char *g = "string";
5740 ccp = &g + (g ? g-g : 0);
5741 /* HPUX 7.0 cc rejects these. */
5742 ++ccp;
5743 p = (char**) ccp;
5744 ccp = (char const *const *) p;
5745 { /* SCO 3.2v4 cc rejects this. */
5746 char *t;
5747 char const *s = 0 ? (char *) 0 : (char const *) 0;
5748
5749 *t++ = 0;
5750 }
5751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5752 int x[] = {25, 17};
5753 const int *foo = &x[0];
5754 ++foo;
5755 }
5756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5757 typedef const int *iptr;
5758 iptr p = 0;
5759 ++p;
5760 }
5761 { /* AIX XL C 1.02.0.0 rejects this saying
5762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5763 struct s { int j; const int *ap[3]; };
5764 struct s *b; b->j = 5;
5765 }
5766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5767 const int foo = 10;
5768 }
5769#endif
5770
5771 ;
5772 return 0;
5773}
5774_ACEOF
5775rm -f conftest.$ac_objext
5776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5778 ac_status=$?
5779 grep -v '^ *+' conftest.er1 >conftest.err
5780 rm -f conftest.er1
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -z "$ac_c_werror_flag"
5785 || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_cv_c_const=yes
5798else
5799 echo "$as_me: failed program was:" >&5
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802ac_cv_c_const=no
5803fi
5804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805fi
5806echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5807echo "${ECHO_T}$ac_cv_c_const" >&6
5808if test $ac_cv_c_const = no; then
5809
5810cat >>confdefs.h <<\_ACEOF
5811#define const
5812_ACEOF
5813
5814fi
5815
5816
5817echo "$as_me:$LINENO: checking for egrep" >&5
5818echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5819if test "${ac_cv_prog_egrep+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5823 then ac_cv_prog_egrep='grep -E'
5824 else ac_cv_prog_egrep='egrep'
5825 fi
5826fi
5827echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5828echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5829 EGREP=$ac_cv_prog_egrep
5830
John Criswell7a73b802003-06-30 21:59:07 +00005831
5832echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5833echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5834if test "${ac_cv_header_stdc+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005838/* confdefs.h. */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005843#include <stdlib.h>
5844#include <stdarg.h>
5845#include <string.h>
5846#include <float.h>
5847
John Criswell0c38eaf2003-09-10 15:17:25 +00005848int
5849main ()
5850{
5851
5852 ;
5853 return 0;
5854}
John Criswell7a73b802003-06-30 21:59:07 +00005855_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005856rm -f conftest.$ac_objext
5857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005858 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005859 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005864 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005878 ac_cv_header_stdc=yes
5879else
5880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005881sed 's/^/| /' conftest.$ac_ext >&5
5882
5883ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005884fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005886
5887if test $ac_cv_header_stdc = yes; then
5888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5889 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005890/* confdefs.h. */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
5894/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005895#include <string.h>
5896
5897_ACEOF
5898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005899 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005900 :
5901else
5902 ac_cv_header_stdc=no
5903fi
5904rm -f conftest*
5905
5906fi
5907
5908if test $ac_cv_header_stdc = yes; then
5909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5910 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005911/* confdefs.h. */
5912_ACEOF
5913cat confdefs.h >>conftest.$ac_ext
5914cat >>conftest.$ac_ext <<_ACEOF
5915/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005916#include <stdlib.h>
5917
5918_ACEOF
5919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005920 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005921 :
5922else
5923 ac_cv_header_stdc=no
5924fi
5925rm -f conftest*
5926
5927fi
5928
5929if test $ac_cv_header_stdc = yes; then
5930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5931 if test "$cross_compiling" = yes; then
5932 :
5933else
5934 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005935/* confdefs.h. */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
5939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005940#include <ctype.h>
5941#if ((' ' & 0x0FF) == 0x020)
5942# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5943# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5944#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005945# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005946 (('a' <= (c) && (c) <= 'i') \
5947 || ('j' <= (c) && (c) <= 'r') \
5948 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005949# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5950#endif
5951
5952#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5953int
5954main ()
5955{
5956 int i;
5957 for (i = 0; i < 256; i++)
5958 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005959 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005960 exit(2);
5961 exit (0);
5962}
5963_ACEOF
5964rm -f conftest$ac_exeext
5965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 :
5976else
5977 echo "$as_me: program exited with status $ac_status" >&5
5978echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005979sed 's/^/| /' conftest.$ac_ext >&5
5980
John Criswell7a73b802003-06-30 21:59:07 +00005981( exit $ac_status )
5982ac_cv_header_stdc=no
5983fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005985fi
5986fi
5987fi
5988echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5989echo "${ECHO_T}$ac_cv_header_stdc" >&6
5990if test $ac_cv_header_stdc = yes; then
5991
5992cat >>confdefs.h <<\_ACEOF
5993#define STDC_HEADERS 1
5994_ACEOF
5995
5996fi
5997
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005998
5999
6000
6001
6002
6003ac_header_dirent=no
6004for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6005 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6006echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6007echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6008if eval "test \"\${$as_ac_Header+set}\" = set"; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010else
6011 cat >conftest.$ac_ext <<_ACEOF
6012/* confdefs.h. */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
6016/* end confdefs.h. */
6017#include <sys/types.h>
6018#include <$ac_hdr>
6019
6020int
6021main ()
6022{
6023if ((DIR *) 0)
6024return 0;
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029rm -f conftest.$ac_objext
6030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031 (eval $ac_compile) 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -z "$ac_c_werror_flag"
6039 || test ! -s conftest.err'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; } &&
6045 { ac_try='test -s conftest.$ac_objext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 eval "$as_ac_Header=yes"
6052else
6053 echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
6056eval "$as_ac_Header=no"
6057fi
6058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6059fi
6060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062if test `eval echo '${'$as_ac_Header'}'` = yes; then
6063 cat >>confdefs.h <<_ACEOF
6064#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6065_ACEOF
6066
6067ac_header_dirent=$ac_hdr; break
6068fi
6069
6070done
6071# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6072if test $ac_header_dirent = dirent.h; then
6073 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6074echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6075if test "${ac_cv_search_opendir+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078 ac_func_search_save_LIBS=$LIBS
6079ac_cv_search_opendir=no
6080cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h. */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h. */
6086
6087/* Override any gcc2 internal prototype to avoid an error. */
6088#ifdef __cplusplus
6089extern "C"
6090#endif
6091/* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093char opendir ();
6094int
6095main ()
6096{
6097opendir ();
6098 ;
6099 return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext conftest$ac_exeext
6103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -z "$ac_c_werror_flag"
6112 || test ! -s conftest.err'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_search_opendir="none required"
6125else
6126 echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129fi
6130rm -f conftest.err conftest.$ac_objext \
6131 conftest$ac_exeext conftest.$ac_ext
6132if test "$ac_cv_search_opendir" = no; then
6133 for ac_lib in dir; do
6134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6135 cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h. */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h. */
6141
6142/* Override any gcc2 internal prototype to avoid an error. */
6143#ifdef __cplusplus
6144extern "C"
6145#endif
6146/* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6148char opendir ();
6149int
6150main ()
6151{
6152opendir ();
6153 ;
6154 return 0;
6155}
6156_ACEOF
6157rm -f conftest.$ac_objext conftest$ac_exeext
6158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest$ac_exeext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_search_opendir="-l$ac_lib"
6180break
6181else
6182 echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
6185fi
6186rm -f conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6188 done
6189fi
6190LIBS=$ac_func_search_save_LIBS
6191fi
6192echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6193echo "${ECHO_T}$ac_cv_search_opendir" >&6
6194if test "$ac_cv_search_opendir" != no; then
6195 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6196
6197fi
6198
6199else
6200 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6201echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6202if test "${ac_cv_search_opendir+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204else
6205 ac_func_search_save_LIBS=$LIBS
6206ac_cv_search_opendir=no
6207cat >conftest.$ac_ext <<_ACEOF
6208/* confdefs.h. */
6209_ACEOF
6210cat confdefs.h >>conftest.$ac_ext
6211cat >>conftest.$ac_ext <<_ACEOF
6212/* end confdefs.h. */
6213
6214/* Override any gcc2 internal prototype to avoid an error. */
6215#ifdef __cplusplus
6216extern "C"
6217#endif
6218/* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6220char opendir ();
6221int
6222main ()
6223{
6224opendir ();
6225 ;
6226 return 0;
6227}
6228_ACEOF
6229rm -f conftest.$ac_objext conftest$ac_exeext
6230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest$ac_exeext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_search_opendir="none required"
6252else
6253 echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256fi
6257rm -f conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6259if test "$ac_cv_search_opendir" = no; then
6260 for ac_lib in x; do
6261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6262 cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
6268
6269/* Override any gcc2 internal prototype to avoid an error. */
6270#ifdef __cplusplus
6271extern "C"
6272#endif
6273/* We use char because int might match the return type of a gcc2
6274 builtin and then its argument prototype would still apply. */
6275char opendir ();
6276int
6277main ()
6278{
6279opendir ();
6280 ;
6281 return 0;
6282}
6283_ACEOF
6284rm -f conftest.$ac_objext conftest$ac_exeext
6285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286 (eval $ac_link) 2>conftest.er1
6287 ac_status=$?
6288 grep -v '^ *+' conftest.er1 >conftest.err
6289 rm -f conftest.er1
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -z "$ac_c_werror_flag"
6294 || test ! -s conftest.err'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_search_opendir="-l$ac_lib"
6307break
6308else
6309 echo "$as_me: failed program was:" >&5
6310sed 's/^/| /' conftest.$ac_ext >&5
6311
6312fi
6313rm -f conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 done
6316fi
6317LIBS=$ac_func_search_save_LIBS
6318fi
6319echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6320echo "${ECHO_T}$ac_cv_search_opendir" >&6
6321if test "$ac_cv_search_opendir" != no; then
6322 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6323
6324fi
6325
6326fi
6327
John Criswell7a73b802003-06-30 21:59:07 +00006328# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006339 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006340do
6341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6342echo "$as_me:$LINENO: checking for $ac_header" >&5
6343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6344if eval "test \"\${$as_ac_Header+set}\" = set"; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
6347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006348/* confdefs.h. */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006353$ac_includes_default
6354
6355#include <$ac_header>
6356_ACEOF
6357rm -f conftest.$ac_objext
6358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006359 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006361 grep -v '^ *+' conftest.er1 >conftest.err
6362 rm -f conftest.er1
6363 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006366 { ac_try='test -z "$ac_c_werror_flag"
6367 || test ! -s conftest.err'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 eval "$as_ac_Header=yes"
6380else
6381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006382sed 's/^/| /' conftest.$ac_ext >&5
6383
John Criswell7a73b802003-06-30 21:59:07 +00006384eval "$as_ac_Header=no"
6385fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006387fi
6388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6390if test `eval echo '${'$as_ac_Header'}'` = yes; then
6391 cat >>confdefs.h <<_ACEOF
6392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6393_ACEOF
6394
6395fi
6396
6397done
6398
6399
6400
6401for ac_header in dlfcn.h
6402do
6403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006404if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006409fi
6410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006412else
Brian Gaeke0a621332004-09-08 20:38:05 +00006413 # Is the header compilable?
6414echo "$as_me:$LINENO: checking $ac_header usability" >&5
6415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6416cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006417/* confdefs.h. */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006422$ac_includes_default
6423#include <$ac_header>
6424_ACEOF
6425rm -f conftest.$ac_objext
6426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006427 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006428 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006434 { ac_try='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006447 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006448else
6449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006450sed 's/^/| /' conftest.$ac_ext >&5
6451
Brian Gaeke0a621332004-09-08 20:38:05 +00006452ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006453fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456echo "${ECHO_T}$ac_header_compiler" >&6
6457
6458# Is the header present?
6459echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6461cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467#include <$ac_header>
6468_ACEOF
6469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } >/dev/null; then
6477 if test -s conftest.err; then
6478 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006480 else
6481 ac_cpp_err=
6482 fi
6483else
6484 ac_cpp_err=yes
6485fi
6486if test -z "$ac_cpp_err"; then
6487 ac_header_preproc=yes
6488else
6489 echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 ac_header_preproc=no
6493fi
6494rm -f conftest.err conftest.$ac_ext
6495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496echo "${ECHO_T}$ac_header_preproc" >&6
6497
6498# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6500 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6505 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006506 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006507 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006520 (
6521 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006522## ----------------------------------- ##
6523## Report this to llvmbugs@cs.uiuc.edu ##
6524## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006525_ASBOX
6526 ) |
6527 sed "s/^/$as_me: WARNING: /" >&2
6528 ;;
6529esac
6530echo "$as_me:$LINENO: checking for $ac_header" >&5
6531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006535 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006536fi
6537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006539
6540fi
John Criswell7a73b802003-06-30 21:59:07 +00006541if test `eval echo '${'$as_ac_Header'}'` = yes; then
6542 cat >>confdefs.h <<_ACEOF
6543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6544_ACEOF
6545
6546fi
6547
6548done
6549
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006550# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6551if test "${enable_ltdl_install+set}" = set; then
6552 enableval="$enable_ltdl_install"
6553
6554fi;
6555
6556
6557
6558if test x"${enable_ltdl_install-no}" != xno; then
6559 INSTALL_LTDL_TRUE=
6560 INSTALL_LTDL_FALSE='#'
6561else
6562 INSTALL_LTDL_TRUE='#'
6563 INSTALL_LTDL_FALSE=
6564fi
6565
6566
6567
6568if test x"${enable_ltdl_convenience-no}" != xno; then
6569 CONVENIENCE_LTDL_TRUE=
6570 CONVENIENCE_LTDL_FALSE='#'
6571else
6572 CONVENIENCE_LTDL_TRUE='#'
6573 CONVENIENCE_LTDL_FALSE=
6574fi
6575
6576
6577echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6578echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6579library_names_spec=
6580libname_spec='lib$name'
6581soname_spec=
6582shrext_cmds=".so"
6583postinstall_cmds=
6584postuninstall_cmds=
6585finish_cmds=
6586finish_eval=
6587shlibpath_var=
6588shlibpath_overrides_runpath=unknown
6589version_type=none
6590dynamic_linker="$host_os ld.so"
6591sys_lib_dlsearch_path_spec="/lib /usr/lib"
6592if test "$GCC" = yes; then
6593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6594 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6595 # if the path contains ";" then we assume it to be the separator
6596 # otherwise default to the standard path separator (i.e. ":") - it is
6597 # assumed that no part of a normal pathname contains ";" but that should
6598 # okay in the real world where ";" in dirpaths is itself problematic.
6599 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6600 else
6601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6602 fi
6603else
6604 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6605fi
6606need_lib_prefix=unknown
6607hardcode_into_libs=no
6608
6609# when you set need_version to no, make sure it does not cause -set_version
6610# flags to be left without arguments
6611need_version=unknown
6612
6613case $host_os in
6614aix3*)
6615 version_type=linux
6616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6617 shlibpath_var=LIBPATH
6618
6619 # AIX 3 has no versioning support, so we append a major version to the name.
6620 soname_spec='${libname}${release}${shared_ext}$major'
6621 ;;
6622
6623aix4* | aix5*)
6624 version_type=linux
6625 need_lib_prefix=no
6626 need_version=no
6627 hardcode_into_libs=yes
6628 if test "$host_cpu" = ia64; then
6629 # AIX 5 supports IA64
6630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6631 shlibpath_var=LD_LIBRARY_PATH
6632 else
6633 # With GCC up to 2.95.x, collect2 would create an import file
6634 # for dependence libraries. The import file would start with
6635 # the line `#! .'. This would cause the generated library to
6636 # depend on `.', always an invalid library. This was fixed in
6637 # development snapshots of GCC prior to 3.0.
6638 case $host_os in
6639 aix4 | aix4.[01] | aix4.[01].*)
6640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6641 echo ' yes '
6642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6643 :
6644 else
6645 can_build_shared=no
6646 fi
6647 ;;
6648 esac
6649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6650 # soname into executable. Probably we can add versioning support to
6651 # collect2, so additional links can be useful in future.
6652 if test "$aix_use_runtimelinking" = yes; then
6653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6654 # instead of lib<name>.a to let people know that these are not
6655 # typical AIX shared libraries.
6656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6657 else
6658 # We preserve .a as extension for shared libraries through AIX4.2
6659 # and later when we are not doing run time linking.
6660 library_names_spec='${libname}${release}.a $libname.a'
6661 soname_spec='${libname}${release}${shared_ext}$major'
6662 fi
6663 shlibpath_var=LIBPATH
6664 fi
6665 ;;
6666
6667amigaos*)
6668 library_names_spec='$libname.ixlibrary $libname.a'
6669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6670 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'
6671 ;;
6672
6673beos*)
6674 library_names_spec='${libname}${shared_ext}'
6675 dynamic_linker="$host_os ld.so"
6676 shlibpath_var=LIBRARY_PATH
6677 ;;
6678
6679bsdi[45]*)
6680 version_type=linux
6681 need_version=no
6682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6683 soname_spec='${libname}${release}${shared_ext}$major'
6684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6685 shlibpath_var=LD_LIBRARY_PATH
6686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6688 # the default ld.so.conf also contains /usr/contrib/lib and
6689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6690 # libtool to hard-code these into programs
6691 ;;
6692
6693cygwin* | mingw* | pw32*)
6694 version_type=windows
6695 shrext_cmds=".dll"
6696 need_version=no
6697 need_lib_prefix=no
6698
6699 case $GCC,$host_os in
6700 yes,cygwin* | yes,mingw* | yes,pw32*)
6701 library_names_spec='$libname.dll.a'
6702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6703 postinstall_cmds='base_file=`basename \${file}`~
6704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6705 dldir=$destdir/`dirname \$dlpath`~
6706 test -d \$dldir || mkdir -p \$dldir~
6707 $install_prog $dir/$dlname \$dldir/$dlname'
6708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6709 dlpath=$dir/\$dldll~
6710 $rm \$dlpath'
6711 shlibpath_overrides_runpath=yes
6712
6713 case $host_os in
6714 cygwin*)
6715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6718 ;;
6719 mingw*)
6720 # MinGW DLLs use traditional 'lib' prefix
6721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6723 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6724 # It is most probably a Windows format PATH printed by
6725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6726 # path with ; separators, and with drive letters. We can handle the
6727 # drive letters (cygwin fileutils understands them), so leave them,
6728 # especially as we might pass files found there to a mingw objdump,
6729 # which wouldn't understand a cygwinified path. Ahh.
6730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6731 else
6732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6733 fi
6734 ;;
6735 pw32*)
6736 # pw32 DLLs use 'pw' prefix rather than 'lib'
6737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6738 ;;
6739 esac
6740 ;;
6741
6742 *)
6743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6744 ;;
6745 esac
6746 dynamic_linker='Win32 ld.exe'
6747 # FIXME: first we should search . and the directory the executable is in
6748 shlibpath_var=PATH
6749 ;;
6750
6751darwin* | rhapsody*)
6752 dynamic_linker="$host_os dyld"
6753 version_type=darwin
6754 need_lib_prefix=no
6755 need_version=no
6756 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6757 soname_spec='${libname}${release}${major}$shared_ext'
6758 shlibpath_overrides_runpath=yes
6759 shlibpath_var=DYLD_LIBRARY_PATH
6760 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6761 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6762 if test "$GCC" = yes; then
6763 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"`
6764 else
6765 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6766 fi
6767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6768 ;;
6769
6770dgux*)
6771 version_type=linux
6772 need_lib_prefix=no
6773 need_version=no
6774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6775 soname_spec='${libname}${release}${shared_ext}$major'
6776 shlibpath_var=LD_LIBRARY_PATH
6777 ;;
6778
6779freebsd1*)
6780 dynamic_linker=no
6781 ;;
6782
6783kfreebsd*-gnu)
6784 version_type=linux
6785 need_lib_prefix=no
6786 need_version=no
6787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6788 soname_spec='${libname}${release}${shared_ext}$major'
6789 shlibpath_var=LD_LIBRARY_PATH
6790 shlibpath_overrides_runpath=no
6791 hardcode_into_libs=yes
6792 dynamic_linker='GNU ld.so'
6793 ;;
6794
6795freebsd*)
6796 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6797 version_type=freebsd-$objformat
6798 case $version_type in
6799 freebsd-elf*)
6800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6801 need_version=no
6802 need_lib_prefix=no
6803 ;;
6804 freebsd-*)
6805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6806 need_version=yes
6807 ;;
6808 esac
6809 shlibpath_var=LD_LIBRARY_PATH
6810 case $host_os in
6811 freebsd2*)
6812 shlibpath_overrides_runpath=yes
6813 ;;
6814 freebsd3.01* | freebsdelf3.01*)
6815 shlibpath_overrides_runpath=yes
6816 hardcode_into_libs=yes
6817 ;;
6818 *) # from 3.2 on
6819 shlibpath_overrides_runpath=no
6820 hardcode_into_libs=yes
6821 ;;
6822 esac
6823 ;;
6824
6825gnu*)
6826 version_type=linux
6827 need_lib_prefix=no
6828 need_version=no
6829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6830 soname_spec='${libname}${release}${shared_ext}$major'
6831 shlibpath_var=LD_LIBRARY_PATH
6832 hardcode_into_libs=yes
6833 ;;
6834
6835hpux9* | hpux10* | hpux11*)
6836 # Give a soname corresponding to the major version so that dld.sl refuses to
6837 # link against other versions.
6838 version_type=sunos
6839 need_lib_prefix=no
6840 need_version=no
6841 case "$host_cpu" in
6842 ia64*)
6843 shrext_cmds='.so'
6844 hardcode_into_libs=yes
6845 dynamic_linker="$host_os dld.so"
6846 shlibpath_var=LD_LIBRARY_PATH
6847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6849 soname_spec='${libname}${release}${shared_ext}$major'
6850 if test "X$HPUX_IA64_MODE" = X32; then
6851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6852 else
6853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6854 fi
6855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6856 ;;
6857 hppa*64*)
6858 shrext_cmds='.sl'
6859 hardcode_into_libs=yes
6860 dynamic_linker="$host_os dld.sl"
6861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6864 soname_spec='${libname}${release}${shared_ext}$major'
6865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6867 ;;
6868 *)
6869 shrext_cmds='.sl'
6870 dynamic_linker="$host_os dld.sl"
6871 shlibpath_var=SHLIB_PATH
6872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6874 soname_spec='${libname}${release}${shared_ext}$major'
6875 ;;
6876 esac
6877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6878 postinstall_cmds='chmod 555 $lib'
6879 ;;
6880
6881irix5* | irix6* | nonstopux*)
6882 case $host_os in
6883 nonstopux*) version_type=nonstopux ;;
6884 *)
6885 if test "$lt_cv_prog_gnu_ld" = yes; then
6886 version_type=linux
6887 else
6888 version_type=irix
6889 fi ;;
6890 esac
6891 need_lib_prefix=no
6892 need_version=no
6893 soname_spec='${libname}${release}${shared_ext}$major'
6894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6895 case $host_os in
6896 irix5* | nonstopux*)
6897 libsuff= shlibsuff=
6898 ;;
6899 *)
6900 case $LD in # libtool.m4 will add one of these switches to LD
6901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6902 libsuff= shlibsuff= libmagic=32-bit;;
6903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6904 libsuff=32 shlibsuff=N32 libmagic=N32;;
6905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6907 *) libsuff= shlibsuff= libmagic=never-match;;
6908 esac
6909 ;;
6910 esac
6911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6912 shlibpath_overrides_runpath=no
6913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6915 hardcode_into_libs=yes
6916 ;;
6917
6918# No shared lib support for Linux oldld, aout, or coff.
6919linux*oldld* | linux*aout* | linux*coff*)
6920 dynamic_linker=no
6921 ;;
6922
6923# This must be Linux ELF.
6924linux*)
6925 version_type=linux
6926 need_lib_prefix=no
6927 need_version=no
6928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6929 soname_spec='${libname}${release}${shared_ext}$major'
6930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6931 shlibpath_var=LD_LIBRARY_PATH
6932 shlibpath_overrides_runpath=no
6933 # This implies no fast_install, which is unacceptable.
6934 # Some rework will be needed to allow for fast_install
6935 # before this can be enabled.
6936 hardcode_into_libs=yes
6937
6938 # Append ld.so.conf contents to the search path
6939 if test -f /etc/ld.so.conf; then
6940 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6942 fi
6943
6944 # We used to test for /lib/ld.so.1 and disable shared libraries on
6945 # powerpc, because MkLinux only supported shared libraries with the
6946 # GNU dynamic linker. Since this was broken with cross compilers,
6947 # most powerpc-linux boxes support dynamic linking these days and
6948 # people can always --disable-shared, the test was removed, and we
6949 # assume the GNU/Linux dynamic linker is in use.
6950 dynamic_linker='GNU/Linux ld.so'
6951 ;;
6952
6953knetbsd*-gnu)
6954 version_type=linux
6955 need_lib_prefix=no
6956 need_version=no
6957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6958 soname_spec='${libname}${release}${shared_ext}$major'
6959 shlibpath_var=LD_LIBRARY_PATH
6960 shlibpath_overrides_runpath=no
6961 hardcode_into_libs=yes
6962 dynamic_linker='GNU ld.so'
6963 ;;
6964
6965netbsd*)
6966 version_type=sunos
6967 need_lib_prefix=no
6968 need_version=no
6969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6972 dynamic_linker='NetBSD (a.out) ld.so'
6973 else
6974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6975 soname_spec='${libname}${release}${shared_ext}$major'
6976 dynamic_linker='NetBSD ld.elf_so'
6977 fi
6978 shlibpath_var=LD_LIBRARY_PATH
6979 shlibpath_overrides_runpath=yes
6980 hardcode_into_libs=yes
6981 ;;
6982
6983newsos6)
6984 version_type=linux
6985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6986 shlibpath_var=LD_LIBRARY_PATH
6987 shlibpath_overrides_runpath=yes
6988 ;;
6989
6990nto-qnx*)
6991 version_type=linux
6992 need_lib_prefix=no
6993 need_version=no
6994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6995 soname_spec='${libname}${release}${shared_ext}$major'
6996 shlibpath_var=LD_LIBRARY_PATH
6997 shlibpath_overrides_runpath=yes
6998 ;;
6999
7000openbsd*)
7001 version_type=sunos
7002 need_lib_prefix=no
7003 need_version=no
7004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7006 shlibpath_var=LD_LIBRARY_PATH
7007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7008 case $host_os in
7009 openbsd2.[89] | openbsd2.[89].*)
7010 shlibpath_overrides_runpath=no
7011 ;;
7012 *)
7013 shlibpath_overrides_runpath=yes
7014 ;;
7015 esac
7016 else
7017 shlibpath_overrides_runpath=yes
7018 fi
7019 ;;
7020
7021os2*)
7022 libname_spec='$name'
7023 shrext_cmds=".dll"
7024 need_lib_prefix=no
7025 library_names_spec='$libname${shared_ext} $libname.a'
7026 dynamic_linker='OS/2 ld.exe'
7027 shlibpath_var=LIBPATH
7028 ;;
7029
7030osf3* | osf4* | osf5*)
7031 version_type=osf
7032 need_lib_prefix=no
7033 need_version=no
7034 soname_spec='${libname}${release}${shared_ext}$major'
7035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036 shlibpath_var=LD_LIBRARY_PATH
7037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7039 ;;
7040
7041sco3.2v5*)
7042 version_type=osf
7043 soname_spec='${libname}${release}${shared_ext}$major'
7044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7045 shlibpath_var=LD_LIBRARY_PATH
7046 ;;
7047
7048solaris*)
7049 version_type=linux
7050 need_lib_prefix=no
7051 need_version=no
7052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7053 soname_spec='${libname}${release}${shared_ext}$major'
7054 shlibpath_var=LD_LIBRARY_PATH
7055 shlibpath_overrides_runpath=yes
7056 hardcode_into_libs=yes
7057 # ldd complains unless libraries are executable
7058 postinstall_cmds='chmod +x $lib'
7059 ;;
7060
7061sunos4*)
7062 version_type=sunos
7063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7065 shlibpath_var=LD_LIBRARY_PATH
7066 shlibpath_overrides_runpath=yes
7067 if test "$with_gnu_ld" = yes; then
7068 need_lib_prefix=no
7069 fi
7070 need_version=yes
7071 ;;
7072
7073sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7074 version_type=linux
7075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7076 soname_spec='${libname}${release}${shared_ext}$major'
7077 shlibpath_var=LD_LIBRARY_PATH
7078 case $host_vendor in
7079 sni)
7080 shlibpath_overrides_runpath=no
7081 need_lib_prefix=no
7082 export_dynamic_flag_spec='${wl}-Blargedynsym'
7083 runpath_var=LD_RUN_PATH
7084 ;;
7085 siemens)
7086 need_lib_prefix=no
7087 ;;
7088 motorola)
7089 need_lib_prefix=no
7090 need_version=no
7091 shlibpath_overrides_runpath=no
7092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7093 ;;
7094 esac
7095 ;;
7096
7097sysv4*MP*)
7098 if test -d /usr/nec ;then
7099 version_type=linux
7100 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7101 soname_spec='$libname${shared_ext}.$major'
7102 shlibpath_var=LD_LIBRARY_PATH
7103 fi
7104 ;;
7105
7106uts4*)
7107 version_type=linux
7108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7109 soname_spec='${libname}${release}${shared_ext}$major'
7110 shlibpath_var=LD_LIBRARY_PATH
7111 ;;
7112
7113*)
7114 dynamic_linker=no
7115 ;;
7116esac
7117echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7118echo "${ECHO_T}$dynamic_linker" >&6
7119test "$dynamic_linker" = no && can_build_shared=no
7120
7121
7122echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7123echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7124if test "${libltdl_cv_shlibext+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127
7128module=yes
7129eval libltdl_cv_shlibext=$shrext_cmds
7130
7131fi
7132echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7133echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7134if test -n "$libltdl_cv_shlibext"; then
7135
7136cat >>confdefs.h <<_ACEOF
7137#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7138_ACEOF
7139
7140fi
7141
7142
7143echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7144echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7145if test "${libltdl_cv_shlibpath_var+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148 libltdl_cv_shlibpath_var="$shlibpath_var"
7149fi
7150echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7151echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7152if test -n "$libltdl_cv_shlibpath_var"; then
7153
7154cat >>confdefs.h <<_ACEOF
7155#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7156_ACEOF
7157
7158fi
7159
7160
7161echo "$as_me:$LINENO: checking for the default library search path" >&5
7162echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7163if test "${libltdl_cv_sys_search_path+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165else
7166 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7167fi
7168echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7169echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7170if test -n "$libltdl_cv_sys_search_path"; then
7171 sys_search_path=
7172 for dir in $libltdl_cv_sys_search_path; do
7173 if test -z "$sys_search_path"; then
7174 sys_search_path="$dir"
7175 else
7176 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7177 fi
7178 done
7179
7180cat >>confdefs.h <<_ACEOF
7181#define LTDL_SYSSEARCHPATH "$sys_search_path"
7182_ACEOF
7183
7184fi
7185
7186echo "$as_me:$LINENO: checking for objdir" >&5
7187echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7188if test "${libltdl_cv_objdir+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 libltdl_cv_objdir="$objdir"
7192 if test -n "$objdir"; then
7193 :
7194 else
7195 rm -f .libs 2>/dev/null
7196 mkdir .libs 2>/dev/null
7197 if test -d .libs; then
7198 libltdl_cv_objdir=.libs
7199 else
7200 # MS-DOS does not allow filenames that begin with a dot.
7201 libltdl_cv_objdir=_libs
7202 fi
7203 rmdir .libs 2>/dev/null
7204 fi
7205
7206fi
7207echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7208echo "${ECHO_T}$libltdl_cv_objdir" >&6
7209
7210cat >>confdefs.h <<_ACEOF
7211#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7212_ACEOF
7213
7214
7215echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7216echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7217if test "${lt_cv_path_NM+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220 if test -n "$NM"; then
7221 # Let the user override the test.
7222 lt_cv_path_NM="$NM"
7223else
7224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7225 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7226 IFS="$lt_save_ifs"
7227 test -z "$ac_dir" && ac_dir=.
7228 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7229 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7230 # Check to see if the nm accepts a BSD-compat flag.
7231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7232 # nm: unknown option "B" ignored
7233 # Tru64's nm complains that /dev/null is an invalid object file
7234 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7235 */dev/null* | *'Invalid file or object type'*)
7236 lt_cv_path_NM="$tmp_nm -B"
7237 break
7238 ;;
7239 *)
7240 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7241 */dev/null*)
7242 lt_cv_path_NM="$tmp_nm -p"
7243 break
7244 ;;
7245 *)
7246 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7247 continue # so that we can try to find one that supports BSD flags
7248 ;;
7249 esac
7250 esac
7251 fi
7252 done
7253 IFS="$lt_save_ifs"
7254 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7255fi
7256fi
7257echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7258echo "${ECHO_T}$lt_cv_path_NM" >&6
7259NM="$lt_cv_path_NM"
7260
7261
7262
7263
7264
7265# Check for command to grab the raw symbol name followed by C symbol from nm.
7266echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7267echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7268if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271
7272# These are sane defaults that work on at least a few old systems.
7273# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7274
7275# Character class describing NM global symbol codes.
7276symcode='[BCDEGRST]'
7277
7278# Regexp to match symbols that can be accessed directly from C.
7279sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7280
7281# Transform the above into a raw symbol and a C symbol.
7282symxfrm='\1 \2\3 \3'
7283
7284# Transform an extracted symbol line into a proper C declaration
7285lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7286
7287# Transform an extracted symbol line into symbol name and symbol address
7288lt_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'"
7289
7290# Define system-specific variables.
7291case $host_os in
7292aix*)
7293 symcode='[BCDT]'
7294 ;;
7295cygwin* | mingw* | pw32*)
7296 symcode='[ABCDGISTW]'
7297 ;;
7298hpux*) # Its linker distinguishes data from code symbols
7299 if test "$host_cpu" = ia64; then
7300 symcode='[ABCDEGRST]'
7301 fi
7302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7303 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'"
7304 ;;
7305linux*)
7306 if test "$host_cpu" = ia64; then
7307 symcode='[ABCDGIRSTW]'
7308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7309 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'"
7310 fi
7311 ;;
7312irix* | nonstopux*)
7313 symcode='[BCDEGRST]'
7314 ;;
7315osf*)
7316 symcode='[BCDEGQRST]'
7317 ;;
7318solaris* | sysv5*)
7319 symcode='[BDRT]'
7320 ;;
7321sysv4)
7322 symcode='[DFNSTU]'
7323 ;;
7324esac
7325
7326# Handle CRLF in mingw tool chain
7327opt_cr=
7328case $build_os in
7329mingw*)
7330 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7331 ;;
7332esac
7333
7334# If we're using GNU nm, then use its standard symbol codes.
7335case `$NM -V 2>&1` in
7336*GNU* | *'with BFD'*)
7337 symcode='[ABCDGIRSTW]' ;;
7338esac
7339
7340# Try without a prefix undercore, then with it.
7341for ac_symprfx in "" "_"; do
7342
7343 # Write the raw and C identifiers.
7344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7345
7346 # Check to see that the pipe works correctly.
7347 pipe_works=no
7348
7349 rm -f conftest*
7350 cat > conftest.$ac_ext <<EOF
7351#ifdef __cplusplus
7352extern "C" {
7353#endif
7354char nm_test_var;
7355void nm_test_func(){}
7356#ifdef __cplusplus
7357}
7358#endif
7359int main(){nm_test_var='a';nm_test_func();return(0);}
7360EOF
7361
7362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363 (eval $ac_compile) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; then
7367 # Now try to grab the symbols.
7368 nlist=conftest.nm
7369 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7370 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7371 ac_status=$?
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } && test -s "$nlist"; then
7374 # Try sorting and uniquifying the output.
7375 if sort "$nlist" | uniq > "$nlist"T; then
7376 mv -f "$nlist"T "$nlist"
7377 else
7378 rm -f "$nlist"T
7379 fi
7380
7381 # Make sure that we snagged all the symbols we need.
7382 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7383 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7384 cat <<EOF > conftest.$ac_ext
7385#ifdef __cplusplus
7386extern "C" {
7387#endif
7388
7389EOF
7390 # Now generate the symbol file.
7391 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7392
7393 cat <<EOF >> conftest.$ac_ext
7394#if defined (__STDC__) && __STDC__
7395# define lt_ptr_t void *
7396#else
7397# define lt_ptr_t char *
7398# define const
7399#endif
7400
7401/* The mapping between symbol names and symbols. */
7402const struct {
7403 const char *name;
7404 lt_ptr_t address;
7405}
7406lt_preloaded_symbols[] =
7407{
7408EOF
7409 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7410 cat <<\EOF >> conftest.$ac_ext
7411 {0, (lt_ptr_t) 0}
7412};
7413
7414#ifdef __cplusplus
7415}
7416#endif
7417EOF
7418 # Now try linking the two files.
7419 mv conftest.$ac_objext conftstm.$ac_objext
7420 lt_save_LIBS="$LIBS"
7421 lt_save_CFLAGS="$CFLAGS"
7422 LIBS="conftstm.$ac_objext"
7423 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7429 pipe_works=yes
7430 fi
7431 LIBS="$lt_save_LIBS"
7432 CFLAGS="$lt_save_CFLAGS"
7433 else
7434 echo "cannot find nm_test_func in $nlist" >&5
7435 fi
7436 else
7437 echo "cannot find nm_test_var in $nlist" >&5
7438 fi
7439 else
7440 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7441 fi
7442 else
7443 echo "$progname: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7445 fi
7446 rm -f conftest* conftst*
7447
7448 # Do not use the global_symbol_pipe unless it works.
7449 if test "$pipe_works" = yes; then
7450 break
7451 else
7452 lt_cv_sys_global_symbol_pipe=
7453 fi
7454done
7455
7456fi
7457
7458if test -z "$lt_cv_sys_global_symbol_pipe"; then
7459 lt_cv_sys_global_symbol_to_cdecl=
7460fi
7461if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7462 echo "$as_me:$LINENO: result: failed" >&5
7463echo "${ECHO_T}failed" >&6
7464else
7465 echo "$as_me:$LINENO: result: ok" >&5
7466echo "${ECHO_T}ok" >&6
7467fi
7468
7469
7470echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7471echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7472if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7476 libltdl_cv_preloaded_symbols=yes
7477 else
7478 libltdl_cv_preloaded_symbols=no
7479 fi
7480
7481fi
7482echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7483echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7484if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7485
7486cat >>confdefs.h <<\_ACEOF
7487#define HAVE_PRELOADED_SYMBOLS 1
7488_ACEOF
7489
7490fi
7491
7492LIBADD_DL=
7493
7494ac_ext=c
7495ac_cpp='$CPP $CPPFLAGS'
7496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499
7500
7501echo "$as_me:$LINENO: checking for shl_load" >&5
7502echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7503if test "${ac_cv_func_shl_load+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506 cat >conftest.$ac_ext <<_ACEOF
7507/* confdefs.h. */
7508_ACEOF
7509cat confdefs.h >>conftest.$ac_ext
7510cat >>conftest.$ac_ext <<_ACEOF
7511/* end confdefs.h. */
7512/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7514#define shl_load innocuous_shl_load
7515
7516/* System header to define __stub macros and hopefully few prototypes,
7517 which can conflict with char shl_load (); below.
7518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7519 <limits.h> exists even on freestanding compilers. */
7520
7521#ifdef __STDC__
7522# include <limits.h>
7523#else
7524# include <assert.h>
7525#endif
7526
7527#undef shl_load
7528
7529/* Override any gcc2 internal prototype to avoid an error. */
7530#ifdef __cplusplus
7531extern "C"
7532{
7533#endif
7534/* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7536char shl_load ();
7537/* The GNU C library defines this for functions which it implements
7538 to always fail with ENOSYS. Some functions are actually named
7539 something starting with __ and the normal name is an alias. */
7540#if defined (__stub_shl_load) || defined (__stub___shl_load)
7541choke me
7542#else
7543char (*f) () = shl_load;
7544#endif
7545#ifdef __cplusplus
7546}
7547#endif
7548
7549int
7550main ()
7551{
7552return f != shl_load;
7553 ;
7554 return 0;
7555}
7556_ACEOF
7557rm -f conftest.$ac_objext conftest$ac_exeext
7558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559 (eval $ac_link) 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag"
7567 || test ! -s conftest.err'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest$ac_exeext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 ac_cv_func_shl_load=yes
7580else
7581 echo "$as_me: failed program was:" >&5
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
7584ac_cv_func_shl_load=no
7585fi
7586rm -f conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588fi
7589echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7590echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7591if test $ac_cv_func_shl_load = yes; then
7592
7593cat >>confdefs.h <<\_ACEOF
7594#define HAVE_SHL_LOAD 1
7595_ACEOF
7596
7597else
7598 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7599echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7600if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602else
7603 ac_check_lib_save_LIBS=$LIBS
7604LIBS="-ldld $LIBS"
7605cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h. */
7611
7612/* Override any gcc2 internal prototype to avoid an error. */
7613#ifdef __cplusplus
7614extern "C"
7615#endif
7616/* We use char because int might match the return type of a gcc2
7617 builtin and then its argument prototype would still apply. */
7618char shl_load ();
7619int
7620main ()
7621{
7622shl_load ();
7623 ;
7624 return 0;
7625}
7626_ACEOF
7627rm -f conftest.$ac_objext conftest$ac_exeext
7628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7629 (eval $ac_link) 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -z "$ac_c_werror_flag"
7637 || test ! -s conftest.err'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; } &&
7643 { ac_try='test -s conftest$ac_exeext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7649 ac_cv_lib_dld_shl_load=yes
7650else
7651 echo "$as_me: failed program was:" >&5
7652sed 's/^/| /' conftest.$ac_ext >&5
7653
7654ac_cv_lib_dld_shl_load=no
7655fi
7656rm -f conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7658LIBS=$ac_check_lib_save_LIBS
7659fi
7660echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7661echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7662if test $ac_cv_lib_dld_shl_load = yes; then
7663
7664cat >>confdefs.h <<\_ACEOF
7665#define HAVE_SHL_LOAD 1
7666_ACEOF
7667
7668 LIBADD_DL="$LIBADD_DL -ldld"
7669else
7670 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7671echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7672if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675 ac_check_lib_save_LIBS=$LIBS
7676LIBS="-ldl $LIBS"
7677cat >conftest.$ac_ext <<_ACEOF
7678/* confdefs.h. */
7679_ACEOF
7680cat confdefs.h >>conftest.$ac_ext
7681cat >>conftest.$ac_ext <<_ACEOF
7682/* end confdefs.h. */
7683
7684/* Override any gcc2 internal prototype to avoid an error. */
7685#ifdef __cplusplus
7686extern "C"
7687#endif
7688/* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7690char dlopen ();
7691int
7692main ()
7693{
7694dlopen ();
7695 ;
7696 return 0;
7697}
7698_ACEOF
7699rm -f conftest.$ac_objext conftest$ac_exeext
7700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7701 (eval $ac_link) 2>conftest.er1
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -z "$ac_c_werror_flag"
7709 || test ! -s conftest.err'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try='test -s conftest$ac_exeext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 ac_cv_lib_dl_dlopen=yes
7722else
7723 echo "$as_me: failed program was:" >&5
7724sed 's/^/| /' conftest.$ac_ext >&5
7725
7726ac_cv_lib_dl_dlopen=no
7727fi
7728rm -f conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730LIBS=$ac_check_lib_save_LIBS
7731fi
7732echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7733echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7734if test $ac_cv_lib_dl_dlopen = yes; then
7735
7736cat >>confdefs.h <<\_ACEOF
7737#define HAVE_LIBDL 1
7738_ACEOF
7739
7740 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7741else
7742 cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h. */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h. */
7748#if HAVE_DLFCN_H
7749# include <dlfcn.h>
7750#endif
7751
7752int
7753main ()
7754{
7755dlopen(0, 0);
7756 ;
7757 return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext conftest$ac_exeext
7761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag"
7770 || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782
7783cat >>confdefs.h <<\_ACEOF
7784#define HAVE_LIBDL 1
7785_ACEOF
7786 libltdl_cv_func_dlopen="yes"
7787else
7788 echo "$as_me: failed program was:" >&5
7789sed 's/^/| /' conftest.$ac_ext >&5
7790
7791echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7792echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7793if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 ac_check_lib_save_LIBS=$LIBS
7797LIBS="-lsvld $LIBS"
7798cat >conftest.$ac_ext <<_ACEOF
7799/* confdefs.h. */
7800_ACEOF
7801cat confdefs.h >>conftest.$ac_ext
7802cat >>conftest.$ac_ext <<_ACEOF
7803/* end confdefs.h. */
7804
7805/* Override any gcc2 internal prototype to avoid an error. */
7806#ifdef __cplusplus
7807extern "C"
7808#endif
7809/* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7811char dlopen ();
7812int
7813main ()
7814{
7815dlopen ();
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820rm -f conftest.$ac_objext conftest$ac_exeext
7821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_lib_svld_dlopen=yes
7843else
7844 echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
7847ac_cv_lib_svld_dlopen=no
7848fi
7849rm -f conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851LIBS=$ac_check_lib_save_LIBS
7852fi
7853echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7854echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7855if test $ac_cv_lib_svld_dlopen = yes; then
7856
7857cat >>confdefs.h <<\_ACEOF
7858#define HAVE_LIBDL 1
7859_ACEOF
7860
7861 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7862else
7863 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7864echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7865if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867else
7868 ac_check_lib_save_LIBS=$LIBS
7869LIBS="-ldld $LIBS"
7870cat >conftest.$ac_ext <<_ACEOF
7871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
7876
7877/* Override any gcc2 internal prototype to avoid an error. */
7878#ifdef __cplusplus
7879extern "C"
7880#endif
7881/* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883char dld_link ();
7884int
7885main ()
7886{
7887dld_link ();
7888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
7893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_lib_dld_dld_link=yes
7915else
7916 echo "$as_me: failed program was:" >&5
7917sed 's/^/| /' conftest.$ac_ext >&5
7918
7919ac_cv_lib_dld_dld_link=no
7920fi
7921rm -f conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923LIBS=$ac_check_lib_save_LIBS
7924fi
7925echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7926echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7927if test $ac_cv_lib_dld_dld_link = yes; then
7928
7929cat >>confdefs.h <<\_ACEOF
7930#define HAVE_DLD 1
7931_ACEOF
7932
7933 LIBADD_DL="$LIBADD_DL -ldld"
7934else
7935 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7936echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7937if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939else
7940 cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7948#define _dyld_func_lookup innocuous__dyld_func_lookup
7949
7950/* System header to define __stub macros and hopefully few prototypes,
7951 which can conflict with char _dyld_func_lookup (); below.
7952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953 <limits.h> exists even on freestanding compilers. */
7954
7955#ifdef __STDC__
7956# include <limits.h>
7957#else
7958# include <assert.h>
7959#endif
7960
7961#undef _dyld_func_lookup
7962
7963/* Override any gcc2 internal prototype to avoid an error. */
7964#ifdef __cplusplus
7965extern "C"
7966{
7967#endif
7968/* We use char because int might match the return type of a gcc2
7969 builtin and then its argument prototype would still apply. */
7970char _dyld_func_lookup ();
7971/* The GNU C library defines this for functions which it implements
7972 to always fail with ENOSYS. Some functions are actually named
7973 something starting with __ and the normal name is an alias. */
7974#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7975choke me
7976#else
7977char (*f) () = _dyld_func_lookup;
7978#endif
7979#ifdef __cplusplus
7980}
7981#endif
7982
7983int
7984main ()
7985{
7986return f != _dyld_func_lookup;
7987 ;
7988 return 0;
7989}
7990_ACEOF
7991rm -f conftest.$ac_objext conftest$ac_exeext
7992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993 (eval $ac_link) 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag"
8001 || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 ac_cv_func__dyld_func_lookup=yes
8014else
8015 echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5
8017
8018ac_cv_func__dyld_func_lookup=no
8019fi
8020rm -f conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022fi
8023echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8024echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8025if test $ac_cv_func__dyld_func_lookup = yes; then
8026
8027cat >>confdefs.h <<\_ACEOF
8028#define HAVE_DYLD 1
8029_ACEOF
8030
8031fi
8032
8033
8034fi
8035
8036
8037fi
8038
8039
8040fi
8041rm -f conftest.err conftest.$ac_objext \
8042 conftest$ac_exeext conftest.$ac_ext
8043
8044fi
8045
8046
8047fi
8048
8049
8050fi
8051
8052
8053if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8054then
8055 lt_save_LIBS="$LIBS"
8056 LIBS="$LIBS $LIBADD_DL"
8057
8058for ac_func in dlerror
8059do
8060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8061echo "$as_me:$LINENO: checking for $ac_func" >&5
8062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8063if eval "test \"\${$as_ac_var+set}\" = set"; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065else
8066 cat >conftest.$ac_ext <<_ACEOF
8067/* confdefs.h. */
8068_ACEOF
8069cat confdefs.h >>conftest.$ac_ext
8070cat >>conftest.$ac_ext <<_ACEOF
8071/* end confdefs.h. */
8072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8074#define $ac_func innocuous_$ac_func
8075
8076/* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char $ac_func (); below.
8078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079 <limits.h> exists even on freestanding compilers. */
8080
8081#ifdef __STDC__
8082# include <limits.h>
8083#else
8084# include <assert.h>
8085#endif
8086
8087#undef $ac_func
8088
8089/* Override any gcc2 internal prototype to avoid an error. */
8090#ifdef __cplusplus
8091extern "C"
8092{
8093#endif
8094/* We use char because int might match the return type of a gcc2
8095 builtin and then its argument prototype would still apply. */
8096char $ac_func ();
8097/* The GNU C library defines this for functions which it implements
8098 to always fail with ENOSYS. Some functions are actually named
8099 something starting with __ and the normal name is an alias. */
8100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8101choke me
8102#else
8103char (*f) () = $ac_func;
8104#endif
8105#ifdef __cplusplus
8106}
8107#endif
8108
8109int
8110main ()
8111{
8112return f != $ac_func;
8113 ;
8114 return 0;
8115}
8116_ACEOF
8117rm -f conftest.$ac_objext conftest$ac_exeext
8118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119 (eval $ac_link) 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -z "$ac_c_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try='test -s conftest$ac_exeext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 eval "$as_ac_var=yes"
8140else
8141 echo "$as_me: failed program was:" >&5
8142sed 's/^/| /' conftest.$ac_ext >&5
8143
8144eval "$as_ac_var=no"
8145fi
8146rm -f conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148fi
8149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8151if test `eval echo '${'$as_ac_var'}'` = yes; then
8152 cat >>confdefs.h <<_ACEOF
8153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8154_ACEOF
8155
8156fi
8157done
8158
8159 LIBS="$lt_save_LIBS"
8160fi
8161ac_ext=c
8162ac_cpp='$CPP $CPPFLAGS'
8163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165ac_compiler_gnu=$ac_cv_c_compiler_gnu
8166
8167
8168
8169echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8170echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8171if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173else
8174 ac_cv_sys_symbol_underscore=no
8175 cat > conftest.$ac_ext <<EOF
8176void nm_test_func(){}
8177int main(){nm_test_func;return 0;}
8178EOF
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; then
8184 # Now try to grab the symbols.
8185 ac_nlist=conftest.nm
8186 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8187 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && test -s "$ac_nlist"; then
8191 # See whether the symbols have a leading underscore.
8192 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8193 ac_cv_sys_symbol_underscore=yes
8194 else
8195 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8196 :
8197 else
8198 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8199 fi
8200 fi
8201 else
8202 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8203 fi
8204 else
8205 echo "configure: failed program was:" >&5
8206 cat conftest.c >&5
8207 fi
8208 rm -rf conftest*
8209
8210fi
8211echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8212echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8213
8214
8215if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8216 if test x"$libltdl_cv_func_dlopen" = xyes ||
8217 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8218 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8219echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8220if test "${libltdl_cv_need_uscore+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223 libltdl_cv_need_uscore=unknown
8224 save_LIBS="$LIBS"
8225 LIBS="$LIBS $LIBADD_DL"
8226 if test "$cross_compiling" = yes; then :
8227 libltdl_cv_need_uscore=cross
8228else
8229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8230 lt_status=$lt_dlunknown
8231 cat > conftest.$ac_ext <<EOF
Reid Spencer22177fe2005-07-12 15:24:20 +00008232#line 8232 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008233#include "confdefs.h"
8234
8235#if HAVE_DLFCN_H
8236#include <dlfcn.h>
8237#endif
8238
8239#include <stdio.h>
8240
8241#ifdef RTLD_GLOBAL
8242# define LT_DLGLOBAL RTLD_GLOBAL
8243#else
8244# ifdef DL_GLOBAL
8245# define LT_DLGLOBAL DL_GLOBAL
8246# else
8247# define LT_DLGLOBAL 0
8248# endif
8249#endif
8250
8251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8252 find out it does not work in some platform. */
8253#ifndef LT_DLLAZY_OR_NOW
8254# ifdef RTLD_LAZY
8255# define LT_DLLAZY_OR_NOW RTLD_LAZY
8256# else
8257# ifdef DL_LAZY
8258# define LT_DLLAZY_OR_NOW DL_LAZY
8259# else
8260# ifdef RTLD_NOW
8261# define LT_DLLAZY_OR_NOW RTLD_NOW
8262# else
8263# ifdef DL_NOW
8264# define LT_DLLAZY_OR_NOW DL_NOW
8265# else
8266# define LT_DLLAZY_OR_NOW 0
8267# endif
8268# endif
8269# endif
8270# endif
8271#endif
8272
8273#ifdef __cplusplus
8274extern "C" void exit (int);
8275#endif
8276
8277void fnord() { int i=42;}
8278int main ()
8279{
8280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8281 int status = $lt_dlunknown;
8282
8283 if (self)
8284 {
8285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8287 /* dlclose (self); */
8288 }
8289
8290 exit (status);
8291}
8292EOF
8293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8294 (eval $ac_link) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8298 (./conftest; exit; ) 2>/dev/null
8299 lt_status=$?
8300 case x$lt_status in
8301 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8302 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8303 x$lt_unknown|x*) ;;
8304 esac
8305 else :
8306 # compilation failed
8307
8308 fi
8309fi
8310rm -fr conftest*
8311
8312 LIBS="$save_LIBS"
8313
8314fi
8315echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8316echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8317 fi
8318fi
8319
8320if test x"$libltdl_cv_need_uscore" = xyes; then
8321
8322cat >>confdefs.h <<\_ACEOF
8323#define NEED_USCORE 1
8324_ACEOF
8325
8326fi
8327
8328
8329echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8330echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8331if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334 # PORTME does your system automatically load deplibs for dlopen?
8335 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8336 # For now, we just catch OSes we know something about -- in the
8337 # future, we'll try test this programmatically.
8338 libltdl_cv_sys_dlopen_deplibs=unknown
8339 case "$host_os" in
8340 aix3*|aix4.1.*|aix4.2.*)
8341 # Unknown whether this is true for these versions of AIX, but
8342 # we want this `case' here to explicitly catch those versions.
8343 libltdl_cv_sys_dlopen_deplibs=unknown
8344 ;;
8345 aix[45]*)
8346 libltdl_cv_sys_dlopen_deplibs=yes
8347 ;;
8348 darwin*)
8349 # Assuming the user has installed a libdl from somewhere, this is true
8350 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8351 libltdl_cv_sys_dlopen_deplibs=yes
8352 ;;
8353 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8354 # GNU and its variants, using gnu ld.so (Glibc)
8355 libltdl_cv_sys_dlopen_deplibs=yes
8356 ;;
8357 hpux10*|hpux11*)
8358 libltdl_cv_sys_dlopen_deplibs=yes
8359 ;;
8360 irix[12345]*|irix6.[01]*)
8361 # Catch all versions of IRIX before 6.2, and indicate that we don't
8362 # know how it worked for any of those versions.
8363 libltdl_cv_sys_dlopen_deplibs=unknown
8364 ;;
8365 irix*)
8366 # The case above catches anything before 6.2, and it's known that
8367 # at 6.2 and later dlopen does load deplibs.
8368 libltdl_cv_sys_dlopen_deplibs=yes
8369 ;;
8370 netbsd*)
8371 libltdl_cv_sys_dlopen_deplibs=yes
8372 ;;
8373 openbsd*)
8374 libltdl_cv_sys_dlopen_deplibs=yes
8375 ;;
8376 osf[1234]*)
8377 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8378 # it did *not* use an RPATH in a shared library to find objects the
8379 # library depends on, so we explictly say `no'.
8380 libltdl_cv_sys_dlopen_deplibs=no
8381 ;;
8382 osf5.0|osf5.0a|osf5.1)
8383 # dlopen *does* load deplibs and with the right loader patch applied
8384 # it even uses RPATH in a shared library to search for shared objects
8385 # that the library depends on, but there's no easy way to know if that
8386 # patch is installed. Since this is the case, all we can really
8387 # say is unknown -- it depends on the patch being installed. If
8388 # it is, this changes to `yes'. Without it, it would be `no'.
8389 libltdl_cv_sys_dlopen_deplibs=unknown
8390 ;;
8391 osf*)
8392 # the two cases above should catch all versions of osf <= 5.1. Read
8393 # the comments above for what we know about them.
8394 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8395 # is used to find them so we can finally say `yes'.
8396 libltdl_cv_sys_dlopen_deplibs=yes
8397 ;;
8398 solaris*)
8399 libltdl_cv_sys_dlopen_deplibs=yes
8400 ;;
8401 esac
8402
8403fi
8404echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8405echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8406if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8407
8408cat >>confdefs.h <<\_ACEOF
8409#define LTDL_DLOPEN_DEPLIBS 1
8410_ACEOF
8411
8412fi
8413
8414
8415for ac_header in argz.h
8416do
8417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419 echo "$as_me:$LINENO: checking for $ac_header" >&5
8420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423fi
8424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8426else
8427 # Is the header compilable?
8428echo "$as_me:$LINENO: checking $ac_header usability" >&5
8429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8430cat >conftest.$ac_ext <<_ACEOF
8431/* confdefs.h. */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
8435/* end confdefs.h. */
8436$ac_includes_default
8437#include <$ac_header>
8438_ACEOF
8439rm -f conftest.$ac_objext
8440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_header_compiler=yes
8462else
8463 echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
8466ac_header_compiler=no
8467fi
8468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8470echo "${ECHO_T}$ac_header_compiler" >&6
8471
8472# Is the header present?
8473echo "$as_me:$LINENO: checking $ac_header presence" >&5
8474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8475cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
8481#include <$ac_header>
8482_ACEOF
8483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } >/dev/null; then
8491 if test -s conftest.err; then
8492 ac_cpp_err=$ac_c_preproc_warn_flag
8493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8494 else
8495 ac_cpp_err=
8496 fi
8497else
8498 ac_cpp_err=yes
8499fi
8500if test -z "$ac_cpp_err"; then
8501 ac_header_preproc=yes
8502else
8503 echo "$as_me: failed program was:" >&5
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_header_preproc=no
8507fi
8508rm -f conftest.err conftest.$ac_ext
8509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8510echo "${ECHO_T}$ac_header_preproc" >&6
8511
8512# So? What about this header?
8513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8514 yes:no: )
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8519 ac_header_preproc=yes
8520 ;;
8521 no:yes:* )
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8525echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8529echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8534 (
8535 cat <<\_ASBOX
8536## ----------------------------------- ##
8537## Report this to llvmbugs@cs.uiuc.edu ##
8538## ----------------------------------- ##
8539_ASBOX
8540 ) |
8541 sed "s/^/$as_me: WARNING: /" >&2
8542 ;;
8543esac
8544echo "$as_me:$LINENO: checking for $ac_header" >&5
8545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8546if eval "test \"\${$as_ac_Header+set}\" = set"; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548else
8549 eval "$as_ac_Header=\$ac_header_preproc"
8550fi
8551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8553
8554fi
8555if test `eval echo '${'$as_ac_Header'}'` = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8558_ACEOF
8559
8560fi
8561
8562done
8563
8564
8565echo "$as_me:$LINENO: checking for error_t" >&5
8566echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8567if test "${ac_cv_type_error_t+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569else
8570 cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h. */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h. */
8576#if HAVE_ARGZ_H
8577# include <argz.h>
8578#endif
8579
8580int
8581main ()
8582{
8583if ((error_t *) 0)
8584 return 0;
8585if (sizeof (error_t))
8586 return 0;
8587 ;
8588 return 0;
8589}
8590_ACEOF
8591rm -f conftest.$ac_objext
8592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_type_error_t=yes
8614else
8615 echo "$as_me: failed program was:" >&5
8616sed 's/^/| /' conftest.$ac_ext >&5
8617
8618ac_cv_type_error_t=no
8619fi
8620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8621fi
8622echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8623echo "${ECHO_T}$ac_cv_type_error_t" >&6
8624if test $ac_cv_type_error_t = yes; then
8625
8626cat >>confdefs.h <<_ACEOF
8627#define HAVE_ERROR_T 1
8628_ACEOF
8629
8630
8631else
8632
8633cat >>confdefs.h <<\_ACEOF
8634#define error_t int
8635_ACEOF
8636
8637fi
8638
8639
8640
8641
8642
8643
8644
8645for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8646do
8647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8648echo "$as_me:$LINENO: checking for $ac_func" >&5
8649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8650if eval "test \"\${$as_ac_var+set}\" = set"; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8661#define $ac_func innocuous_$ac_func
8662
8663/* System header to define __stub macros and hopefully few prototypes,
8664 which can conflict with char $ac_func (); below.
8665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666 <limits.h> exists even on freestanding compilers. */
8667
8668#ifdef __STDC__
8669# include <limits.h>
8670#else
8671# include <assert.h>
8672#endif
8673
8674#undef $ac_func
8675
8676/* Override any gcc2 internal prototype to avoid an error. */
8677#ifdef __cplusplus
8678extern "C"
8679{
8680#endif
8681/* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8683char $ac_func ();
8684/* The GNU C library defines this for functions which it implements
8685 to always fail with ENOSYS. Some functions are actually named
8686 something starting with __ and the normal name is an alias. */
8687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8688choke me
8689#else
8690char (*f) () = $ac_func;
8691#endif
8692#ifdef __cplusplus
8693}
8694#endif
8695
8696int
8697main ()
8698{
8699return f != $ac_func;
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704rm -f conftest.$ac_objext conftest$ac_exeext
8705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 eval "$as_ac_var=yes"
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
8731eval "$as_ac_var=no"
8732fi
8733rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735fi
8736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8737echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8738if test `eval echo '${'$as_ac_var'}'` = yes; then
8739 cat >>confdefs.h <<_ACEOF
8740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8741_ACEOF
8742
8743fi
8744done
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8774 stdio.h unistd.h
8775do
8776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778 echo "$as_me:$LINENO: checking for $ac_header" >&5
8779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8780if eval "test \"\${$as_ac_Header+set}\" = set"; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782fi
8783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8785else
8786 # Is the header compilable?
8787echo "$as_me:$LINENO: checking $ac_header usability" >&5
8788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8789cat >conftest.$ac_ext <<_ACEOF
8790/* confdefs.h. */
8791_ACEOF
8792cat confdefs.h >>conftest.$ac_ext
8793cat >>conftest.$ac_ext <<_ACEOF
8794/* end confdefs.h. */
8795$ac_includes_default
8796#include <$ac_header>
8797_ACEOF
8798rm -f conftest.$ac_objext
8799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800 (eval $ac_compile) 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_header_compiler=yes
8821else
8822 echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
8825ac_header_compiler=no
8826fi
8827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829echo "${ECHO_T}$ac_header_compiler" >&6
8830
8831# Is the header present?
8832echo "$as_me:$LINENO: checking $ac_header presence" >&5
8833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8834cat >conftest.$ac_ext <<_ACEOF
8835/* confdefs.h. */
8836_ACEOF
8837cat confdefs.h >>conftest.$ac_ext
8838cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h. */
8840#include <$ac_header>
8841_ACEOF
8842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } >/dev/null; then
8850 if test -s conftest.err; then
8851 ac_cpp_err=$ac_c_preproc_warn_flag
8852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8853 else
8854 ac_cpp_err=
8855 fi
8856else
8857 ac_cpp_err=yes
8858fi
8859if test -z "$ac_cpp_err"; then
8860 ac_header_preproc=yes
8861else
8862 echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 ac_header_preproc=no
8866fi
8867rm -f conftest.err conftest.$ac_ext
8868echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8869echo "${ECHO_T}$ac_header_preproc" >&6
8870
8871# So? What about this header?
8872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8873 yes:no: )
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8875echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8877echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8878 ac_header_preproc=yes
8879 ;;
8880 no:yes:* )
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8886echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8888echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8892echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8893 (
8894 cat <<\_ASBOX
8895## ----------------------------------- ##
8896## Report this to llvmbugs@cs.uiuc.edu ##
8897## ----------------------------------- ##
8898_ASBOX
8899 ) |
8900 sed "s/^/$as_me: WARNING: /" >&2
8901 ;;
8902esac
8903echo "$as_me:$LINENO: checking for $ac_header" >&5
8904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905if eval "test \"\${$as_ac_Header+set}\" = set"; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907else
8908 eval "$as_ac_Header=\$ac_header_preproc"
8909fi
8910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912
8913fi
8914if test `eval echo '${'$as_ac_Header'}'` = yes; then
8915 cat >>confdefs.h <<_ACEOF
8916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8917_ACEOF
8918
8919fi
8920
8921done
8922
8923
8924
8925
8926
8927for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8928do
8929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8930if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931 echo "$as_me:$LINENO: checking for $ac_header" >&5
8932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8933if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935fi
8936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8938else
8939 # Is the header compilable?
8940echo "$as_me:$LINENO: checking $ac_header usability" >&5
8941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8942cat >conftest.$ac_ext <<_ACEOF
8943/* confdefs.h. */
8944_ACEOF
8945cat confdefs.h >>conftest.$ac_ext
8946cat >>conftest.$ac_ext <<_ACEOF
8947/* end confdefs.h. */
8948$ac_includes_default
8949#include <$ac_header>
8950_ACEOF
8951rm -f conftest.$ac_objext
8952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8953 (eval $ac_compile) 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag"
8961 || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try='test -s conftest.$ac_objext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 (eval $ac_try) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 ac_header_compiler=yes
8974else
8975 echo "$as_me: failed program was:" >&5
8976sed 's/^/| /' conftest.$ac_ext >&5
8977
8978ac_header_compiler=no
8979fi
8980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982echo "${ECHO_T}$ac_header_compiler" >&6
8983
8984# Is the header present?
8985echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8987cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h. */
8993#include <$ac_header>
8994_ACEOF
8995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } >/dev/null; then
9003 if test -s conftest.err; then
9004 ac_cpp_err=$ac_c_preproc_warn_flag
9005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9006 else
9007 ac_cpp_err=
9008 fi
9009else
9010 ac_cpp_err=yes
9011fi
9012if test -z "$ac_cpp_err"; then
9013 ac_header_preproc=yes
9014else
9015 echo "$as_me: failed program was:" >&5
9016sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 ac_header_preproc=no
9019fi
9020rm -f conftest.err conftest.$ac_ext
9021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9022echo "${ECHO_T}$ac_header_preproc" >&6
9023
9024# So? What about this header?
9025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9026 yes:no: )
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9031 ac_header_preproc=yes
9032 ;;
9033 no:yes:* )
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9046 (
9047 cat <<\_ASBOX
9048## ----------------------------------- ##
9049## Report this to llvmbugs@cs.uiuc.edu ##
9050## ----------------------------------- ##
9051_ASBOX
9052 ) |
9053 sed "s/^/$as_me: WARNING: /" >&2
9054 ;;
9055esac
9056echo "$as_me:$LINENO: checking for $ac_header" >&5
9057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9058if eval "test \"\${$as_ac_Header+set}\" = set"; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9060else
9061 eval "$as_ac_Header=\$ac_header_preproc"
9062fi
9063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9065
9066fi
9067if test `eval echo '${'$as_ac_Header'}'` = yes; then
9068 cat >>confdefs.h <<_ACEOF
9069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9070_ACEOF
9071
9072fi
9073
9074done
9075
9076
9077
9078for ac_header in string.h strings.h
9079do
9080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082 echo "$as_me:$LINENO: checking for $ac_header" >&5
9083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9084if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086fi
9087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9089else
9090 # Is the header compilable?
9091echo "$as_me:$LINENO: checking $ac_header usability" >&5
9092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9093cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099$ac_includes_default
9100#include <$ac_header>
9101_ACEOF
9102rm -f conftest.$ac_objext
9103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9104 (eval $ac_compile) 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest.$ac_objext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 ac_header_compiler=yes
9125else
9126 echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129ac_header_compiler=no
9130fi
9131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9133echo "${ECHO_T}$ac_header_compiler" >&6
9134
9135# Is the header present?
9136echo "$as_me:$LINENO: checking $ac_header presence" >&5
9137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9138cat >conftest.$ac_ext <<_ACEOF
9139/* confdefs.h. */
9140_ACEOF
9141cat confdefs.h >>conftest.$ac_ext
9142cat >>conftest.$ac_ext <<_ACEOF
9143/* end confdefs.h. */
9144#include <$ac_header>
9145_ACEOF
9146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9148 ac_status=$?
9149 grep -v '^ *+' conftest.er1 >conftest.err
9150 rm -f conftest.er1
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } >/dev/null; then
9154 if test -s conftest.err; then
9155 ac_cpp_err=$ac_c_preproc_warn_flag
9156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9157 else
9158 ac_cpp_err=
9159 fi
9160else
9161 ac_cpp_err=yes
9162fi
9163if test -z "$ac_cpp_err"; then
9164 ac_header_preproc=yes
9165else
9166 echo "$as_me: failed program was:" >&5
9167sed 's/^/| /' conftest.$ac_ext >&5
9168
9169 ac_header_preproc=no
9170fi
9171rm -f conftest.err conftest.$ac_ext
9172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9173echo "${ECHO_T}$ac_header_preproc" >&6
9174
9175# So? What about this header?
9176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9177 yes:no: )
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9182 ac_header_preproc=yes
9183 ;;
9184 no:yes:* )
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9197 (
9198 cat <<\_ASBOX
9199## ----------------------------------- ##
9200## Report this to llvmbugs@cs.uiuc.edu ##
9201## ----------------------------------- ##
9202_ASBOX
9203 ) |
9204 sed "s/^/$as_me: WARNING: /" >&2
9205 ;;
9206esac
9207echo "$as_me:$LINENO: checking for $ac_header" >&5
9208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9209if eval "test \"\${$as_ac_Header+set}\" = set"; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
9212 eval "$as_ac_Header=\$ac_header_preproc"
9213fi
9214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9216
9217fi
9218if test `eval echo '${'$as_ac_Header'}'` = yes; then
9219 cat >>confdefs.h <<_ACEOF
9220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9221_ACEOF
9222 break
9223fi
9224
9225done
9226
9227
9228
9229
9230for ac_func in strchr index
9231do
9232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9233echo "$as_me:$LINENO: checking for $ac_func" >&5
9234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9235if eval "test \"\${$as_ac_var+set}\" = set"; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
9238 cat >conftest.$ac_ext <<_ACEOF
9239/* confdefs.h. */
9240_ACEOF
9241cat confdefs.h >>conftest.$ac_ext
9242cat >>conftest.$ac_ext <<_ACEOF
9243/* end confdefs.h. */
9244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9246#define $ac_func innocuous_$ac_func
9247
9248/* System header to define __stub macros and hopefully few prototypes,
9249 which can conflict with char $ac_func (); below.
9250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9251 <limits.h> exists even on freestanding compilers. */
9252
9253#ifdef __STDC__
9254# include <limits.h>
9255#else
9256# include <assert.h>
9257#endif
9258
9259#undef $ac_func
9260
9261/* Override any gcc2 internal prototype to avoid an error. */
9262#ifdef __cplusplus
9263extern "C"
9264{
9265#endif
9266/* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9268char $ac_func ();
9269/* The GNU C library defines this for functions which it implements
9270 to always fail with ENOSYS. Some functions are actually named
9271 something starting with __ and the normal name is an alias. */
9272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9273choke me
9274#else
9275char (*f) () = $ac_func;
9276#endif
9277#ifdef __cplusplus
9278}
9279#endif
9280
9281int
9282main ()
9283{
9284return f != $ac_func;
9285 ;
9286 return 0;
9287}
9288_ACEOF
9289rm -f conftest.$ac_objext conftest$ac_exeext
9290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>conftest.er1
9292 ac_status=$?
9293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag"
9299 || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 eval "$as_ac_var=yes"
9312else
9313 echo "$as_me: failed program was:" >&5
9314sed 's/^/| /' conftest.$ac_ext >&5
9315
9316eval "$as_ac_var=no"
9317fi
9318rm -f conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320fi
9321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9323if test `eval echo '${'$as_ac_var'}'` = yes; then
9324 cat >>confdefs.h <<_ACEOF
9325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9326_ACEOF
9327 break
9328fi
9329done
9330
9331
9332
9333for ac_func in strrchr rindex
9334do
9335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336echo "$as_me:$LINENO: checking for $ac_func" >&5
9337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9338if eval "test \"\${$as_ac_var+set}\" = set"; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340else
9341 cat >conftest.$ac_ext <<_ACEOF
9342/* confdefs.h. */
9343_ACEOF
9344cat confdefs.h >>conftest.$ac_ext
9345cat >>conftest.$ac_ext <<_ACEOF
9346/* end confdefs.h. */
9347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9349#define $ac_func innocuous_$ac_func
9350
9351/* System header to define __stub macros and hopefully few prototypes,
9352 which can conflict with char $ac_func (); below.
9353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354 <limits.h> exists even on freestanding compilers. */
9355
9356#ifdef __STDC__
9357# include <limits.h>
9358#else
9359# include <assert.h>
9360#endif
9361
9362#undef $ac_func
9363
9364/* Override any gcc2 internal prototype to avoid an error. */
9365#ifdef __cplusplus
9366extern "C"
9367{
9368#endif
9369/* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */
9371char $ac_func ();
9372/* The GNU C library defines this for functions which it implements
9373 to always fail with ENOSYS. Some functions are actually named
9374 something starting with __ and the normal name is an alias. */
9375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9376choke me
9377#else
9378char (*f) () = $ac_func;
9379#endif
9380#ifdef __cplusplus
9381}
9382#endif
9383
9384int
9385main ()
9386{
9387return f != $ac_func;
9388 ;
9389 return 0;
9390}
9391_ACEOF
9392rm -f conftest.$ac_objext conftest$ac_exeext
9393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 eval "$as_ac_var=yes"
9415else
9416 echo "$as_me: failed program was:" >&5
9417sed 's/^/| /' conftest.$ac_ext >&5
9418
9419eval "$as_ac_var=no"
9420fi
9421rm -f conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423fi
9424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9426if test `eval echo '${'$as_ac_var'}'` = yes; then
9427 cat >>confdefs.h <<_ACEOF
9428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9429_ACEOF
9430 break
9431fi
9432done
9433
9434
9435
9436for ac_func in memcpy bcopy
9437do
9438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439echo "$as_me:$LINENO: checking for $ac_func" >&5
9440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9441if eval "test \"\${$as_ac_var+set}\" = set"; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
9444 cat >conftest.$ac_ext <<_ACEOF
9445/* confdefs.h. */
9446_ACEOF
9447cat confdefs.h >>conftest.$ac_ext
9448cat >>conftest.$ac_ext <<_ACEOF
9449/* end confdefs.h. */
9450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9452#define $ac_func innocuous_$ac_func
9453
9454/* System header to define __stub macros and hopefully few prototypes,
9455 which can conflict with char $ac_func (); below.
9456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457 <limits.h> exists even on freestanding compilers. */
9458
9459#ifdef __STDC__
9460# include <limits.h>
9461#else
9462# include <assert.h>
9463#endif
9464
9465#undef $ac_func
9466
9467/* Override any gcc2 internal prototype to avoid an error. */
9468#ifdef __cplusplus
9469extern "C"
9470{
9471#endif
9472/* We use char because int might match the return type of a gcc2
9473 builtin and then its argument prototype would still apply. */
9474char $ac_func ();
9475/* The GNU C library defines this for functions which it implements
9476 to always fail with ENOSYS. Some functions are actually named
9477 something starting with __ and the normal name is an alias. */
9478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9479choke me
9480#else
9481char (*f) () = $ac_func;
9482#endif
9483#ifdef __cplusplus
9484}
9485#endif
9486
9487int
9488main ()
9489{
9490return f != $ac_func;
9491 ;
9492 return 0;
9493}
9494_ACEOF
9495rm -f conftest.$ac_objext conftest$ac_exeext
9496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 eval "$as_ac_var=yes"
9518else
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
9522eval "$as_ac_var=no"
9523fi
9524rm -f conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526fi
9527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9528echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9529if test `eval echo '${'$as_ac_var'}'` = yes; then
9530 cat >>confdefs.h <<_ACEOF
9531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9532_ACEOF
9533 break
9534fi
9535done
9536
9537
9538
9539for ac_func in memmove strcmp
9540do
9541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9542echo "$as_me:$LINENO: checking for $ac_func" >&5
9543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9544if eval "test \"\${$as_ac_var+set}\" = set"; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547 cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h. */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
9552/* end confdefs.h. */
9553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9555#define $ac_func innocuous_$ac_func
9556
9557/* System header to define __stub macros and hopefully few prototypes,
9558 which can conflict with char $ac_func (); below.
9559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9560 <limits.h> exists even on freestanding compilers. */
9561
9562#ifdef __STDC__
9563# include <limits.h>
9564#else
9565# include <assert.h>
9566#endif
9567
9568#undef $ac_func
9569
9570/* Override any gcc2 internal prototype to avoid an error. */
9571#ifdef __cplusplus
9572extern "C"
9573{
9574#endif
9575/* We use char because int might match the return type of a gcc2
9576 builtin and then its argument prototype would still apply. */
9577char $ac_func ();
9578/* The GNU C library defines this for functions which it implements
9579 to always fail with ENOSYS. Some functions are actually named
9580 something starting with __ and the normal name is an alias. */
9581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9582choke me
9583#else
9584char (*f) () = $ac_func;
9585#endif
9586#ifdef __cplusplus
9587}
9588#endif
9589
9590int
9591main ()
9592{
9593return f != $ac_func;
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598rm -f conftest.$ac_objext conftest$ac_exeext
9599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -z "$ac_c_werror_flag"
9608 || test ! -s conftest.err'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 (eval $ac_try) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 eval "$as_ac_var=yes"
9621else
9622 echo "$as_me: failed program was:" >&5
9623sed 's/^/| /' conftest.$ac_ext >&5
9624
9625eval "$as_ac_var=no"
9626fi
9627rm -f conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629fi
9630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9631echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9632if test `eval echo '${'$as_ac_var'}'` = yes; then
9633 cat >>confdefs.h <<_ACEOF
9634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9635_ACEOF
9636
9637fi
9638done
9639
9640
9641
9642
9643for ac_func in closedir opendir readdir
9644do
9645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9646echo "$as_me:$LINENO: checking for $ac_func" >&5
9647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9648if eval "test \"\${$as_ac_var+set}\" = set"; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659#define $ac_func innocuous_$ac_func
9660
9661/* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char $ac_func (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9665
9666#ifdef __STDC__
9667# include <limits.h>
9668#else
9669# include <assert.h>
9670#endif
9671
9672#undef $ac_func
9673
9674/* Override any gcc2 internal prototype to avoid an error. */
9675#ifdef __cplusplus
9676extern "C"
9677{
9678#endif
9679/* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9681char $ac_func ();
9682/* The GNU C library defines this for functions which it implements
9683 to always fail with ENOSYS. Some functions are actually named
9684 something starting with __ and the normal name is an alias. */
9685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9686choke me
9687#else
9688char (*f) () = $ac_func;
9689#endif
9690#ifdef __cplusplus
9691}
9692#endif
9693
9694int
9695main ()
9696{
9697return f != $ac_func;
9698 ;
9699 return 0;
9700}
9701_ACEOF
9702rm -f conftest.$ac_objext conftest$ac_exeext
9703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -z "$ac_c_werror_flag"
9712 || test ! -s conftest.err'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; } &&
9718 { ac_try='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 eval "$as_ac_var=yes"
9725else
9726 echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729eval "$as_ac_var=no"
9730fi
9731rm -f conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9733fi
9734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9736if test `eval echo '${'$as_ac_var'}'` = yes; then
9737 cat >>confdefs.h <<_ACEOF
9738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9739_ACEOF
9740
9741fi
9742done
9743
9744
9745# Check whether --enable-shared or --disable-shared was given.
9746if test "${enable_shared+set}" = set; then
9747 enableval="$enable_shared"
9748 p=${PACKAGE-default}
9749 case $enableval in
9750 yes) enable_shared=yes ;;
9751 no) enable_shared=no ;;
9752 *)
9753 enable_shared=no
9754 # Look at the argument we got. We use all the common list separators.
9755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9756 for pkg in $enableval; do
9757 IFS="$lt_save_ifs"
9758 if test "X$pkg" = "X$p"; then
9759 enable_shared=yes
9760 fi
9761 done
9762 IFS="$lt_save_ifs"
9763 ;;
9764 esac
9765else
9766 enable_shared=yes
9767fi;
9768
9769# Check whether --enable-static or --disable-static was given.
9770if test "${enable_static+set}" = set; then
9771 enableval="$enable_static"
9772 p=${PACKAGE-default}
9773 case $enableval in
9774 yes) enable_static=yes ;;
9775 no) enable_static=no ;;
9776 *)
9777 enable_static=no
9778 # Look at the argument we got. We use all the common list separators.
9779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9780 for pkg in $enableval; do
9781 IFS="$lt_save_ifs"
9782 if test "X$pkg" = "X$p"; then
9783 enable_static=yes
9784 fi
9785 done
9786 IFS="$lt_save_ifs"
9787 ;;
9788 esac
9789else
9790 enable_static=yes
9791fi;
9792
9793# Check whether --enable-fast-install or --disable-fast-install was given.
9794if test "${enable_fast_install+set}" = set; then
9795 enableval="$enable_fast_install"
9796 p=${PACKAGE-default}
9797 case $enableval in
9798 yes) enable_fast_install=yes ;;
9799 no) enable_fast_install=no ;;
9800 *)
9801 enable_fast_install=no
9802 # Look at the argument we got. We use all the common list separators.
9803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9804 for pkg in $enableval; do
9805 IFS="$lt_save_ifs"
9806 if test "X$pkg" = "X$p"; then
9807 enable_fast_install=yes
9808 fi
9809 done
9810 IFS="$lt_save_ifs"
9811 ;;
9812 esac
9813else
9814 enable_fast_install=yes
9815fi;
9816
9817echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9818echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9819if test "${lt_cv_path_SED+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821else
9822 # Loop through the user's path and test for sed and gsed.
9823# Then use that list of sed's as ones to test for truncation.
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for lt_ac_prog in sed gsed; do
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9832 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9833 fi
9834 done
9835 done
9836done
9837lt_ac_max=0
9838lt_ac_count=0
9839# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9840# along with /bin/sed that truncates output.
9841for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9842 test ! -f $lt_ac_sed && break
9843 cat /dev/null > conftest.in
9844 lt_ac_count=0
9845 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9846 # Check for GNU sed and select it if it is found.
9847 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9848 lt_cv_path_SED=$lt_ac_sed
9849 break
9850 fi
9851 while true; do
9852 cat conftest.in conftest.in >conftest.tmp
9853 mv conftest.tmp conftest.in
9854 cp conftest.in conftest.nl
9855 echo >>conftest.nl
9856 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9857 cmp -s conftest.out conftest.nl || break
9858 # 10000 chars as input seems more than enough
9859 test $lt_ac_count -gt 10 && break
9860 lt_ac_count=`expr $lt_ac_count + 1`
9861 if test $lt_ac_count -gt $lt_ac_max; then
9862 lt_ac_max=$lt_ac_count
9863 lt_cv_path_SED=$lt_ac_sed
9864 fi
9865 done
9866done
9867
9868fi
9869
9870SED=$lt_cv_path_SED
9871echo "$as_me:$LINENO: result: $SED" >&5
9872echo "${ECHO_T}$SED" >&6
9873
9874
9875# Check whether --with-gnu-ld or --without-gnu-ld was given.
9876if test "${with_gnu_ld+set}" = set; then
9877 withval="$with_gnu_ld"
9878 test "$withval" = no || with_gnu_ld=yes
9879else
9880 with_gnu_ld=no
9881fi;
9882ac_prog=ld
9883if test "$GCC" = yes; then
9884 # Check if gcc -print-prog-name=ld gives a path.
9885 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9886echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9887 case $host in
9888 *-*-mingw*)
9889 # gcc leaves a trailing carriage return which upsets mingw
9890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9891 *)
9892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9893 esac
9894 case $ac_prog in
9895 # Accept absolute paths.
9896 [\\/]* | ?:[\\/]*)
9897 re_direlt='/[^/][^/]*/\.\./'
9898 # Canonicalize the pathname of ld
9899 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9901 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9902 done
9903 test -z "$LD" && LD="$ac_prog"
9904 ;;
9905 "")
9906 # If it fails, then pretend we aren't using GCC.
9907 ac_prog=ld
9908 ;;
9909 *)
9910 # If it is relative, then search for the first ld in PATH.
9911 with_gnu_ld=unknown
9912 ;;
9913 esac
9914elif test "$with_gnu_ld" = yes; then
9915 echo "$as_me:$LINENO: checking for GNU ld" >&5
9916echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9917else
9918 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9919echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9920fi
9921if test "${lt_cv_path_LD+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924 if test -z "$LD"; then
9925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9926 for ac_dir in $PATH; do
9927 IFS="$lt_save_ifs"
9928 test -z "$ac_dir" && ac_dir=.
9929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9930 lt_cv_path_LD="$ac_dir/$ac_prog"
9931 # Check to see if the program is GNU ld. I'd rather use --version,
9932 # but apparently some GNU ld's only accept -v.
9933 # Break only if it was the GNU/non-GNU ld that we prefer.
9934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9935 *GNU* | *'with BFD'*)
9936 test "$with_gnu_ld" != no && break
9937 ;;
9938 *)
9939 test "$with_gnu_ld" != yes && break
9940 ;;
9941 esac
9942 fi
9943 done
9944 IFS="$lt_save_ifs"
9945else
9946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9947fi
9948fi
9949
9950LD="$lt_cv_path_LD"
9951if test -n "$LD"; then
9952 echo "$as_me:$LINENO: result: $LD" >&5
9953echo "${ECHO_T}$LD" >&6
9954else
9955 echo "$as_me:$LINENO: result: no" >&5
9956echo "${ECHO_T}no" >&6
9957fi
9958test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9959echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9960 { (exit 1); exit 1; }; }
9961echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9962echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9963if test "${lt_cv_prog_gnu_ld+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9967case `$LD -v 2>&1 </dev/null` in
9968*GNU* | *'with BFD'*)
9969 lt_cv_prog_gnu_ld=yes
9970 ;;
9971*)
9972 lt_cv_prog_gnu_ld=no
9973 ;;
9974esac
9975fi
9976echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9977echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9978with_gnu_ld=$lt_cv_prog_gnu_ld
9979
9980
9981echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9982echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9983if test "${lt_cv_ld_reload_flag+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986 lt_cv_ld_reload_flag='-r'
9987fi
9988echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9989echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9990reload_flag=$lt_cv_ld_reload_flag
9991case $reload_flag in
9992"" | " "*) ;;
9993*) reload_flag=" $reload_flag" ;;
9994esac
9995reload_cmds='$LD$reload_flag -o $output$reload_objs'
9996case $host_os in
9997 darwin*)
9998 if test "$GCC" = yes; then
9999 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10000 else
10001 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10002 fi
10003 ;;
10004esac
10005
10006echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10007echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10008if test "${lt_cv_deplibs_check_method+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011 lt_cv_file_magic_cmd='$MAGIC_CMD'
10012lt_cv_file_magic_test_file=
10013lt_cv_deplibs_check_method='unknown'
10014# Need to set the preceding variable on all platforms that support
10015# interlibrary dependencies.
10016# 'none' -- dependencies not supported.
10017# `unknown' -- same as none, but documents that we really don't know.
10018# 'pass_all' -- all dependencies passed with no checks.
10019# 'test_compile' -- check by making test program.
10020# 'file_magic [[regex]]' -- check by looking for files in library path
10021# which responds to the $file_magic_cmd with a given extended regex.
10022# If you have `file' or equivalent on your system and you're not sure
10023# whether `pass_all' will *always* work, you probably want this one.
10024
10025case $host_os in
10026aix4* | aix5*)
10027 lt_cv_deplibs_check_method=pass_all
10028 ;;
10029
10030beos*)
10031 lt_cv_deplibs_check_method=pass_all
10032 ;;
10033
10034bsdi[45]*)
10035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10036 lt_cv_file_magic_cmd='/usr/bin/file -L'
10037 lt_cv_file_magic_test_file=/shlib/libc.so
10038 ;;
10039
10040cygwin*)
10041 # func_win32_libid is a shell function defined in ltmain.sh
10042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10043 lt_cv_file_magic_cmd='func_win32_libid'
10044 ;;
10045
10046mingw* | pw32*)
10047 # Base MSYS/MinGW do not provide the 'file' command needed by
10048 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10049 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10050 lt_cv_file_magic_cmd='$OBJDUMP -f'
10051 ;;
10052
10053darwin* | rhapsody*)
10054 lt_cv_deplibs_check_method=pass_all
10055 ;;
10056
10057freebsd* | kfreebsd*-gnu)
10058 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10059 case $host_cpu in
10060 i*86 )
10061 # Not sure whether the presence of OpenBSD here was a mistake.
10062 # Let's accept both of them until this is cleared up.
10063 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10064 lt_cv_file_magic_cmd=/usr/bin/file
10065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10066 ;;
10067 esac
10068 else
10069 lt_cv_deplibs_check_method=pass_all
10070 fi
10071 ;;
10072
10073gnu*)
10074 lt_cv_deplibs_check_method=pass_all
10075 ;;
10076
10077hpux10.20* | hpux11*)
10078 lt_cv_file_magic_cmd=/usr/bin/file
10079 case "$host_cpu" in
10080 ia64*)
10081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10083 ;;
10084 hppa*64*)
10085 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]'
10086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10087 ;;
10088 *)
10089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10091 ;;
10092 esac
10093 ;;
10094
10095irix5* | irix6* | nonstopux*)
10096 case $LD in
10097 *-32|*"-32 ") libmagic=32-bit;;
10098 *-n32|*"-n32 ") libmagic=N32;;
10099 *-64|*"-64 ") libmagic=64-bit;;
10100 *) libmagic=never-match;;
10101 esac
10102 lt_cv_deplibs_check_method=pass_all
10103 ;;
10104
10105# This must be Linux ELF.
10106linux*)
10107 lt_cv_deplibs_check_method=pass_all
10108 ;;
10109
10110netbsd*)
10111 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10113 else
10114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10115 fi
10116 ;;
10117
10118newos6*)
10119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10120 lt_cv_file_magic_cmd=/usr/bin/file
10121 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10122 ;;
10123
10124nto-qnx*)
10125 lt_cv_deplibs_check_method=unknown
10126 ;;
10127
10128openbsd*)
10129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10131 else
10132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10133 fi
10134 ;;
10135
10136osf3* | osf4* | osf5*)
10137 lt_cv_deplibs_check_method=pass_all
10138 ;;
10139
10140sco3.2v5*)
10141 lt_cv_deplibs_check_method=pass_all
10142 ;;
10143
10144solaris*)
10145 lt_cv_deplibs_check_method=pass_all
10146 ;;
10147
10148sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10149 case $host_vendor in
10150 motorola)
10151 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]'
10152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10153 ;;
10154 ncr)
10155 lt_cv_deplibs_check_method=pass_all
10156 ;;
10157 sequent)
10158 lt_cv_file_magic_cmd='/bin/file'
10159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10160 ;;
10161 sni)
10162 lt_cv_file_magic_cmd='/bin/file'
10163 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10164 lt_cv_file_magic_test_file=/lib/libc.so
10165 ;;
10166 siemens)
10167 lt_cv_deplibs_check_method=pass_all
10168 ;;
10169 esac
10170 ;;
10171
10172sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10173 lt_cv_deplibs_check_method=pass_all
10174 ;;
10175esac
10176
10177fi
10178echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10179echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10180file_magic_cmd=$lt_cv_file_magic_cmd
10181deplibs_check_method=$lt_cv_deplibs_check_method
10182test -z "$deplibs_check_method" && deplibs_check_method=unknown
10183
10184
10185
10186# If no C compiler was specified, use CC.
10187LTCC=${LTCC-"$CC"}
10188
10189# Allow CC to be a program name with arguments.
10190compiler=$CC
10191
10192# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10193if test "${enable_libtool_lock+set}" = set; then
10194 enableval="$enable_libtool_lock"
10195
10196fi;
10197test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10198
10199# Some flags need to be propagated to the compiler or linker for good
10200# libtool support.
10201case $host in
10202ia64-*-hpux*)
10203 # Find out which ABI we are using.
10204 echo 'int i;' > conftest.$ac_ext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206 (eval $ac_compile) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; then
10210 case `/usr/bin/file conftest.$ac_objext` in
10211 *ELF-32*)
10212 HPUX_IA64_MODE="32"
10213 ;;
10214 *ELF-64*)
10215 HPUX_IA64_MODE="64"
10216 ;;
10217 esac
10218 fi
10219 rm -rf conftest*
10220 ;;
10221*-*-irix6*)
10222 # Find out which ABI we are using.
Reid Spencer22177fe2005-07-12 15:24:20 +000010223 echo '#line 10223 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10225 (eval $ac_compile) 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; then
10229 if test "$lt_cv_prog_gnu_ld" = yes; then
10230 case `/usr/bin/file conftest.$ac_objext` in
10231 *32-bit*)
10232 LD="${LD-ld} -melf32bsmip"
10233 ;;
10234 *N32*)
10235 LD="${LD-ld} -melf32bmipn32"
10236 ;;
10237 *64-bit*)
10238 LD="${LD-ld} -melf64bmip"
10239 ;;
10240 esac
10241 else
10242 case `/usr/bin/file conftest.$ac_objext` in
10243 *32-bit*)
10244 LD="${LD-ld} -32"
10245 ;;
10246 *N32*)
10247 LD="${LD-ld} -n32"
10248 ;;
10249 *64-bit*)
10250 LD="${LD-ld} -64"
10251 ;;
10252 esac
10253 fi
10254 fi
10255 rm -rf conftest*
10256 ;;
10257
10258x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10259 # Find out which ABI we are using.
10260 echo 'int i;' > conftest.$ac_ext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; then
10266 case "`/usr/bin/file conftest.o`" in
10267 *32-bit*)
10268 case $host in
10269 x86_64-*linux*)
10270 LD="${LD-ld} -m elf_i386"
10271 ;;
10272 ppc64-*linux*|powerpc64-*linux*)
10273 LD="${LD-ld} -m elf32ppclinux"
10274 ;;
10275 s390x-*linux*)
10276 LD="${LD-ld} -m elf_s390"
10277 ;;
10278 sparc64-*linux*)
10279 LD="${LD-ld} -m elf32_sparc"
10280 ;;
10281 esac
10282 ;;
10283 *64-bit*)
10284 case $host in
10285 x86_64-*linux*)
10286 LD="${LD-ld} -m elf_x86_64"
10287 ;;
10288 ppc*-*linux*|powerpc*-*linux*)
10289 LD="${LD-ld} -m elf64ppc"
10290 ;;
10291 s390*-*linux*)
10292 LD="${LD-ld} -m elf64_s390"
10293 ;;
10294 sparc*-*linux*)
10295 LD="${LD-ld} -m elf64_sparc"
10296 ;;
10297 esac
10298 ;;
10299 esac
10300 fi
10301 rm -rf conftest*
10302 ;;
10303
10304*-*-sco3.2v5*)
10305 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10306 SAVE_CFLAGS="$CFLAGS"
10307 CFLAGS="$CFLAGS -belf"
10308 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10309echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10310if test "${lt_cv_cc_needs_belf+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312else
10313 ac_ext=c
10314ac_cpp='$CPP $CPPFLAGS'
10315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10317ac_compiler_gnu=$ac_cv_c_compiler_gnu
10318
10319 cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325
10326_ACEOF
10327rm -f conftest.$ac_objext conftest$ac_exeext
10328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10329 (eval $ac_link) 2>conftest.er1
10330 ac_status=$?
10331 grep -v '^ *+' conftest.er1 >conftest.err
10332 rm -f conftest.er1
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -z "$ac_c_werror_flag"
10337 || test ! -s conftest.err'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest$ac_exeext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 lt_cv_cc_needs_belf=yes
10350else
10351 echo "$as_me: failed program was:" >&5
10352sed 's/^/| /' conftest.$ac_ext >&5
10353
10354lt_cv_cc_needs_belf=no
10355fi
10356rm -f conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 ac_ext=c
10359ac_cpp='$CPP $CPPFLAGS'
10360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10362ac_compiler_gnu=$ac_cv_c_compiler_gnu
10363
10364fi
10365echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10366echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10367 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10369 CFLAGS="$SAVE_CFLAGS"
10370 fi
10371 ;;
10372
10373esac
10374
10375need_locks="$enable_libtool_lock"
10376
10377
Reid Spencer2706f8c2004-09-19 23:53:36 +000010378
10379
10380if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10381 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10382 (test "X$CXX" != "Xg++"))) ; then
10383 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010384ac_cpp='$CXXCPP $CPPFLAGS'
10385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10388echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10389echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10390if test -z "$CXXCPP"; then
10391 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393else
John Criswell47fdd832003-07-14 16:52:07 +000010394 # Double quotes because CXXCPP needs to be expanded
10395 for CXXCPP in "$CXX -E" "/lib/cpp"
10396 do
10397 ac_preproc_ok=false
10398for ac_cxx_preproc_warn_flag in '' yes
10399do
10400 # Use a header file that comes with gcc, so configuring glibc
10401 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10403 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010404 # On the NeXT, cc -E runs the code through the compiler's parser,
10405 # not just through cpp. "Syntax error" is here to catch this case.
10406 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
10412#ifdef __STDC__
10413# include <limits.h>
10414#else
10415# include <assert.h>
10416#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010417 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010418_ACEOF
10419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10421 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010422 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } >/dev/null; then
10427 if test -s conftest.err; then
10428 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010429 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010430 else
John Criswell47fdd832003-07-14 16:52:07 +000010431 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010432 fi
John Criswell47fdd832003-07-14 16:52:07 +000010433else
10434 ac_cpp_err=yes
10435fi
10436if test -z "$ac_cpp_err"; then
10437 :
10438else
10439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010440sed 's/^/| /' conftest.$ac_ext >&5
10441
John Criswell47fdd832003-07-14 16:52:07 +000010442 # Broken: fails on valid input.
10443continue
10444fi
10445rm -f conftest.err conftest.$ac_ext
10446
10447 # OK, works on sane cases. Now check whether non-existent headers
10448 # can be detected and how.
10449 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010455#include <ac_nonexistent.h>
10456_ACEOF
10457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10459 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010460 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } >/dev/null; then
10465 if test -s conftest.err; then
10466 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010467 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010468 else
10469 ac_cpp_err=
10470 fi
10471else
10472 ac_cpp_err=yes
10473fi
10474if test -z "$ac_cpp_err"; then
10475 # Broken: success on invalid input.
10476continue
10477else
10478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010479sed 's/^/| /' conftest.$ac_ext >&5
10480
John Criswell47fdd832003-07-14 16:52:07 +000010481 # Passes both tests.
10482ac_preproc_ok=:
10483break
10484fi
10485rm -f conftest.err conftest.$ac_ext
10486
10487done
10488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10489rm -f conftest.err conftest.$ac_ext
10490if $ac_preproc_ok; then
10491 break
John Criswell7a73b802003-06-30 21:59:07 +000010492fi
10493
John Criswell47fdd832003-07-14 16:52:07 +000010494 done
10495 ac_cv_prog_CXXCPP=$CXXCPP
10496
10497fi
10498 CXXCPP=$ac_cv_prog_CXXCPP
10499else
10500 ac_cv_prog_CXXCPP=$CXXCPP
10501fi
10502echo "$as_me:$LINENO: result: $CXXCPP" >&5
10503echo "${ECHO_T}$CXXCPP" >&6
10504ac_preproc_ok=false
10505for ac_cxx_preproc_warn_flag in '' yes
10506do
10507 # Use a header file that comes with gcc, so configuring glibc
10508 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010511 # On the NeXT, cc -E runs the code through the compiler's parser,
10512 # not just through cpp. "Syntax error" is here to catch this case.
10513 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
10519#ifdef __STDC__
10520# include <limits.h>
10521#else
10522# include <assert.h>
10523#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010524 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010525_ACEOF
10526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10528 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010529 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } >/dev/null; then
10534 if test -s conftest.err; then
10535 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010536 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010537 else
10538 ac_cpp_err=
10539 fi
10540else
10541 ac_cpp_err=yes
10542fi
10543if test -z "$ac_cpp_err"; then
10544 :
10545else
10546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010547sed 's/^/| /' conftest.$ac_ext >&5
10548
John Criswell47fdd832003-07-14 16:52:07 +000010549 # Broken: fails on valid input.
10550continue
10551fi
10552rm -f conftest.err conftest.$ac_ext
10553
10554 # OK, works on sane cases. Now check whether non-existent headers
10555 # can be detected and how.
10556 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010557/* confdefs.h. */
10558_ACEOF
10559cat confdefs.h >>conftest.$ac_ext
10560cat >>conftest.$ac_ext <<_ACEOF
10561/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010562#include <ac_nonexistent.h>
10563_ACEOF
10564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10566 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010567 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } >/dev/null; then
10572 if test -s conftest.err; then
10573 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010574 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010575 else
10576 ac_cpp_err=
10577 fi
10578else
10579 ac_cpp_err=yes
10580fi
10581if test -z "$ac_cpp_err"; then
10582 # Broken: success on invalid input.
10583continue
10584else
10585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010586sed 's/^/| /' conftest.$ac_ext >&5
10587
John Criswell47fdd832003-07-14 16:52:07 +000010588 # Passes both tests.
10589ac_preproc_ok=:
10590break
10591fi
10592rm -f conftest.err conftest.$ac_ext
10593
10594done
10595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10596rm -f conftest.err conftest.$ac_ext
10597if $ac_preproc_ok; then
10598 :
10599else
John Criswell0c38eaf2003-09-10 15:17:25 +000010600 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10601See \`config.log' for more details." >&5
10602echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10603See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010604 { (exit 1); exit 1; }; }
10605fi
10606
10607ac_ext=cc
10608ac_cpp='$CXXCPP $CPPFLAGS'
10609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10612
Reid Spencer2706f8c2004-09-19 23:53:36 +000010613fi
10614
John Criswell47fdd832003-07-14 16:52:07 +000010615
10616ac_ext=f
10617ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10618ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10620if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010621 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 +000010622 do
10623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10625echo "$as_me:$LINENO: checking for $ac_word" >&5
10626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627if test "${ac_cv_prog_F77+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 if test -n "$F77"; then
10631 ac_cv_prog_F77="$F77" # Let the user override the test.
10632else
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645done
10646
10647fi
10648fi
10649F77=$ac_cv_prog_F77
10650if test -n "$F77"; then
10651 echo "$as_me:$LINENO: result: $F77" >&5
10652echo "${ECHO_T}$F77" >&6
10653else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656fi
10657
10658 test -n "$F77" && break
10659 done
10660fi
10661if test -z "$F77"; then
10662 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010663 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 +000010664do
10665 # Extract the first word of "$ac_prog", so it can be a program name with args.
10666set dummy $ac_prog; ac_word=$2
10667echo "$as_me:$LINENO: checking for $ac_word" >&5
10668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10669if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672 if test -n "$ac_ct_F77"; then
10673 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10674else
10675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676for as_dir in $PATH
10677do
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10682 ac_cv_prog_ac_ct_F77="$ac_prog"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 break 2
10685 fi
10686done
10687done
10688
10689fi
10690fi
10691ac_ct_F77=$ac_cv_prog_ac_ct_F77
10692if test -n "$ac_ct_F77"; then
10693 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10694echo "${ECHO_T}$ac_ct_F77" >&6
10695else
10696 echo "$as_me:$LINENO: result: no" >&5
10697echo "${ECHO_T}no" >&6
10698fi
10699
10700 test -n "$ac_ct_F77" && break
10701done
10702
10703 F77=$ac_ct_F77
10704fi
10705
10706
10707# Provide some information about the compiler.
Reid Spencer22177fe2005-07-12 15:24:20 +000010708echo "$as_me:10708:" \
John Criswell47fdd832003-07-14 16:52:07 +000010709 "checking for Fortran 77 compiler version" >&5
10710ac_compiler=`set X $ac_compile; echo $2`
10711{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10712 (eval $ac_compiler --version </dev/null >&5) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }
10716{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10717 (eval $ac_compiler -v </dev/null >&5) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }
10721{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10722 (eval $ac_compiler -V </dev/null >&5) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010726rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010727
10728# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010729# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010730ac_save_ext=$ac_ext
10731ac_ext=F
10732echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10733echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10734if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737 cat >conftest.$ac_ext <<_ACEOF
10738 program main
10739#ifndef __GNUC__
10740 choke me
10741#endif
10742
10743 end
10744_ACEOF
10745rm -f conftest.$ac_objext
10746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010747 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010748 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010754 { ac_try='test -z "$ac_f77_werror_flag"
10755 || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_compiler_gnu=yes
10768else
10769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010770sed 's/^/| /' conftest.$ac_ext >&5
10771
John Criswell47fdd832003-07-14 16:52:07 +000010772ac_compiler_gnu=no
10773fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010775ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10776
10777fi
10778echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10779echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10780ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010781ac_test_FFLAGS=${FFLAGS+set}
10782ac_save_FFLAGS=$FFLAGS
10783FFLAGS=
10784echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10785echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10786if test "${ac_cv_prog_f77_g+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788else
10789 FFLAGS=-g
10790cat >conftest.$ac_ext <<_ACEOF
10791 program main
10792
10793 end
10794_ACEOF
10795rm -f conftest.$ac_objext
10796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010797 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010798 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010804 { ac_try='test -z "$ac_f77_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_cv_prog_f77_g=yes
10818else
10819 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010820sed 's/^/| /' conftest.$ac_ext >&5
10821
John Criswell47fdd832003-07-14 16:52:07 +000010822ac_cv_prog_f77_g=no
10823fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010825
10826fi
10827echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10828echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10829if test "$ac_test_FFLAGS" = set; then
10830 FFLAGS=$ac_save_FFLAGS
10831elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010832 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010833 FFLAGS="-g -O2"
10834 else
10835 FFLAGS="-g"
10836 fi
10837else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010838 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010839 FFLAGS="-O2"
10840 else
10841 FFLAGS=
10842 fi
10843fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010844
10845G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010846ac_ext=c
10847ac_cpp='$CPP $CPPFLAGS'
10848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850ac_compiler_gnu=$ac_cv_c_compiler_gnu
10851
10852
10853
10854# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10855
10856# find the maximum length of command line arguments
10857echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10858echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10859if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861else
10862 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010863 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010864
10865 case $build_os in
10866 msdosdjgpp*)
10867 # On DJGPP, this test can blow up pretty badly due to problems in libc
10868 # (any single argument exceeding 2000 bytes causes a buffer overrun
10869 # during glob expansion). Even if it were fixed, the result of this
10870 # check would be larger than it should be.
10871 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10872 ;;
10873
10874 gnu*)
10875 # Under GNU Hurd, this test is not required because there is
10876 # no limit to the length of command line arguments.
10877 # Libtool will interpret -1 as no limit whatsoever
10878 lt_cv_sys_max_cmd_len=-1;
10879 ;;
10880
10881 cygwin* | mingw*)
10882 # On Win9x/ME, this test blows up -- it succeeds, but takes
10883 # about 5 minutes as the teststring grows exponentially.
10884 # Worse, since 9x/ME are not pre-emptively multitasking,
10885 # you end up with a "frozen" computer, even though with patience
10886 # the test eventually succeeds (with a max line length of 256k).
10887 # Instead, let's just punt: use the minimum linelength reported by
10888 # all of the supported platforms: 8192 (on NT/2K/XP).
10889 lt_cv_sys_max_cmd_len=8192;
10890 ;;
10891
Reid Spencer2706f8c2004-09-19 23:53:36 +000010892 amigaos*)
10893 # On AmigaOS with pdksh, this test takes hours, literally.
10894 # So we just punt and use a minimum line length of 8192.
10895 lt_cv_sys_max_cmd_len=8192;
10896 ;;
10897
10898 netbsd* | freebsd* | openbsd* | darwin* )
10899 # This has been around since 386BSD, at least. Likely further.
10900 if test -x /sbin/sysctl; then
10901 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10902 elif test -x /usr/sbin/sysctl; then
10903 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10904 else
10905 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10906 fi
10907 # And add a safety zone
10908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10909 ;;
10910
John Criswell47fdd832003-07-14 16:52:07 +000010911 *)
10912 # If test is not a shell built-in, we'll probably end up computing a
10913 # maximum length that is only half of the actual maximum length, but
10914 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010915 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10916 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10917 = "XX$teststring") >/dev/null 2>&1 &&
10918 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010919 lt_cv_sys_max_cmd_len=$new_result &&
10920 test $i != 17 # 1/2 MB should be enough
10921 do
10922 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010923 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010924 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010925 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010926 # Add a significant safety factor because C++ compilers can tack on massive
10927 # amounts of additional arguments before passing them to the linker.
10928 # It appears as though 1/2 is a usable value.
10929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10930 ;;
10931 esac
10932
10933fi
10934
10935if test -n $lt_cv_sys_max_cmd_len ; then
10936 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10937echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10938else
10939 echo "$as_me:$LINENO: result: none" >&5
10940echo "${ECHO_T}none" >&6
10941fi
10942
10943
10944
10945
10946# Check for command to grab the raw symbol name followed by C symbol from nm.
10947echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10948echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10949if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952
10953# These are sane defaults that work on at least a few old systems.
10954# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10955
10956# Character class describing NM global symbol codes.
10957symcode='[BCDEGRST]'
10958
10959# Regexp to match symbols that can be accessed directly from C.
10960sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10961
10962# Transform the above into a raw symbol and a C symbol.
10963symxfrm='\1 \2\3 \3'
10964
10965# Transform an extracted symbol line into a proper C declaration
10966lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10967
10968# Transform an extracted symbol line into symbol name and symbol address
10969lt_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'"
10970
10971# Define system-specific variables.
10972case $host_os in
10973aix*)
10974 symcode='[BCDT]'
10975 ;;
10976cygwin* | mingw* | pw32*)
10977 symcode='[ABCDGISTW]'
10978 ;;
10979hpux*) # Its linker distinguishes data from code symbols
10980 if test "$host_cpu" = ia64; then
10981 symcode='[ABCDEGRST]'
10982 fi
10983 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10984 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'"
10985 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010986linux*)
10987 if test "$host_cpu" = ia64; then
10988 symcode='[ABCDGIRSTW]'
10989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10990 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'"
10991 fi
10992 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010993irix* | nonstopux*)
10994 symcode='[BCDEGRST]'
10995 ;;
10996osf*)
10997 symcode='[BCDEGQRST]'
10998 ;;
10999solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011000 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011001 ;;
11002sysv4)
11003 symcode='[DFNSTU]'
11004 ;;
11005esac
11006
11007# Handle CRLF in mingw tool chain
11008opt_cr=
11009case $build_os in
11010mingw*)
11011 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11012 ;;
11013esac
11014
11015# If we're using GNU nm, then use its standard symbol codes.
11016case `$NM -V 2>&1` in
11017*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011018 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011019esac
11020
11021# Try without a prefix undercore, then with it.
11022for ac_symprfx in "" "_"; do
11023
11024 # Write the raw and C identifiers.
11025 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11026
11027 # Check to see that the pipe works correctly.
11028 pipe_works=no
11029
11030 rm -f conftest*
11031 cat > conftest.$ac_ext <<EOF
11032#ifdef __cplusplus
11033extern "C" {
11034#endif
11035char nm_test_var;
11036void nm_test_func(){}
11037#ifdef __cplusplus
11038}
11039#endif
11040int main(){nm_test_var='a';nm_test_func();return(0);}
11041EOF
11042
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; then
11048 # Now try to grab the symbols.
11049 nlist=conftest.nm
11050 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11051 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && test -s "$nlist"; then
11055 # Try sorting and uniquifying the output.
11056 if sort "$nlist" | uniq > "$nlist"T; then
11057 mv -f "$nlist"T "$nlist"
11058 else
11059 rm -f "$nlist"T
11060 fi
11061
11062 # Make sure that we snagged all the symbols we need.
11063 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11064 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11065 cat <<EOF > conftest.$ac_ext
11066#ifdef __cplusplus
11067extern "C" {
11068#endif
11069
11070EOF
11071 # Now generate the symbol file.
11072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11073
11074 cat <<EOF >> conftest.$ac_ext
11075#if defined (__STDC__) && __STDC__
11076# define lt_ptr_t void *
11077#else
11078# define lt_ptr_t char *
11079# define const
11080#endif
11081
11082/* The mapping between symbol names and symbols. */
11083const struct {
11084 const char *name;
11085 lt_ptr_t address;
11086}
11087lt_preloaded_symbols[] =
11088{
11089EOF
11090 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11091 cat <<\EOF >> conftest.$ac_ext
11092 {0, (lt_ptr_t) 0}
11093};
11094
11095#ifdef __cplusplus
11096}
11097#endif
11098EOF
11099 # Now try linking the two files.
11100 mv conftest.$ac_objext conftstm.$ac_objext
11101 lt_save_LIBS="$LIBS"
11102 lt_save_CFLAGS="$CFLAGS"
11103 LIBS="conftstm.$ac_objext"
11104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11110 pipe_works=yes
11111 fi
11112 LIBS="$lt_save_LIBS"
11113 CFLAGS="$lt_save_CFLAGS"
11114 else
11115 echo "cannot find nm_test_func in $nlist" >&5
11116 fi
11117 else
11118 echo "cannot find nm_test_var in $nlist" >&5
11119 fi
11120 else
11121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11122 fi
11123 else
11124 echo "$progname: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 fi
11127 rm -f conftest* conftst*
11128
11129 # Do not use the global_symbol_pipe unless it works.
11130 if test "$pipe_works" = yes; then
11131 break
11132 else
11133 lt_cv_sys_global_symbol_pipe=
11134 fi
11135done
11136
11137fi
11138
11139if test -z "$lt_cv_sys_global_symbol_pipe"; then
11140 lt_cv_sys_global_symbol_to_cdecl=
11141fi
11142if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11143 echo "$as_me:$LINENO: result: failed" >&5
11144echo "${ECHO_T}failed" >&6
11145else
11146 echo "$as_me:$LINENO: result: ok" >&5
11147echo "${ECHO_T}ok" >&6
11148fi
11149
11150echo "$as_me:$LINENO: checking for objdir" >&5
11151echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11152if test "${lt_cv_objdir+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155 rm -f .libs 2>/dev/null
11156mkdir .libs 2>/dev/null
11157if test -d .libs; then
11158 lt_cv_objdir=.libs
11159else
11160 # MS-DOS does not allow filenames that begin with a dot.
11161 lt_cv_objdir=_libs
11162fi
11163rmdir .libs 2>/dev/null
11164fi
11165echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11166echo "${ECHO_T}$lt_cv_objdir" >&6
11167objdir=$lt_cv_objdir
11168
11169
11170
11171
11172
11173case $host_os in
11174aix3*)
11175 # AIX sometimes has problems with the GCC collect2 program. For some
11176 # reason, if we set the COLLECT_NAMES environment variable, the problems
11177 # vanish in a puff of smoke.
11178 if test "X${COLLECT_NAMES+set}" != Xset; then
11179 COLLECT_NAMES=
11180 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011181 fi
11182 ;;
11183esac
11184
John Criswell47fdd832003-07-14 16:52:07 +000011185# Sed substitution that helps us do robust quoting. It backslashifies
11186# metacharacters that are still active within double-quoted strings.
11187Xsed='sed -e s/^X//'
11188sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11189
11190# Same as above, but do not quote variable references.
11191double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11192
11193# Sed substitution to delay expansion of an escaped shell variable in a
11194# double_quote_subst'ed string.
11195delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11196
11197# Sed substitution to avoid accidental globbing in evaled expressions
11198no_glob_subst='s/\*/\\\*/g'
11199
11200# Constants:
11201rm="rm -f"
11202
11203# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011204default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011205can_build_shared=yes
11206
11207# All known linkers require a `.a' archive for static linking (except M$VC,
11208# which needs '.lib').
11209libext=a
11210ltmain="$ac_aux_dir/ltmain.sh"
11211ofile="$default_ofile"
11212with_gnu_ld="$lt_cv_prog_gnu_ld"
11213
11214if test -n "$ac_tool_prefix"; then
11215 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11216set dummy ${ac_tool_prefix}ar; ac_word=$2
11217echo "$as_me:$LINENO: checking for $ac_word" >&5
11218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11219if test "${ac_cv_prog_AR+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221else
11222 if test -n "$AR"; then
11223 ac_cv_prog_AR="$AR" # Let the user override the test.
11224else
11225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226for as_dir in $PATH
11227do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 ac_cv_prog_AR="${ac_tool_prefix}ar"
11233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236done
11237done
11238
11239fi
11240fi
11241AR=$ac_cv_prog_AR
11242if test -n "$AR"; then
11243 echo "$as_me:$LINENO: result: $AR" >&5
11244echo "${ECHO_T}$AR" >&6
11245else
11246 echo "$as_me:$LINENO: result: no" >&5
11247echo "${ECHO_T}no" >&6
11248fi
11249
11250fi
11251if test -z "$ac_cv_prog_AR"; then
11252 ac_ct_AR=$AR
11253 # Extract the first word of "ar", so it can be a program name with args.
11254set dummy ar; ac_word=$2
11255echo "$as_me:$LINENO: checking for $ac_word" >&5
11256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11257if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259else
11260 if test -n "$ac_ct_AR"; then
11261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11262else
11263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264for as_dir in $PATH
11265do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270 ac_cv_prog_ac_ct_AR="ar"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 break 2
11273 fi
11274done
11275done
11276
11277 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11278fi
11279fi
11280ac_ct_AR=$ac_cv_prog_ac_ct_AR
11281if test -n "$ac_ct_AR"; then
11282 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11283echo "${ECHO_T}$ac_ct_AR" >&6
11284else
11285 echo "$as_me:$LINENO: result: no" >&5
11286echo "${ECHO_T}no" >&6
11287fi
11288
11289 AR=$ac_ct_AR
11290else
11291 AR="$ac_cv_prog_AR"
11292fi
11293
John Criswell7a73b802003-06-30 21:59:07 +000011294if test -n "$ac_tool_prefix"; then
11295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11296set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11297echo "$as_me:$LINENO: checking for $ac_word" >&5
11298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11299if test "${ac_cv_prog_RANLIB+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302 if test -n "$RANLIB"; then
11303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11304else
11305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306for as_dir in $PATH
11307do
11308 IFS=$as_save_IFS
11309 test -z "$as_dir" && as_dir=.
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11314 break 2
11315 fi
11316done
11317done
11318
11319fi
11320fi
11321RANLIB=$ac_cv_prog_RANLIB
11322if test -n "$RANLIB"; then
11323 echo "$as_me:$LINENO: result: $RANLIB" >&5
11324echo "${ECHO_T}$RANLIB" >&6
11325else
11326 echo "$as_me:$LINENO: result: no" >&5
11327echo "${ECHO_T}no" >&6
11328fi
11329
11330fi
11331if test -z "$ac_cv_prog_RANLIB"; then
11332 ac_ct_RANLIB=$RANLIB
11333 # Extract the first word of "ranlib", so it can be a program name with args.
11334set dummy ranlib; ac_word=$2
11335echo "$as_me:$LINENO: checking for $ac_word" >&5
11336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11337if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 if test -n "$ac_ct_RANLIB"; then
11341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_prog_ac_ct_RANLIB="ranlib"
11351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354done
11355done
11356
11357 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11358fi
11359fi
11360ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11361if test -n "$ac_ct_RANLIB"; then
11362 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11363echo "${ECHO_T}$ac_ct_RANLIB" >&6
11364else
11365 echo "$as_me:$LINENO: result: no" >&5
11366echo "${ECHO_T}no" >&6
11367fi
11368
11369 RANLIB=$ac_ct_RANLIB
11370else
11371 RANLIB="$ac_cv_prog_RANLIB"
11372fi
11373
11374if test -n "$ac_tool_prefix"; then
11375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11376set dummy ${ac_tool_prefix}strip; ac_word=$2
11377echo "$as_me:$LINENO: checking for $ac_word" >&5
11378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11379if test "${ac_cv_prog_STRIP+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382 if test -n "$STRIP"; then
11383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11384else
11385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386for as_dir in $PATH
11387do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11395 fi
11396done
11397done
11398
11399fi
11400fi
11401STRIP=$ac_cv_prog_STRIP
11402if test -n "$STRIP"; then
11403 echo "$as_me:$LINENO: result: $STRIP" >&5
11404echo "${ECHO_T}$STRIP" >&6
11405else
11406 echo "$as_me:$LINENO: result: no" >&5
11407echo "${ECHO_T}no" >&6
11408fi
11409
11410fi
11411if test -z "$ac_cv_prog_STRIP"; then
11412 ac_ct_STRIP=$STRIP
11413 # Extract the first word of "strip", so it can be a program name with args.
11414set dummy strip; ac_word=$2
11415echo "$as_me:$LINENO: checking for $ac_word" >&5
11416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11417if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420 if test -n "$ac_ct_STRIP"; then
11421 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11422else
11423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424for as_dir in $PATH
11425do
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_prog_ac_ct_STRIP="strip"
11431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11433 fi
11434done
11435done
11436
11437 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11438fi
11439fi
11440ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11441if test -n "$ac_ct_STRIP"; then
11442 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11443echo "${ECHO_T}$ac_ct_STRIP" >&6
11444else
11445 echo "$as_me:$LINENO: result: no" >&5
11446echo "${ECHO_T}no" >&6
11447fi
11448
11449 STRIP=$ac_ct_STRIP
11450else
11451 STRIP="$ac_cv_prog_STRIP"
11452fi
11453
11454
John Criswell7a73b802003-06-30 21:59:07 +000011455old_CC="$CC"
11456old_CFLAGS="$CFLAGS"
11457
11458# Set sane defaults for various variables
11459test -z "$AR" && AR=ar
11460test -z "$AR_FLAGS" && AR_FLAGS=cru
11461test -z "$AS" && AS=as
11462test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011463test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011464test -z "$DLLTOOL" && DLLTOOL=dlltool
11465test -z "$LD" && LD=ld
11466test -z "$LN_S" && LN_S="ln -s"
11467test -z "$MAGIC_CMD" && MAGIC_CMD=file
11468test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011469test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011470test -z "$OBJDUMP" && OBJDUMP=objdump
11471test -z "$RANLIB" && RANLIB=:
11472test -z "$STRIP" && STRIP=:
11473test -z "$ac_objext" && ac_objext=o
11474
John Criswell7a73b802003-06-30 21:59:07 +000011475# Determine commands to create old-style static archives.
11476old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11477old_postinstall_cmds='chmod 644 $oldlib'
11478old_postuninstall_cmds=
11479
11480if test -n "$RANLIB"; then
11481 case $host_os in
11482 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011483 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011484 ;;
11485 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011486 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011487 ;;
11488 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011489 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011490fi
11491
Reid Spencer2706f8c2004-09-19 23:53:36 +000011492cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11493
John Criswell47fdd832003-07-14 16:52:07 +000011494# Only perform the check for file, if the check method requires it
11495case $deplibs_check_method in
11496file_magic*)
11497 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11498 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11499echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11500if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011502else
John Criswell47fdd832003-07-14 16:52:07 +000011503 case $MAGIC_CMD in
11504[\\/*] | ?:[\\/]*)
11505 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11506 ;;
11507*)
11508 lt_save_MAGIC_CMD="$MAGIC_CMD"
11509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11511 for ac_dir in $ac_dummy; do
11512 IFS="$lt_save_ifs"
11513 test -z "$ac_dir" && ac_dir=.
11514 if test -f $ac_dir/${ac_tool_prefix}file; then
11515 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11516 if test -n "$file_magic_test_file"; then
11517 case $deplibs_check_method in
11518 "file_magic "*)
11519 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11522 $EGREP "$file_magic_regex" > /dev/null; then
11523 :
11524 else
11525 cat <<EOF 1>&2
11526
11527*** Warning: the command libtool uses to detect shared libraries,
11528*** $file_magic_cmd, produces output that libtool cannot recognize.
11529*** The result is that libtool may fail to recognize shared libraries
11530*** as such. This will affect the creation of libtool libraries that
11531*** depend on shared libraries, but programs linked with such libtool
11532*** libraries will work regardless of this problem. Nevertheless, you
11533*** may want to report the problem to your system manager and/or to
11534*** bug-libtool@gnu.org
11535
11536EOF
11537 fi ;;
11538 esac
11539 fi
11540 break
11541 fi
11542 done
11543 IFS="$lt_save_ifs"
11544 MAGIC_CMD="$lt_save_MAGIC_CMD"
11545 ;;
11546esac
John Criswell7a73b802003-06-30 21:59:07 +000011547fi
John Criswell7a73b802003-06-30 21:59:07 +000011548
John Criswell47fdd832003-07-14 16:52:07 +000011549MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11550if test -n "$MAGIC_CMD"; then
11551 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11552echo "${ECHO_T}$MAGIC_CMD" >&6
11553else
11554 echo "$as_me:$LINENO: result: no" >&5
11555echo "${ECHO_T}no" >&6
11556fi
John Criswell7a73b802003-06-30 21:59:07 +000011557
John Criswell47fdd832003-07-14 16:52:07 +000011558if test -z "$lt_cv_path_MAGIC_CMD"; then
11559 if test -n "$ac_tool_prefix"; then
11560 echo "$as_me:$LINENO: checking for file" >&5
11561echo $ECHO_N "checking for file... $ECHO_C" >&6
11562if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 case $MAGIC_CMD in
11566[\\/*] | ?:[\\/]*)
11567 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11568 ;;
11569*)
11570 lt_save_MAGIC_CMD="$MAGIC_CMD"
11571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11573 for ac_dir in $ac_dummy; do
11574 IFS="$lt_save_ifs"
11575 test -z "$ac_dir" && ac_dir=.
11576 if test -f $ac_dir/file; then
11577 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11578 if test -n "$file_magic_test_file"; then
11579 case $deplibs_check_method in
11580 "file_magic "*)
11581 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11584 $EGREP "$file_magic_regex" > /dev/null; then
11585 :
11586 else
11587 cat <<EOF 1>&2
11588
11589*** Warning: the command libtool uses to detect shared libraries,
11590*** $file_magic_cmd, produces output that libtool cannot recognize.
11591*** The result is that libtool may fail to recognize shared libraries
11592*** as such. This will affect the creation of libtool libraries that
11593*** depend on shared libraries, but programs linked with such libtool
11594*** libraries will work regardless of this problem. Nevertheless, you
11595*** may want to report the problem to your system manager and/or to
11596*** bug-libtool@gnu.org
11597
11598EOF
11599 fi ;;
11600 esac
11601 fi
11602 break
11603 fi
11604 done
11605 IFS="$lt_save_ifs"
11606 MAGIC_CMD="$lt_save_MAGIC_CMD"
11607 ;;
11608esac
11609fi
11610
11611MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11612if test -n "$MAGIC_CMD"; then
11613 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11614echo "${ECHO_T}$MAGIC_CMD" >&6
11615else
11616 echo "$as_me:$LINENO: result: no" >&5
11617echo "${ECHO_T}no" >&6
11618fi
11619
11620 else
11621 MAGIC_CMD=:
11622 fi
11623fi
11624
11625 fi
11626 ;;
11627esac
11628
Reid Spencer17795972004-11-18 09:47:37 +000011629enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011630enable_win32_dll=no
11631
11632# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11633if test "${enable_libtool_lock+set}" = set; then
11634 enableval="$enable_libtool_lock"
11635
11636fi;
11637test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11638
John Criswell7a73b802003-06-30 21:59:07 +000011639
11640# Check whether --with-pic or --without-pic was given.
11641if test "${with_pic+set}" = set; then
11642 withval="$with_pic"
11643 pic_mode="$withval"
11644else
11645 pic_mode=default
11646fi;
11647test -z "$pic_mode" && pic_mode=default
11648
John Criswell47fdd832003-07-14 16:52:07 +000011649# Use C for the default configuration in the libtool script
11650tagname=
11651lt_save_CC="$CC"
11652ac_ext=c
11653ac_cpp='$CPP $CPPFLAGS'
11654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657
11658
11659# Source file extension for C test sources.
11660ac_ext=c
11661
11662# Object file extension for compiled C test sources.
11663objext=o
11664objext=$objext
11665
11666# Code to be used in simple compile tests
11667lt_simple_compile_test_code="int some_variable = 0;\n"
11668
11669# Code to be used in simple link tests
11670lt_simple_link_test_code='int main(){return(0);}\n'
11671
11672
11673# If no C compiler was specified, use CC.
11674LTCC=${LTCC-"$CC"}
11675
11676# Allow CC to be a program name with arguments.
11677compiler=$CC
11678
11679
11680#
11681# Check for any special shared library compilation flags.
11682#
11683lt_prog_cc_shlib=
11684if test "$GCC" = no; then
11685 case $host_os in
11686 sco3.2v5*)
11687 lt_prog_cc_shlib='-belf'
11688 ;;
11689 esac
11690fi
11691if test -n "$lt_prog_cc_shlib"; then
11692 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11693echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11694 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11695 else
11696 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11697echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11698 lt_cv_prog_cc_can_build_shared=no
11699 fi
11700fi
11701
11702
11703#
11704# Check to make sure the static flag actually works.
11705#
11706echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11707echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11708if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
John Criswell47fdd832003-07-14 16:52:07 +000011711 lt_prog_compiler_static_works=no
11712 save_LDFLAGS="$LDFLAGS"
11713 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11714 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11716 # The compiler can only warn and ignore the option if not recognized
11717 # So say no if there are warnings
11718 if test -s conftest.err; then
11719 # Append any errors to the config.log.
11720 cat conftest.err 1>&5
11721 else
11722 lt_prog_compiler_static_works=yes
11723 fi
11724 fi
11725 $rm conftest*
11726 LDFLAGS="$save_LDFLAGS"
11727
11728fi
11729echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11730echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11731
11732if test x"$lt_prog_compiler_static_works" = xyes; then
11733 :
11734else
11735 lt_prog_compiler_static=
11736fi
11737
11738
11739
John Criswell47fdd832003-07-14 16:52:07 +000011740
11741lt_prog_compiler_no_builtin_flag=
11742
11743if test "$GCC" = yes; then
11744 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11745
Reid Spencer2706f8c2004-09-19 23:53:36 +000011746
11747echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011748echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11749if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751else
11752 lt_cv_prog_compiler_rtti_exceptions=no
11753 ac_outfile=conftest.$ac_objext
11754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11755 lt_compiler_flag="-fno-rtti -fno-exceptions"
11756 # Insert the option either (1) after the last *FLAGS variable, or
11757 # (2) before a word containing "conftest.", or (3) at the end.
11758 # Note that $ac_compile itself does not contain backslashes and begins
11759 # with a dollar sign (not a hyphen), so the echo should work correctly.
11760 # The option is referenced via a variable to avoid confusing sed.
11761 lt_compile=`echo "$ac_compile" | $SED \
11762 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11764 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000011765 (eval echo "\"\$as_me:11765: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011766 (eval "$lt_compile" 2>conftest.err)
11767 ac_status=$?
11768 cat conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000011769 echo "$as_me:11769: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011770 if (exit $ac_status) && test -s "$ac_outfile"; then
11771 # The compiler can only warn and ignore the option if not recognized
11772 # So say no if there are warnings
11773 if test ! -s conftest.err; then
11774 lt_cv_prog_compiler_rtti_exceptions=yes
11775 fi
11776 fi
11777 $rm conftest*
11778
11779fi
11780echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11781echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11782
11783if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11784 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11785else
11786 :
11787fi
11788
11789fi
11790
11791lt_prog_compiler_wl=
11792lt_prog_compiler_pic=
11793lt_prog_compiler_static=
11794
11795echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11796echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011797
11798 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011799 lt_prog_compiler_wl='-Wl,'
11800 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011801
11802 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011803 aix*)
11804 # All AIX code is PIC.
11805 if test "$host_cpu" = ia64; then
11806 # AIX 5 now supports IA64 processor
11807 lt_prog_compiler_static='-Bstatic'
11808 fi
John Criswell7a73b802003-06-30 21:59:07 +000011809 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011810
John Criswell7a73b802003-06-30 21:59:07 +000011811 amigaos*)
11812 # FIXME: we need at least 68020 code to build shared libraries, but
11813 # adding the `-m68020' flag to GCC prevents building anything better,
11814 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011815 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011816 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011817
11818 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011819 # PIC is the default for these OSes.
11820 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011821
11822 mingw* | pw32* | os2*)
11823 # This hack is so that the source file can tell whether it is being
11824 # built for inclusion in a dll (and should export symbols for example).
11825 lt_prog_compiler_pic='-DDLL_EXPORT'
11826 ;;
11827
John Criswell7a73b802003-06-30 21:59:07 +000011828 darwin* | rhapsody*)
11829 # PIC is the default on this platform
11830 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011831 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011832 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011833
11834 msdosdjgpp*)
11835 # Just because we use GCC doesn't mean we suddenly get shared libraries
11836 # on systems that don't support them.
11837 lt_prog_compiler_can_build_shared=no
11838 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011839 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011840
John Criswell7a73b802003-06-30 21:59:07 +000011841 sysv4*MP*)
11842 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011843 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011844 fi
11845 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011846
11847 hpux*)
11848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11849 # not for PA HP-UX.
11850 case "$host_cpu" in
11851 hppa*64*|ia64*)
11852 # +Z the default
11853 ;;
11854 *)
11855 lt_prog_compiler_pic='-fPIC'
11856 ;;
11857 esac
11858 ;;
11859
John Criswell7a73b802003-06-30 21:59:07 +000011860 *)
John Criswell47fdd832003-07-14 16:52:07 +000011861 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011862 ;;
11863 esac
11864 else
John Criswell47fdd832003-07-14 16:52:07 +000011865 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011866 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011867 aix*)
11868 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011869 if test "$host_cpu" = ia64; then
11870 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011871 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011872 else
John Criswell47fdd832003-07-14 16:52:07 +000011873 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011874 fi
11875 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011876 darwin*)
11877 # PIC is the default on this platform
11878 # Common symbols not allowed in MH_DYLIB files
11879 case "$cc_basename" in
11880 xlc*)
11881 lt_prog_compiler_pic='-qnocommon'
11882 lt_prog_compiler_wl='-Wl,'
11883 ;;
11884 esac
11885 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011886
John Criswell47fdd832003-07-14 16:52:07 +000011887 mingw* | pw32* | os2*)
11888 # This hack is so that the source file can tell whether it is being
11889 # built for inclusion in a dll (and should export symbols for example).
11890 lt_prog_compiler_pic='-DDLL_EXPORT'
11891 ;;
11892
John Criswell7a73b802003-06-30 21:59:07 +000011893 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011894 lt_prog_compiler_wl='-Wl,'
11895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11896 # not for PA HP-UX.
11897 case "$host_cpu" in
11898 hppa*64*|ia64*)
11899 # +Z the default
11900 ;;
11901 *)
11902 lt_prog_compiler_pic='+Z'
11903 ;;
11904 esac
11905 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11906 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011907 ;;
11908
John Criswell47fdd832003-07-14 16:52:07 +000011909 irix5* | irix6* | nonstopux*)
11910 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011911 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011912 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011913 ;;
11914
11915 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011916 lt_prog_compiler_pic='-KPIC'
11917 lt_prog_compiler_static='-Bstatic'
11918 ;;
11919
11920 linux*)
11921 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011922 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011923 lt_prog_compiler_wl='-Wl,'
11924 lt_prog_compiler_pic='-KPIC'
11925 lt_prog_compiler_static='-static'
11926 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011927 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011928 lt_prog_compiler_wl='-Wl,'
11929 # All Alpha code is PIC.
11930 lt_prog_compiler_static='-non_shared'
11931 ;;
11932 esac
John Criswell7a73b802003-06-30 21:59:07 +000011933 ;;
11934
11935 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011936 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011937 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011938 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011939 ;;
11940
11941 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011942 lt_prog_compiler_pic='-Kpic'
11943 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011944 ;;
11945
11946 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011947 lt_prog_compiler_wl='-Wl,'
11948 lt_prog_compiler_pic='-KPIC'
11949 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011950 ;;
11951
11952 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011953 lt_prog_compiler_wl='-Qoption ld '
11954 lt_prog_compiler_pic='-PIC'
11955 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011956 ;;
11957
11958 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011959 lt_prog_compiler_wl='-Wl,'
11960 lt_prog_compiler_pic='-KPIC'
11961 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011962 ;;
11963
11964 sysv4*MP*)
11965 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011966 lt_prog_compiler_pic='-Kconform_pic'
11967 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011968 fi
11969 ;;
11970
John Criswell47fdd832003-07-14 16:52:07 +000011971 uts4*)
11972 lt_prog_compiler_pic='-pic'
11973 lt_prog_compiler_static='-Bstatic'
11974 ;;
11975
John Criswell7a73b802003-06-30 21:59:07 +000011976 *)
John Criswell47fdd832003-07-14 16:52:07 +000011977 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011978 ;;
11979 esac
11980 fi
11981
John Criswell47fdd832003-07-14 16:52:07 +000011982echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11983echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011984
John Criswell47fdd832003-07-14 16:52:07 +000011985#
11986# Check to make sure the PIC flag actually works.
11987#
11988if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011989
11990echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011991echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11992if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994else
John Criswell47fdd832003-07-14 16:52:07 +000011995 lt_prog_compiler_pic_works=no
11996 ac_outfile=conftest.$ac_objext
11997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11998 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11999 # Insert the option either (1) after the last *FLAGS variable, or
12000 # (2) before a word containing "conftest.", or (3) at the end.
12001 # Note that $ac_compile itself does not contain backslashes and begins
12002 # with a dollar sign (not a hyphen), so the echo should work correctly.
12003 # The option is referenced via a variable to avoid confusing sed.
12004 lt_compile=`echo "$ac_compile" | $SED \
12005 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12007 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000012008 (eval echo "\"\$as_me:12008: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012009 (eval "$lt_compile" 2>conftest.err)
12010 ac_status=$?
12011 cat conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000012012 echo "$as_me:12012: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012013 if (exit $ac_status) && test -s "$ac_outfile"; then
12014 # The compiler can only warn and ignore the option if not recognized
12015 # So say no if there are warnings
12016 if test ! -s conftest.err; then
12017 lt_prog_compiler_pic_works=yes
12018 fi
12019 fi
12020 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012021
John Criswell47fdd832003-07-14 16:52:07 +000012022fi
12023echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12024echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012025
John Criswell47fdd832003-07-14 16:52:07 +000012026if test x"$lt_prog_compiler_pic_works" = xyes; then
12027 case $lt_prog_compiler_pic in
12028 "" | " "*) ;;
12029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12030 esac
John Criswell7a73b802003-06-30 21:59:07 +000012031else
John Criswell47fdd832003-07-14 16:52:07 +000012032 lt_prog_compiler_pic=
12033 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012034fi
12035
John Criswell7a73b802003-06-30 21:59:07 +000012036fi
John Criswell47fdd832003-07-14 16:52:07 +000012037case "$host_os" in
12038 # For platforms which do not support PIC, -DPIC is meaningless:
12039 *djgpp*)
12040 lt_prog_compiler_pic=
12041 ;;
12042 *)
12043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12044 ;;
12045esac
John Criswell7a73b802003-06-30 21:59:07 +000012046
John Criswell7a73b802003-06-30 21:59:07 +000012047echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12048echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012049if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051else
John Criswell47fdd832003-07-14 16:52:07 +000012052 lt_cv_prog_compiler_c_o=no
12053 $rm -r conftest 2>/dev/null
12054 mkdir conftest
12055 cd conftest
12056 mkdir out
12057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012058
John Criswell47fdd832003-07-14 16:52:07 +000012059 lt_compiler_flag="-o out/conftest2.$ac_objext"
12060 # Insert the option either (1) after the last *FLAGS variable, or
12061 # (2) before a word containing "conftest.", or (3) at the end.
12062 # Note that $ac_compile itself does not contain backslashes and begins
12063 # with a dollar sign (not a hyphen), so the echo should work correctly.
12064 lt_compile=`echo "$ac_compile" | $SED \
12065 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12067 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000012068 (eval echo "\"\$as_me:12068: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012069 (eval "$lt_compile" 2>out/conftest.err)
12070 ac_status=$?
12071 cat out/conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000012072 echo "$as_me:12072: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12074 then
12075 # The compiler can only warn and ignore the option if not recognized
12076 # So say no if there are warnings
12077 if test ! -s out/conftest.err; then
12078 lt_cv_prog_compiler_c_o=yes
12079 fi
12080 fi
12081 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012082 $rm conftest*
12083 # SGI C++ compiler will create directory out/ii_files/ for
12084 # template instantiation
12085 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12086 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012087 cd ..
12088 rmdir conftest
12089 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012090
12091fi
John Criswell47fdd832003-07-14 16:52:07 +000012092echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12093echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012094
John Criswell7a73b802003-06-30 21:59:07 +000012095
John Criswell7a73b802003-06-30 21:59:07 +000012096hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012097if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012098 # do not overwrite the value of need_locks provided by the user
12099 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12100echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12101 hard_links=yes
12102 $rm conftest*
12103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12104 touch conftest.a
12105 ln conftest.a conftest.b 2>&5 || hard_links=no
12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107 echo "$as_me:$LINENO: result: $hard_links" >&5
12108echo "${ECHO_T}$hard_links" >&6
12109 if test "$hard_links" = no; then
12110 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12111echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12112 need_locks=warn
12113 fi
12114else
12115 need_locks=no
12116fi
John Criswell7a73b802003-06-30 21:59:07 +000012117
John Criswell47fdd832003-07-14 16:52:07 +000012118echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12119echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12120
12121 runpath_var=
12122 allow_undefined_flag=
12123 enable_shared_with_static_runtimes=no
12124 archive_cmds=
12125 archive_expsym_cmds=
12126 old_archive_From_new_cmds=
12127 old_archive_from_expsyms_cmds=
12128 export_dynamic_flag_spec=
12129 whole_archive_flag_spec=
12130 thread_safe_flag_spec=
12131 hardcode_libdir_flag_spec=
12132 hardcode_libdir_flag_spec_ld=
12133 hardcode_libdir_separator=
12134 hardcode_direct=no
12135 hardcode_minus_L=no
12136 hardcode_shlibpath_var=unsupported
12137 link_all_deplibs=unknown
12138 hardcode_automatic=no
12139 module_cmds=
12140 module_expsym_cmds=
12141 always_export_symbols=no
12142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12143 # include_expsyms should be a list of space-separated symbols to be *always*
12144 # included in the symbol list
12145 include_expsyms=
12146 # exclude_expsyms can be an extended regexp of symbols to exclude
12147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12149 # as well as any symbol that contains `d'.
12150 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152 # platforms (ab)use it in PIC code, but their linkers get confused if
12153 # the symbol is explicitly referenced. Since portable code cannot
12154 # rely on this symbol name, it's probably fine to never include it in
12155 # preloaded symbol tables.
12156 extract_expsyms_cmds=
12157
12158 case $host_os in
12159 cygwin* | mingw* | pw32*)
12160 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12161 # When not using gcc, we currently assume that we are using
12162 # Microsoft Visual C++.
12163 if test "$GCC" != yes; then
12164 with_gnu_ld=no
12165 fi
12166 ;;
12167 openbsd*)
12168 with_gnu_ld=no
12169 ;;
12170 esac
12171
12172 ld_shlibs=yes
12173 if test "$with_gnu_ld" = yes; then
12174 # If archive_cmds runs LD, not CC, wlarc should be empty
12175 wlarc='${wl}'
12176
12177 # See if GNU ld supports shared libraries.
12178 case $host_os in
12179 aix3* | aix4* | aix5*)
12180 # On AIX/PPC, the GNU linker is very broken
12181 if test "$host_cpu" != ia64; then
12182 ld_shlibs=no
12183 cat <<EOF 1>&2
12184
12185*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12186*** to be unable to reliably create shared libraries on AIX.
12187*** Therefore, libtool is disabling shared libraries support. If you
12188*** really care for shared libraries, you may want to modify your PATH
12189*** so that a non-GNU linker is found, and then restart.
12190
12191EOF
12192 fi
12193 ;;
12194
12195 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012196 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 +000012197 hardcode_libdir_flag_spec='-L$libdir'
12198 hardcode_minus_L=yes
12199
12200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12201 # that the semantics of dynamic libraries on AmigaOS, at least up
12202 # to version 4, is to share data among multiple programs linked
12203 # with the same dynamic library. Since this doesn't match the
12204 # behavior of shared libraries on other platforms, we can't use
12205 # them.
12206 ld_shlibs=no
12207 ;;
12208
12209 beos*)
12210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12211 allow_undefined_flag=unsupported
12212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12213 # support --undefined. This deserves some investigation. FIXME
12214 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12215 else
12216 ld_shlibs=no
12217 fi
12218 ;;
12219
12220 cygwin* | mingw* | pw32*)
12221 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12222 # as there is no search path for DLLs.
12223 hardcode_libdir_flag_spec='-L$libdir'
12224 allow_undefined_flag=unsupported
12225 always_export_symbols=no
12226 enable_shared_with_static_runtimes=yes
12227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12228
12229 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12231 # If the export-symbols file already is a .def file (1st line
12232 # is EXPORTS), use it as is; otherwise, prepend...
12233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12234 cp $export_symbols $output_objdir/$soname.def;
12235 else
12236 echo EXPORTS > $output_objdir/$soname.def;
12237 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012238 fi~
12239 $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 +000012240 else
12241 ld_shlibs=no
12242 fi
12243 ;;
12244
12245 netbsd*)
12246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12247 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12248 wlarc=
12249 else
12250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12252 fi
12253 ;;
12254
12255 solaris* | sysv5*)
12256 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12257 ld_shlibs=no
12258 cat <<EOF 1>&2
12259
12260*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12261*** create shared libraries on Solaris systems. Therefore, libtool
12262*** is disabling shared libraries support. We urge you to upgrade GNU
12263*** binutils to release 2.9.1 or newer. Another option is to modify
12264*** your PATH or compiler configuration so that the native linker is
12265*** used, and then restart.
12266
12267EOF
12268 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12271 else
12272 ld_shlibs=no
12273 fi
12274 ;;
12275
12276 sunos4*)
12277 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12278 wlarc=
12279 hardcode_direct=yes
12280 hardcode_shlibpath_var=no
12281 ;;
12282
Reid Spencer2706f8c2004-09-19 23:53:36 +000012283 linux*)
12284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12285 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286 archive_cmds="$tmp_archive_cmds"
12287 supports_anon_versioning=no
12288 case `$LD -v 2>/dev/null` in
12289 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12290 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12291 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12292 *\ 2.11.*) ;; # other 2.11 versions
12293 *) supports_anon_versioning=yes ;;
12294 esac
12295 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012296 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12297cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12298$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012299 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12300 else
12301 archive_expsym_cmds="$tmp_archive_cmds"
12302 fi
12303 else
12304 ld_shlibs=no
12305 fi
12306 ;;
12307
John Criswell47fdd832003-07-14 16:52:07 +000012308 *)
12309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12312 else
12313 ld_shlibs=no
12314 fi
12315 ;;
12316 esac
12317
12318 if test "$ld_shlibs" = yes; then
12319 runpath_var=LD_RUN_PATH
12320 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12321 export_dynamic_flag_spec='${wl}--export-dynamic'
12322 # ancient GNU ld didn't support --whole-archive et. al.
12323 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12324 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12325 else
12326 whole_archive_flag_spec=
12327 fi
12328 fi
12329 else
12330 # PORTME fill in a description of your system's linker (not GNU ld)
12331 case $host_os in
12332 aix3*)
12333 allow_undefined_flag=unsupported
12334 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012335 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 +000012336 # Note: this linker hardcodes the directories in LIBPATH if there
12337 # are no directories specified by -L.
12338 hardcode_minus_L=yes
12339 if test "$GCC" = yes && test -z "$link_static_flag"; then
12340 # Neither direct hardcoding nor static linking is supported with a
12341 # broken collect2.
12342 hardcode_direct=unsupported
12343 fi
12344 ;;
12345
12346 aix4* | aix5*)
12347 if test "$host_cpu" = ia64; then
12348 # On IA64, the linker does run time linking by default, so we don't
12349 # have to do anything special.
12350 aix_use_runtimelinking=no
12351 exp_sym_flag='-Bexport'
12352 no_entry_flag=""
12353 else
12354 # If we're using GNU nm, then we don't want the "-C" option.
12355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12356 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12357 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'
12358 else
12359 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'
12360 fi
12361 aix_use_runtimelinking=no
12362
12363 # Test if we are trying to use run time linking or normal
12364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12365 # need to do runtime linking.
12366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12367 for ld_flag in $LDFLAGS; do
12368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12369 aix_use_runtimelinking=yes
12370 break
12371 fi
12372 done
12373 esac
12374
12375 exp_sym_flag='-bexport'
12376 no_entry_flag='-bnoentry'
12377 fi
12378
12379 # When large executables or shared objects are built, AIX ld can
12380 # have problems creating the table of contents. If linking a library
12381 # or program results in "error TOC overflow" add -mminimal-toc to
12382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12384
12385 archive_cmds=''
12386 hardcode_direct=yes
12387 hardcode_libdir_separator=':'
12388 link_all_deplibs=yes
12389
12390 if test "$GCC" = yes; then
12391 case $host_os in aix4.012|aix4.012.*)
12392 # We only want to do this on AIX 4.2 and lower, the check
12393 # below for broken collect2 doesn't work under 4.3+
12394 collect2name=`${CC} -print-prog-name=collect2`
12395 if test -f "$collect2name" && \
12396 strings "$collect2name" | grep resolve_lib_name >/dev/null
12397 then
12398 # We have reworked collect2
12399 hardcode_direct=yes
12400 else
12401 # We have old collect2
12402 hardcode_direct=unsupported
12403 # It fails to find uninstalled libraries when the uninstalled
12404 # path is not listed in the libpath. Setting hardcode_minus_L
12405 # to unsupported forces relinking
12406 hardcode_minus_L=yes
12407 hardcode_libdir_flag_spec='-L$libdir'
12408 hardcode_libdir_separator=
12409 fi
12410 esac
12411 shared_flag='-shared'
12412 else
12413 # not using gcc
12414 if test "$host_cpu" = ia64; then
12415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12416 # chokes on -Wl,-G. The following line is correct:
12417 shared_flag='-G'
12418 else
12419 if test "$aix_use_runtimelinking" = yes; then
12420 shared_flag='${wl}-G'
12421 else
12422 shared_flag='${wl}-bM:SRE'
12423 fi
12424 fi
12425 fi
12426
12427 # It seems that -bexpall does not export symbols beginning with
12428 # underscore (_), so it is better to generate a list of symbols to export.
12429 always_export_symbols=yes
12430 if test "$aix_use_runtimelinking" = yes; then
12431 # Warning - without using the other runtime loading flags (-brtl),
12432 # -berok will link without error, but may produce a broken library.
12433 allow_undefined_flag='-berok'
12434 # Determine the default libpath from the value encoded in an empty executable.
12435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012436/* confdefs.h. */
12437_ACEOF
12438cat confdefs.h >>conftest.$ac_ext
12439cat >>conftest.$ac_ext <<_ACEOF
12440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012441
John Criswell7a73b802003-06-30 21:59:07 +000012442int
12443main ()
12444{
John Criswell47fdd832003-07-14 16:52:07 +000012445
John Criswell7a73b802003-06-30 21:59:07 +000012446 ;
12447 return 0;
12448}
12449_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012450rm -f conftest.$ac_objext conftest$ac_exeext
12451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012452 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012454 grep -v '^ *+' conftest.er1 >conftest.err
12455 rm -f conftest.er1
12456 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012459 { ac_try='test -z "$ac_c_werror_flag"
12460 || test ! -s conftest.err'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; } &&
12466 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012472
John Criswell47fdd832003-07-14 16:52:07 +000012473aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12474}'`
12475# Check for a 64-bit object if we didn't find anything.
12476if 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; }
12477}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012478else
12479 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012480sed 's/^/| /' conftest.$ac_ext >&5
12481
John Criswell7a73b802003-06-30 21:59:07 +000012482fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012483rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012485if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012486
John Criswell47fdd832003-07-14 16:52:07 +000012487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12488 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"
12489 else
12490 if test "$host_cpu" = ia64; then
12491 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12492 allow_undefined_flag="-z nodefs"
12493 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"
12494 else
12495 # Determine the default libpath from the value encoded in an empty executable.
12496 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012502
John Criswell47fdd832003-07-14 16:52:07 +000012503int
12504main ()
12505{
John Criswell7a73b802003-06-30 21:59:07 +000012506
John Criswell47fdd832003-07-14 16:52:07 +000012507 ;
12508 return 0;
12509}
12510_ACEOF
12511rm -f conftest.$ac_objext conftest$ac_exeext
12512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012513 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012520 { ac_try='test -z "$ac_c_werror_flag"
12521 || test ! -s conftest.err'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012533
John Criswell47fdd832003-07-14 16:52:07 +000012534aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12535}'`
12536# Check for a 64-bit object if we didn't find anything.
12537if 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; }
12538}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012539else
John Criswell47fdd832003-07-14 16:52:07 +000012540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012541sed 's/^/| /' conftest.$ac_ext >&5
12542
John Criswell47fdd832003-07-14 16:52:07 +000012543fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012544rm -f conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012546if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012547
John Criswell47fdd832003-07-14 16:52:07 +000012548 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12549 # Warning - without using the other run time loading flags,
12550 # -berok will link without error, but may produce a broken library.
12551 no_undefined_flag=' ${wl}-bernotok'
12552 allow_undefined_flag=' ${wl}-berok'
12553 # -bexpall does not export symbols beginning with underscore (_)
12554 always_export_symbols=yes
12555 # Exported symbols can be pulled into shared objects from archives
12556 whole_archive_flag_spec=' '
12557 archive_cmds_need_lc=yes
12558 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012559 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 +000012560 fi
12561 fi
John Criswell7a73b802003-06-30 21:59:07 +000012562 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012563
12564 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012565 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 +000012566 hardcode_libdir_flag_spec='-L$libdir'
12567 hardcode_minus_L=yes
12568 # see comment about different semantics on the GNU ld section
12569 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012570 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012571
Reid Spencer2706f8c2004-09-19 23:53:36 +000012572 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012573 export_dynamic_flag_spec=-rdynamic
12574 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012575
John Criswell47fdd832003-07-14 16:52:07 +000012576 cygwin* | mingw* | pw32*)
12577 # When not using gcc, we currently assume that we are using
12578 # Microsoft Visual C++.
12579 # hardcode_libdir_flag_spec is actually meaningless, as there is
12580 # no search path for DLLs.
12581 hardcode_libdir_flag_spec=' '
12582 allow_undefined_flag=unsupported
12583 # Tell ltmain to make .lib files, not .a files.
12584 libext=lib
12585 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012586 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012587 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012588 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012589 # The linker will automatically build a .lib file if we build a DLL.
12590 old_archive_From_new_cmds='true'
12591 # FIXME: Should let the user specify the lib program.
12592 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12593 fix_srcfile_path='`cygpath -w "$srcfile"`'
12594 enable_shared_with_static_runtimes=yes
12595 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012596
John Criswell47fdd832003-07-14 16:52:07 +000012597 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012598 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012599 rhapsody* | darwin1.[012])
12600 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12601 ;;
12602 *) # Darwin 1.3 on
12603 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12604 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12605 else
12606 case ${MACOSX_DEPLOYMENT_TARGET} in
12607 10.[012])
12608 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12609 ;;
12610 10.*)
12611 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12612 ;;
12613 esac
12614 fi
12615 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012616 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012617 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012618 hardcode_direct=no
12619 hardcode_automatic=yes
12620 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012621 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012622 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012623 if test "$GCC" = yes ; then
12624 output_verbose_link_cmd='echo'
12625 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12626 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12627 # 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 +000012628 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}'
12629 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 +000012630 else
12631 case "$cc_basename" in
12632 xlc*)
12633 output_verbose_link_cmd='echo'
12634 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12635 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12636 # 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 +000012637 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}'
12638 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 +000012639 ;;
12640 *)
12641 ld_shlibs=no
12642 ;;
12643 esac
John Criswell7a73b802003-06-30 21:59:07 +000012644 fi
John Criswell47fdd832003-07-14 16:52:07 +000012645 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012646
John Criswell47fdd832003-07-14 16:52:07 +000012647 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012649 hardcode_libdir_flag_spec='-L$libdir'
12650 hardcode_shlibpath_var=no
12651 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012652
John Criswell47fdd832003-07-14 16:52:07 +000012653 freebsd1*)
12654 ld_shlibs=no
12655 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012656
John Criswell47fdd832003-07-14 16:52:07 +000012657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12658 # support. Future versions do this automatically, but an explicit c++rt0.o
12659 # does not break anything, and helps significantly (at the cost of a little
12660 # extra space).
12661 freebsd2.2*)
12662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12663 hardcode_libdir_flag_spec='-R$libdir'
12664 hardcode_direct=yes
12665 hardcode_shlibpath_var=no
12666 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012667
John Criswell47fdd832003-07-14 16:52:07 +000012668 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12669 freebsd2*)
12670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12671 hardcode_direct=yes
12672 hardcode_minus_L=yes
12673 hardcode_shlibpath_var=no
12674 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012675
John Criswell47fdd832003-07-14 16:52:07 +000012676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012677 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012678 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12679 hardcode_libdir_flag_spec='-R$libdir'
12680 hardcode_direct=yes
12681 hardcode_shlibpath_var=no
12682 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012683
John Criswell47fdd832003-07-14 16:52:07 +000012684 hpux9*)
12685 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012686 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 +000012687 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012688 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 +000012689 fi
12690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12691 hardcode_libdir_separator=:
12692 hardcode_direct=yes
12693
12694 # hardcode_minus_L: Not really in the search PATH,
12695 # but as the default location of the library.
12696 hardcode_minus_L=yes
12697 export_dynamic_flag_spec='${wl}-E'
12698 ;;
12699
12700 hpux10* | hpux11*)
12701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12702 case "$host_cpu" in
12703 hppa*64*|ia64*)
12704 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12705 ;;
12706 *)
12707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12708 ;;
12709 esac
12710 else
12711 case "$host_cpu" in
12712 hppa*64*|ia64*)
12713 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12714 ;;
12715 *)
12716 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12717 ;;
12718 esac
12719 fi
12720 if test "$with_gnu_ld" = no; then
12721 case "$host_cpu" in
12722 hppa*64*)
12723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12724 hardcode_libdir_flag_spec_ld='+b $libdir'
12725 hardcode_libdir_separator=:
12726 hardcode_direct=no
12727 hardcode_shlibpath_var=no
12728 ;;
12729 ia64*)
12730 hardcode_libdir_flag_spec='-L$libdir'
12731 hardcode_direct=no
12732 hardcode_shlibpath_var=no
12733
12734 # hardcode_minus_L: Not really in the search PATH,
12735 # but as the default location of the library.
12736 hardcode_minus_L=yes
12737 ;;
12738 *)
12739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12740 hardcode_libdir_separator=:
12741 hardcode_direct=yes
12742 export_dynamic_flag_spec='${wl}-E'
12743
12744 # hardcode_minus_L: Not really in the search PATH,
12745 # but as the default location of the library.
12746 hardcode_minus_L=yes
12747 ;;
12748 esac
12749 fi
12750 ;;
12751
12752 irix5* | irix6* | nonstopux*)
12753 if test "$GCC" = yes; then
12754 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'
12755 else
12756 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'
12757 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12758 fi
12759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12760 hardcode_libdir_separator=:
12761 link_all_deplibs=yes
12762 ;;
12763
12764 netbsd*)
12765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12767 else
12768 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12769 fi
12770 hardcode_libdir_flag_spec='-R$libdir'
12771 hardcode_direct=yes
12772 hardcode_shlibpath_var=no
12773 ;;
12774
12775 newsos6)
12776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12777 hardcode_direct=yes
12778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12779 hardcode_libdir_separator=:
12780 hardcode_shlibpath_var=no
12781 ;;
12782
12783 openbsd*)
12784 hardcode_direct=yes
12785 hardcode_shlibpath_var=no
12786 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012788 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 +000012789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12790 export_dynamic_flag_spec='${wl}-E'
12791 else
12792 case $host_os in
12793 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12795 hardcode_libdir_flag_spec='-R$libdir'
12796 ;;
12797 *)
12798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12800 ;;
12801 esac
12802 fi
12803 ;;
12804
12805 os2*)
12806 hardcode_libdir_flag_spec='-L$libdir'
12807 hardcode_minus_L=yes
12808 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012809 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 +000012810 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12811 ;;
12812
12813 osf3*)
12814 if test "$GCC" = yes; then
12815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12816 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'
12817 else
12818 allow_undefined_flag=' -expect_unresolved \*'
12819 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'
12820 fi
12821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12822 hardcode_libdir_separator=:
12823 ;;
12824
12825 osf4* | osf5*) # as osf3* with the addition of -msym flag
12826 if test "$GCC" = yes; then
12827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12828 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'
12829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12830 else
12831 allow_undefined_flag=' -expect_unresolved \*'
12832 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 +000012833 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12834 $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'
12835
John Criswell47fdd832003-07-14 16:52:07 +000012836 # Both c and cxx compiler support -rpath directly
12837 hardcode_libdir_flag_spec='-rpath $libdir'
12838 fi
12839 hardcode_libdir_separator=:
12840 ;;
12841
12842 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12844 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012845 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012846 runpath_var=LD_RUN_PATH
12847 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012848 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012849
John Criswell47fdd832003-07-14 16:52:07 +000012850 solaris*)
12851 no_undefined_flag=' -z text'
12852 if test "$GCC" = yes; then
12853 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012854 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12855 $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 +000012856 else
12857 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012858 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12859 $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 +000012860 fi
12861 hardcode_libdir_flag_spec='-R$libdir'
12862 hardcode_shlibpath_var=no
12863 case $host_os in
12864 solaris2.[0-5] | solaris2.[0-5].*) ;;
12865 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12866 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12867 esac
12868 link_all_deplibs=yes
12869 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012870
John Criswell47fdd832003-07-14 16:52:07 +000012871 sunos4*)
12872 if test "x$host_vendor" = xsequent; then
12873 # Use $CC to link under sequent, because it throws in some extra .o
12874 # files that make .init and .fini sections work.
12875 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12876 else
12877 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12878 fi
12879 hardcode_libdir_flag_spec='-L$libdir'
12880 hardcode_direct=yes
12881 hardcode_minus_L=yes
12882 hardcode_shlibpath_var=no
12883 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012884
John Criswell47fdd832003-07-14 16:52:07 +000012885 sysv4)
12886 case $host_vendor in
12887 sni)
12888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12889 hardcode_direct=yes # is this really true???
12890 ;;
12891 siemens)
12892 ## LD is ld it makes a PLAMLIB
12893 ## CC just makes a GrossModule.
12894 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12895 reload_cmds='$CC -r -o $output$reload_objs'
12896 hardcode_direct=no
12897 ;;
12898 motorola)
12899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12901 ;;
12902 esac
12903 runpath_var='LD_RUN_PATH'
12904 hardcode_shlibpath_var=no
12905 ;;
12906
12907 sysv4.3*)
12908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12909 hardcode_shlibpath_var=no
12910 export_dynamic_flag_spec='-Bexport'
12911 ;;
12912
12913 sysv4*MP*)
12914 if test -d /usr/nec; then
12915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916 hardcode_shlibpath_var=no
12917 runpath_var=LD_RUN_PATH
12918 hardcode_runpath_var=yes
12919 ld_shlibs=yes
12920 fi
12921 ;;
12922
12923 sysv4.2uw2*)
12924 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12925 hardcode_direct=yes
12926 hardcode_minus_L=no
12927 hardcode_shlibpath_var=no
12928 hardcode_runpath_var=yes
12929 runpath_var=LD_RUN_PATH
12930 ;;
12931
12932 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12933 no_undefined_flag='${wl}-z ${wl}text'
12934 if test "$GCC" = yes; then
12935 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12936 else
12937 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12938 fi
12939 runpath_var='LD_RUN_PATH'
12940 hardcode_shlibpath_var=no
12941 ;;
12942
12943 sysv5*)
12944 no_undefined_flag=' -z text'
12945 # $CC -shared without GNU ld will not create a library from C++
12946 # object files and a static libstdc++, better avoid it by now
12947 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012948 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12949 $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 +000012950 hardcode_libdir_flag_spec=
12951 hardcode_shlibpath_var=no
12952 runpath_var='LD_RUN_PATH'
12953 ;;
12954
12955 uts4*)
12956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12957 hardcode_libdir_flag_spec='-L$libdir'
12958 hardcode_shlibpath_var=no
12959 ;;
12960
12961 *)
12962 ld_shlibs=no
12963 ;;
12964 esac
12965 fi
12966
John Criswell7a73b802003-06-30 21:59:07 +000012967echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12968echo "${ECHO_T}$ld_shlibs" >&6
12969test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012970
John Criswell47fdd832003-07-14 16:52:07 +000012971variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12972if test "$GCC" = yes; then
12973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12974fi
12975
12976#
12977# Do we need to explicitly link libc?
12978#
12979case "x$archive_cmds_need_lc" in
12980x|xyes)
12981 # Assume -lc should be added
12982 archive_cmds_need_lc=yes
12983
12984 if test "$enable_shared" = yes && test "$GCC" = yes; then
12985 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012986 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012987 # FIXME: we may have to deal with multi-command sequences.
12988 ;;
12989 '$CC '*)
12990 # Test whether the compiler implicitly links with -lc since on some
12991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12992 # to ld, don't add -lc before -lgcc.
12993 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12994echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12995 $rm conftest*
12996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12997
12998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12999 (eval $ac_compile) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } 2>conftest.err; then
13003 soname=conftest
13004 lib=conftest
13005 libobjs=conftest.$ac_objext
13006 deplibs=
13007 wl=$lt_prog_compiler_wl
13008 compiler_flags=-v
13009 linker_flags=-v
13010 verstring=
13011 output_objdir=.
13012 libname=conftest
13013 lt_save_allow_undefined_flag=$allow_undefined_flag
13014 allow_undefined_flag=
13015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13016 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }
13020 then
13021 archive_cmds_need_lc=no
13022 else
13023 archive_cmds_need_lc=yes
13024 fi
13025 allow_undefined_flag=$lt_save_allow_undefined_flag
13026 else
13027 cat conftest.err 1>&5
13028 fi
13029 $rm conftest*
13030 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13031echo "${ECHO_T}$archive_cmds_need_lc" >&6
13032 ;;
13033 esac
13034 fi
13035 ;;
13036esac
13037
John Criswell7a73b802003-06-30 21:59:07 +000013038echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13039echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13040library_names_spec=
13041libname_spec='lib$name'
13042soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013043shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013044postinstall_cmds=
13045postuninstall_cmds=
13046finish_cmds=
13047finish_eval=
13048shlibpath_var=
13049shlibpath_overrides_runpath=unknown
13050version_type=none
13051dynamic_linker="$host_os ld.so"
13052sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013053if test "$GCC" = yes; then
13054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13056 # if the path contains ";" then we assume it to be the separator
13057 # otherwise default to the standard path separator (i.e. ":") - it is
13058 # assumed that no part of a normal pathname contains ";" but that should
13059 # okay in the real world where ";" in dirpaths is itself problematic.
13060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13061 else
13062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13063 fi
13064else
13065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13066fi
13067need_lib_prefix=unknown
13068hardcode_into_libs=no
13069
13070# when you set need_version to no, make sure it does not cause -set_version
13071# flags to be left without arguments
13072need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013073
13074case $host_os in
13075aix3*)
13076 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013078 shlibpath_var=LIBPATH
13079
John Criswell47fdd832003-07-14 16:52:07 +000013080 # AIX 3 has no versioning support, so we append a major version to the name.
13081 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013082 ;;
13083
13084aix4* | aix5*)
13085 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013086 need_lib_prefix=no
13087 need_version=no
13088 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013089 if test "$host_cpu" = ia64; then
13090 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013092 shlibpath_var=LD_LIBRARY_PATH
13093 else
13094 # With GCC up to 2.95.x, collect2 would create an import file
13095 # for dependence libraries. The import file would start with
13096 # the line `#! .'. This would cause the generated library to
13097 # depend on `.', always an invalid library. This was fixed in
13098 # development snapshots of GCC prior to 3.0.
13099 case $host_os in
13100 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13102 echo ' yes '
13103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13104 :
13105 else
13106 can_build_shared=no
13107 fi
13108 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013109 esac
John Criswell47fdd832003-07-14 16:52:07 +000013110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13111 # soname into executable. Probably we can add versioning support to
13112 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013113 if test "$aix_use_runtimelinking" = yes; then
13114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13115 # instead of lib<name>.a to let people know that these are not
13116 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013118 else
13119 # We preserve .a as extension for shared libraries through AIX4.2
13120 # and later when we are not doing run time linking.
13121 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013122 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013123 fi
13124 shlibpath_var=LIBPATH
13125 fi
13126 ;;
13127
13128amigaos*)
13129 library_names_spec='$libname.ixlibrary $libname.a'
13130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013131 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 +000013132 ;;
13133
13134beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013135 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013136 dynamic_linker="$host_os ld.so"
13137 shlibpath_var=LIBRARY_PATH
13138 ;;
13139
Reid Spencer2706f8c2004-09-19 23:53:36 +000013140bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013141 version_type=linux
13142 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13146 shlibpath_var=LD_LIBRARY_PATH
13147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013149 # the default ld.so.conf also contains /usr/contrib/lib and
13150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13151 # libtool to hard-code these into programs
13152 ;;
13153
13154cygwin* | mingw* | pw32*)
13155 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013156 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013157 need_version=no
13158 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013159
John Criswell7a73b802003-06-30 21:59:07 +000013160 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013161 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013162 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013164 postinstall_cmds='base_file=`basename \${file}`~
13165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13166 dldir=$destdir/`dirname \$dlpath`~
13167 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013168 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13170 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013171 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013172 shlibpath_overrides_runpath=yes
13173
13174 case $host_os in
13175 cygwin*)
13176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13177 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 +000013178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013179 ;;
13180 mingw*)
13181 # MinGW DLLs use traditional 'lib' prefix
13182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13185 # It is most probably a Windows format PATH printed by
13186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13187 # path with ; separators, and with drive letters. We can handle the
13188 # drive letters (cygwin fileutils understands them), so leave them,
13189 # especially as we might pass files found there to a mingw objdump,
13190 # which wouldn't understand a cygwinified path. Ahh.
13191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13192 else
13193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13194 fi
13195 ;;
13196 pw32*)
13197 # pw32 DLLs use 'pw' prefix rather than 'lib'
13198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13199 ;;
13200 esac
John Criswell7a73b802003-06-30 21:59:07 +000013201 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013202
John Criswell7a73b802003-06-30 21:59:07 +000013203 *)
John Criswell47fdd832003-07-14 16:52:07 +000013204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013205 ;;
13206 esac
13207 dynamic_linker='Win32 ld.exe'
13208 # FIXME: first we should search . and the directory the executable is in
13209 shlibpath_var=PATH
13210 ;;
13211
13212darwin* | rhapsody*)
13213 dynamic_linker="$host_os dyld"
13214 version_type=darwin
13215 need_lib_prefix=no
13216 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013218 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013219 shlibpath_overrides_runpath=yes
13220 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013221 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013223 if test "$GCC" = yes; then
13224 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"`
13225 else
13226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013227 fi
13228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13229 ;;
13230
13231dgux*)
13232 version_type=linux
13233 need_lib_prefix=no
13234 need_version=no
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13236 soname_spec='${libname}${release}${shared_ext}$major'
13237 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013238 ;;
13239
13240freebsd1*)
13241 dynamic_linker=no
13242 ;;
13243
Reid Spencer2706f8c2004-09-19 23:53:36 +000013244kfreebsd*-gnu)
13245 version_type=linux
13246 need_lib_prefix=no
13247 need_version=no
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 shlibpath_overrides_runpath=no
13252 hardcode_into_libs=yes
13253 dynamic_linker='GNU ld.so'
13254 ;;
13255
John Criswell7a73b802003-06-30 21:59:07 +000013256freebsd*)
13257 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13258 version_type=freebsd-$objformat
13259 case $version_type in
13260 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013262 need_version=no
13263 need_lib_prefix=no
13264 ;;
13265 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013267 need_version=yes
13268 ;;
13269 esac
13270 shlibpath_var=LD_LIBRARY_PATH
13271 case $host_os in
13272 freebsd2*)
13273 shlibpath_overrides_runpath=yes
13274 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013275 freebsd3.01* | freebsdelf3.01*)
13276 shlibpath_overrides_runpath=yes
13277 hardcode_into_libs=yes
13278 ;;
13279 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013280 shlibpath_overrides_runpath=no
13281 hardcode_into_libs=yes
13282 ;;
13283 esac
13284 ;;
13285
13286gnu*)
13287 version_type=linux
13288 need_lib_prefix=no
13289 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13291 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013292 shlibpath_var=LD_LIBRARY_PATH
13293 hardcode_into_libs=yes
13294 ;;
13295
13296hpux9* | hpux10* | hpux11*)
13297 # Give a soname corresponding to the major version so that dld.sl refuses to
13298 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013299 version_type=sunos
13300 need_lib_prefix=no
13301 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013302 case "$host_cpu" in
13303 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013304 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013305 hardcode_into_libs=yes
13306 dynamic_linker="$host_os dld.so"
13307 shlibpath_var=LD_LIBRARY_PATH
13308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13310 soname_spec='${libname}${release}${shared_ext}$major'
13311 if test "X$HPUX_IA64_MODE" = X32; then
13312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13313 else
13314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13315 fi
13316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13317 ;;
13318 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013319 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013320 hardcode_into_libs=yes
13321 dynamic_linker="$host_os dld.sl"
13322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13325 soname_spec='${libname}${release}${shared_ext}$major'
13326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13328 ;;
13329 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013330 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013331 dynamic_linker="$host_os dld.sl"
13332 shlibpath_var=SHLIB_PATH
13333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 ;;
13337 esac
John Criswell7a73b802003-06-30 21:59:07 +000013338 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13339 postinstall_cmds='chmod 555 $lib'
13340 ;;
13341
John Criswell47fdd832003-07-14 16:52:07 +000013342irix5* | irix6* | nonstopux*)
13343 case $host_os in
13344 nonstopux*) version_type=nonstopux ;;
13345 *)
13346 if test "$lt_cv_prog_gnu_ld" = yes; then
13347 version_type=linux
13348 else
13349 version_type=irix
13350 fi ;;
13351 esac
John Criswell7a73b802003-06-30 21:59:07 +000013352 need_lib_prefix=no
13353 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013354 soname_spec='${libname}${release}${shared_ext}$major'
13355 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 +000013356 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013357 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013358 libsuff= shlibsuff=
13359 ;;
13360 *)
13361 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13363 libsuff= shlibsuff= libmagic=32-bit;;
13364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13365 libsuff=32 shlibsuff=N32 libmagic=N32;;
13366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013368 *) libsuff= shlibsuff= libmagic=never-match;;
13369 esac
13370 ;;
13371 esac
13372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13373 shlibpath_overrides_runpath=no
13374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013376 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013377 ;;
13378
13379# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013380linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013381 dynamic_linker=no
13382 ;;
13383
13384# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013385linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013386 version_type=linux
13387 need_lib_prefix=no
13388 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13390 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 shlibpath_overrides_runpath=no
13394 # This implies no fast_install, which is unacceptable.
13395 # Some rework will be needed to allow for fast_install
13396 # before this can be enabled.
13397 hardcode_into_libs=yes
13398
Reid Spencer2706f8c2004-09-19 23:53:36 +000013399 # Append ld.so.conf contents to the search path
13400 if test -f /etc/ld.so.conf; then
13401 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13403 fi
13404
John Criswell7a73b802003-06-30 21:59:07 +000013405 # We used to test for /lib/ld.so.1 and disable shared libraries on
13406 # powerpc, because MkLinux only supported shared libraries with the
13407 # GNU dynamic linker. Since this was broken with cross compilers,
13408 # most powerpc-linux boxes support dynamic linking these days and
13409 # people can always --disable-shared, the test was removed, and we
13410 # assume the GNU/Linux dynamic linker is in use.
13411 dynamic_linker='GNU/Linux ld.so'
13412 ;;
13413
Reid Spencer2706f8c2004-09-19 23:53:36 +000013414knetbsd*-gnu)
13415 version_type=linux
13416 need_lib_prefix=no
13417 need_version=no
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13419 soname_spec='${libname}${release}${shared_ext}$major'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=no
13422 hardcode_into_libs=yes
13423 dynamic_linker='GNU ld.so'
13424 ;;
13425
John Criswell7a73b802003-06-30 21:59:07 +000013426netbsd*)
13427 version_type=sunos
13428 need_lib_prefix=no
13429 need_version=no
13430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13433 dynamic_linker='NetBSD (a.out) ld.so'
13434 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013436 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013437 dynamic_linker='NetBSD ld.elf_so'
13438 fi
13439 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=yes
13441 hardcode_into_libs=yes
13442 ;;
13443
13444newsos6)
13445 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 shlibpath_overrides_runpath=yes
13449 ;;
13450
Reid Spencer2706f8c2004-09-19 23:53:36 +000013451nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013452 version_type=linux
13453 need_lib_prefix=no
13454 need_version=no
13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13456 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013457 shlibpath_var=LD_LIBRARY_PATH
13458 shlibpath_overrides_runpath=yes
13459 ;;
13460
13461openbsd*)
13462 version_type=sunos
13463 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013464 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13467 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013468 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 +000013469 case $host_os in
13470 openbsd2.[89] | openbsd2.[89].*)
13471 shlibpath_overrides_runpath=no
13472 ;;
13473 *)
13474 shlibpath_overrides_runpath=yes
13475 ;;
13476 esac
John Criswell7a73b802003-06-30 21:59:07 +000013477 else
13478 shlibpath_overrides_runpath=yes
13479 fi
John Criswell7a73b802003-06-30 21:59:07 +000013480 ;;
13481
13482os2*)
13483 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013484 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013485 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013486 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013487 dynamic_linker='OS/2 ld.exe'
13488 shlibpath_var=LIBPATH
13489 ;;
13490
13491osf3* | osf4* | osf5*)
13492 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013493 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013494 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013495 soname_spec='${libname}${release}${shared_ext}$major'
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013497 shlibpath_var=LD_LIBRARY_PATH
13498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13500 ;;
13501
13502sco3.2v5*)
13503 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013504 soname_spec='${libname}${release}${shared_ext}$major'
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013506 shlibpath_var=LD_LIBRARY_PATH
13507 ;;
13508
13509solaris*)
13510 version_type=linux
13511 need_lib_prefix=no
13512 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013515 shlibpath_var=LD_LIBRARY_PATH
13516 shlibpath_overrides_runpath=yes
13517 hardcode_into_libs=yes
13518 # ldd complains unless libraries are executable
13519 postinstall_cmds='chmod +x $lib'
13520 ;;
13521
13522sunos4*)
13523 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 shlibpath_overrides_runpath=yes
13528 if test "$with_gnu_ld" = yes; then
13529 need_lib_prefix=no
13530 fi
13531 need_version=yes
13532 ;;
13533
13534sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13535 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013538 shlibpath_var=LD_LIBRARY_PATH
13539 case $host_vendor in
13540 sni)
13541 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013542 need_lib_prefix=no
13543 export_dynamic_flag_spec='${wl}-Blargedynsym'
13544 runpath_var=LD_RUN_PATH
13545 ;;
13546 siemens)
13547 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013548 ;;
13549 motorola)
13550 need_lib_prefix=no
13551 need_version=no
13552 shlibpath_overrides_runpath=no
13553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13554 ;;
13555 esac
13556 ;;
13557
John Criswell7a73b802003-06-30 21:59:07 +000013558sysv4*MP*)
13559 if test -d /usr/nec ;then
13560 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13562 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013563 shlibpath_var=LD_LIBRARY_PATH
13564 fi
13565 ;;
13566
John Criswell47fdd832003-07-14 16:52:07 +000013567uts4*)
13568 version_type=linux
13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13570 soname_spec='${libname}${release}${shared_ext}$major'
13571 shlibpath_var=LD_LIBRARY_PATH
13572 ;;
13573
John Criswell7a73b802003-06-30 21:59:07 +000013574*)
13575 dynamic_linker=no
13576 ;;
13577esac
13578echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13579echo "${ECHO_T}$dynamic_linker" >&6
13580test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013581
Reid Spencer2706f8c2004-09-19 23:53:36 +000013582echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13583echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13584hardcode_action=
13585if test -n "$hardcode_libdir_flag_spec" || \
13586 test -n "$runpath_var" || \
13587 test "X$hardcode_automatic" = "Xyes" ; then
13588
13589 # We can hardcode non-existant directories.
13590 if test "$hardcode_direct" != no &&
13591 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13592 # have to relink, otherwise we might link with an installed library
13593 # when we should be linking with a yet-to-be-installed one
13594 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13595 test "$hardcode_minus_L" != no; then
13596 # Linking always hardcodes the temporary library directory.
13597 hardcode_action=relink
13598 else
13599 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13600 hardcode_action=immediate
13601 fi
13602else
13603 # We cannot hardcode anything, or else we can only hardcode existing
13604 # directories.
13605 hardcode_action=unsupported
13606fi
13607echo "$as_me:$LINENO: result: $hardcode_action" >&5
13608echo "${ECHO_T}$hardcode_action" >&6
13609
13610if test "$hardcode_action" = relink; then
13611 # Fast installation is not supported
13612 enable_fast_install=no
13613elif test "$shlibpath_overrides_runpath" = yes ||
13614 test "$enable_shared" = no; then
13615 # Fast installation is not necessary
13616 enable_fast_install=needless
13617fi
13618
13619striplib=
13620old_striplib=
13621echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13622echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13623if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13624 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13625 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13626 echo "$as_me:$LINENO: result: yes" >&5
13627echo "${ECHO_T}yes" >&6
13628else
13629# FIXME - insert some real tests, host_os isn't really good enough
13630 case $host_os in
13631 darwin*)
13632 if test -n "$STRIP" ; then
13633 striplib="$STRIP -x"
13634 echo "$as_me:$LINENO: result: yes" >&5
13635echo "${ECHO_T}yes" >&6
13636 else
13637 echo "$as_me:$LINENO: result: no" >&5
13638echo "${ECHO_T}no" >&6
13639fi
13640 ;;
13641 *)
13642 echo "$as_me:$LINENO: result: no" >&5
13643echo "${ECHO_T}no" >&6
13644 ;;
13645 esac
13646fi
13647
John Criswell7a73b802003-06-30 21:59:07 +000013648if test "x$enable_dlopen" != xyes; then
13649 enable_dlopen=unknown
13650 enable_dlopen_self=unknown
13651 enable_dlopen_self_static=unknown
13652else
13653 lt_cv_dlopen=no
13654 lt_cv_dlopen_libs=
13655
13656 case $host_os in
13657 beos*)
13658 lt_cv_dlopen="load_add_on"
13659 lt_cv_dlopen_libs=
13660 lt_cv_dlopen_self=yes
13661 ;;
13662
John Criswell47fdd832003-07-14 16:52:07 +000013663 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013664 lt_cv_dlopen="LoadLibrary"
13665 lt_cv_dlopen_libs=
13666 ;;
13667
John Criswell47fdd832003-07-14 16:52:07 +000013668 cygwin*)
13669 lt_cv_dlopen="dlopen"
13670 lt_cv_dlopen_libs=
13671 ;;
13672
13673 darwin*)
13674 # if libdl is installed we need to link against it
13675 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13676echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13677if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679else
13680 ac_check_lib_save_LIBS=$LIBS
13681LIBS="-ldl $LIBS"
13682cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013683/* confdefs.h. */
13684_ACEOF
13685cat confdefs.h >>conftest.$ac_ext
13686cat >>conftest.$ac_ext <<_ACEOF
13687/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013688
13689/* Override any gcc2 internal prototype to avoid an error. */
13690#ifdef __cplusplus
13691extern "C"
13692#endif
13693/* We use char because int might match the return type of a gcc2
13694 builtin and then its argument prototype would still apply. */
13695char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013696int
13697main ()
13698{
13699dlopen ();
13700 ;
13701 return 0;
13702}
13703_ACEOF
13704rm -f conftest.$ac_objext conftest$ac_exeext
13705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013706 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013713 { ac_try='test -z "$ac_c_werror_flag"
13714 || test ! -s conftest.err'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_cv_lib_dl_dlopen=yes
13727else
13728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013729sed 's/^/| /' conftest.$ac_ext >&5
13730
John Criswell47fdd832003-07-14 16:52:07 +000013731ac_cv_lib_dl_dlopen=no
13732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013733rm -f conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013735LIBS=$ac_check_lib_save_LIBS
13736fi
13737echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13738echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13739if test $ac_cv_lib_dl_dlopen = yes; then
13740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13741else
13742
13743 lt_cv_dlopen="dyld"
13744 lt_cv_dlopen_libs=
13745 lt_cv_dlopen_self=yes
13746
13747fi
13748
13749 ;;
13750
John Criswell7a73b802003-06-30 21:59:07 +000013751 *)
13752 echo "$as_me:$LINENO: checking for shl_load" >&5
13753echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13754if test "${ac_cv_func_shl_load+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756else
13757 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013758/* confdefs.h. */
13759_ACEOF
13760cat confdefs.h >>conftest.$ac_ext
13761cat >>conftest.$ac_ext <<_ACEOF
13762/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013763/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13765#define shl_load innocuous_shl_load
13766
John Criswell7a73b802003-06-30 21:59:07 +000013767/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013768 which can conflict with char shl_load (); below.
13769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13770 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013771
John Criswell0c38eaf2003-09-10 15:17:25 +000013772#ifdef __STDC__
13773# include <limits.h>
13774#else
13775# include <assert.h>
13776#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013777
13778#undef shl_load
13779
John Criswell7a73b802003-06-30 21:59:07 +000013780/* Override any gcc2 internal prototype to avoid an error. */
13781#ifdef __cplusplus
13782extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013783{
John Criswell7a73b802003-06-30 21:59:07 +000013784#endif
13785/* We use char because int might match the return type of a gcc2
13786 builtin and then its argument prototype would still apply. */
13787char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013788/* The GNU C library defines this for functions which it implements
13789 to always fail with ENOSYS. Some functions are actually named
13790 something starting with __ and the normal name is an alias. */
13791#if defined (__stub_shl_load) || defined (__stub___shl_load)
13792choke me
13793#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013794char (*f) () = shl_load;
13795#endif
13796#ifdef __cplusplus
13797}
John Criswell7a73b802003-06-30 21:59:07 +000013798#endif
13799
John Criswell0c38eaf2003-09-10 15:17:25 +000013800int
13801main ()
13802{
13803return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013804 ;
13805 return 0;
13806}
13807_ACEOF
13808rm -f conftest.$ac_objext conftest$ac_exeext
13809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013810 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013811 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013812 grep -v '^ *+' conftest.er1 >conftest.err
13813 rm -f conftest.er1
13814 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013817 { ac_try='test -z "$ac_c_werror_flag"
13818 || test ! -s conftest.err'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_cv_func_shl_load=yes
13831else
13832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013833sed 's/^/| /' conftest.$ac_ext >&5
13834
John Criswell7a73b802003-06-30 21:59:07 +000013835ac_cv_func_shl_load=no
13836fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013837rm -f conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013839fi
13840echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13841echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13842if test $ac_cv_func_shl_load = yes; then
13843 lt_cv_dlopen="shl_load"
13844else
13845 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13846echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13847if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850 ac_check_lib_save_LIBS=$LIBS
13851LIBS="-ldld $LIBS"
13852cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013858
13859/* Override any gcc2 internal prototype to avoid an error. */
13860#ifdef __cplusplus
13861extern "C"
13862#endif
13863/* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13865char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013866int
13867main ()
13868{
13869shl_load ();
13870 ;
13871 return 0;
13872}
13873_ACEOF
13874rm -f conftest.$ac_objext conftest$ac_exeext
13875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013876 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013877 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013883 { ac_try='test -z "$ac_c_werror_flag"
13884 || test ! -s conftest.err'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_lib_dld_shl_load=yes
13897else
13898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013899sed 's/^/| /' conftest.$ac_ext >&5
13900
John Criswell7a73b802003-06-30 21:59:07 +000013901ac_cv_lib_dld_shl_load=no
13902fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013903rm -f conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013905LIBS=$ac_check_lib_save_LIBS
13906fi
13907echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13908echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13909if test $ac_cv_lib_dld_shl_load = yes; then
13910 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13911else
13912 echo "$as_me:$LINENO: checking for dlopen" >&5
13913echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13914if test "${ac_cv_func_dlopen+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916else
13917 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013918/* confdefs.h. */
13919_ACEOF
13920cat confdefs.h >>conftest.$ac_ext
13921cat >>conftest.$ac_ext <<_ACEOF
13922/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013923/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13925#define dlopen innocuous_dlopen
13926
John Criswell7a73b802003-06-30 21:59:07 +000013927/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013928 which can conflict with char dlopen (); below.
13929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13930 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013931
John Criswell0c38eaf2003-09-10 15:17:25 +000013932#ifdef __STDC__
13933# include <limits.h>
13934#else
13935# include <assert.h>
13936#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013937
13938#undef dlopen
13939
John Criswell7a73b802003-06-30 21:59:07 +000013940/* Override any gcc2 internal prototype to avoid an error. */
13941#ifdef __cplusplus
13942extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013943{
John Criswell7a73b802003-06-30 21:59:07 +000013944#endif
13945/* We use char because int might match the return type of a gcc2
13946 builtin and then its argument prototype would still apply. */
13947char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013948/* The GNU C library defines this for functions which it implements
13949 to always fail with ENOSYS. Some functions are actually named
13950 something starting with __ and the normal name is an alias. */
13951#if defined (__stub_dlopen) || defined (__stub___dlopen)
13952choke me
13953#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013954char (*f) () = dlopen;
13955#endif
13956#ifdef __cplusplus
13957}
John Criswell7a73b802003-06-30 21:59:07 +000013958#endif
13959
John Criswell0c38eaf2003-09-10 15:17:25 +000013960int
13961main ()
13962{
13963return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013964 ;
13965 return 0;
13966}
13967_ACEOF
13968rm -f conftest.$ac_objext conftest$ac_exeext
13969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013970 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_func_dlopen=yes
13991else
13992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013993sed 's/^/| /' conftest.$ac_ext >&5
13994
John Criswell7a73b802003-06-30 21:59:07 +000013995ac_cv_func_dlopen=no
13996fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013997rm -f conftest.err conftest.$ac_objext \
13998 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013999fi
14000echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14001echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14002if test $ac_cv_func_dlopen = yes; then
14003 lt_cv_dlopen="dlopen"
14004else
14005 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14006echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14007if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009else
14010 ac_check_lib_save_LIBS=$LIBS
14011LIBS="-ldl $LIBS"
14012cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014013/* confdefs.h. */
14014_ACEOF
14015cat confdefs.h >>conftest.$ac_ext
14016cat >>conftest.$ac_ext <<_ACEOF
14017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014018
14019/* Override any gcc2 internal prototype to avoid an error. */
14020#ifdef __cplusplus
14021extern "C"
14022#endif
14023/* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14025char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014026int
14027main ()
14028{
14029dlopen ();
14030 ;
14031 return 0;
14032}
14033_ACEOF
14034rm -f conftest.$ac_objext conftest$ac_exeext
14035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014036 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014037 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_lib_dl_dlopen=yes
14057else
14058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014059sed 's/^/| /' conftest.$ac_ext >&5
14060
John Criswell7a73b802003-06-30 21:59:07 +000014061ac_cv_lib_dl_dlopen=no
14062fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014063rm -f conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014065LIBS=$ac_check_lib_save_LIBS
14066fi
14067echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14068echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14069if test $ac_cv_lib_dl_dlopen = yes; then
14070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14071else
14072 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14073echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14074if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076else
14077 ac_check_lib_save_LIBS=$LIBS
14078LIBS="-lsvld $LIBS"
14079cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014080/* confdefs.h. */
14081_ACEOF
14082cat confdefs.h >>conftest.$ac_ext
14083cat >>conftest.$ac_ext <<_ACEOF
14084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014085
14086/* Override any gcc2 internal prototype to avoid an error. */
14087#ifdef __cplusplus
14088extern "C"
14089#endif
14090/* We use char because int might match the return type of a gcc2
14091 builtin and then its argument prototype would still apply. */
14092char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014093int
14094main ()
14095{
14096dlopen ();
14097 ;
14098 return 0;
14099}
14100_ACEOF
14101rm -f conftest.$ac_objext conftest$ac_exeext
14102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014103 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014104 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014110 { ac_try='test -z "$ac_c_werror_flag"
14111 || test ! -s conftest.err'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_lib_svld_dlopen=yes
14124else
14125 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014126sed 's/^/| /' conftest.$ac_ext >&5
14127
John Criswell7a73b802003-06-30 21:59:07 +000014128ac_cv_lib_svld_dlopen=no
14129fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014130rm -f conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014132LIBS=$ac_check_lib_save_LIBS
14133fi
14134echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14135echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14136if test $ac_cv_lib_svld_dlopen = yes; then
14137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14138else
14139 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14140echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14141if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143else
14144 ac_check_lib_save_LIBS=$LIBS
14145LIBS="-ldld $LIBS"
14146cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014147/* confdefs.h. */
14148_ACEOF
14149cat confdefs.h >>conftest.$ac_ext
14150cat >>conftest.$ac_ext <<_ACEOF
14151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014152
14153/* Override any gcc2 internal prototype to avoid an error. */
14154#ifdef __cplusplus
14155extern "C"
14156#endif
14157/* We use char because int might match the return type of a gcc2
14158 builtin and then its argument prototype would still apply. */
14159char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014160int
14161main ()
14162{
14163dld_link ();
14164 ;
14165 return 0;
14166}
14167_ACEOF
14168rm -f conftest.$ac_objext conftest$ac_exeext
14169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014170 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014171 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_cv_lib_dld_dld_link=yes
14191else
14192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014193sed 's/^/| /' conftest.$ac_ext >&5
14194
John Criswell7a73b802003-06-30 21:59:07 +000014195ac_cv_lib_dld_dld_link=no
14196fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014197rm -f conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014199LIBS=$ac_check_lib_save_LIBS
14200fi
14201echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14202echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14203if test $ac_cv_lib_dld_dld_link = yes; then
14204 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14205fi
14206
14207
14208fi
14209
14210
14211fi
14212
14213
14214fi
14215
14216
14217fi
14218
14219
14220fi
14221
14222 ;;
14223 esac
14224
14225 if test "x$lt_cv_dlopen" != xno; then
14226 enable_dlopen=yes
14227 else
14228 enable_dlopen=no
14229 fi
14230
14231 case $lt_cv_dlopen in
14232 dlopen)
14233 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014234 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014235
14236 save_LDFLAGS="$LDFLAGS"
14237 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14238
14239 save_LIBS="$LIBS"
14240 LIBS="$lt_cv_dlopen_libs $LIBS"
14241
14242 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14243echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14244if test "${lt_cv_dlopen_self+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14246else
14247 if test "$cross_compiling" = yes; then :
14248 lt_cv_dlopen_self=cross
14249else
John Criswell47fdd832003-07-14 16:52:07 +000014250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014251 lt_status=$lt_dlunknown
14252 cat > conftest.$ac_ext <<EOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014253#line 14253 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014254#include "confdefs.h"
14255
14256#if HAVE_DLFCN_H
14257#include <dlfcn.h>
14258#endif
14259
14260#include <stdio.h>
14261
14262#ifdef RTLD_GLOBAL
14263# define LT_DLGLOBAL RTLD_GLOBAL
14264#else
14265# ifdef DL_GLOBAL
14266# define LT_DLGLOBAL DL_GLOBAL
14267# else
14268# define LT_DLGLOBAL 0
14269# endif
14270#endif
14271
14272/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14273 find out it does not work in some platform. */
14274#ifndef LT_DLLAZY_OR_NOW
14275# ifdef RTLD_LAZY
14276# define LT_DLLAZY_OR_NOW RTLD_LAZY
14277# else
14278# ifdef DL_LAZY
14279# define LT_DLLAZY_OR_NOW DL_LAZY
14280# else
14281# ifdef RTLD_NOW
14282# define LT_DLLAZY_OR_NOW RTLD_NOW
14283# else
14284# ifdef DL_NOW
14285# define LT_DLLAZY_OR_NOW DL_NOW
14286# else
14287# define LT_DLLAZY_OR_NOW 0
14288# endif
14289# endif
14290# endif
14291# endif
14292#endif
14293
14294#ifdef __cplusplus
14295extern "C" void exit (int);
14296#endif
14297
14298void fnord() { int i=42;}
14299int main ()
14300{
14301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14302 int status = $lt_dlunknown;
14303
14304 if (self)
14305 {
14306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14307 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14308 /* dlclose (self); */
14309 }
14310
14311 exit (status);
14312}
14313EOF
14314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14315 (eval $ac_link) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14319 (./conftest; exit; ) 2>/dev/null
14320 lt_status=$?
14321 case x$lt_status in
14322 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14323 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14324 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14325 esac
14326 else :
14327 # compilation failed
14328 lt_cv_dlopen_self=no
14329 fi
14330fi
14331rm -fr conftest*
14332
14333
14334fi
14335echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14336echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14337
14338 if test "x$lt_cv_dlopen_self" = xyes; then
14339 LDFLAGS="$LDFLAGS $link_static_flag"
14340 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14341echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14342if test "${lt_cv_dlopen_self_static+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344else
14345 if test "$cross_compiling" = yes; then :
14346 lt_cv_dlopen_self_static=cross
14347else
John Criswell47fdd832003-07-14 16:52:07 +000014348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014349 lt_status=$lt_dlunknown
14350 cat > conftest.$ac_ext <<EOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014351#line 14351 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014352#include "confdefs.h"
14353
14354#if HAVE_DLFCN_H
14355#include <dlfcn.h>
14356#endif
14357
14358#include <stdio.h>
14359
14360#ifdef RTLD_GLOBAL
14361# define LT_DLGLOBAL RTLD_GLOBAL
14362#else
14363# ifdef DL_GLOBAL
14364# define LT_DLGLOBAL DL_GLOBAL
14365# else
14366# define LT_DLGLOBAL 0
14367# endif
14368#endif
14369
14370/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14371 find out it does not work in some platform. */
14372#ifndef LT_DLLAZY_OR_NOW
14373# ifdef RTLD_LAZY
14374# define LT_DLLAZY_OR_NOW RTLD_LAZY
14375# else
14376# ifdef DL_LAZY
14377# define LT_DLLAZY_OR_NOW DL_LAZY
14378# else
14379# ifdef RTLD_NOW
14380# define LT_DLLAZY_OR_NOW RTLD_NOW
14381# else
14382# ifdef DL_NOW
14383# define LT_DLLAZY_OR_NOW DL_NOW
14384# else
14385# define LT_DLLAZY_OR_NOW 0
14386# endif
14387# endif
14388# endif
14389# endif
14390#endif
14391
14392#ifdef __cplusplus
14393extern "C" void exit (int);
14394#endif
14395
14396void fnord() { int i=42;}
14397int main ()
14398{
14399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14400 int status = $lt_dlunknown;
14401
14402 if (self)
14403 {
14404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14406 /* dlclose (self); */
14407 }
14408
14409 exit (status);
14410}
14411EOF
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413 (eval $ac_link) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14417 (./conftest; exit; ) 2>/dev/null
14418 lt_status=$?
14419 case x$lt_status in
14420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14422 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14423 esac
14424 else :
14425 # compilation failed
14426 lt_cv_dlopen_self_static=no
14427 fi
14428fi
14429rm -fr conftest*
14430
14431
14432fi
14433echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14434echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14435 fi
14436
14437 CPPFLAGS="$save_CPPFLAGS"
14438 LDFLAGS="$save_LDFLAGS"
14439 LIBS="$save_LIBS"
14440 ;;
14441 esac
14442
14443 case $lt_cv_dlopen_self in
14444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14445 *) enable_dlopen_self=unknown ;;
14446 esac
14447
14448 case $lt_cv_dlopen_self_static in
14449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14450 *) enable_dlopen_self_static=unknown ;;
14451 esac
14452fi
14453
14454
John Criswell47fdd832003-07-14 16:52:07 +000014455# Report which librarie types wil actually be built
14456echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14457echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14458echo "$as_me:$LINENO: result: $can_build_shared" >&5
14459echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014460
John Criswell47fdd832003-07-14 16:52:07 +000014461echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14462echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14463test "$can_build_shared" = "no" && enable_shared=no
14464
14465# On AIX, shared libraries and static libraries use the same namespace, and
14466# are all built from PIC.
14467case "$host_os" in
14468aix3*)
14469 test "$enable_shared" = yes && enable_static=no
14470 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014472 postinstall_cmds='$RANLIB $lib'
14473 fi
14474 ;;
14475
Reid Spencer2706f8c2004-09-19 23:53:36 +000014476aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14478 test "$enable_shared" = yes && enable_static=no
14479 fi
John Criswell7a73b802003-06-30 21:59:07 +000014480 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014481esac
14482echo "$as_me:$LINENO: result: $enable_shared" >&5
14483echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014484
John Criswell47fdd832003-07-14 16:52:07 +000014485echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14486echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14487# Make sure either enable_shared or enable_static is yes.
14488test "$enable_shared" = yes || enable_static=yes
14489echo "$as_me:$LINENO: result: $enable_static" >&5
14490echo "${ECHO_T}$enable_static" >&6
14491
14492# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014493# libtool distribution, otherwise you forgot to ship ltmain.sh
14494# with your package, and you will get complaints that there are
14495# no rules to generate ltmain.sh.
14496if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014497 # See if we are running on zsh, and set the options which allow our commands through
14498 # without removal of \ escapes.
14499 if test -n "${ZSH_VERSION+set}" ; then
14500 setopt NO_GLOB_SUBST
14501 fi
John Criswell7a73b802003-06-30 21:59:07 +000014502 # Now quote all the things that may contain metacharacters while being
14503 # careful not to overquote the AC_SUBSTed values. We take copies of the
14504 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014505 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14506 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014507 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14508 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14509 deplibs_check_method reload_flag reload_cmds need_locks \
14510 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14511 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014512 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014513 old_postinstall_cmds old_postuninstall_cmds \
14514 compiler \
14515 CC \
14516 LD \
14517 lt_prog_compiler_wl \
14518 lt_prog_compiler_pic \
14519 lt_prog_compiler_static \
14520 lt_prog_compiler_no_builtin_flag \
14521 export_dynamic_flag_spec \
14522 thread_safe_flag_spec \
14523 whole_archive_flag_spec \
14524 enable_shared_with_static_runtimes \
14525 old_archive_cmds \
14526 old_archive_from_new_cmds \
14527 predep_objects \
14528 postdep_objects \
14529 predeps \
14530 postdeps \
14531 compiler_lib_search_path \
14532 archive_cmds \
14533 archive_expsym_cmds \
14534 postinstall_cmds \
14535 postuninstall_cmds \
14536 old_archive_from_expsyms_cmds \
14537 allow_undefined_flag \
14538 no_undefined_flag \
14539 export_symbols_cmds \
14540 hardcode_libdir_flag_spec \
14541 hardcode_libdir_flag_spec_ld \
14542 hardcode_libdir_separator \
14543 hardcode_automatic \
14544 module_cmds \
14545 module_expsym_cmds \
14546 lt_cv_prog_compiler_c_o \
14547 exclude_expsyms \
14548 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014549
14550 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014551 old_archive_cmds | \
14552 old_archive_from_new_cmds | \
14553 archive_cmds | \
14554 archive_expsym_cmds | \
14555 module_cmds | \
14556 module_expsym_cmds | \
14557 old_archive_from_expsyms_cmds | \
14558 export_symbols_cmds | \
14559 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014560 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014561 old_postinstall_cmds | old_postuninstall_cmds | \
14562 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014563 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014564 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 +000014565 ;;
14566 *)
14567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14568 ;;
14569 esac
14570 done
14571
John Criswell47fdd832003-07-14 16:52:07 +000014572 case $lt_echo in
14573 *'\$0 --fallback-echo"')
14574 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14575 ;;
14576 esac
14577
14578cfgfile="${ofile}T"
14579 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14580 $rm -f "$cfgfile"
14581 { echo "$as_me:$LINENO: creating $ofile" >&5
14582echo "$as_me: creating $ofile" >&6;}
14583
14584 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014585#! $SHELL
14586
John Criswell47fdd832003-07-14 16:52:07 +000014587# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014588# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14589# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14590#
John Criswell47fdd832003-07-14 16:52:07 +000014591# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14592# Free Software Foundation, Inc.
14593#
14594# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014595# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14596#
14597# This program is free software; you can redistribute it and/or modify
14598# it under the terms of the GNU General Public License as published by
14599# the Free Software Foundation; either version 2 of the License, or
14600# (at your option) any later version.
14601#
14602# This program is distributed in the hope that it will be useful, but
14603# WITHOUT ANY WARRANTY; without even the implied warranty of
14604# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14605# General Public License for more details.
14606#
14607# You should have received a copy of the GNU General Public License
14608# along with this program; if not, write to the Free Software
14609# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14610#
14611# As a special exception to the GNU General Public License, if you
14612# distribute this file as part of a program that contains a
14613# configuration script generated by Autoconf, you may include it under
14614# the same distribution terms that you use for the rest of that program.
14615
John Criswell47fdd832003-07-14 16:52:07 +000014616# A sed program that does not truncate output.
14617SED=$lt_SED
14618
John Criswell7a73b802003-06-30 21:59:07 +000014619# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014620Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014621
14622# The HP-UX ksh and POSIX shell print the target directory to stdout
14623# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014624(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014625
John Criswell47fdd832003-07-14 16:52:07 +000014626# The names of the tagged configurations supported by this script.
14627available_tags=
14628
John Criswell7a73b802003-06-30 21:59:07 +000014629# ### BEGIN LIBTOOL CONFIG
14630
14631# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14632
14633# Shell to use when invoking shell scripts.
14634SHELL=$lt_SHELL
14635
14636# Whether or not to build shared libraries.
14637build_libtool_libs=$enable_shared
14638
14639# Whether or not to build static libraries.
14640build_old_libs=$enable_static
14641
14642# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014643build_libtool_need_lc=$archive_cmds_need_lc
14644
14645# Whether or not to disallow shared libs when runtime libs are static
14646allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014647
14648# Whether or not to optimize for fast installation.
14649fast_install=$enable_fast_install
14650
14651# The host system.
14652host_alias=$host_alias
14653host=$host
14654
14655# An echo program that does not interpret backslashes.
14656echo=$lt_echo
14657
14658# The archiver.
14659AR=$lt_AR
14660AR_FLAGS=$lt_AR_FLAGS
14661
John Criswell47fdd832003-07-14 16:52:07 +000014662# A C compiler.
14663LTCC=$lt_LTCC
14664
14665# A language-specific compiler.
14666CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014667
14668# Is the compiler the GNU C compiler?
14669with_gcc=$GCC
14670
John Criswell47fdd832003-07-14 16:52:07 +000014671# An ERE matcher.
14672EGREP=$lt_EGREP
14673
John Criswell7a73b802003-06-30 21:59:07 +000014674# The linker used to build libraries.
14675LD=$lt_LD
14676
14677# Whether we need hard or soft links.
14678LN_S=$lt_LN_S
14679
14680# A BSD-compatible nm program.
14681NM=$lt_NM
14682
14683# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014684STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014685
14686# Used to examine libraries when file_magic_cmd begins "file"
14687MAGIC_CMD=$MAGIC_CMD
14688
14689# Used on cygwin: DLL creation program.
14690DLLTOOL="$DLLTOOL"
14691
14692# Used on cygwin: object dumper.
14693OBJDUMP="$OBJDUMP"
14694
14695# Used on cygwin: assembler.
14696AS="$AS"
14697
14698# The name of the directory that contains temporary libtool files.
14699objdir=$objdir
14700
14701# How to create reloadable object files.
14702reload_flag=$lt_reload_flag
14703reload_cmds=$lt_reload_cmds
14704
14705# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014706wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014707
14708# Object file suffix (normally "o").
14709objext="$ac_objext"
14710
14711# Old archive suffix (normally "a").
14712libext="$libext"
14713
John Criswell47fdd832003-07-14 16:52:07 +000014714# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014715shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014716
John Criswell7a73b802003-06-30 21:59:07 +000014717# Executable file suffix (normally "").
14718exeext="$exeext"
14719
14720# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014721pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014722pic_mode=$pic_mode
14723
John Criswell47fdd832003-07-14 16:52:07 +000014724# What is the maximum length of a command?
14725max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014726
John Criswell47fdd832003-07-14 16:52:07 +000014727# Does compiler simultaneously support -c and -o options?
14728compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014729
14730# Must we lock files when doing compilation ?
14731need_locks=$lt_need_locks
14732
14733# Do we need the lib prefix for modules?
14734need_lib_prefix=$need_lib_prefix
14735
14736# Do we need a version for libraries?
14737need_version=$need_version
14738
14739# Whether dlopen is supported.
14740dlopen_support=$enable_dlopen
14741
14742# Whether dlopen of programs is supported.
14743dlopen_self=$enable_dlopen_self
14744
14745# Whether dlopen of statically linked programs is supported.
14746dlopen_self_static=$enable_dlopen_self_static
14747
14748# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014749link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014750
14751# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014752no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014753
14754# Compiler flag to allow reflexive dlopens.
14755export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14756
14757# Compiler flag to generate shared objects directly from archives.
14758whole_archive_flag_spec=$lt_whole_archive_flag_spec
14759
14760# Compiler flag to generate thread-safe objects.
14761thread_safe_flag_spec=$lt_thread_safe_flag_spec
14762
14763# Library versioning type.
14764version_type=$version_type
14765
14766# Format of library name prefix.
14767libname_spec=$lt_libname_spec
14768
14769# List of archive names. First name is the real one, the rest are links.
14770# The last name is the one that the linker finds with -lNAME.
14771library_names_spec=$lt_library_names_spec
14772
14773# The coded name of the library, if different from the real name.
14774soname_spec=$lt_soname_spec
14775
14776# Commands used to build and install an old-style archive.
14777RANLIB=$lt_RANLIB
14778old_archive_cmds=$lt_old_archive_cmds
14779old_postinstall_cmds=$lt_old_postinstall_cmds
14780old_postuninstall_cmds=$lt_old_postuninstall_cmds
14781
14782# Create an old-style archive from a shared archive.
14783old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14784
14785# Create a temporary old-style archive to link instead of a shared archive.
14786old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14787
14788# Commands used to build and install a shared archive.
14789archive_cmds=$lt_archive_cmds
14790archive_expsym_cmds=$lt_archive_expsym_cmds
14791postinstall_cmds=$lt_postinstall_cmds
14792postuninstall_cmds=$lt_postuninstall_cmds
14793
John Criswell47fdd832003-07-14 16:52:07 +000014794# Commands used to build a loadable module (assumed same as above if empty)
14795module_cmds=$lt_module_cmds
14796module_expsym_cmds=$lt_module_expsym_cmds
14797
John Criswell7a73b802003-06-30 21:59:07 +000014798# Commands to strip libraries.
14799old_striplib=$lt_old_striplib
14800striplib=$lt_striplib
14801
John Criswell47fdd832003-07-14 16:52:07 +000014802# Dependencies to place before the objects being linked to create a
14803# shared library.
14804predep_objects=$lt_predep_objects
14805
14806# Dependencies to place after the objects being linked to create a
14807# shared library.
14808postdep_objects=$lt_postdep_objects
14809
14810# Dependencies to place before the objects being linked to create a
14811# shared library.
14812predeps=$lt_predeps
14813
14814# Dependencies to place after the objects being linked to create a
14815# shared library.
14816postdeps=$lt_postdeps
14817
14818# The library search path used internally by the compiler when linking
14819# a shared library.
14820compiler_lib_search_path=$lt_compiler_lib_search_path
14821
John Criswell7a73b802003-06-30 21:59:07 +000014822# Method to check whether dependent libraries are shared objects.
14823deplibs_check_method=$lt_deplibs_check_method
14824
14825# Command to use when deplibs_check_method == file_magic.
14826file_magic_cmd=$lt_file_magic_cmd
14827
14828# Flag that allows shared libraries with undefined symbols to be built.
14829allow_undefined_flag=$lt_allow_undefined_flag
14830
14831# Flag that forces no undefined symbols.
14832no_undefined_flag=$lt_no_undefined_flag
14833
14834# Commands used to finish a libtool library installation in a directory.
14835finish_cmds=$lt_finish_cmds
14836
14837# Same as above, but a single script fragment to be evaled but not shown.
14838finish_eval=$lt_finish_eval
14839
14840# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014841global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014842
14843# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014844global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014845
14846# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014847global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014848
14849# This is the shared library runtime path variable.
14850runpath_var=$runpath_var
14851
14852# This is the shared library path variable.
14853shlibpath_var=$shlibpath_var
14854
14855# Is shlibpath searched before the hard-coded library search path?
14856shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14857
14858# How to hardcode a shared library path into an executable.
14859hardcode_action=$hardcode_action
14860
14861# Whether we should hardcode library paths into libraries.
14862hardcode_into_libs=$hardcode_into_libs
14863
14864# Flag to hardcode \$libdir into a binary during linking.
14865# This must work even if \$libdir does not exist.
14866hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14867
John Criswell47fdd832003-07-14 16:52:07 +000014868# If ld is used when linking, flag to hardcode \$libdir into
14869# a binary during linking. This must work even if \$libdir does
14870# not exist.
14871hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14872
John Criswell7a73b802003-06-30 21:59:07 +000014873# Whether we need a single -rpath flag with a separated argument.
14874hardcode_libdir_separator=$lt_hardcode_libdir_separator
14875
John Criswell47fdd832003-07-14 16:52:07 +000014876# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014877# resulting binary.
14878hardcode_direct=$hardcode_direct
14879
14880# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14881# resulting binary.
14882hardcode_minus_L=$hardcode_minus_L
14883
14884# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14885# the resulting binary.
14886hardcode_shlibpath_var=$hardcode_shlibpath_var
14887
John Criswell47fdd832003-07-14 16:52:07 +000014888# Set to yes if building a shared library automatically hardcodes DIR into the library
14889# and all subsequent libraries and executables linked against it.
14890hardcode_automatic=$hardcode_automatic
14891
John Criswell7a73b802003-06-30 21:59:07 +000014892# Variables whose values should be saved in libtool wrapper scripts and
14893# restored at relink time.
14894variables_saved_for_relink="$variables_saved_for_relink"
14895
14896# Whether libtool must link a program against all its dependency libraries.
14897link_all_deplibs=$link_all_deplibs
14898
14899# Compile-time system search path for libraries
14900sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14901
14902# Run-time system search path for libraries
14903sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14904
14905# Fix the shell variable \$srcfile for the compiler.
14906fix_srcfile_path="$fix_srcfile_path"
14907
14908# Set to yes if exported symbols are required.
14909always_export_symbols=$always_export_symbols
14910
14911# The commands to list exported symbols.
14912export_symbols_cmds=$lt_export_symbols_cmds
14913
14914# The commands to extract the exported symbol list from a shared archive.
14915extract_expsyms_cmds=$lt_extract_expsyms_cmds
14916
14917# Symbols that should not be listed in the preloaded symbols.
14918exclude_expsyms=$lt_exclude_expsyms
14919
14920# Symbols that must always be exported.
14921include_expsyms=$lt_include_expsyms
14922
14923# ### END LIBTOOL CONFIG
14924
14925__EOF__
14926
John Criswell47fdd832003-07-14 16:52:07 +000014927
John Criswell7a73b802003-06-30 21:59:07 +000014928 case $host_os in
14929 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014930 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014931
14932# AIX sometimes has problems with the GCC collect2 program. For some
14933# reason, if we set the COLLECT_NAMES environment variable, the problems
14934# vanish in a puff of smoke.
14935if test "X${COLLECT_NAMES+set}" != Xset; then
14936 COLLECT_NAMES=
14937 export COLLECT_NAMES
14938fi
14939EOF
14940 ;;
14941 esac
14942
John Criswell7a73b802003-06-30 21:59:07 +000014943 # We use sed instead of cat because bash on DJGPP gets confused if
14944 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14945 # text mode, it properly converts lines to CR/LF. This bash problem
14946 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014947 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014948
John Criswell47fdd832003-07-14 16:52:07 +000014949 mv -f "$cfgfile" "$ofile" || \
14950 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014951 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014952
14953else
14954 # If there is no Makefile yet, we rely on a make rule to execute
14955 # `config.status --recheck' to rerun these tests and create the
14956 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014957 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14958 if test -f "$ltmain_in"; then
14959 test -f Makefile && make "$ltmain"
14960 fi
John Criswell7a73b802003-06-30 21:59:07 +000014961fi
John Criswell7a73b802003-06-30 21:59:07 +000014962
14963
John Criswell47fdd832003-07-14 16:52:07 +000014964ac_ext=c
14965ac_cpp='$CPP $CPPFLAGS'
14966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14968ac_compiler_gnu=$ac_cv_c_compiler_gnu
14969
14970CC="$lt_save_CC"
14971
14972
14973# Check whether --with-tags or --without-tags was given.
14974if test "${with_tags+set}" = set; then
14975 withval="$with_tags"
14976 tagnames="$withval"
14977fi;
14978
14979if test -f "$ltmain" && test -n "$tagnames"; then
14980 if test ! -f "${ofile}"; then
14981 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14982echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14983 fi
14984
14985 if test -z "$LTCC"; then
14986 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14987 if test -z "$LTCC"; then
14988 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14989echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14990 else
14991 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14992echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14993 fi
14994 fi
14995
14996 # Extract list of available tagged configurations in $ofile.
14997 # Note that this assumes the entire list is on one line.
14998 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14999
15000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15001 for tagname in $tagnames; do
15002 IFS="$lt_save_ifs"
15003 # Check whether tagname contains only valid characters
15004 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15005 "") ;;
15006 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15007echo "$as_me: error: invalid tag name: $tagname" >&2;}
15008 { (exit 1); exit 1; }; }
15009 ;;
15010 esac
15011
15012 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15013 then
15014 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15015echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15016 { (exit 1); exit 1; }; }
15017 fi
15018
15019 # Update the list of available tags.
15020 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015021 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015022
15023 case $tagname in
15024 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015025 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15026 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15027 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015028 ac_ext=cc
15029ac_cpp='$CXXCPP $CPPFLAGS'
15030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15033
15034
15035
15036
15037archive_cmds_need_lc_CXX=no
15038allow_undefined_flag_CXX=
15039always_export_symbols_CXX=no
15040archive_expsym_cmds_CXX=
15041export_dynamic_flag_spec_CXX=
15042hardcode_direct_CXX=no
15043hardcode_libdir_flag_spec_CXX=
15044hardcode_libdir_flag_spec_ld_CXX=
15045hardcode_libdir_separator_CXX=
15046hardcode_minus_L_CXX=no
15047hardcode_automatic_CXX=no
15048module_cmds_CXX=
15049module_expsym_cmds_CXX=
15050link_all_deplibs_CXX=unknown
15051old_archive_cmds_CXX=$old_archive_cmds
15052no_undefined_flag_CXX=
15053whole_archive_flag_spec_CXX=
15054enable_shared_with_static_runtimes_CXX=no
15055
15056# Dependencies to place before and after the object being linked:
15057predep_objects_CXX=
15058postdep_objects_CXX=
15059predeps_CXX=
15060postdeps_CXX=
15061compiler_lib_search_path_CXX=
15062
15063# Source file extension for C++ test sources.
15064ac_ext=cc
15065
15066# Object file extension for compiled C++ test sources.
15067objext=o
15068objext_CXX=$objext
15069
15070# Code to be used in simple compile tests
15071lt_simple_compile_test_code="int some_variable = 0;\n"
15072
15073# Code to be used in simple link tests
15074lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15075
15076# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15077
15078# If no C compiler was specified, use CC.
15079LTCC=${LTCC-"$CC"}
15080
15081# Allow CC to be a program name with arguments.
15082compiler=$CC
15083
15084
15085# Allow CC to be a program name with arguments.
15086lt_save_CC=$CC
15087lt_save_LD=$LD
15088lt_save_GCC=$GCC
15089GCC=$GXX
15090lt_save_with_gnu_ld=$with_gnu_ld
15091lt_save_path_LD=$lt_cv_path_LD
15092if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15093 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15094else
15095 unset lt_cv_prog_gnu_ld
15096fi
15097if test -n "${lt_cv_path_LDCXX+set}"; then
15098 lt_cv_path_LD=$lt_cv_path_LDCXX
15099else
15100 unset lt_cv_path_LD
15101fi
15102test -z "${LDCXX+set}" || LD=$LDCXX
15103CC=${CXX-"c++"}
15104compiler=$CC
15105compiler_CXX=$CC
15106cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15107
15108# We don't want -fno-exception wen compiling C++ code, so set the
15109# no_builtin_flag separately
15110if test "$GXX" = yes; then
15111 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15112else
15113 lt_prog_compiler_no_builtin_flag_CXX=
15114fi
15115
15116if test "$GXX" = yes; then
15117 # Set up default GNU C++ configuration
15118
15119
15120# Check whether --with-gnu-ld or --without-gnu-ld was given.
15121if test "${with_gnu_ld+set}" = set; then
15122 withval="$with_gnu_ld"
15123 test "$withval" = no || with_gnu_ld=yes
15124else
15125 with_gnu_ld=no
15126fi;
15127ac_prog=ld
15128if test "$GCC" = yes; then
15129 # Check if gcc -print-prog-name=ld gives a path.
15130 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15131echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15132 case $host in
15133 *-*-mingw*)
15134 # gcc leaves a trailing carriage return which upsets mingw
15135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15136 *)
15137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15138 esac
15139 case $ac_prog in
15140 # Accept absolute paths.
15141 [\\/]* | ?:[\\/]*)
15142 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015143 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015144 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15146 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15147 done
15148 test -z "$LD" && LD="$ac_prog"
15149 ;;
15150 "")
15151 # If it fails, then pretend we aren't using GCC.
15152 ac_prog=ld
15153 ;;
15154 *)
15155 # If it is relative, then search for the first ld in PATH.
15156 with_gnu_ld=unknown
15157 ;;
15158 esac
15159elif test "$with_gnu_ld" = yes; then
15160 echo "$as_me:$LINENO: checking for GNU ld" >&5
15161echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15162else
15163 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15164echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15165fi
15166if test "${lt_cv_path_LD+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168else
15169 if test -z "$LD"; then
15170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15171 for ac_dir in $PATH; do
15172 IFS="$lt_save_ifs"
15173 test -z "$ac_dir" && ac_dir=.
15174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15175 lt_cv_path_LD="$ac_dir/$ac_prog"
15176 # Check to see if the program is GNU ld. I'd rather use --version,
15177 # but apparently some GNU ld's only accept -v.
15178 # Break only if it was the GNU/non-GNU ld that we prefer.
15179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15180 *GNU* | *'with BFD'*)
15181 test "$with_gnu_ld" != no && break
15182 ;;
15183 *)
15184 test "$with_gnu_ld" != yes && break
15185 ;;
15186 esac
15187 fi
15188 done
15189 IFS="$lt_save_ifs"
15190else
15191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15192fi
15193fi
15194
15195LD="$lt_cv_path_LD"
15196if test -n "$LD"; then
15197 echo "$as_me:$LINENO: result: $LD" >&5
15198echo "${ECHO_T}$LD" >&6
15199else
15200 echo "$as_me:$LINENO: result: no" >&5
15201echo "${ECHO_T}no" >&6
15202fi
15203test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15204echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15205 { (exit 1); exit 1; }; }
15206echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15207echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15208if test "${lt_cv_prog_gnu_ld+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210else
15211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015212case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015213*GNU* | *'with BFD'*)
15214 lt_cv_prog_gnu_ld=yes
15215 ;;
15216*)
15217 lt_cv_prog_gnu_ld=no
15218 ;;
15219esac
15220fi
15221echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15222echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15223with_gnu_ld=$lt_cv_prog_gnu_ld
15224
15225
15226
15227 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15228 # archiving commands below assume that GNU ld is being used.
15229 if test "$with_gnu_ld" = yes; then
15230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15231 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'
15232
15233 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15235
15236 # If archive_cmds runs LD, not CC, wlarc should be empty
15237 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15238 # investigate it a little bit more. (MM)
15239 wlarc='${wl}'
15240
15241 # ancient GNU ld didn't support --whole-archive et. al.
15242 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15243 grep 'no-whole-archive' > /dev/null; then
15244 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15245 else
15246 whole_archive_flag_spec_CXX=
15247 fi
15248 else
15249 with_gnu_ld=no
15250 wlarc=
15251
15252 # A generic and very simple default shared library creation
15253 # command for GNU C++ for the case where it uses the native
15254 # linker, instead of GNU ld. If possible, this setting should
15255 # overridden to take advantage of the native linker features on
15256 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015258 fi
15259
15260 # Commands to make compiler produce verbose output that lists
15261 # what "hidden" libraries, object files and flags are used when
15262 # linking a shared library.
15263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15264
15265else
15266 GXX=no
15267 with_gnu_ld=no
15268 wlarc=
15269fi
15270
15271# PORTME: fill in a description of your system's C++ link characteristics
15272echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15273echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15274ld_shlibs_CXX=yes
15275case $host_os in
15276 aix3*)
15277 # FIXME: insert proper C++ library support
15278 ld_shlibs_CXX=no
15279 ;;
15280 aix4* | aix5*)
15281 if test "$host_cpu" = ia64; then
15282 # On IA64, the linker does run time linking by default, so we don't
15283 # have to do anything special.
15284 aix_use_runtimelinking=no
15285 exp_sym_flag='-Bexport'
15286 no_entry_flag=""
15287 else
15288 aix_use_runtimelinking=no
15289
15290 # Test if we are trying to use run time linking or normal
15291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15292 # need to do runtime linking.
15293 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15294 for ld_flag in $LDFLAGS; do
15295 case $ld_flag in
15296 *-brtl*)
15297 aix_use_runtimelinking=yes
15298 break
15299 ;;
15300 esac
15301 done
15302 esac
15303
15304 exp_sym_flag='-bexport'
15305 no_entry_flag='-bnoentry'
15306 fi
15307
15308 # When large executables or shared objects are built, AIX ld can
15309 # have problems creating the table of contents. If linking a library
15310 # or program results in "error TOC overflow" add -mminimal-toc to
15311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15313
15314 archive_cmds_CXX=''
15315 hardcode_direct_CXX=yes
15316 hardcode_libdir_separator_CXX=':'
15317 link_all_deplibs_CXX=yes
15318
15319 if test "$GXX" = yes; then
15320 case $host_os in aix4.012|aix4.012.*)
15321 # We only want to do this on AIX 4.2 and lower, the check
15322 # below for broken collect2 doesn't work under 4.3+
15323 collect2name=`${CC} -print-prog-name=collect2`
15324 if test -f "$collect2name" && \
15325 strings "$collect2name" | grep resolve_lib_name >/dev/null
15326 then
15327 # We have reworked collect2
15328 hardcode_direct_CXX=yes
15329 else
15330 # We have old collect2
15331 hardcode_direct_CXX=unsupported
15332 # It fails to find uninstalled libraries when the uninstalled
15333 # path is not listed in the libpath. Setting hardcode_minus_L
15334 # to unsupported forces relinking
15335 hardcode_minus_L_CXX=yes
15336 hardcode_libdir_flag_spec_CXX='-L$libdir'
15337 hardcode_libdir_separator_CXX=
15338 fi
15339 esac
15340 shared_flag='-shared'
15341 else
15342 # not using gcc
15343 if test "$host_cpu" = ia64; then
15344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15345 # chokes on -Wl,-G. The following line is correct:
15346 shared_flag='-G'
15347 else
15348 if test "$aix_use_runtimelinking" = yes; then
15349 shared_flag='${wl}-G'
15350 else
15351 shared_flag='${wl}-bM:SRE'
15352 fi
15353 fi
15354 fi
15355
15356 # It seems that -bexpall does not export symbols beginning with
15357 # underscore (_), so it is better to generate a list of symbols to export.
15358 always_export_symbols_CXX=yes
15359 if test "$aix_use_runtimelinking" = yes; then
15360 # Warning - without using the other runtime loading flags (-brtl),
15361 # -berok will link without error, but may produce a broken library.
15362 allow_undefined_flag_CXX='-berok'
15363 # Determine the default libpath from the value encoded in an empty executable.
15364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015365/* confdefs.h. */
15366_ACEOF
15367cat confdefs.h >>conftest.$ac_ext
15368cat >>conftest.$ac_ext <<_ACEOF
15369/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015370
John Criswell47fdd832003-07-14 16:52:07 +000015371int
15372main ()
15373{
15374
15375 ;
15376 return 0;
15377}
15378_ACEOF
15379rm -f conftest.$ac_objext conftest$ac_exeext
15380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015381 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015388 { ac_try='test -z "$ac_cxx_werror_flag"
15389 || test ! -s conftest.err'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401
15402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15403}'`
15404# Check for a 64-bit object if we didn't find anything.
15405if 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; }
15406}'`; fi
15407else
15408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015409sed 's/^/| /' conftest.$ac_ext >&5
15410
John Criswell47fdd832003-07-14 16:52:07 +000015411fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015412rm -f conftest.err conftest.$ac_objext \
15413 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15415
15416 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15417
15418 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"
15419 else
15420 if test "$host_cpu" = ia64; then
15421 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15422 allow_undefined_flag_CXX="-z nodefs"
15423 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"
15424 else
15425 # Determine the default libpath from the value encoded in an empty executable.
15426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015427/* confdefs.h. */
15428_ACEOF
15429cat confdefs.h >>conftest.$ac_ext
15430cat >>conftest.$ac_ext <<_ACEOF
15431/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015432
John Criswell47fdd832003-07-14 16:52:07 +000015433int
15434main ()
15435{
15436
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext conftest$ac_exeext
15442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015443 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015444 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015450 { ac_try='test -z "$ac_cxx_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463
15464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15465}'`
15466# Check for a 64-bit object if we didn't find anything.
15467if 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; }
15468}'`; fi
15469else
15470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015471sed 's/^/| /' conftest.$ac_ext >&5
15472
John Criswell47fdd832003-07-14 16:52:07 +000015473fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015474rm -f conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015476if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15477
15478 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15479 # Warning - without using the other run time loading flags,
15480 # -berok will link without error, but may produce a broken library.
15481 no_undefined_flag_CXX=' ${wl}-bernotok'
15482 allow_undefined_flag_CXX=' ${wl}-berok'
15483 # -bexpall does not export symbols beginning with underscore (_)
15484 always_export_symbols_CXX=yes
15485 # Exported symbols can be pulled into shared objects from archives
15486 whole_archive_flag_spec_CXX=' '
15487 archive_cmds_need_lc_CXX=yes
15488 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015489 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 +000015490 fi
15491 fi
15492 ;;
15493 chorus*)
15494 case $cc_basename in
15495 *)
15496 # FIXME: insert proper C++ library support
15497 ld_shlibs_CXX=no
15498 ;;
15499 esac
15500 ;;
15501
Reid Spencer2706f8c2004-09-19 23:53:36 +000015502
John Criswell47fdd832003-07-14 16:52:07 +000015503 cygwin* | mingw* | pw32*)
15504 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15505 # as there is no search path for DLLs.
15506 hardcode_libdir_flag_spec_CXX='-L$libdir'
15507 allow_undefined_flag_CXX=unsupported
15508 always_export_symbols_CXX=no
15509 enable_shared_with_static_runtimes_CXX=yes
15510
15511 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15512 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'
15513 # If the export-symbols file already is a .def file (1st line
15514 # is EXPORTS), use it as is; otherwise, prepend...
15515 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15516 cp $export_symbols $output_objdir/$soname.def;
15517 else
15518 echo EXPORTS > $output_objdir/$soname.def;
15519 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015520 fi~
15521 $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 +000015522 else
15523 ld_shlibs_CXX=no
15524 fi
15525 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015526 darwin* | rhapsody*)
15527 case "$host_os" in
15528 rhapsody* | darwin1.[012])
15529 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15530 ;;
15531 *) # Darwin 1.3 on
15532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15533 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15534 else
15535 case ${MACOSX_DEPLOYMENT_TARGET} in
15536 10.[012])
15537 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15538 ;;
15539 10.*)
15540 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15541 ;;
15542 esac
15543 fi
15544 ;;
15545 esac
15546 archive_cmds_need_lc_CXX=no
15547 hardcode_direct_CXX=no
15548 hardcode_automatic_CXX=yes
15549 hardcode_shlibpath_var_CXX=unsupported
15550 whole_archive_flag_spec_CXX=''
15551 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015552
Reid Spencer2706f8c2004-09-19 23:53:36 +000015553 if test "$GXX" = yes ; then
15554 lt_int_apple_cc_single_mod=no
15555 output_verbose_link_cmd='echo'
15556 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15557 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015558 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015559 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015560 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 +000015561 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015562 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 +000015563 fi
15564 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015567 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 +000015568 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015569 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 +000015570 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015571 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 +000015572 else
15573 case "$cc_basename" in
15574 xlc*)
15575 output_verbose_link_cmd='echo'
15576 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'
15577 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578 # 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 +000015579 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}'
15580 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 +000015581 ;;
15582 *)
15583 ld_shlibs_CXX=no
15584 ;;
15585 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015586 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015587 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015588
15589 dgux*)
15590 case $cc_basename in
15591 ec++)
15592 # FIXME: insert proper C++ library support
15593 ld_shlibs_CXX=no
15594 ;;
15595 ghcx)
15596 # Green Hills C++ Compiler
15597 # FIXME: insert proper C++ library support
15598 ld_shlibs_CXX=no
15599 ;;
15600 *)
15601 # FIXME: insert proper C++ library support
15602 ld_shlibs_CXX=no
15603 ;;
15604 esac
15605 ;;
15606 freebsd12*)
15607 # C++ shared libraries reported to be fairly broken before switch to ELF
15608 ld_shlibs_CXX=no
15609 ;;
15610 freebsd-elf*)
15611 archive_cmds_need_lc_CXX=no
15612 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015613 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015614 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15615 # conventions
15616 ld_shlibs_CXX=yes
15617 ;;
15618 gnu*)
15619 ;;
15620 hpux9*)
15621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15622 hardcode_libdir_separator_CXX=:
15623 export_dynamic_flag_spec_CXX='${wl}-E'
15624 hardcode_direct_CXX=yes
15625 hardcode_minus_L_CXX=yes # Not in the search PATH,
15626 # but as the default
15627 # location of the library.
15628
15629 case $cc_basename in
15630 CC)
15631 # FIXME: insert proper C++ library support
15632 ld_shlibs_CXX=no
15633 ;;
15634 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015635 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 +000015636 # Commands to make compiler produce verbose output that lists
15637 # what "hidden" libraries, object files and flags are used when
15638 # linking a shared library.
15639 #
15640 # There doesn't appear to be a way to prevent this compiler from
15641 # explicitly linking system object files so we need to strip them
15642 # from the output so that they don't get included in the library
15643 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015644 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 +000015645 ;;
15646 *)
15647 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015648 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 +000015649 else
15650 # FIXME: insert proper C++ library support
15651 ld_shlibs_CXX=no
15652 fi
15653 ;;
15654 esac
15655 ;;
15656 hpux10*|hpux11*)
15657 if test $with_gnu_ld = no; then
15658 case "$host_cpu" in
15659 hppa*64*)
15660 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15661 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15662 hardcode_libdir_separator_CXX=:
15663 ;;
15664 ia64*)
15665 hardcode_libdir_flag_spec_CXX='-L$libdir'
15666 ;;
15667 *)
15668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15669 hardcode_libdir_separator_CXX=:
15670 export_dynamic_flag_spec_CXX='${wl}-E'
15671 ;;
15672 esac
15673 fi
15674 case "$host_cpu" in
15675 hppa*64*)
15676 hardcode_direct_CXX=no
15677 hardcode_shlibpath_var_CXX=no
15678 ;;
15679 ia64*)
15680 hardcode_direct_CXX=no
15681 hardcode_shlibpath_var_CXX=no
15682 hardcode_minus_L_CXX=yes # Not in the search PATH,
15683 # but as the default
15684 # location of the library.
15685 ;;
15686 *)
15687 hardcode_direct_CXX=yes
15688 hardcode_minus_L_CXX=yes # Not in the search PATH,
15689 # but as the default
15690 # location of the library.
15691 ;;
15692 esac
15693
15694 case $cc_basename in
15695 CC)
15696 # FIXME: insert proper C++ library support
15697 ld_shlibs_CXX=no
15698 ;;
15699 aCC)
15700 case "$host_cpu" in
15701 hppa*64*|ia64*)
15702 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15703 ;;
15704 *)
15705 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15706 ;;
15707 esac
15708 # Commands to make compiler produce verbose output that lists
15709 # what "hidden" libraries, object files and flags are used when
15710 # linking a shared library.
15711 #
15712 # There doesn't appear to be a way to prevent this compiler from
15713 # explicitly linking system object files so we need to strip them
15714 # from the output so that they don't get included in the library
15715 # dependencies.
15716 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'
15717 ;;
15718 *)
15719 if test "$GXX" = yes; then
15720 if test $with_gnu_ld = no; then
15721 case "$host_cpu" in
15722 ia64*|hppa*64*)
15723 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15724 ;;
15725 *)
15726 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'
15727 ;;
15728 esac
15729 fi
15730 else
15731 # FIXME: insert proper C++ library support
15732 ld_shlibs_CXX=no
15733 fi
15734 ;;
15735 esac
15736 ;;
15737 irix5* | irix6*)
15738 case $cc_basename in
15739 CC)
15740 # SGI C++
15741 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'
15742
15743 # Archives containing C++ object files must be created using
15744 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15745 # necessary to make sure instantiated templates are included
15746 # in the archive.
15747 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15748 ;;
15749 *)
15750 if test "$GXX" = yes; then
15751 if test "$with_gnu_ld" = no; then
15752 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'
15753 else
15754 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'
15755 fi
15756 fi
15757 link_all_deplibs_CXX=yes
15758 ;;
15759 esac
15760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15761 hardcode_libdir_separator_CXX=:
15762 ;;
15763 linux*)
15764 case $cc_basename in
15765 KCC)
15766 # Kuck and Associates, Inc. (KAI) C++ Compiler
15767
15768 # KCC will only create a shared library if the output file
15769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15770 # to its proper name (with version) after linking.
15771 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'
15772 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'
15773 # Commands to make compiler produce verbose output that lists
15774 # what "hidden" libraries, object files and flags are used when
15775 # linking a shared library.
15776 #
15777 # There doesn't appear to be a way to prevent this compiler from
15778 # explicitly linking system object files so we need to strip them
15779 # from the output so that they don't get included in the library
15780 # dependencies.
15781 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'
15782
15783 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15785
15786 # Archives containing C++ object files must be created using
15787 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15788 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15789 ;;
15790 icpc)
15791 # Intel C++
15792 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015793 # version 8.0 and above of icpc choke on multiply defined symbols
15794 # if we add $predep_objects and $postdep_objects, however 7.1 and
15795 # earlier do not add the objects themselves.
15796 case `$CC -V 2>&1` in
15797 *"Version 7."*)
15798 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15799 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'
15800 ;;
15801 *) # Version 8.0 or newer
15802 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15804 ;;
15805 esac
John Criswell47fdd832003-07-14 16:52:07 +000015806 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15809 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15810 ;;
15811 cxx)
15812 # Compaq C++
15813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814 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'
15815
15816 runpath_var=LD_RUN_PATH
15817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15818 hardcode_libdir_separator_CXX=:
15819
15820 # Commands to make compiler produce verbose output that lists
15821 # what "hidden" libraries, object files and flags are used when
15822 # linking a shared library.
15823 #
15824 # There doesn't appear to be a way to prevent this compiler from
15825 # explicitly linking system object files so we need to strip them
15826 # from the output so that they don't get included in the library
15827 # dependencies.
15828 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'
15829 ;;
15830 esac
15831 ;;
15832 lynxos*)
15833 # FIXME: insert proper C++ library support
15834 ld_shlibs_CXX=no
15835 ;;
15836 m88k*)
15837 # FIXME: insert proper C++ library support
15838 ld_shlibs_CXX=no
15839 ;;
15840 mvs*)
15841 case $cc_basename in
15842 cxx)
15843 # FIXME: insert proper C++ library support
15844 ld_shlibs_CXX=no
15845 ;;
15846 *)
15847 # FIXME: insert proper C++ library support
15848 ld_shlibs_CXX=no
15849 ;;
15850 esac
15851 ;;
15852 netbsd*)
15853 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15854 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15855 wlarc=
15856 hardcode_libdir_flag_spec_CXX='-R$libdir'
15857 hardcode_direct_CXX=yes
15858 hardcode_shlibpath_var_CXX=no
15859 fi
15860 # Workaround some broken pre-1.5 toolchains
15861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15862 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015863 openbsd2*)
15864 # C++ shared libraries are fairly broken
15865 ld_shlibs_CXX=no
15866 ;;
15867 openbsd*)
15868 hardcode_direct_CXX=yes
15869 hardcode_shlibpath_var_CXX=no
15870 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15873 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15874 export_dynamic_flag_spec_CXX='${wl}-E'
15875 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15876 fi
15877 output_verbose_link_cmd='echo'
15878 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015879 osf3*)
15880 case $cc_basename in
15881 KCC)
15882 # Kuck and Associates, Inc. (KAI) C++ Compiler
15883
15884 # KCC will only create a shared library if the output file
15885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15886 # to its proper name (with version) after linking.
15887 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'
15888
15889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15890 hardcode_libdir_separator_CXX=:
15891
15892 # Archives containing C++ object files must be created using
15893 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15894 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15895
15896 ;;
15897 RCC)
15898 # Rational C++ 2.4.1
15899 # FIXME: insert proper C++ library support
15900 ld_shlibs_CXX=no
15901 ;;
15902 cxx)
15903 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15904 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'
15905
15906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15907 hardcode_libdir_separator_CXX=:
15908
15909 # Commands to make compiler produce verbose output that lists
15910 # what "hidden" libraries, object files and flags are used when
15911 # linking a shared library.
15912 #
15913 # There doesn't appear to be a way to prevent this compiler from
15914 # explicitly linking system object files so we need to strip them
15915 # from the output so that they don't get included in the library
15916 # dependencies.
15917 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'
15918 ;;
15919 *)
15920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15922 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'
15923
15924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15925 hardcode_libdir_separator_CXX=:
15926
15927 # Commands to make compiler produce verbose output that lists
15928 # what "hidden" libraries, object files and flags are used when
15929 # linking a shared library.
15930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15931
15932 else
15933 # FIXME: insert proper C++ library support
15934 ld_shlibs_CXX=no
15935 fi
15936 ;;
15937 esac
15938 ;;
15939 osf4* | osf5*)
15940 case $cc_basename in
15941 KCC)
15942 # Kuck and Associates, Inc. (KAI) C++ Compiler
15943
15944 # KCC will only create a shared library if the output file
15945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15946 # to its proper name (with version) after linking.
15947 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'
15948
15949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15950 hardcode_libdir_separator_CXX=:
15951
15952 # Archives containing C++ object files must be created using
15953 # the KAI C++ compiler.
15954 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15955 ;;
15956 RCC)
15957 # Rational C++ 2.4.1
15958 # FIXME: insert proper C++ library support
15959 ld_shlibs_CXX=no
15960 ;;
15961 cxx)
15962 allow_undefined_flag_CXX=' -expect_unresolved \*'
15963 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 +000015964 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15965 echo "-hidden">> $lib.exp~
15966 $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~
15967 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015968
15969 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15970 hardcode_libdir_separator_CXX=:
15971
15972 # Commands to make compiler produce verbose output that lists
15973 # what "hidden" libraries, object files and flags are used when
15974 # linking a shared library.
15975 #
15976 # There doesn't appear to be a way to prevent this compiler from
15977 # explicitly linking system object files so we need to strip them
15978 # from the output so that they don't get included in the library
15979 # dependencies.
15980 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'
15981 ;;
15982 *)
15983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15985 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'
15986
15987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15988 hardcode_libdir_separator_CXX=:
15989
15990 # Commands to make compiler produce verbose output that lists
15991 # what "hidden" libraries, object files and flags are used when
15992 # linking a shared library.
15993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15994
15995 else
15996 # FIXME: insert proper C++ library support
15997 ld_shlibs_CXX=no
15998 fi
15999 ;;
16000 esac
16001 ;;
16002 psos*)
16003 # FIXME: insert proper C++ library support
16004 ld_shlibs_CXX=no
16005 ;;
16006 sco*)
16007 archive_cmds_need_lc_CXX=no
16008 case $cc_basename in
16009 CC)
16010 # FIXME: insert proper C++ library support
16011 ld_shlibs_CXX=no
16012 ;;
16013 *)
16014 # FIXME: insert proper C++ library support
16015 ld_shlibs_CXX=no
16016 ;;
16017 esac
16018 ;;
16019 sunos4*)
16020 case $cc_basename in
16021 CC)
16022 # Sun C++ 4.x
16023 # FIXME: insert proper C++ library support
16024 ld_shlibs_CXX=no
16025 ;;
16026 lcc)
16027 # Lucid
16028 # FIXME: insert proper C++ library support
16029 ld_shlibs_CXX=no
16030 ;;
16031 *)
16032 # FIXME: insert proper C++ library support
16033 ld_shlibs_CXX=no
16034 ;;
16035 esac
16036 ;;
16037 solaris*)
16038 case $cc_basename in
16039 CC)
16040 # Sun C++ 4.2, 5.x and Centerline C++
16041 no_undefined_flag_CXX=' -zdefs'
16042 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 +000016043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16044 $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 +000016045
16046 hardcode_libdir_flag_spec_CXX='-R$libdir'
16047 hardcode_shlibpath_var_CXX=no
16048 case $host_os in
16049 solaris2.0-5 | solaris2.0-5.*) ;;
16050 *)
16051 # The C++ compiler is used as linker so we must use $wl
16052 # flag to pass the commands to the underlying system
16053 # linker.
16054 # Supported since Solaris 2.6 (maybe 2.5.1?)
16055 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16056 ;;
16057 esac
16058 link_all_deplibs_CXX=yes
16059
16060 # Commands to make compiler produce verbose output that lists
16061 # what "hidden" libraries, object files and flags are used when
16062 # linking a shared library.
16063 #
16064 # There doesn't appear to be a way to prevent this compiler from
16065 # explicitly linking system object files so we need to strip them
16066 # from the output so that they don't get included in the library
16067 # dependencies.
16068 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'
16069
16070 # Archives containing C++ object files must be created using
16071 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16072 # necessary to make sure instantiated templates are included
16073 # in the archive.
16074 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16075 ;;
16076 gcx)
16077 # Green Hills C++ Compiler
16078 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16079
16080 # The C++ compiler must be used to create the archive.
16081 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16082 ;;
16083 *)
16084 # GNU C++ compiler with Solaris linker
16085 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16086 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16087 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016088 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 +000016089 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16090 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16091
John Criswell47fdd832003-07-14 16:52:07 +000016092 # Commands to make compiler produce verbose output that lists
16093 # what "hidden" libraries, object files and flags are used when
16094 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016095 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016096 else
16097 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16098 # platform.
16099 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 +000016100 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16101 $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 +000016102
16103 # Commands to make compiler produce verbose output that lists
16104 # what "hidden" libraries, object files and flags are used when
16105 # linking a shared library.
16106 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16107 fi
16108
16109 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16110 fi
16111 ;;
16112 esac
16113 ;;
16114 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16115 archive_cmds_need_lc_CXX=no
16116 ;;
16117 tandem*)
16118 case $cc_basename in
16119 NCC)
16120 # NonStop-UX NCC 3.20
16121 # FIXME: insert proper C++ library support
16122 ld_shlibs_CXX=no
16123 ;;
16124 *)
16125 # FIXME: insert proper C++ library support
16126 ld_shlibs_CXX=no
16127 ;;
16128 esac
16129 ;;
16130 vxworks*)
16131 # FIXME: insert proper C++ library support
16132 ld_shlibs_CXX=no
16133 ;;
16134 *)
16135 # FIXME: insert proper C++ library support
16136 ld_shlibs_CXX=no
16137 ;;
16138esac
16139echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16140echo "${ECHO_T}$ld_shlibs_CXX" >&6
16141test "$ld_shlibs_CXX" = no && can_build_shared=no
16142
16143GCC_CXX="$GXX"
16144LD_CXX="$LD"
16145
John Criswell47fdd832003-07-14 16:52:07 +000016146
16147cat > conftest.$ac_ext <<EOF
16148class Foo
16149{
16150public:
16151 Foo (void) { a = 0; }
16152private:
16153 int a;
16154};
16155EOF
16156
16157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16158 (eval $ac_compile) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; then
16162 # Parse the compiler output and extract the necessary
16163 # objects, libraries and library flags.
16164
16165 # Sentinel used to keep track of whether or not we are before
16166 # the conftest object file.
16167 pre_test_object_deps_done=no
16168
16169 # The `*' in the case matches for architectures that use `case' in
16170 # $output_verbose_cmd can trigger glob expansion during the loop
16171 # eval without this substitution.
16172 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16173
16174 for p in `eval $output_verbose_link_cmd`; do
16175 case $p in
16176
16177 -L* | -R* | -l*)
16178 # Some compilers place space between "-{L,R}" and the path.
16179 # Remove the space.
16180 if test $p = "-L" \
16181 || test $p = "-R"; then
16182 prev=$p
16183 continue
16184 else
16185 prev=
16186 fi
16187
16188 if test "$pre_test_object_deps_done" = no; then
16189 case $p in
16190 -L* | -R*)
16191 # Internal compiler library paths should come after those
16192 # provided the user. The postdeps already come after the
16193 # user supplied libs so there is no need to process them.
16194 if test -z "$compiler_lib_search_path_CXX"; then
16195 compiler_lib_search_path_CXX="${prev}${p}"
16196 else
16197 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16198 fi
16199 ;;
16200 # The "-l" case would never come before the object being
16201 # linked, so don't bother handling this case.
16202 esac
16203 else
16204 if test -z "$postdeps_CXX"; then
16205 postdeps_CXX="${prev}${p}"
16206 else
16207 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16208 fi
16209 fi
16210 ;;
16211
16212 *.$objext)
16213 # This assumes that the test object file only shows up
16214 # once in the compiler output.
16215 if test "$p" = "conftest.$objext"; then
16216 pre_test_object_deps_done=yes
16217 continue
16218 fi
16219
16220 if test "$pre_test_object_deps_done" = no; then
16221 if test -z "$predep_objects_CXX"; then
16222 predep_objects_CXX="$p"
16223 else
16224 predep_objects_CXX="$predep_objects_CXX $p"
16225 fi
16226 else
16227 if test -z "$postdep_objects_CXX"; then
16228 postdep_objects_CXX="$p"
16229 else
16230 postdep_objects_CXX="$postdep_objects_CXX $p"
16231 fi
16232 fi
16233 ;;
16234
16235 *) ;; # Ignore the rest.
16236
16237 esac
16238 done
16239
16240 # Clean up.
16241 rm -f a.out a.exe
16242else
16243 echo "libtool.m4: error: problem compiling CXX test program"
16244fi
16245
16246$rm -f confest.$objext
16247
16248case " $postdeps_CXX " in
16249*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16250esac
16251
16252lt_prog_compiler_wl_CXX=
16253lt_prog_compiler_pic_CXX=
16254lt_prog_compiler_static_CXX=
16255
16256echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16257echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16258
16259 # C++ specific cases for pic, static, wl, etc.
16260 if test "$GXX" = yes; then
16261 lt_prog_compiler_wl_CXX='-Wl,'
16262 lt_prog_compiler_static_CXX='-static'
16263
16264 case $host_os in
16265 aix*)
16266 # All AIX code is PIC.
16267 if test "$host_cpu" = ia64; then
16268 # AIX 5 now supports IA64 processor
16269 lt_prog_compiler_static_CXX='-Bstatic'
16270 fi
16271 ;;
16272 amigaos*)
16273 # FIXME: we need at least 68020 code to build shared libraries, but
16274 # adding the `-m68020' flag to GCC prevents building anything better,
16275 # like `-m68040'.
16276 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16277 ;;
16278 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16279 # PIC is the default for these OSes.
16280 ;;
16281 mingw* | os2* | pw32*)
16282 # This hack is so that the source file can tell whether it is being
16283 # built for inclusion in a dll (and should export symbols for example).
16284 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16285 ;;
16286 darwin* | rhapsody*)
16287 # PIC is the default on this platform
16288 # Common symbols not allowed in MH_DYLIB files
16289 lt_prog_compiler_pic_CXX='-fno-common'
16290 ;;
16291 *djgpp*)
16292 # DJGPP does not support shared libraries at all
16293 lt_prog_compiler_pic_CXX=
16294 ;;
16295 sysv4*MP*)
16296 if test -d /usr/nec; then
16297 lt_prog_compiler_pic_CXX=-Kconform_pic
16298 fi
16299 ;;
16300 hpux*)
16301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16302 # not for PA HP-UX.
16303 case "$host_cpu" in
16304 hppa*64*|ia64*)
16305 ;;
16306 *)
16307 lt_prog_compiler_pic_CXX='-fPIC'
16308 ;;
16309 esac
16310 ;;
16311 *)
16312 lt_prog_compiler_pic_CXX='-fPIC'
16313 ;;
16314 esac
16315 else
16316 case $host_os in
16317 aix4* | aix5*)
16318 # All AIX code is PIC.
16319 if test "$host_cpu" = ia64; then
16320 # AIX 5 now supports IA64 processor
16321 lt_prog_compiler_static_CXX='-Bstatic'
16322 else
16323 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16324 fi
16325 ;;
16326 chorus*)
16327 case $cc_basename in
16328 cxch68)
16329 # Green Hills C++ Compiler
16330 # _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"
16331 ;;
16332 esac
16333 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016334 darwin*)
16335 # PIC is the default on this platform
16336 # Common symbols not allowed in MH_DYLIB files
16337 case "$cc_basename" in
16338 xlc*)
16339 lt_prog_compiler_pic_CXX='-qnocommon'
16340 lt_prog_compiler_wl_CXX='-Wl,'
16341 ;;
16342 esac
16343 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016344 dgux*)
16345 case $cc_basename in
16346 ec++)
16347 lt_prog_compiler_pic_CXX='-KPIC'
16348 ;;
16349 ghcx)
16350 # Green Hills C++ Compiler
16351 lt_prog_compiler_pic_CXX='-pic'
16352 ;;
16353 *)
16354 ;;
16355 esac
16356 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016357 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016358 # FreeBSD uses GNU C++
16359 ;;
16360 hpux9* | hpux10* | hpux11*)
16361 case $cc_basename in
16362 CC)
16363 lt_prog_compiler_wl_CXX='-Wl,'
16364 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16365 if test "$host_cpu" != ia64; then
16366 lt_prog_compiler_pic_CXX='+Z'
16367 fi
16368 ;;
16369 aCC)
16370 lt_prog_compiler_wl_CXX='-Wl,'
16371 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16372 case "$host_cpu" in
16373 hppa*64*|ia64*)
16374 # +Z the default
16375 ;;
16376 *)
16377 lt_prog_compiler_pic_CXX='+Z'
16378 ;;
16379 esac
16380 ;;
16381 *)
16382 ;;
16383 esac
16384 ;;
16385 irix5* | irix6* | nonstopux*)
16386 case $cc_basename in
16387 CC)
16388 lt_prog_compiler_wl_CXX='-Wl,'
16389 lt_prog_compiler_static_CXX='-non_shared'
16390 # CC pic flag -KPIC is the default.
16391 ;;
16392 *)
16393 ;;
16394 esac
16395 ;;
16396 linux*)
16397 case $cc_basename in
16398 KCC)
16399 # KAI C++ Compiler
16400 lt_prog_compiler_wl_CXX='--backend -Wl,'
16401 lt_prog_compiler_pic_CXX='-fPIC'
16402 ;;
16403 icpc)
16404 # Intel C++
16405 lt_prog_compiler_wl_CXX='-Wl,'
16406 lt_prog_compiler_pic_CXX='-KPIC'
16407 lt_prog_compiler_static_CXX='-static'
16408 ;;
16409 cxx)
16410 # Compaq C++
16411 # Make sure the PIC flag is empty. It appears that all Alpha
16412 # Linux and Compaq Tru64 Unix objects are PIC.
16413 lt_prog_compiler_pic_CXX=
16414 lt_prog_compiler_static_CXX='-non_shared'
16415 ;;
16416 *)
16417 ;;
16418 esac
16419 ;;
16420 lynxos*)
16421 ;;
16422 m88k*)
16423 ;;
16424 mvs*)
16425 case $cc_basename in
16426 cxx)
16427 lt_prog_compiler_pic_CXX='-W c,exportall'
16428 ;;
16429 *)
16430 ;;
16431 esac
16432 ;;
16433 netbsd*)
16434 ;;
16435 osf3* | osf4* | osf5*)
16436 case $cc_basename in
16437 KCC)
16438 lt_prog_compiler_wl_CXX='--backend -Wl,'
16439 ;;
16440 RCC)
16441 # Rational C++ 2.4.1
16442 lt_prog_compiler_pic_CXX='-pic'
16443 ;;
16444 cxx)
16445 # Digital/Compaq C++
16446 lt_prog_compiler_wl_CXX='-Wl,'
16447 # Make sure the PIC flag is empty. It appears that all Alpha
16448 # Linux and Compaq Tru64 Unix objects are PIC.
16449 lt_prog_compiler_pic_CXX=
16450 lt_prog_compiler_static_CXX='-non_shared'
16451 ;;
16452 *)
16453 ;;
16454 esac
16455 ;;
16456 psos*)
16457 ;;
16458 sco*)
16459 case $cc_basename in
16460 CC)
16461 lt_prog_compiler_pic_CXX='-fPIC'
16462 ;;
16463 *)
16464 ;;
16465 esac
16466 ;;
16467 solaris*)
16468 case $cc_basename in
16469 CC)
16470 # Sun C++ 4.2, 5.x and Centerline C++
16471 lt_prog_compiler_pic_CXX='-KPIC'
16472 lt_prog_compiler_static_CXX='-Bstatic'
16473 lt_prog_compiler_wl_CXX='-Qoption ld '
16474 ;;
16475 gcx)
16476 # Green Hills C++ Compiler
16477 lt_prog_compiler_pic_CXX='-PIC'
16478 ;;
16479 *)
16480 ;;
16481 esac
16482 ;;
16483 sunos4*)
16484 case $cc_basename in
16485 CC)
16486 # Sun C++ 4.x
16487 lt_prog_compiler_pic_CXX='-pic'
16488 lt_prog_compiler_static_CXX='-Bstatic'
16489 ;;
16490 lcc)
16491 # Lucid
16492 lt_prog_compiler_pic_CXX='-pic'
16493 ;;
16494 *)
16495 ;;
16496 esac
16497 ;;
16498 tandem*)
16499 case $cc_basename in
16500 NCC)
16501 # NonStop-UX NCC 3.20
16502 lt_prog_compiler_pic_CXX='-KPIC'
16503 ;;
16504 *)
16505 ;;
16506 esac
16507 ;;
16508 unixware*)
16509 ;;
16510 vxworks*)
16511 ;;
16512 *)
16513 lt_prog_compiler_can_build_shared_CXX=no
16514 ;;
16515 esac
16516 fi
16517
16518echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16519echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16520
16521#
16522# Check to make sure the PIC flag actually works.
16523#
16524if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016525
16526echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016527echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16528if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530else
16531 lt_prog_compiler_pic_works_CXX=no
16532 ac_outfile=conftest.$ac_objext
16533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16534 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16535 # Insert the option either (1) after the last *FLAGS variable, or
16536 # (2) before a word containing "conftest.", or (3) at the end.
16537 # Note that $ac_compile itself does not contain backslashes and begins
16538 # with a dollar sign (not a hyphen), so the echo should work correctly.
16539 # The option is referenced via a variable to avoid confusing sed.
16540 lt_compile=`echo "$ac_compile" | $SED \
16541 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16543 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000016544 (eval echo "\"\$as_me:16544: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016545 (eval "$lt_compile" 2>conftest.err)
16546 ac_status=$?
16547 cat conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000016548 echo "$as_me:16548: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016549 if (exit $ac_status) && test -s "$ac_outfile"; then
16550 # The compiler can only warn and ignore the option if not recognized
16551 # So say no if there are warnings
16552 if test ! -s conftest.err; then
16553 lt_prog_compiler_pic_works_CXX=yes
16554 fi
16555 fi
16556 $rm conftest*
16557
16558fi
16559echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16560echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16561
16562if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16563 case $lt_prog_compiler_pic_CXX in
16564 "" | " "*) ;;
16565 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16566 esac
16567else
16568 lt_prog_compiler_pic_CXX=
16569 lt_prog_compiler_can_build_shared_CXX=no
16570fi
16571
16572fi
16573case "$host_os" in
16574 # For platforms which do not support PIC, -DPIC is meaningless:
16575 *djgpp*)
16576 lt_prog_compiler_pic_CXX=
16577 ;;
16578 *)
16579 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16580 ;;
16581esac
16582
16583echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16584echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16585if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587else
16588 lt_cv_prog_compiler_c_o_CXX=no
16589 $rm -r conftest 2>/dev/null
16590 mkdir conftest
16591 cd conftest
16592 mkdir out
16593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16594
John Criswell47fdd832003-07-14 16:52:07 +000016595 lt_compiler_flag="-o out/conftest2.$ac_objext"
16596 # Insert the option either (1) after the last *FLAGS variable, or
16597 # (2) before a word containing "conftest.", or (3) at the end.
16598 # Note that $ac_compile itself does not contain backslashes and begins
16599 # with a dollar sign (not a hyphen), so the echo should work correctly.
16600 lt_compile=`echo "$ac_compile" | $SED \
16601 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16603 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000016604 (eval echo "\"\$as_me:16604: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016605 (eval "$lt_compile" 2>out/conftest.err)
16606 ac_status=$?
16607 cat out/conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000016608 echo "$as_me:16608: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16610 then
16611 # The compiler can only warn and ignore the option if not recognized
16612 # So say no if there are warnings
16613 if test ! -s out/conftest.err; then
16614 lt_cv_prog_compiler_c_o_CXX=yes
16615 fi
16616 fi
16617 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016618 $rm conftest*
16619 # SGI C++ compiler will create directory out/ii_files/ for
16620 # template instantiation
16621 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16622 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016623 cd ..
16624 rmdir conftest
16625 $rm conftest*
16626
16627fi
16628echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16629echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16630
16631
16632hard_links="nottested"
16633if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16634 # do not overwrite the value of need_locks provided by the user
16635 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16636echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16637 hard_links=yes
16638 $rm conftest*
16639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16640 touch conftest.a
16641 ln conftest.a conftest.b 2>&5 || hard_links=no
16642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16643 echo "$as_me:$LINENO: result: $hard_links" >&5
16644echo "${ECHO_T}$hard_links" >&6
16645 if test "$hard_links" = no; then
16646 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16647echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16648 need_locks=warn
16649 fi
16650else
16651 need_locks=no
16652fi
16653
16654echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16655echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16656
16657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16658 case $host_os in
16659 aix4* | aix5*)
16660 # If we're using GNU nm, then we don't want the "-C" option.
16661 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16662 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16663 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'
16664 else
16665 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'
16666 fi
16667 ;;
16668 pw32*)
16669 export_symbols_cmds_CXX="$ltdll_cmds"
16670 ;;
16671 cygwin* | mingw*)
16672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16673 ;;
16674 *)
16675 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16676 ;;
16677 esac
16678
16679echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16680echo "${ECHO_T}$ld_shlibs_CXX" >&6
16681test "$ld_shlibs_CXX" = no && can_build_shared=no
16682
16683variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16684if test "$GCC" = yes; then
16685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16686fi
16687
16688#
16689# Do we need to explicitly link libc?
16690#
16691case "x$archive_cmds_need_lc_CXX" in
16692x|xyes)
16693 # Assume -lc should be added
16694 archive_cmds_need_lc_CXX=yes
16695
16696 if test "$enable_shared" = yes && test "$GCC" = yes; then
16697 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016698 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016699 # FIXME: we may have to deal with multi-command sequences.
16700 ;;
16701 '$CC '*)
16702 # Test whether the compiler implicitly links with -lc since on some
16703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16704 # to ld, don't add -lc before -lgcc.
16705 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16706echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16707 $rm conftest*
16708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16709
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } 2>conftest.err; then
16715 soname=conftest
16716 lib=conftest
16717 libobjs=conftest.$ac_objext
16718 deplibs=
16719 wl=$lt_prog_compiler_wl_CXX
16720 compiler_flags=-v
16721 linker_flags=-v
16722 verstring=
16723 output_objdir=.
16724 libname=conftest
16725 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16726 allow_undefined_flag_CXX=
16727 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16728 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }
16732 then
16733 archive_cmds_need_lc_CXX=no
16734 else
16735 archive_cmds_need_lc_CXX=yes
16736 fi
16737 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16738 else
16739 cat conftest.err 1>&5
16740 fi
16741 $rm conftest*
16742 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16743echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16744 ;;
16745 esac
16746 fi
16747 ;;
16748esac
16749
John Criswell47fdd832003-07-14 16:52:07 +000016750echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16751echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16752library_names_spec=
16753libname_spec='lib$name'
16754soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016755shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016756postinstall_cmds=
16757postuninstall_cmds=
16758finish_cmds=
16759finish_eval=
16760shlibpath_var=
16761shlibpath_overrides_runpath=unknown
16762version_type=none
16763dynamic_linker="$host_os ld.so"
16764sys_lib_dlsearch_path_spec="/lib /usr/lib"
16765if test "$GCC" = yes; then
16766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16768 # if the path contains ";" then we assume it to be the separator
16769 # otherwise default to the standard path separator (i.e. ":") - it is
16770 # assumed that no part of a normal pathname contains ";" but that should
16771 # okay in the real world where ";" in dirpaths is itself problematic.
16772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16773 else
16774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16775 fi
16776else
16777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16778fi
16779need_lib_prefix=unknown
16780hardcode_into_libs=no
16781
16782# when you set need_version to no, make sure it does not cause -set_version
16783# flags to be left without arguments
16784need_version=unknown
16785
16786case $host_os in
16787aix3*)
16788 version_type=linux
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16790 shlibpath_var=LIBPATH
16791
16792 # AIX 3 has no versioning support, so we append a major version to the name.
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 ;;
16795
16796aix4* | aix5*)
16797 version_type=linux
16798 need_lib_prefix=no
16799 need_version=no
16800 hardcode_into_libs=yes
16801 if test "$host_cpu" = ia64; then
16802 # AIX 5 supports IA64
16803 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 else
16806 # With GCC up to 2.95.x, collect2 would create an import file
16807 # for dependence libraries. The import file would start with
16808 # the line `#! .'. This would cause the generated library to
16809 # depend on `.', always an invalid library. This was fixed in
16810 # development snapshots of GCC prior to 3.0.
16811 case $host_os in
16812 aix4 | aix4.[01] | aix4.[01].*)
16813 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16814 echo ' yes '
16815 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16816 :
16817 else
16818 can_build_shared=no
16819 fi
16820 ;;
16821 esac
16822 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16823 # soname into executable. Probably we can add versioning support to
16824 # collect2, so additional links can be useful in future.
16825 if test "$aix_use_runtimelinking" = yes; then
16826 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16827 # instead of lib<name>.a to let people know that these are not
16828 # typical AIX shared libraries.
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830 else
16831 # We preserve .a as extension for shared libraries through AIX4.2
16832 # and later when we are not doing run time linking.
16833 library_names_spec='${libname}${release}.a $libname.a'
16834 soname_spec='${libname}${release}${shared_ext}$major'
16835 fi
16836 shlibpath_var=LIBPATH
16837 fi
16838 ;;
16839
16840amigaos*)
16841 library_names_spec='$libname.ixlibrary $libname.a'
16842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016843 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 +000016844 ;;
16845
16846beos*)
16847 library_names_spec='${libname}${shared_ext}'
16848 dynamic_linker="$host_os ld.so"
16849 shlibpath_var=LIBRARY_PATH
16850 ;;
16851
Reid Spencer2706f8c2004-09-19 23:53:36 +000016852bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016853 version_type=linux
16854 need_version=no
16855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16856 soname_spec='${libname}${release}${shared_ext}$major'
16857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16858 shlibpath_var=LD_LIBRARY_PATH
16859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16861 # the default ld.so.conf also contains /usr/contrib/lib and
16862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16863 # libtool to hard-code these into programs
16864 ;;
16865
16866cygwin* | mingw* | pw32*)
16867 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016868 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016869 need_version=no
16870 need_lib_prefix=no
16871
16872 case $GCC,$host_os in
16873 yes,cygwin* | yes,mingw* | yes,pw32*)
16874 library_names_spec='$libname.dll.a'
16875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016876 postinstall_cmds='base_file=`basename \${file}`~
16877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16878 dldir=$destdir/`dirname \$dlpath`~
16879 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016880 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16882 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016883 $rm \$dlpath'
16884 shlibpath_overrides_runpath=yes
16885
16886 case $host_os in
16887 cygwin*)
16888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16889 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 +000016890 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016891 ;;
16892 mingw*)
16893 # MinGW DLLs use traditional 'lib' prefix
16894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16896 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16897 # It is most probably a Windows format PATH printed by
16898 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16899 # path with ; separators, and with drive letters. We can handle the
16900 # drive letters (cygwin fileutils understands them), so leave them,
16901 # especially as we might pass files found there to a mingw objdump,
16902 # which wouldn't understand a cygwinified path. Ahh.
16903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16904 else
16905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16906 fi
16907 ;;
16908 pw32*)
16909 # pw32 DLLs use 'pw' prefix rather than 'lib'
16910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16911 ;;
16912 esac
16913 ;;
16914
16915 *)
16916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16917 ;;
16918 esac
16919 dynamic_linker='Win32 ld.exe'
16920 # FIXME: first we should search . and the directory the executable is in
16921 shlibpath_var=PATH
16922 ;;
16923
16924darwin* | rhapsody*)
16925 dynamic_linker="$host_os dyld"
16926 version_type=darwin
16927 need_lib_prefix=no
16928 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016929 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016930 soname_spec='${libname}${release}${major}$shared_ext'
16931 shlibpath_overrides_runpath=yes
16932 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016933 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016934 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016935 if test "$GCC" = yes; then
16936 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"`
16937 else
16938 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016939 fi
16940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16941 ;;
16942
16943dgux*)
16944 version_type=linux
16945 need_lib_prefix=no
16946 need_version=no
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16948 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LD_LIBRARY_PATH
16950 ;;
16951
16952freebsd1*)
16953 dynamic_linker=no
16954 ;;
16955
Reid Spencer2706f8c2004-09-19 23:53:36 +000016956kfreebsd*-gnu)
16957 version_type=linux
16958 need_lib_prefix=no
16959 need_version=no
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 shlibpath_overrides_runpath=no
16964 hardcode_into_libs=yes
16965 dynamic_linker='GNU ld.so'
16966 ;;
16967
John Criswell47fdd832003-07-14 16:52:07 +000016968freebsd*)
16969 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16970 version_type=freebsd-$objformat
16971 case $version_type in
16972 freebsd-elf*)
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16974 need_version=no
16975 need_lib_prefix=no
16976 ;;
16977 freebsd-*)
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16979 need_version=yes
16980 ;;
16981 esac
16982 shlibpath_var=LD_LIBRARY_PATH
16983 case $host_os in
16984 freebsd2*)
16985 shlibpath_overrides_runpath=yes
16986 ;;
16987 freebsd3.01* | freebsdelf3.01*)
16988 shlibpath_overrides_runpath=yes
16989 hardcode_into_libs=yes
16990 ;;
16991 *) # from 3.2 on
16992 shlibpath_overrides_runpath=no
16993 hardcode_into_libs=yes
16994 ;;
16995 esac
16996 ;;
16997
16998gnu*)
16999 version_type=linux
17000 need_lib_prefix=no
17001 need_version=no
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 shlibpath_var=LD_LIBRARY_PATH
17005 hardcode_into_libs=yes
17006 ;;
17007
17008hpux9* | hpux10* | hpux11*)
17009 # Give a soname corresponding to the major version so that dld.sl refuses to
17010 # link against other versions.
17011 version_type=sunos
17012 need_lib_prefix=no
17013 need_version=no
17014 case "$host_cpu" in
17015 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017016 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017017 hardcode_into_libs=yes
17018 dynamic_linker="$host_os dld.so"
17019 shlibpath_var=LD_LIBRARY_PATH
17020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17022 soname_spec='${libname}${release}${shared_ext}$major'
17023 if test "X$HPUX_IA64_MODE" = X32; then
17024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17025 else
17026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17027 fi
17028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17029 ;;
17030 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017031 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017032 hardcode_into_libs=yes
17033 dynamic_linker="$host_os dld.sl"
17034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037 soname_spec='${libname}${release}${shared_ext}$major'
17038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17040 ;;
17041 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017042 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017043 dynamic_linker="$host_os dld.sl"
17044 shlibpath_var=SHLIB_PATH
17045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047 soname_spec='${libname}${release}${shared_ext}$major'
17048 ;;
17049 esac
17050 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17051 postinstall_cmds='chmod 555 $lib'
17052 ;;
17053
17054irix5* | irix6* | nonstopux*)
17055 case $host_os in
17056 nonstopux*) version_type=nonstopux ;;
17057 *)
17058 if test "$lt_cv_prog_gnu_ld" = yes; then
17059 version_type=linux
17060 else
17061 version_type=irix
17062 fi ;;
17063 esac
17064 need_lib_prefix=no
17065 need_version=no
17066 soname_spec='${libname}${release}${shared_ext}$major'
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17068 case $host_os in
17069 irix5* | nonstopux*)
17070 libsuff= shlibsuff=
17071 ;;
17072 *)
17073 case $LD in # libtool.m4 will add one of these switches to LD
17074 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17075 libsuff= shlibsuff= libmagic=32-bit;;
17076 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17077 libsuff=32 shlibsuff=N32 libmagic=N32;;
17078 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17079 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17080 *) libsuff= shlibsuff= libmagic=never-match;;
17081 esac
17082 ;;
17083 esac
17084 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17085 shlibpath_overrides_runpath=no
17086 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17087 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17088 hardcode_into_libs=yes
17089 ;;
17090
17091# No shared lib support for Linux oldld, aout, or coff.
17092linux*oldld* | linux*aout* | linux*coff*)
17093 dynamic_linker=no
17094 ;;
17095
17096# This must be Linux ELF.
17097linux*)
17098 version_type=linux
17099 need_lib_prefix=no
17100 need_version=no
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17104 shlibpath_var=LD_LIBRARY_PATH
17105 shlibpath_overrides_runpath=no
17106 # This implies no fast_install, which is unacceptable.
17107 # Some rework will be needed to allow for fast_install
17108 # before this can be enabled.
17109 hardcode_into_libs=yes
17110
Reid Spencer2706f8c2004-09-19 23:53:36 +000017111 # Append ld.so.conf contents to the search path
17112 if test -f /etc/ld.so.conf; then
17113 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17114 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17115 fi
17116
John Criswell47fdd832003-07-14 16:52:07 +000017117 # We used to test for /lib/ld.so.1 and disable shared libraries on
17118 # powerpc, because MkLinux only supported shared libraries with the
17119 # GNU dynamic linker. Since this was broken with cross compilers,
17120 # most powerpc-linux boxes support dynamic linking these days and
17121 # people can always --disable-shared, the test was removed, and we
17122 # assume the GNU/Linux dynamic linker is in use.
17123 dynamic_linker='GNU/Linux ld.so'
17124 ;;
17125
Reid Spencer2706f8c2004-09-19 23:53:36 +000017126knetbsd*-gnu)
17127 version_type=linux
17128 need_lib_prefix=no
17129 need_version=no
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=no
17134 hardcode_into_libs=yes
17135 dynamic_linker='GNU ld.so'
17136 ;;
17137
John Criswell47fdd832003-07-14 16:52:07 +000017138netbsd*)
17139 version_type=sunos
17140 need_lib_prefix=no
17141 need_version=no
17142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17145 dynamic_linker='NetBSD (a.out) ld.so'
17146 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017148 soname_spec='${libname}${release}${shared_ext}$major'
17149 dynamic_linker='NetBSD ld.elf_so'
17150 fi
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=yes
17153 hardcode_into_libs=yes
17154 ;;
17155
17156newsos6)
17157 version_type=linux
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 shlibpath_overrides_runpath=yes
17161 ;;
17162
Reid Spencer2706f8c2004-09-19 23:53:36 +000017163nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017164 version_type=linux
17165 need_lib_prefix=no
17166 need_version=no
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168 soname_spec='${libname}${release}${shared_ext}$major'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 shlibpath_overrides_runpath=yes
17171 ;;
17172
17173openbsd*)
17174 version_type=sunos
17175 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017176 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17181 case $host_os in
17182 openbsd2.[89] | openbsd2.[89].*)
17183 shlibpath_overrides_runpath=no
17184 ;;
17185 *)
17186 shlibpath_overrides_runpath=yes
17187 ;;
17188 esac
17189 else
17190 shlibpath_overrides_runpath=yes
17191 fi
17192 ;;
17193
17194os2*)
17195 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017196 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017197 need_lib_prefix=no
17198 library_names_spec='$libname${shared_ext} $libname.a'
17199 dynamic_linker='OS/2 ld.exe'
17200 shlibpath_var=LIBPATH
17201 ;;
17202
17203osf3* | osf4* | osf5*)
17204 version_type=osf
17205 need_lib_prefix=no
17206 need_version=no
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17212 ;;
17213
17214sco3.2v5*)
17215 version_type=osf
17216 soname_spec='${libname}${release}${shared_ext}$major'
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 ;;
17220
17221solaris*)
17222 version_type=linux
17223 need_lib_prefix=no
17224 need_version=no
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 shlibpath_overrides_runpath=yes
17229 hardcode_into_libs=yes
17230 # ldd complains unless libraries are executable
17231 postinstall_cmds='chmod +x $lib'
17232 ;;
17233
17234sunos4*)
17235 version_type=sunos
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17240 if test "$with_gnu_ld" = yes; then
17241 need_lib_prefix=no
17242 fi
17243 need_version=yes
17244 ;;
17245
17246sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17247 version_type=linux
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 case $host_vendor in
17252 sni)
17253 shlibpath_overrides_runpath=no
17254 need_lib_prefix=no
17255 export_dynamic_flag_spec='${wl}-Blargedynsym'
17256 runpath_var=LD_RUN_PATH
17257 ;;
17258 siemens)
17259 need_lib_prefix=no
17260 ;;
17261 motorola)
17262 need_lib_prefix=no
17263 need_version=no
17264 shlibpath_overrides_runpath=no
17265 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17266 ;;
17267 esac
17268 ;;
17269
17270sysv4*MP*)
17271 if test -d /usr/nec ;then
17272 version_type=linux
17273 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17274 soname_spec='$libname${shared_ext}.$major'
17275 shlibpath_var=LD_LIBRARY_PATH
17276 fi
17277 ;;
17278
17279uts4*)
17280 version_type=linux
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 ;;
17285
17286*)
17287 dynamic_linker=no
17288 ;;
17289esac
17290echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17291echo "${ECHO_T}$dynamic_linker" >&6
17292test "$dynamic_linker" = no && can_build_shared=no
17293
Reid Spencer2706f8c2004-09-19 23:53:36 +000017294echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17295echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17296hardcode_action_CXX=
17297if test -n "$hardcode_libdir_flag_spec_CXX" || \
17298 test -n "$runpath_var_CXX" || \
17299 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17300
17301 # We can hardcode non-existant directories.
17302 if test "$hardcode_direct_CXX" != no &&
17303 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17304 # have to relink, otherwise we might link with an installed library
17305 # when we should be linking with a yet-to-be-installed one
17306 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17307 test "$hardcode_minus_L_CXX" != no; then
17308 # Linking always hardcodes the temporary library directory.
17309 hardcode_action_CXX=relink
17310 else
17311 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17312 hardcode_action_CXX=immediate
17313 fi
17314else
17315 # We cannot hardcode anything, or else we can only hardcode existing
17316 # directories.
17317 hardcode_action_CXX=unsupported
17318fi
17319echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17320echo "${ECHO_T}$hardcode_action_CXX" >&6
17321
17322if test "$hardcode_action_CXX" = relink; then
17323 # Fast installation is not supported
17324 enable_fast_install=no
17325elif test "$shlibpath_overrides_runpath" = yes ||
17326 test "$enable_shared" = no; then
17327 # Fast installation is not necessary
17328 enable_fast_install=needless
17329fi
17330
17331striplib=
17332old_striplib=
17333echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17334echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17335if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17336 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17337 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17338 echo "$as_me:$LINENO: result: yes" >&5
17339echo "${ECHO_T}yes" >&6
17340else
17341# FIXME - insert some real tests, host_os isn't really good enough
17342 case $host_os in
17343 darwin*)
17344 if test -n "$STRIP" ; then
17345 striplib="$STRIP -x"
17346 echo "$as_me:$LINENO: result: yes" >&5
17347echo "${ECHO_T}yes" >&6
17348 else
17349 echo "$as_me:$LINENO: result: no" >&5
17350echo "${ECHO_T}no" >&6
17351fi
17352 ;;
17353 *)
17354 echo "$as_me:$LINENO: result: no" >&5
17355echo "${ECHO_T}no" >&6
17356 ;;
17357 esac
17358fi
17359
John Criswell47fdd832003-07-14 16:52:07 +000017360if test "x$enable_dlopen" != xyes; then
17361 enable_dlopen=unknown
17362 enable_dlopen_self=unknown
17363 enable_dlopen_self_static=unknown
17364else
17365 lt_cv_dlopen=no
17366 lt_cv_dlopen_libs=
17367
17368 case $host_os in
17369 beos*)
17370 lt_cv_dlopen="load_add_on"
17371 lt_cv_dlopen_libs=
17372 lt_cv_dlopen_self=yes
17373 ;;
17374
17375 mingw* | pw32*)
17376 lt_cv_dlopen="LoadLibrary"
17377 lt_cv_dlopen_libs=
17378 ;;
17379
17380 cygwin*)
17381 lt_cv_dlopen="dlopen"
17382 lt_cv_dlopen_libs=
17383 ;;
17384
17385 darwin*)
17386 # if libdl is installed we need to link against it
17387 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17388echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17389if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17391else
17392 ac_check_lib_save_LIBS=$LIBS
17393LIBS="-ldl $LIBS"
17394cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017395/* confdefs.h. */
17396_ACEOF
17397cat confdefs.h >>conftest.$ac_ext
17398cat >>conftest.$ac_ext <<_ACEOF
17399/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017400
17401/* Override any gcc2 internal prototype to avoid an error. */
17402#ifdef __cplusplus
17403extern "C"
17404#endif
17405/* We use char because int might match the return type of a gcc2
17406 builtin and then its argument prototype would still apply. */
17407char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017408int
17409main ()
17410{
17411dlopen ();
17412 ;
17413 return 0;
17414}
17415_ACEOF
17416rm -f conftest.$ac_objext conftest$ac_exeext
17417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017418 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017425 { ac_try='test -z "$ac_cxx_werror_flag"
17426 || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_lib_dl_dlopen=yes
17439else
17440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017441sed 's/^/| /' conftest.$ac_ext >&5
17442
John Criswell47fdd832003-07-14 16:52:07 +000017443ac_cv_lib_dl_dlopen=no
17444fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017445rm -f conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017447LIBS=$ac_check_lib_save_LIBS
17448fi
17449echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17451if test $ac_cv_lib_dl_dlopen = yes; then
17452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17453else
17454
17455 lt_cv_dlopen="dyld"
17456 lt_cv_dlopen_libs=
17457 lt_cv_dlopen_self=yes
17458
17459fi
17460
17461 ;;
17462
17463 *)
17464 echo "$as_me:$LINENO: checking for shl_load" >&5
17465echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17466if test "${ac_cv_func_shl_load+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17468else
17469 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017470/* confdefs.h. */
17471_ACEOF
17472cat confdefs.h >>conftest.$ac_ext
17473cat >>conftest.$ac_ext <<_ACEOF
17474/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017475/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17477#define shl_load innocuous_shl_load
17478
John Criswell47fdd832003-07-14 16:52:07 +000017479/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017480 which can conflict with char shl_load (); below.
17481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17482 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017483
John Criswell0c38eaf2003-09-10 15:17:25 +000017484#ifdef __STDC__
17485# include <limits.h>
17486#else
17487# include <assert.h>
17488#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017489
17490#undef shl_load
17491
John Criswell47fdd832003-07-14 16:52:07 +000017492/* Override any gcc2 internal prototype to avoid an error. */
17493#ifdef __cplusplus
17494extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017495{
John Criswell47fdd832003-07-14 16:52:07 +000017496#endif
17497/* We use char because int might match the return type of a gcc2
17498 builtin and then its argument prototype would still apply. */
17499char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017500/* The GNU C library defines this for functions which it implements
17501 to always fail with ENOSYS. Some functions are actually named
17502 something starting with __ and the normal name is an alias. */
17503#if defined (__stub_shl_load) || defined (__stub___shl_load)
17504choke me
17505#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017506char (*f) () = shl_load;
17507#endif
17508#ifdef __cplusplus
17509}
John Criswell47fdd832003-07-14 16:52:07 +000017510#endif
17511
John Criswell0c38eaf2003-09-10 15:17:25 +000017512int
17513main ()
17514{
17515return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017516 ;
17517 return 0;
17518}
17519_ACEOF
17520rm -f conftest.$ac_objext conftest$ac_exeext
17521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017522 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017523 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017524 grep -v '^ *+' conftest.er1 >conftest.err
17525 rm -f conftest.er1
17526 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017529 { ac_try='test -z "$ac_cxx_werror_flag"
17530 || test ! -s conftest.err'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_func_shl_load=yes
17543else
17544 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017545sed 's/^/| /' conftest.$ac_ext >&5
17546
John Criswell47fdd832003-07-14 16:52:07 +000017547ac_cv_func_shl_load=no
17548fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017549rm -f conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017551fi
17552echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17553echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17554if test $ac_cv_func_shl_load = yes; then
17555 lt_cv_dlopen="shl_load"
17556else
17557 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17558echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17559if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17561else
17562 ac_check_lib_save_LIBS=$LIBS
17563LIBS="-ldld $LIBS"
17564cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017565/* confdefs.h. */
17566_ACEOF
17567cat confdefs.h >>conftest.$ac_ext
17568cat >>conftest.$ac_ext <<_ACEOF
17569/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017570
17571/* Override any gcc2 internal prototype to avoid an error. */
17572#ifdef __cplusplus
17573extern "C"
17574#endif
17575/* We use char because int might match the return type of a gcc2
17576 builtin and then its argument prototype would still apply. */
17577char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017578int
17579main ()
17580{
17581shl_load ();
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext conftest$ac_exeext
17587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017588 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017589 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017595 { ac_try='test -z "$ac_cxx_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_cv_lib_dld_shl_load=yes
17609else
17610 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017611sed 's/^/| /' conftest.$ac_ext >&5
17612
John Criswell47fdd832003-07-14 16:52:07 +000017613ac_cv_lib_dld_shl_load=no
17614fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017615rm -f conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017617LIBS=$ac_check_lib_save_LIBS
17618fi
17619echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17620echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17621if test $ac_cv_lib_dld_shl_load = yes; then
17622 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17623else
17624 echo "$as_me:$LINENO: checking for dlopen" >&5
17625echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17626if test "${ac_cv_func_dlopen+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628else
17629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017630/* confdefs.h. */
17631_ACEOF
17632cat confdefs.h >>conftest.$ac_ext
17633cat >>conftest.$ac_ext <<_ACEOF
17634/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017635/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17637#define dlopen innocuous_dlopen
17638
John Criswell47fdd832003-07-14 16:52:07 +000017639/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017640 which can conflict with char dlopen (); below.
17641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17642 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017643
John Criswell0c38eaf2003-09-10 15:17:25 +000017644#ifdef __STDC__
17645# include <limits.h>
17646#else
17647# include <assert.h>
17648#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017649
17650#undef dlopen
17651
John Criswell47fdd832003-07-14 16:52:07 +000017652/* Override any gcc2 internal prototype to avoid an error. */
17653#ifdef __cplusplus
17654extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017655{
John Criswell47fdd832003-07-14 16:52:07 +000017656#endif
17657/* We use char because int might match the return type of a gcc2
17658 builtin and then its argument prototype would still apply. */
17659char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017660/* The GNU C library defines this for functions which it implements
17661 to always fail with ENOSYS. Some functions are actually named
17662 something starting with __ and the normal name is an alias. */
17663#if defined (__stub_dlopen) || defined (__stub___dlopen)
17664choke me
17665#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017666char (*f) () = dlopen;
17667#endif
17668#ifdef __cplusplus
17669}
John Criswell47fdd832003-07-14 16:52:07 +000017670#endif
17671
John Criswell0c38eaf2003-09-10 15:17:25 +000017672int
17673main ()
17674{
17675return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017676 ;
17677 return 0;
17678}
17679_ACEOF
17680rm -f conftest.$ac_objext conftest$ac_exeext
17681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017682 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017684 grep -v '^ *+' conftest.er1 >conftest.err
17685 rm -f conftest.er1
17686 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017689 { ac_try='test -z "$ac_cxx_werror_flag"
17690 || test ! -s conftest.err'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 ac_cv_func_dlopen=yes
17703else
17704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017705sed 's/^/| /' conftest.$ac_ext >&5
17706
John Criswell47fdd832003-07-14 16:52:07 +000017707ac_cv_func_dlopen=no
17708fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017709rm -f conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017711fi
17712echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17713echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17714if test $ac_cv_func_dlopen = yes; then
17715 lt_cv_dlopen="dlopen"
17716else
17717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17718echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17719if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17721else
17722 ac_check_lib_save_LIBS=$LIBS
17723LIBS="-ldl $LIBS"
17724cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017730
17731/* Override any gcc2 internal prototype to avoid an error. */
17732#ifdef __cplusplus
17733extern "C"
17734#endif
17735/* We use char because int might match the return type of a gcc2
17736 builtin and then its argument prototype would still apply. */
17737char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017738int
17739main ()
17740{
17741dlopen ();
17742 ;
17743 return 0;
17744}
17745_ACEOF
17746rm -f conftest.$ac_objext conftest$ac_exeext
17747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017748 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017749 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017755 { ac_try='test -z "$ac_cxx_werror_flag"
17756 || test ! -s conftest.err'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_cv_lib_dl_dlopen=yes
17769else
17770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017771sed 's/^/| /' conftest.$ac_ext >&5
17772
John Criswell47fdd832003-07-14 16:52:07 +000017773ac_cv_lib_dl_dlopen=no
17774fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775rm -f conftest.err conftest.$ac_objext \
17776 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017777LIBS=$ac_check_lib_save_LIBS
17778fi
17779echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17780echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17781if test $ac_cv_lib_dl_dlopen = yes; then
17782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17783else
17784 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17785echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17786if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17788else
17789 ac_check_lib_save_LIBS=$LIBS
17790LIBS="-lsvld $LIBS"
17791cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017797
17798/* Override any gcc2 internal prototype to avoid an error. */
17799#ifdef __cplusplus
17800extern "C"
17801#endif
17802/* We use char because int might match the return type of a gcc2
17803 builtin and then its argument prototype would still apply. */
17804char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017805int
17806main ()
17807{
17808dlopen ();
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813rm -f conftest.$ac_objext conftest$ac_exeext
17814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017815 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017816 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017822 { ac_try='test -z "$ac_cxx_werror_flag"
17823 || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_lib_svld_dlopen=yes
17836else
17837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017838sed 's/^/| /' conftest.$ac_ext >&5
17839
John Criswell47fdd832003-07-14 16:52:07 +000017840ac_cv_lib_svld_dlopen=no
17841fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017842rm -f conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017844LIBS=$ac_check_lib_save_LIBS
17845fi
17846echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17847echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17848if test $ac_cv_lib_svld_dlopen = yes; then
17849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17850else
17851 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17852echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17853if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17855else
17856 ac_check_lib_save_LIBS=$LIBS
17857LIBS="-ldld $LIBS"
17858cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017859/* confdefs.h. */
17860_ACEOF
17861cat confdefs.h >>conftest.$ac_ext
17862cat >>conftest.$ac_ext <<_ACEOF
17863/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017864
17865/* Override any gcc2 internal prototype to avoid an error. */
17866#ifdef __cplusplus
17867extern "C"
17868#endif
17869/* We use char because int might match the return type of a gcc2
17870 builtin and then its argument prototype would still apply. */
17871char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017872int
17873main ()
17874{
17875dld_link ();
17876 ;
17877 return 0;
17878}
17879_ACEOF
17880rm -f conftest.$ac_objext conftest$ac_exeext
17881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017882 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017883 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017889 { ac_try='test -z "$ac_cxx_werror_flag"
17890 || test ! -s conftest.err'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_lib_dld_dld_link=yes
17903else
17904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017905sed 's/^/| /' conftest.$ac_ext >&5
17906
John Criswell47fdd832003-07-14 16:52:07 +000017907ac_cv_lib_dld_dld_link=no
17908fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017909rm -f conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017911LIBS=$ac_check_lib_save_LIBS
17912fi
17913echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17914echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17915if test $ac_cv_lib_dld_dld_link = yes; then
17916 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17917fi
17918
17919
17920fi
17921
17922
17923fi
17924
17925
17926fi
17927
17928
17929fi
17930
17931
17932fi
17933
17934 ;;
17935 esac
17936
17937 if test "x$lt_cv_dlopen" != xno; then
17938 enable_dlopen=yes
17939 else
17940 enable_dlopen=no
17941 fi
17942
17943 case $lt_cv_dlopen in
17944 dlopen)
17945 save_CPPFLAGS="$CPPFLAGS"
17946 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17947
17948 save_LDFLAGS="$LDFLAGS"
17949 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17950
17951 save_LIBS="$LIBS"
17952 LIBS="$lt_cv_dlopen_libs $LIBS"
17953
17954 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17955echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17956if test "${lt_cv_dlopen_self+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958else
17959 if test "$cross_compiling" = yes; then :
17960 lt_cv_dlopen_self=cross
17961else
17962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17963 lt_status=$lt_dlunknown
17964 cat > conftest.$ac_ext <<EOF
Reid Spencer22177fe2005-07-12 15:24:20 +000017965#line 17965 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017966#include "confdefs.h"
17967
17968#if HAVE_DLFCN_H
17969#include <dlfcn.h>
17970#endif
17971
17972#include <stdio.h>
17973
17974#ifdef RTLD_GLOBAL
17975# define LT_DLGLOBAL RTLD_GLOBAL
17976#else
17977# ifdef DL_GLOBAL
17978# define LT_DLGLOBAL DL_GLOBAL
17979# else
17980# define LT_DLGLOBAL 0
17981# endif
17982#endif
17983
17984/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17985 find out it does not work in some platform. */
17986#ifndef LT_DLLAZY_OR_NOW
17987# ifdef RTLD_LAZY
17988# define LT_DLLAZY_OR_NOW RTLD_LAZY
17989# else
17990# ifdef DL_LAZY
17991# define LT_DLLAZY_OR_NOW DL_LAZY
17992# else
17993# ifdef RTLD_NOW
17994# define LT_DLLAZY_OR_NOW RTLD_NOW
17995# else
17996# ifdef DL_NOW
17997# define LT_DLLAZY_OR_NOW DL_NOW
17998# else
17999# define LT_DLLAZY_OR_NOW 0
18000# endif
18001# endif
18002# endif
18003# endif
18004#endif
18005
18006#ifdef __cplusplus
18007extern "C" void exit (int);
18008#endif
18009
18010void fnord() { int i=42;}
18011int main ()
18012{
18013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18014 int status = $lt_dlunknown;
18015
18016 if (self)
18017 {
18018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18020 /* dlclose (self); */
18021 }
18022
18023 exit (status);
18024}
18025EOF
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027 (eval $ac_link) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18031 (./conftest; exit; ) 2>/dev/null
18032 lt_status=$?
18033 case x$lt_status in
18034 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18035 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18036 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18037 esac
18038 else :
18039 # compilation failed
18040 lt_cv_dlopen_self=no
18041 fi
18042fi
18043rm -fr conftest*
18044
18045
18046fi
18047echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18048echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18049
18050 if test "x$lt_cv_dlopen_self" = xyes; then
18051 LDFLAGS="$LDFLAGS $link_static_flag"
18052 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18053echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18054if test "${lt_cv_dlopen_self_static+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18056else
18057 if test "$cross_compiling" = yes; then :
18058 lt_cv_dlopen_self_static=cross
18059else
18060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18061 lt_status=$lt_dlunknown
18062 cat > conftest.$ac_ext <<EOF
Reid Spencer22177fe2005-07-12 15:24:20 +000018063#line 18063 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018064#include "confdefs.h"
18065
18066#if HAVE_DLFCN_H
18067#include <dlfcn.h>
18068#endif
18069
18070#include <stdio.h>
18071
18072#ifdef RTLD_GLOBAL
18073# define LT_DLGLOBAL RTLD_GLOBAL
18074#else
18075# ifdef DL_GLOBAL
18076# define LT_DLGLOBAL DL_GLOBAL
18077# else
18078# define LT_DLGLOBAL 0
18079# endif
18080#endif
18081
18082/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18083 find out it does not work in some platform. */
18084#ifndef LT_DLLAZY_OR_NOW
18085# ifdef RTLD_LAZY
18086# define LT_DLLAZY_OR_NOW RTLD_LAZY
18087# else
18088# ifdef DL_LAZY
18089# define LT_DLLAZY_OR_NOW DL_LAZY
18090# else
18091# ifdef RTLD_NOW
18092# define LT_DLLAZY_OR_NOW RTLD_NOW
18093# else
18094# ifdef DL_NOW
18095# define LT_DLLAZY_OR_NOW DL_NOW
18096# else
18097# define LT_DLLAZY_OR_NOW 0
18098# endif
18099# endif
18100# endif
18101# endif
18102#endif
18103
18104#ifdef __cplusplus
18105extern "C" void exit (int);
18106#endif
18107
18108void fnord() { int i=42;}
18109int main ()
18110{
18111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18112 int status = $lt_dlunknown;
18113
18114 if (self)
18115 {
18116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18117 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18118 /* dlclose (self); */
18119 }
18120
18121 exit (status);
18122}
18123EOF
18124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18125 (eval $ac_link) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18129 (./conftest; exit; ) 2>/dev/null
18130 lt_status=$?
18131 case x$lt_status in
18132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18134 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18135 esac
18136 else :
18137 # compilation failed
18138 lt_cv_dlopen_self_static=no
18139 fi
18140fi
18141rm -fr conftest*
18142
18143
18144fi
18145echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18146echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18147 fi
18148
18149 CPPFLAGS="$save_CPPFLAGS"
18150 LDFLAGS="$save_LDFLAGS"
18151 LIBS="$save_LIBS"
18152 ;;
18153 esac
18154
18155 case $lt_cv_dlopen_self in
18156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18157 *) enable_dlopen_self=unknown ;;
18158 esac
18159
18160 case $lt_cv_dlopen_self_static in
18161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18162 *) enable_dlopen_self_static=unknown ;;
18163 esac
18164fi
18165
18166
18167# The else clause should only fire when bootstrapping the
18168# libtool distribution, otherwise you forgot to ship ltmain.sh
18169# with your package, and you will get complaints that there are
18170# no rules to generate ltmain.sh.
18171if test -f "$ltmain"; then
18172 # See if we are running on zsh, and set the options which allow our commands through
18173 # without removal of \ escapes.
18174 if test -n "${ZSH_VERSION+set}" ; then
18175 setopt NO_GLOB_SUBST
18176 fi
18177 # Now quote all the things that may contain metacharacters while being
18178 # careful not to overquote the AC_SUBSTed values. We take copies of the
18179 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018180 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18181 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018182 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18183 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18184 deplibs_check_method reload_flag reload_cmds need_locks \
18185 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18186 lt_cv_sys_global_symbol_to_c_name_address \
18187 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18188 old_postinstall_cmds old_postuninstall_cmds \
18189 compiler_CXX \
18190 CC_CXX \
18191 LD_CXX \
18192 lt_prog_compiler_wl_CXX \
18193 lt_prog_compiler_pic_CXX \
18194 lt_prog_compiler_static_CXX \
18195 lt_prog_compiler_no_builtin_flag_CXX \
18196 export_dynamic_flag_spec_CXX \
18197 thread_safe_flag_spec_CXX \
18198 whole_archive_flag_spec_CXX \
18199 enable_shared_with_static_runtimes_CXX \
18200 old_archive_cmds_CXX \
18201 old_archive_from_new_cmds_CXX \
18202 predep_objects_CXX \
18203 postdep_objects_CXX \
18204 predeps_CXX \
18205 postdeps_CXX \
18206 compiler_lib_search_path_CXX \
18207 archive_cmds_CXX \
18208 archive_expsym_cmds_CXX \
18209 postinstall_cmds_CXX \
18210 postuninstall_cmds_CXX \
18211 old_archive_from_expsyms_cmds_CXX \
18212 allow_undefined_flag_CXX \
18213 no_undefined_flag_CXX \
18214 export_symbols_cmds_CXX \
18215 hardcode_libdir_flag_spec_CXX \
18216 hardcode_libdir_flag_spec_ld_CXX \
18217 hardcode_libdir_separator_CXX \
18218 hardcode_automatic_CXX \
18219 module_cmds_CXX \
18220 module_expsym_cmds_CXX \
18221 lt_cv_prog_compiler_c_o_CXX \
18222 exclude_expsyms_CXX \
18223 include_expsyms_CXX; do
18224
18225 case $var in
18226 old_archive_cmds_CXX | \
18227 old_archive_from_new_cmds_CXX | \
18228 archive_cmds_CXX | \
18229 archive_expsym_cmds_CXX | \
18230 module_cmds_CXX | \
18231 module_expsym_cmds_CXX | \
18232 old_archive_from_expsyms_cmds_CXX | \
18233 export_symbols_cmds_CXX | \
18234 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18235 postinstall_cmds | postuninstall_cmds | \
18236 old_postinstall_cmds | old_postuninstall_cmds | \
18237 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18238 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018239 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 +000018240 ;;
18241 *)
18242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18243 ;;
18244 esac
18245 done
18246
18247 case $lt_echo in
18248 *'\$0 --fallback-echo"')
18249 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18250 ;;
18251 esac
18252
18253cfgfile="$ofile"
18254
18255 cat <<__EOF__ >> "$cfgfile"
18256# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18257
18258# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18259
18260# Shell to use when invoking shell scripts.
18261SHELL=$lt_SHELL
18262
18263# Whether or not to build shared libraries.
18264build_libtool_libs=$enable_shared
18265
18266# Whether or not to build static libraries.
18267build_old_libs=$enable_static
18268
18269# Whether or not to add -lc for building shared libraries.
18270build_libtool_need_lc=$archive_cmds_need_lc_CXX
18271
18272# Whether or not to disallow shared libs when runtime libs are static
18273allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18274
18275# Whether or not to optimize for fast installation.
18276fast_install=$enable_fast_install
18277
18278# The host system.
18279host_alias=$host_alias
18280host=$host
18281
18282# An echo program that does not interpret backslashes.
18283echo=$lt_echo
18284
18285# The archiver.
18286AR=$lt_AR
18287AR_FLAGS=$lt_AR_FLAGS
18288
18289# A C compiler.
18290LTCC=$lt_LTCC
18291
18292# A language-specific compiler.
18293CC=$lt_compiler_CXX
18294
18295# Is the compiler the GNU C compiler?
18296with_gcc=$GCC_CXX
18297
18298# An ERE matcher.
18299EGREP=$lt_EGREP
18300
18301# The linker used to build libraries.
18302LD=$lt_LD_CXX
18303
18304# Whether we need hard or soft links.
18305LN_S=$lt_LN_S
18306
18307# A BSD-compatible nm program.
18308NM=$lt_NM
18309
18310# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018311STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018312
18313# Used to examine libraries when file_magic_cmd begins "file"
18314MAGIC_CMD=$MAGIC_CMD
18315
18316# Used on cygwin: DLL creation program.
18317DLLTOOL="$DLLTOOL"
18318
18319# Used on cygwin: object dumper.
18320OBJDUMP="$OBJDUMP"
18321
18322# Used on cygwin: assembler.
18323AS="$AS"
18324
18325# The name of the directory that contains temporary libtool files.
18326objdir=$objdir
18327
18328# How to create reloadable object files.
18329reload_flag=$lt_reload_flag
18330reload_cmds=$lt_reload_cmds
18331
18332# How to pass a linker flag through the compiler.
18333wl=$lt_lt_prog_compiler_wl_CXX
18334
18335# Object file suffix (normally "o").
18336objext="$ac_objext"
18337
18338# Old archive suffix (normally "a").
18339libext="$libext"
18340
18341# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018342shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018343
18344# Executable file suffix (normally "").
18345exeext="$exeext"
18346
18347# Additional compiler flags for building library objects.
18348pic_flag=$lt_lt_prog_compiler_pic_CXX
18349pic_mode=$pic_mode
18350
18351# What is the maximum length of a command?
18352max_cmd_len=$lt_cv_sys_max_cmd_len
18353
18354# Does compiler simultaneously support -c and -o options?
18355compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18356
18357# Must we lock files when doing compilation ?
18358need_locks=$lt_need_locks
18359
18360# Do we need the lib prefix for modules?
18361need_lib_prefix=$need_lib_prefix
18362
18363# Do we need a version for libraries?
18364need_version=$need_version
18365
18366# Whether dlopen is supported.
18367dlopen_support=$enable_dlopen
18368
18369# Whether dlopen of programs is supported.
18370dlopen_self=$enable_dlopen_self
18371
18372# Whether dlopen of statically linked programs is supported.
18373dlopen_self_static=$enable_dlopen_self_static
18374
18375# Compiler flag to prevent dynamic linking.
18376link_static_flag=$lt_lt_prog_compiler_static_CXX
18377
18378# Compiler flag to turn off builtin functions.
18379no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18380
18381# Compiler flag to allow reflexive dlopens.
18382export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18383
18384# Compiler flag to generate shared objects directly from archives.
18385whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18386
18387# Compiler flag to generate thread-safe objects.
18388thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18389
18390# Library versioning type.
18391version_type=$version_type
18392
18393# Format of library name prefix.
18394libname_spec=$lt_libname_spec
18395
18396# List of archive names. First name is the real one, the rest are links.
18397# The last name is the one that the linker finds with -lNAME.
18398library_names_spec=$lt_library_names_spec
18399
18400# The coded name of the library, if different from the real name.
18401soname_spec=$lt_soname_spec
18402
18403# Commands used to build and install an old-style archive.
18404RANLIB=$lt_RANLIB
18405old_archive_cmds=$lt_old_archive_cmds_CXX
18406old_postinstall_cmds=$lt_old_postinstall_cmds
18407old_postuninstall_cmds=$lt_old_postuninstall_cmds
18408
18409# Create an old-style archive from a shared archive.
18410old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18411
18412# Create a temporary old-style archive to link instead of a shared archive.
18413old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18414
18415# Commands used to build and install a shared archive.
18416archive_cmds=$lt_archive_cmds_CXX
18417archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18418postinstall_cmds=$lt_postinstall_cmds
18419postuninstall_cmds=$lt_postuninstall_cmds
18420
18421# Commands used to build a loadable module (assumed same as above if empty)
18422module_cmds=$lt_module_cmds_CXX
18423module_expsym_cmds=$lt_module_expsym_cmds_CXX
18424
18425# Commands to strip libraries.
18426old_striplib=$lt_old_striplib
18427striplib=$lt_striplib
18428
18429# Dependencies to place before the objects being linked to create a
18430# shared library.
18431predep_objects=$lt_predep_objects_CXX
18432
18433# Dependencies to place after the objects being linked to create a
18434# shared library.
18435postdep_objects=$lt_postdep_objects_CXX
18436
18437# Dependencies to place before the objects being linked to create a
18438# shared library.
18439predeps=$lt_predeps_CXX
18440
18441# Dependencies to place after the objects being linked to create a
18442# shared library.
18443postdeps=$lt_postdeps_CXX
18444
18445# The library search path used internally by the compiler when linking
18446# a shared library.
18447compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18448
18449# Method to check whether dependent libraries are shared objects.
18450deplibs_check_method=$lt_deplibs_check_method
18451
18452# Command to use when deplibs_check_method == file_magic.
18453file_magic_cmd=$lt_file_magic_cmd
18454
18455# Flag that allows shared libraries with undefined symbols to be built.
18456allow_undefined_flag=$lt_allow_undefined_flag_CXX
18457
18458# Flag that forces no undefined symbols.
18459no_undefined_flag=$lt_no_undefined_flag_CXX
18460
18461# Commands used to finish a libtool library installation in a directory.
18462finish_cmds=$lt_finish_cmds
18463
18464# Same as above, but a single script fragment to be evaled but not shown.
18465finish_eval=$lt_finish_eval
18466
18467# Take the output of nm and produce a listing of raw symbols and C names.
18468global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18469
18470# Transform the output of nm in a proper C declaration
18471global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18472
18473# Transform the output of nm in a C name address pair
18474global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18475
18476# This is the shared library runtime path variable.
18477runpath_var=$runpath_var
18478
18479# This is the shared library path variable.
18480shlibpath_var=$shlibpath_var
18481
18482# Is shlibpath searched before the hard-coded library search path?
18483shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18484
18485# How to hardcode a shared library path into an executable.
18486hardcode_action=$hardcode_action_CXX
18487
18488# Whether we should hardcode library paths into libraries.
18489hardcode_into_libs=$hardcode_into_libs
18490
18491# Flag to hardcode \$libdir into a binary during linking.
18492# This must work even if \$libdir does not exist.
18493hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18494
18495# If ld is used when linking, flag to hardcode \$libdir into
18496# a binary during linking. This must work even if \$libdir does
18497# not exist.
18498hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18499
18500# Whether we need a single -rpath flag with a separated argument.
18501hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18502
18503# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18504# resulting binary.
18505hardcode_direct=$hardcode_direct_CXX
18506
18507# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18508# resulting binary.
18509hardcode_minus_L=$hardcode_minus_L_CXX
18510
18511# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18512# the resulting binary.
18513hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18514
18515# Set to yes if building a shared library automatically hardcodes DIR into the library
18516# and all subsequent libraries and executables linked against it.
18517hardcode_automatic=$hardcode_automatic_CXX
18518
18519# Variables whose values should be saved in libtool wrapper scripts and
18520# restored at relink time.
18521variables_saved_for_relink="$variables_saved_for_relink"
18522
18523# Whether libtool must link a program against all its dependency libraries.
18524link_all_deplibs=$link_all_deplibs_CXX
18525
18526# Compile-time system search path for libraries
18527sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18528
18529# Run-time system search path for libraries
18530sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18531
18532# Fix the shell variable \$srcfile for the compiler.
18533fix_srcfile_path="$fix_srcfile_path_CXX"
18534
18535# Set to yes if exported symbols are required.
18536always_export_symbols=$always_export_symbols_CXX
18537
18538# The commands to list exported symbols.
18539export_symbols_cmds=$lt_export_symbols_cmds_CXX
18540
18541# The commands to extract the exported symbol list from a shared archive.
18542extract_expsyms_cmds=$lt_extract_expsyms_cmds
18543
18544# Symbols that should not be listed in the preloaded symbols.
18545exclude_expsyms=$lt_exclude_expsyms_CXX
18546
18547# Symbols that must always be exported.
18548include_expsyms=$lt_include_expsyms_CXX
18549
18550# ### END LIBTOOL TAG CONFIG: $tagname
18551
18552__EOF__
18553
18554
18555else
18556 # If there is no Makefile yet, we rely on a make rule to execute
18557 # `config.status --recheck' to rerun these tests and create the
18558 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018559 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18560 if test -f "$ltmain_in"; then
18561 test -f Makefile && make "$ltmain"
18562 fi
John Criswell47fdd832003-07-14 16:52:07 +000018563fi
18564
18565
18566ac_ext=c
18567ac_cpp='$CPP $CPPFLAGS'
18568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570ac_compiler_gnu=$ac_cv_c_compiler_gnu
18571
18572CC=$lt_save_CC
18573LDCXX=$LD
18574LD=$lt_save_LD
18575GCC=$lt_save_GCC
18576with_gnu_ldcxx=$with_gnu_ld
18577with_gnu_ld=$lt_save_with_gnu_ld
18578lt_cv_path_LDCXX=$lt_cv_path_LD
18579lt_cv_path_LD=$lt_save_path_LD
18580lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18581lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18582
18583 else
18584 tagname=""
18585 fi
18586 ;;
18587
18588 F77)
18589 if test -n "$F77" && test "X$F77" != "Xno"; then
18590
18591ac_ext=f
18592ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18593ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18595
18596
18597archive_cmds_need_lc_F77=no
18598allow_undefined_flag_F77=
18599always_export_symbols_F77=no
18600archive_expsym_cmds_F77=
18601export_dynamic_flag_spec_F77=
18602hardcode_direct_F77=no
18603hardcode_libdir_flag_spec_F77=
18604hardcode_libdir_flag_spec_ld_F77=
18605hardcode_libdir_separator_F77=
18606hardcode_minus_L_F77=no
18607hardcode_automatic_F77=no
18608module_cmds_F77=
18609module_expsym_cmds_F77=
18610link_all_deplibs_F77=unknown
18611old_archive_cmds_F77=$old_archive_cmds
18612no_undefined_flag_F77=
18613whole_archive_flag_spec_F77=
18614enable_shared_with_static_runtimes_F77=no
18615
18616# Source file extension for f77 test sources.
18617ac_ext=f
18618
18619# Object file extension for compiled f77 test sources.
18620objext=o
18621objext_F77=$objext
18622
18623# Code to be used in simple compile tests
18624lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18625
18626# Code to be used in simple link tests
18627lt_simple_link_test_code=" program t\n end\n"
18628
18629# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18630
18631# If no C compiler was specified, use CC.
18632LTCC=${LTCC-"$CC"}
18633
18634# Allow CC to be a program name with arguments.
18635compiler=$CC
18636
18637
18638# Allow CC to be a program name with arguments.
18639lt_save_CC="$CC"
18640CC=${F77-"f77"}
18641compiler=$CC
18642compiler_F77=$CC
18643cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18644
18645echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18646echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18647echo "$as_me:$LINENO: result: $can_build_shared" >&5
18648echo "${ECHO_T}$can_build_shared" >&6
18649
18650echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18651echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18652test "$can_build_shared" = "no" && enable_shared=no
18653
18654# On AIX, shared libraries and static libraries use the same namespace, and
18655# are all built from PIC.
18656case "$host_os" in
18657aix3*)
18658 test "$enable_shared" = yes && enable_static=no
18659 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018660 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018661 postinstall_cmds='$RANLIB $lib'
18662 fi
18663 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018664aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018665 test "$enable_shared" = yes && enable_static=no
18666 ;;
18667esac
18668echo "$as_me:$LINENO: result: $enable_shared" >&5
18669echo "${ECHO_T}$enable_shared" >&6
18670
18671echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18672echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18673# Make sure either enable_shared or enable_static is yes.
18674test "$enable_shared" = yes || enable_static=yes
18675echo "$as_me:$LINENO: result: $enable_static" >&5
18676echo "${ECHO_T}$enable_static" >&6
18677
18678test "$ld_shlibs_F77" = no && can_build_shared=no
18679
18680GCC_F77="$G77"
18681LD_F77="$LD"
18682
18683lt_prog_compiler_wl_F77=
18684lt_prog_compiler_pic_F77=
18685lt_prog_compiler_static_F77=
18686
18687echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18688echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18689
18690 if test "$GCC" = yes; then
18691 lt_prog_compiler_wl_F77='-Wl,'
18692 lt_prog_compiler_static_F77='-static'
18693
18694 case $host_os in
18695 aix*)
18696 # All AIX code is PIC.
18697 if test "$host_cpu" = ia64; then
18698 # AIX 5 now supports IA64 processor
18699 lt_prog_compiler_static_F77='-Bstatic'
18700 fi
18701 ;;
18702
18703 amigaos*)
18704 # FIXME: we need at least 68020 code to build shared libraries, but
18705 # adding the `-m68020' flag to GCC prevents building anything better,
18706 # like `-m68040'.
18707 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18708 ;;
18709
18710 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18711 # PIC is the default for these OSes.
18712 ;;
18713
18714 mingw* | pw32* | os2*)
18715 # This hack is so that the source file can tell whether it is being
18716 # built for inclusion in a dll (and should export symbols for example).
18717 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18718 ;;
18719
18720 darwin* | rhapsody*)
18721 # PIC is the default on this platform
18722 # Common symbols not allowed in MH_DYLIB files
18723 lt_prog_compiler_pic_F77='-fno-common'
18724 ;;
18725
18726 msdosdjgpp*)
18727 # Just because we use GCC doesn't mean we suddenly get shared libraries
18728 # on systems that don't support them.
18729 lt_prog_compiler_can_build_shared_F77=no
18730 enable_shared=no
18731 ;;
18732
18733 sysv4*MP*)
18734 if test -d /usr/nec; then
18735 lt_prog_compiler_pic_F77=-Kconform_pic
18736 fi
18737 ;;
18738
18739 hpux*)
18740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18741 # not for PA HP-UX.
18742 case "$host_cpu" in
18743 hppa*64*|ia64*)
18744 # +Z the default
18745 ;;
18746 *)
18747 lt_prog_compiler_pic_F77='-fPIC'
18748 ;;
18749 esac
18750 ;;
18751
18752 *)
18753 lt_prog_compiler_pic_F77='-fPIC'
18754 ;;
18755 esac
18756 else
18757 # PORTME Check for flag to pass linker flags through the system compiler.
18758 case $host_os in
18759 aix*)
18760 lt_prog_compiler_wl_F77='-Wl,'
18761 if test "$host_cpu" = ia64; then
18762 # AIX 5 now supports IA64 processor
18763 lt_prog_compiler_static_F77='-Bstatic'
18764 else
18765 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18766 fi
18767 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018768 darwin*)
18769 # PIC is the default on this platform
18770 # Common symbols not allowed in MH_DYLIB files
18771 case "$cc_basename" in
18772 xlc*)
18773 lt_prog_compiler_pic_F77='-qnocommon'
18774 lt_prog_compiler_wl_F77='-Wl,'
18775 ;;
18776 esac
18777 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018778
18779 mingw* | pw32* | os2*)
18780 # This hack is so that the source file can tell whether it is being
18781 # built for inclusion in a dll (and should export symbols for example).
18782 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18783 ;;
18784
18785 hpux9* | hpux10* | hpux11*)
18786 lt_prog_compiler_wl_F77='-Wl,'
18787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18788 # not for PA HP-UX.
18789 case "$host_cpu" in
18790 hppa*64*|ia64*)
18791 # +Z the default
18792 ;;
18793 *)
18794 lt_prog_compiler_pic_F77='+Z'
18795 ;;
18796 esac
18797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18798 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18799 ;;
18800
18801 irix5* | irix6* | nonstopux*)
18802 lt_prog_compiler_wl_F77='-Wl,'
18803 # PIC (with -KPIC) is the default.
18804 lt_prog_compiler_static_F77='-non_shared'
18805 ;;
18806
18807 newsos6)
18808 lt_prog_compiler_pic_F77='-KPIC'
18809 lt_prog_compiler_static_F77='-Bstatic'
18810 ;;
18811
18812 linux*)
18813 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018814 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018815 lt_prog_compiler_wl_F77='-Wl,'
18816 lt_prog_compiler_pic_F77='-KPIC'
18817 lt_prog_compiler_static_F77='-static'
18818 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018819 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018820 lt_prog_compiler_wl_F77='-Wl,'
18821 # All Alpha code is PIC.
18822 lt_prog_compiler_static_F77='-non_shared'
18823 ;;
18824 esac
18825 ;;
18826
18827 osf3* | osf4* | osf5*)
18828 lt_prog_compiler_wl_F77='-Wl,'
18829 # All OSF/1 code is PIC.
18830 lt_prog_compiler_static_F77='-non_shared'
18831 ;;
18832
18833 sco3.2v5*)
18834 lt_prog_compiler_pic_F77='-Kpic'
18835 lt_prog_compiler_static_F77='-dn'
18836 ;;
18837
18838 solaris*)
18839 lt_prog_compiler_wl_F77='-Wl,'
18840 lt_prog_compiler_pic_F77='-KPIC'
18841 lt_prog_compiler_static_F77='-Bstatic'
18842 ;;
18843
18844 sunos4*)
18845 lt_prog_compiler_wl_F77='-Qoption ld '
18846 lt_prog_compiler_pic_F77='-PIC'
18847 lt_prog_compiler_static_F77='-Bstatic'
18848 ;;
18849
18850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18851 lt_prog_compiler_wl_F77='-Wl,'
18852 lt_prog_compiler_pic_F77='-KPIC'
18853 lt_prog_compiler_static_F77='-Bstatic'
18854 ;;
18855
18856 sysv4*MP*)
18857 if test -d /usr/nec ;then
18858 lt_prog_compiler_pic_F77='-Kconform_pic'
18859 lt_prog_compiler_static_F77='-Bstatic'
18860 fi
18861 ;;
18862
18863 uts4*)
18864 lt_prog_compiler_pic_F77='-pic'
18865 lt_prog_compiler_static_F77='-Bstatic'
18866 ;;
18867
18868 *)
18869 lt_prog_compiler_can_build_shared_F77=no
18870 ;;
18871 esac
18872 fi
18873
18874echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18875echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18876
18877#
18878# Check to make sure the PIC flag actually works.
18879#
18880if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018881
18882echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018883echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18884if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886else
18887 lt_prog_compiler_pic_works_F77=no
18888 ac_outfile=conftest.$ac_objext
18889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18890 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18891 # Insert the option either (1) after the last *FLAGS variable, or
18892 # (2) before a word containing "conftest.", or (3) at the end.
18893 # Note that $ac_compile itself does not contain backslashes and begins
18894 # with a dollar sign (not a hyphen), so the echo should work correctly.
18895 # The option is referenced via a variable to avoid confusing sed.
18896 lt_compile=`echo "$ac_compile" | $SED \
18897 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18899 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000018900 (eval echo "\"\$as_me:18900: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018901 (eval "$lt_compile" 2>conftest.err)
18902 ac_status=$?
18903 cat conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000018904 echo "$as_me:18904: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018905 if (exit $ac_status) && test -s "$ac_outfile"; then
18906 # The compiler can only warn and ignore the option if not recognized
18907 # So say no if there are warnings
18908 if test ! -s conftest.err; then
18909 lt_prog_compiler_pic_works_F77=yes
18910 fi
18911 fi
18912 $rm conftest*
18913
18914fi
18915echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18916echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18917
18918if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18919 case $lt_prog_compiler_pic_F77 in
18920 "" | " "*) ;;
18921 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18922 esac
18923else
18924 lt_prog_compiler_pic_F77=
18925 lt_prog_compiler_can_build_shared_F77=no
18926fi
18927
18928fi
18929case "$host_os" in
18930 # For platforms which do not support PIC, -DPIC is meaningless:
18931 *djgpp*)
18932 lt_prog_compiler_pic_F77=
18933 ;;
18934 *)
18935 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18936 ;;
18937esac
18938
18939echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18940echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18941if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943else
18944 lt_cv_prog_compiler_c_o_F77=no
18945 $rm -r conftest 2>/dev/null
18946 mkdir conftest
18947 cd conftest
18948 mkdir out
18949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18950
John Criswell47fdd832003-07-14 16:52:07 +000018951 lt_compiler_flag="-o out/conftest2.$ac_objext"
18952 # Insert the option either (1) after the last *FLAGS variable, or
18953 # (2) before a word containing "conftest.", or (3) at the end.
18954 # Note that $ac_compile itself does not contain backslashes and begins
18955 # with a dollar sign (not a hyphen), so the echo should work correctly.
18956 lt_compile=`echo "$ac_compile" | $SED \
18957 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18959 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000018960 (eval echo "\"\$as_me:18960: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018961 (eval "$lt_compile" 2>out/conftest.err)
18962 ac_status=$?
18963 cat out/conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000018964 echo "$as_me:18964: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18966 then
18967 # The compiler can only warn and ignore the option if not recognized
18968 # So say no if there are warnings
18969 if test ! -s out/conftest.err; then
18970 lt_cv_prog_compiler_c_o_F77=yes
18971 fi
18972 fi
18973 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018974 $rm conftest*
18975 # SGI C++ compiler will create directory out/ii_files/ for
18976 # template instantiation
18977 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18978 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018979 cd ..
18980 rmdir conftest
18981 $rm conftest*
18982
18983fi
18984echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18985echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18986
18987
18988hard_links="nottested"
18989if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18990 # do not overwrite the value of need_locks provided by the user
18991 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18992echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18993 hard_links=yes
18994 $rm conftest*
18995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18996 touch conftest.a
18997 ln conftest.a conftest.b 2>&5 || hard_links=no
18998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18999 echo "$as_me:$LINENO: result: $hard_links" >&5
19000echo "${ECHO_T}$hard_links" >&6
19001 if test "$hard_links" = no; then
19002 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19003echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19004 need_locks=warn
19005 fi
19006else
19007 need_locks=no
19008fi
19009
19010echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19011echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19012
19013 runpath_var=
19014 allow_undefined_flag_F77=
19015 enable_shared_with_static_runtimes_F77=no
19016 archive_cmds_F77=
19017 archive_expsym_cmds_F77=
19018 old_archive_From_new_cmds_F77=
19019 old_archive_from_expsyms_cmds_F77=
19020 export_dynamic_flag_spec_F77=
19021 whole_archive_flag_spec_F77=
19022 thread_safe_flag_spec_F77=
19023 hardcode_libdir_flag_spec_F77=
19024 hardcode_libdir_flag_spec_ld_F77=
19025 hardcode_libdir_separator_F77=
19026 hardcode_direct_F77=no
19027 hardcode_minus_L_F77=no
19028 hardcode_shlibpath_var_F77=unsupported
19029 link_all_deplibs_F77=unknown
19030 hardcode_automatic_F77=no
19031 module_cmds_F77=
19032 module_expsym_cmds_F77=
19033 always_export_symbols_F77=no
19034 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19035 # include_expsyms should be a list of space-separated symbols to be *always*
19036 # included in the symbol list
19037 include_expsyms_F77=
19038 # exclude_expsyms can be an extended regexp of symbols to exclude
19039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19041 # as well as any symbol that contains `d'.
19042 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19044 # platforms (ab)use it in PIC code, but their linkers get confused if
19045 # the symbol is explicitly referenced. Since portable code cannot
19046 # rely on this symbol name, it's probably fine to never include it in
19047 # preloaded symbol tables.
19048 extract_expsyms_cmds=
19049
19050 case $host_os in
19051 cygwin* | mingw* | pw32*)
19052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19053 # When not using gcc, we currently assume that we are using
19054 # Microsoft Visual C++.
19055 if test "$GCC" != yes; then
19056 with_gnu_ld=no
19057 fi
19058 ;;
19059 openbsd*)
19060 with_gnu_ld=no
19061 ;;
19062 esac
19063
19064 ld_shlibs_F77=yes
19065 if test "$with_gnu_ld" = yes; then
19066 # If archive_cmds runs LD, not CC, wlarc should be empty
19067 wlarc='${wl}'
19068
19069 # See if GNU ld supports shared libraries.
19070 case $host_os in
19071 aix3* | aix4* | aix5*)
19072 # On AIX/PPC, the GNU linker is very broken
19073 if test "$host_cpu" != ia64; then
19074 ld_shlibs_F77=no
19075 cat <<EOF 1>&2
19076
19077*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19078*** to be unable to reliably create shared libraries on AIX.
19079*** Therefore, libtool is disabling shared libraries support. If you
19080*** really care for shared libraries, you may want to modify your PATH
19081*** so that a non-GNU linker is found, and then restart.
19082
19083EOF
19084 fi
19085 ;;
19086
19087 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019088 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 +000019089 hardcode_libdir_flag_spec_F77='-L$libdir'
19090 hardcode_minus_L_F77=yes
19091
19092 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19093 # that the semantics of dynamic libraries on AmigaOS, at least up
19094 # to version 4, is to share data among multiple programs linked
19095 # with the same dynamic library. Since this doesn't match the
19096 # behavior of shared libraries on other platforms, we can't use
19097 # them.
19098 ld_shlibs_F77=no
19099 ;;
19100
19101 beos*)
19102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19103 allow_undefined_flag_F77=unsupported
19104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19105 # support --undefined. This deserves some investigation. FIXME
19106 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19107 else
19108 ld_shlibs_F77=no
19109 fi
19110 ;;
19111
19112 cygwin* | mingw* | pw32*)
19113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19114 # as there is no search path for DLLs.
19115 hardcode_libdir_flag_spec_F77='-L$libdir'
19116 allow_undefined_flag_F77=unsupported
19117 always_export_symbols_F77=no
19118 enable_shared_with_static_runtimes_F77=yes
19119 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19120
19121 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19122 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19123 # If the export-symbols file already is a .def file (1st line
19124 # is EXPORTS), use it as is; otherwise, prepend...
19125 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19126 cp $export_symbols $output_objdir/$soname.def;
19127 else
19128 echo EXPORTS > $output_objdir/$soname.def;
19129 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019130 fi~
19131 $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 +000019132 else
19133 ld_shlibs=no
19134 fi
19135 ;;
19136
19137 netbsd*)
19138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19139 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19140 wlarc=
19141 else
19142 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19143 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19144 fi
19145 ;;
19146
19147 solaris* | sysv5*)
19148 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19149 ld_shlibs_F77=no
19150 cat <<EOF 1>&2
19151
19152*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19153*** create shared libraries on Solaris systems. Therefore, libtool
19154*** is disabling shared libraries support. We urge you to upgrade GNU
19155*** binutils to release 2.9.1 or newer. Another option is to modify
19156*** your PATH or compiler configuration so that the native linker is
19157*** used, and then restart.
19158
19159EOF
19160 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19161 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19162 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19163 else
19164 ld_shlibs_F77=no
19165 fi
19166 ;;
19167
19168 sunos4*)
19169 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19170 wlarc=
19171 hardcode_direct_F77=yes
19172 hardcode_shlibpath_var_F77=no
19173 ;;
19174
Reid Spencer2706f8c2004-09-19 23:53:36 +000019175 linux*)
19176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19177 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19178 archive_cmds_F77="$tmp_archive_cmds"
19179 supports_anon_versioning=no
19180 case `$LD -v 2>/dev/null` in
19181 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19184 *\ 2.11.*) ;; # other 2.11 versions
19185 *) supports_anon_versioning=yes ;;
19186 esac
19187 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019188 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19189cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19190$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019191 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19192 else
19193 archive_expsym_cmds_F77="$tmp_archive_cmds"
19194 fi
19195 else
19196 ld_shlibs_F77=no
19197 fi
19198 ;;
19199
John Criswell47fdd832003-07-14 16:52:07 +000019200 *)
19201 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19202 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19203 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19204 else
19205 ld_shlibs_F77=no
19206 fi
19207 ;;
19208 esac
19209
19210 if test "$ld_shlibs_F77" = yes; then
19211 runpath_var=LD_RUN_PATH
19212 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19213 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19214 # ancient GNU ld didn't support --whole-archive et. al.
19215 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19216 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19217 else
19218 whole_archive_flag_spec_F77=
19219 fi
19220 fi
19221 else
19222 # PORTME fill in a description of your system's linker (not GNU ld)
19223 case $host_os in
19224 aix3*)
19225 allow_undefined_flag_F77=unsupported
19226 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019227 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 +000019228 # Note: this linker hardcodes the directories in LIBPATH if there
19229 # are no directories specified by -L.
19230 hardcode_minus_L_F77=yes
19231 if test "$GCC" = yes && test -z "$link_static_flag"; then
19232 # Neither direct hardcoding nor static linking is supported with a
19233 # broken collect2.
19234 hardcode_direct_F77=unsupported
19235 fi
19236 ;;
19237
19238 aix4* | aix5*)
19239 if test "$host_cpu" = ia64; then
19240 # On IA64, the linker does run time linking by default, so we don't
19241 # have to do anything special.
19242 aix_use_runtimelinking=no
19243 exp_sym_flag='-Bexport'
19244 no_entry_flag=""
19245 else
19246 # If we're using GNU nm, then we don't want the "-C" option.
19247 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19248 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19249 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'
19250 else
19251 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'
19252 fi
19253 aix_use_runtimelinking=no
19254
19255 # Test if we are trying to use run time linking or normal
19256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19257 # need to do runtime linking.
19258 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19259 for ld_flag in $LDFLAGS; do
19260 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19261 aix_use_runtimelinking=yes
19262 break
19263 fi
19264 done
19265 esac
19266
19267 exp_sym_flag='-bexport'
19268 no_entry_flag='-bnoentry'
19269 fi
19270
19271 # When large executables or shared objects are built, AIX ld can
19272 # have problems creating the table of contents. If linking a library
19273 # or program results in "error TOC overflow" add -mminimal-toc to
19274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19276
19277 archive_cmds_F77=''
19278 hardcode_direct_F77=yes
19279 hardcode_libdir_separator_F77=':'
19280 link_all_deplibs_F77=yes
19281
19282 if test "$GCC" = yes; then
19283 case $host_os in aix4.012|aix4.012.*)
19284 # We only want to do this on AIX 4.2 and lower, the check
19285 # below for broken collect2 doesn't work under 4.3+
19286 collect2name=`${CC} -print-prog-name=collect2`
19287 if test -f "$collect2name" && \
19288 strings "$collect2name" | grep resolve_lib_name >/dev/null
19289 then
19290 # We have reworked collect2
19291 hardcode_direct_F77=yes
19292 else
19293 # We have old collect2
19294 hardcode_direct_F77=unsupported
19295 # It fails to find uninstalled libraries when the uninstalled
19296 # path is not listed in the libpath. Setting hardcode_minus_L
19297 # to unsupported forces relinking
19298 hardcode_minus_L_F77=yes
19299 hardcode_libdir_flag_spec_F77='-L$libdir'
19300 hardcode_libdir_separator_F77=
19301 fi
19302 esac
19303 shared_flag='-shared'
19304 else
19305 # not using gcc
19306 if test "$host_cpu" = ia64; then
19307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19308 # chokes on -Wl,-G. The following line is correct:
19309 shared_flag='-G'
19310 else
19311 if test "$aix_use_runtimelinking" = yes; then
19312 shared_flag='${wl}-G'
19313 else
19314 shared_flag='${wl}-bM:SRE'
19315 fi
19316 fi
19317 fi
19318
19319 # It seems that -bexpall does not export symbols beginning with
19320 # underscore (_), so it is better to generate a list of symbols to export.
19321 always_export_symbols_F77=yes
19322 if test "$aix_use_runtimelinking" = yes; then
19323 # Warning - without using the other runtime loading flags (-brtl),
19324 # -berok will link without error, but may produce a broken library.
19325 allow_undefined_flag_F77='-berok'
19326 # Determine the default libpath from the value encoded in an empty executable.
19327 cat >conftest.$ac_ext <<_ACEOF
19328 program main
19329
19330 end
19331_ACEOF
19332rm -f conftest.$ac_objext conftest$ac_exeext
19333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019334 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019335 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019341 { ac_try='test -z "$ac_f77_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354
19355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19356}'`
19357# Check for a 64-bit object if we didn't find anything.
19358if 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; }
19359}'`; fi
19360else
19361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019362sed 's/^/| /' conftest.$ac_ext >&5
19363
John Criswell47fdd832003-07-14 16:52:07 +000019364fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019365rm -f conftest.err conftest.$ac_objext \
19366 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19368
19369 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19370 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"
19371 else
19372 if test "$host_cpu" = ia64; then
19373 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19374 allow_undefined_flag_F77="-z nodefs"
19375 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"
19376 else
19377 # Determine the default libpath from the value encoded in an empty executable.
19378 cat >conftest.$ac_ext <<_ACEOF
19379 program main
19380
19381 end
19382_ACEOF
19383rm -f conftest.$ac_objext conftest$ac_exeext
19384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019385 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019387 grep -v '^ *+' conftest.er1 >conftest.err
19388 rm -f conftest.er1
19389 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019392 { ac_try='test -z "$ac_f77_werror_flag"
19393 || test ! -s conftest.err'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; } &&
19399 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405
19406aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19407}'`
19408# Check for a 64-bit object if we didn't find anything.
19409if 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; }
19410}'`; fi
19411else
19412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019413sed 's/^/| /' conftest.$ac_ext >&5
19414
John Criswell47fdd832003-07-14 16:52:07 +000019415fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019416rm -f conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019418if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19419
19420 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19421 # Warning - without using the other run time loading flags,
19422 # -berok will link without error, but may produce a broken library.
19423 no_undefined_flag_F77=' ${wl}-bernotok'
19424 allow_undefined_flag_F77=' ${wl}-berok'
19425 # -bexpall does not export symbols beginning with underscore (_)
19426 always_export_symbols_F77=yes
19427 # Exported symbols can be pulled into shared objects from archives
19428 whole_archive_flag_spec_F77=' '
19429 archive_cmds_need_lc_F77=yes
19430 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019431 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 +000019432 fi
19433 fi
19434 ;;
19435
19436 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019437 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 +000019438 hardcode_libdir_flag_spec_F77='-L$libdir'
19439 hardcode_minus_L_F77=yes
19440 # see comment about different semantics on the GNU ld section
19441 ld_shlibs_F77=no
19442 ;;
19443
Reid Spencer2706f8c2004-09-19 23:53:36 +000019444 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019445 export_dynamic_flag_spec_F77=-rdynamic
19446 ;;
19447
19448 cygwin* | mingw* | pw32*)
19449 # When not using gcc, we currently assume that we are using
19450 # Microsoft Visual C++.
19451 # hardcode_libdir_flag_spec is actually meaningless, as there is
19452 # no search path for DLLs.
19453 hardcode_libdir_flag_spec_F77=' '
19454 allow_undefined_flag_F77=unsupported
19455 # Tell ltmain to make .lib files, not .a files.
19456 libext=lib
19457 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019458 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019459 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019460 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 +000019461 # The linker will automatically build a .lib file if we build a DLL.
19462 old_archive_From_new_cmds_F77='true'
19463 # FIXME: Should let the user specify the lib program.
19464 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19465 fix_srcfile_path='`cygpath -w "$srcfile"`'
19466 enable_shared_with_static_runtimes_F77=yes
19467 ;;
19468
19469 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019470 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019471 rhapsody* | darwin1.[012])
19472 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19473 ;;
19474 *) # Darwin 1.3 on
19475 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19476 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19477 else
19478 case ${MACOSX_DEPLOYMENT_TARGET} in
19479 10.[012])
19480 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19481 ;;
19482 10.*)
19483 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19484 ;;
19485 esac
19486 fi
19487 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019488 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019489 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019490 hardcode_direct_F77=no
19491 hardcode_automatic_F77=yes
19492 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019493 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019494 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019495 if test "$GCC" = yes ; then
19496 output_verbose_link_cmd='echo'
19497 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19498 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19499 # 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 +000019500 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}'
19501 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 +000019502 else
19503 case "$cc_basename" in
19504 xlc*)
19505 output_verbose_link_cmd='echo'
19506 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19507 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19508 # 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 +000019509 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}'
19510 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 +000019511 ;;
19512 *)
19513 ld_shlibs_F77=no
19514 ;;
19515 esac
John Criswell47fdd832003-07-14 16:52:07 +000019516 fi
19517 ;;
19518
19519 dgux*)
19520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19521 hardcode_libdir_flag_spec_F77='-L$libdir'
19522 hardcode_shlibpath_var_F77=no
19523 ;;
19524
19525 freebsd1*)
19526 ld_shlibs_F77=no
19527 ;;
19528
19529 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19530 # support. Future versions do this automatically, but an explicit c++rt0.o
19531 # does not break anything, and helps significantly (at the cost of a little
19532 # extra space).
19533 freebsd2.2*)
19534 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19535 hardcode_libdir_flag_spec_F77='-R$libdir'
19536 hardcode_direct_F77=yes
19537 hardcode_shlibpath_var_F77=no
19538 ;;
19539
19540 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19541 freebsd2*)
19542 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19543 hardcode_direct_F77=yes
19544 hardcode_minus_L_F77=yes
19545 hardcode_shlibpath_var_F77=no
19546 ;;
19547
19548 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019549 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019550 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19551 hardcode_libdir_flag_spec_F77='-R$libdir'
19552 hardcode_direct_F77=yes
19553 hardcode_shlibpath_var_F77=no
19554 ;;
19555
19556 hpux9*)
19557 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019558 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 +000019559 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019560 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 +000019561 fi
19562 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19563 hardcode_libdir_separator_F77=:
19564 hardcode_direct_F77=yes
19565
19566 # hardcode_minus_L: Not really in the search PATH,
19567 # but as the default location of the library.
19568 hardcode_minus_L_F77=yes
19569 export_dynamic_flag_spec_F77='${wl}-E'
19570 ;;
19571
19572 hpux10* | hpux11*)
19573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19574 case "$host_cpu" in
19575 hppa*64*|ia64*)
19576 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19577 ;;
19578 *)
19579 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19580 ;;
19581 esac
19582 else
19583 case "$host_cpu" in
19584 hppa*64*|ia64*)
19585 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19586 ;;
19587 *)
19588 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19589 ;;
19590 esac
19591 fi
19592 if test "$with_gnu_ld" = no; then
19593 case "$host_cpu" in
19594 hppa*64*)
19595 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19596 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19597 hardcode_libdir_separator_F77=:
19598 hardcode_direct_F77=no
19599 hardcode_shlibpath_var_F77=no
19600 ;;
19601 ia64*)
19602 hardcode_libdir_flag_spec_F77='-L$libdir'
19603 hardcode_direct_F77=no
19604 hardcode_shlibpath_var_F77=no
19605
19606 # hardcode_minus_L: Not really in the search PATH,
19607 # but as the default location of the library.
19608 hardcode_minus_L_F77=yes
19609 ;;
19610 *)
19611 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19612 hardcode_libdir_separator_F77=:
19613 hardcode_direct_F77=yes
19614 export_dynamic_flag_spec_F77='${wl}-E'
19615
19616 # hardcode_minus_L: Not really in the search PATH,
19617 # but as the default location of the library.
19618 hardcode_minus_L_F77=yes
19619 ;;
19620 esac
19621 fi
19622 ;;
19623
19624 irix5* | irix6* | nonstopux*)
19625 if test "$GCC" = yes; then
19626 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'
19627 else
19628 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'
19629 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19630 fi
19631 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19632 hardcode_libdir_separator_F77=:
19633 link_all_deplibs_F77=yes
19634 ;;
19635
19636 netbsd*)
19637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19639 else
19640 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19641 fi
19642 hardcode_libdir_flag_spec_F77='-R$libdir'
19643 hardcode_direct_F77=yes
19644 hardcode_shlibpath_var_F77=no
19645 ;;
19646
19647 newsos6)
19648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19649 hardcode_direct_F77=yes
19650 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_F77=:
19652 hardcode_shlibpath_var_F77=no
19653 ;;
19654
19655 openbsd*)
19656 hardcode_direct_F77=yes
19657 hardcode_shlibpath_var_F77=no
19658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19659 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019660 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 +000019661 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19662 export_dynamic_flag_spec_F77='${wl}-E'
19663 else
19664 case $host_os in
19665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19666 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19667 hardcode_libdir_flag_spec_F77='-R$libdir'
19668 ;;
19669 *)
19670 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19671 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19672 ;;
19673 esac
19674 fi
19675 ;;
19676
19677 os2*)
19678 hardcode_libdir_flag_spec_F77='-L$libdir'
19679 hardcode_minus_L_F77=yes
19680 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019681 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 +000019682 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19683 ;;
19684
19685 osf3*)
19686 if test "$GCC" = yes; then
19687 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19688 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'
19689 else
19690 allow_undefined_flag_F77=' -expect_unresolved \*'
19691 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'
19692 fi
19693 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19694 hardcode_libdir_separator_F77=:
19695 ;;
19696
19697 osf4* | osf5*) # as osf3* with the addition of -msym flag
19698 if test "$GCC" = yes; then
19699 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19700 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'
19701 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19702 else
19703 allow_undefined_flag_F77=' -expect_unresolved \*'
19704 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 +000019705 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~
19706 $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'
19707
John Criswell47fdd832003-07-14 16:52:07 +000019708 # Both c and cxx compiler support -rpath directly
19709 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19710 fi
19711 hardcode_libdir_separator_F77=:
19712 ;;
19713
19714 sco3.2v5*)
19715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19716 hardcode_shlibpath_var_F77=no
19717 export_dynamic_flag_spec_F77='${wl}-Bexport'
19718 runpath_var=LD_RUN_PATH
19719 hardcode_runpath_var=yes
19720 ;;
19721
19722 solaris*)
19723 no_undefined_flag_F77=' -z text'
19724 if test "$GCC" = yes; then
19725 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019726 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19727 $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 +000019728 else
19729 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019730 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19731 $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 +000019732 fi
19733 hardcode_libdir_flag_spec_F77='-R$libdir'
19734 hardcode_shlibpath_var_F77=no
19735 case $host_os in
19736 solaris2.[0-5] | solaris2.[0-5].*) ;;
19737 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19738 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19739 esac
19740 link_all_deplibs_F77=yes
19741 ;;
19742
19743 sunos4*)
19744 if test "x$host_vendor" = xsequent; then
19745 # Use $CC to link under sequent, because it throws in some extra .o
19746 # files that make .init and .fini sections work.
19747 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19748 else
19749 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19750 fi
19751 hardcode_libdir_flag_spec_F77='-L$libdir'
19752 hardcode_direct_F77=yes
19753 hardcode_minus_L_F77=yes
19754 hardcode_shlibpath_var_F77=no
19755 ;;
19756
19757 sysv4)
19758 case $host_vendor in
19759 sni)
19760 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19761 hardcode_direct_F77=yes # is this really true???
19762 ;;
19763 siemens)
19764 ## LD is ld it makes a PLAMLIB
19765 ## CC just makes a GrossModule.
19766 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19767 reload_cmds_F77='$CC -r -o $output$reload_objs'
19768 hardcode_direct_F77=no
19769 ;;
19770 motorola)
19771 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19772 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19773 ;;
19774 esac
19775 runpath_var='LD_RUN_PATH'
19776 hardcode_shlibpath_var_F77=no
19777 ;;
19778
19779 sysv4.3*)
19780 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19781 hardcode_shlibpath_var_F77=no
19782 export_dynamic_flag_spec_F77='-Bexport'
19783 ;;
19784
19785 sysv4*MP*)
19786 if test -d /usr/nec; then
19787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19788 hardcode_shlibpath_var_F77=no
19789 runpath_var=LD_RUN_PATH
19790 hardcode_runpath_var=yes
19791 ld_shlibs_F77=yes
19792 fi
19793 ;;
19794
19795 sysv4.2uw2*)
19796 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19797 hardcode_direct_F77=yes
19798 hardcode_minus_L_F77=no
19799 hardcode_shlibpath_var_F77=no
19800 hardcode_runpath_var=yes
19801 runpath_var=LD_RUN_PATH
19802 ;;
19803
19804 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19805 no_undefined_flag_F77='${wl}-z ${wl}text'
19806 if test "$GCC" = yes; then
19807 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19808 else
19809 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19810 fi
19811 runpath_var='LD_RUN_PATH'
19812 hardcode_shlibpath_var_F77=no
19813 ;;
19814
19815 sysv5*)
19816 no_undefined_flag_F77=' -z text'
19817 # $CC -shared without GNU ld will not create a library from C++
19818 # object files and a static libstdc++, better avoid it by now
19819 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019820 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19821 $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 +000019822 hardcode_libdir_flag_spec_F77=
19823 hardcode_shlibpath_var_F77=no
19824 runpath_var='LD_RUN_PATH'
19825 ;;
19826
19827 uts4*)
19828 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19829 hardcode_libdir_flag_spec_F77='-L$libdir'
19830 hardcode_shlibpath_var_F77=no
19831 ;;
19832
19833 *)
19834 ld_shlibs_F77=no
19835 ;;
19836 esac
19837 fi
19838
19839echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19840echo "${ECHO_T}$ld_shlibs_F77" >&6
19841test "$ld_shlibs_F77" = no && can_build_shared=no
19842
19843variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19844if test "$GCC" = yes; then
19845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19846fi
19847
19848#
19849# Do we need to explicitly link libc?
19850#
19851case "x$archive_cmds_need_lc_F77" in
19852x|xyes)
19853 # Assume -lc should be added
19854 archive_cmds_need_lc_F77=yes
19855
19856 if test "$enable_shared" = yes && test "$GCC" = yes; then
19857 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019858 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019859 # FIXME: we may have to deal with multi-command sequences.
19860 ;;
19861 '$CC '*)
19862 # Test whether the compiler implicitly links with -lc since on some
19863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19864 # to ld, don't add -lc before -lgcc.
19865 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19866echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19867 $rm conftest*
19868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19869
19870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19871 (eval $ac_compile) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } 2>conftest.err; then
19875 soname=conftest
19876 lib=conftest
19877 libobjs=conftest.$ac_objext
19878 deplibs=
19879 wl=$lt_prog_compiler_wl_F77
19880 compiler_flags=-v
19881 linker_flags=-v
19882 verstring=
19883 output_objdir=.
19884 libname=conftest
19885 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19886 allow_undefined_flag_F77=
19887 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19888 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }
19892 then
19893 archive_cmds_need_lc_F77=no
19894 else
19895 archive_cmds_need_lc_F77=yes
19896 fi
19897 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19898 else
19899 cat conftest.err 1>&5
19900 fi
19901 $rm conftest*
19902 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19903echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19904 ;;
19905 esac
19906 fi
19907 ;;
19908esac
19909
John Criswell47fdd832003-07-14 16:52:07 +000019910echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19911echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19912library_names_spec=
19913libname_spec='lib$name'
19914soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019915shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019916postinstall_cmds=
19917postuninstall_cmds=
19918finish_cmds=
19919finish_eval=
19920shlibpath_var=
19921shlibpath_overrides_runpath=unknown
19922version_type=none
19923dynamic_linker="$host_os ld.so"
19924sys_lib_dlsearch_path_spec="/lib /usr/lib"
19925if test "$GCC" = yes; then
19926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19927 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19928 # if the path contains ";" then we assume it to be the separator
19929 # otherwise default to the standard path separator (i.e. ":") - it is
19930 # assumed that no part of a normal pathname contains ";" but that should
19931 # okay in the real world where ";" in dirpaths is itself problematic.
19932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19933 else
19934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19935 fi
19936else
19937 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19938fi
19939need_lib_prefix=unknown
19940hardcode_into_libs=no
19941
19942# when you set need_version to no, make sure it does not cause -set_version
19943# flags to be left without arguments
19944need_version=unknown
19945
19946case $host_os in
19947aix3*)
19948 version_type=linux
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19950 shlibpath_var=LIBPATH
19951
19952 # AIX 3 has no versioning support, so we append a major version to the name.
19953 soname_spec='${libname}${release}${shared_ext}$major'
19954 ;;
19955
19956aix4* | aix5*)
19957 version_type=linux
19958 need_lib_prefix=no
19959 need_version=no
19960 hardcode_into_libs=yes
19961 if test "$host_cpu" = ia64; then
19962 # AIX 5 supports IA64
19963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19964 shlibpath_var=LD_LIBRARY_PATH
19965 else
19966 # With GCC up to 2.95.x, collect2 would create an import file
19967 # for dependence libraries. The import file would start with
19968 # the line `#! .'. This would cause the generated library to
19969 # depend on `.', always an invalid library. This was fixed in
19970 # development snapshots of GCC prior to 3.0.
19971 case $host_os in
19972 aix4 | aix4.[01] | aix4.[01].*)
19973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19974 echo ' yes '
19975 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19976 :
19977 else
19978 can_build_shared=no
19979 fi
19980 ;;
19981 esac
19982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19983 # soname into executable. Probably we can add versioning support to
19984 # collect2, so additional links can be useful in future.
19985 if test "$aix_use_runtimelinking" = yes; then
19986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19987 # instead of lib<name>.a to let people know that these are not
19988 # typical AIX shared libraries.
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990 else
19991 # We preserve .a as extension for shared libraries through AIX4.2
19992 # and later when we are not doing run time linking.
19993 library_names_spec='${libname}${release}.a $libname.a'
19994 soname_spec='${libname}${release}${shared_ext}$major'
19995 fi
19996 shlibpath_var=LIBPATH
19997 fi
19998 ;;
19999
20000amigaos*)
20001 library_names_spec='$libname.ixlibrary $libname.a'
20002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020003 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 +000020004 ;;
20005
20006beos*)
20007 library_names_spec='${libname}${shared_ext}'
20008 dynamic_linker="$host_os ld.so"
20009 shlibpath_var=LIBRARY_PATH
20010 ;;
20011
Reid Spencer2706f8c2004-09-19 23:53:36 +000020012bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020013 version_type=linux
20014 need_version=no
20015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20016 soname_spec='${libname}${release}${shared_ext}$major'
20017 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20018 shlibpath_var=LD_LIBRARY_PATH
20019 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20020 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20021 # the default ld.so.conf also contains /usr/contrib/lib and
20022 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20023 # libtool to hard-code these into programs
20024 ;;
20025
20026cygwin* | mingw* | pw32*)
20027 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020028 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020029 need_version=no
20030 need_lib_prefix=no
20031
20032 case $GCC,$host_os in
20033 yes,cygwin* | yes,mingw* | yes,pw32*)
20034 library_names_spec='$libname.dll.a'
20035 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020036 postinstall_cmds='base_file=`basename \${file}`~
20037 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20038 dldir=$destdir/`dirname \$dlpath`~
20039 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020040 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20042 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020043 $rm \$dlpath'
20044 shlibpath_overrides_runpath=yes
20045
20046 case $host_os in
20047 cygwin*)
20048 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20049 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 +000020050 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020051 ;;
20052 mingw*)
20053 # MinGW DLLs use traditional 'lib' prefix
20054 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20055 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20056 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20057 # It is most probably a Windows format PATH printed by
20058 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20059 # path with ; separators, and with drive letters. We can handle the
20060 # drive letters (cygwin fileutils understands them), so leave them,
20061 # especially as we might pass files found there to a mingw objdump,
20062 # which wouldn't understand a cygwinified path. Ahh.
20063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20064 else
20065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20066 fi
20067 ;;
20068 pw32*)
20069 # pw32 DLLs use 'pw' prefix rather than 'lib'
20070 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20071 ;;
20072 esac
20073 ;;
20074
20075 *)
20076 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20077 ;;
20078 esac
20079 dynamic_linker='Win32 ld.exe'
20080 # FIXME: first we should search . and the directory the executable is in
20081 shlibpath_var=PATH
20082 ;;
20083
20084darwin* | rhapsody*)
20085 dynamic_linker="$host_os dyld"
20086 version_type=darwin
20087 need_lib_prefix=no
20088 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020089 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020090 soname_spec='${libname}${release}${major}$shared_ext'
20091 shlibpath_overrides_runpath=yes
20092 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020093 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020094 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020095 if test "$GCC" = yes; then
20096 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"`
20097 else
20098 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020099 fi
20100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20101 ;;
20102
20103dgux*)
20104 version_type=linux
20105 need_lib_prefix=no
20106 need_version=no
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20108 soname_spec='${libname}${release}${shared_ext}$major'
20109 shlibpath_var=LD_LIBRARY_PATH
20110 ;;
20111
20112freebsd1*)
20113 dynamic_linker=no
20114 ;;
20115
Reid Spencer2706f8c2004-09-19 23:53:36 +000020116kfreebsd*-gnu)
20117 version_type=linux
20118 need_lib_prefix=no
20119 need_version=no
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 shlibpath_overrides_runpath=no
20124 hardcode_into_libs=yes
20125 dynamic_linker='GNU ld.so'
20126 ;;
20127
John Criswell47fdd832003-07-14 16:52:07 +000020128freebsd*)
20129 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20130 version_type=freebsd-$objformat
20131 case $version_type in
20132 freebsd-elf*)
20133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20134 need_version=no
20135 need_lib_prefix=no
20136 ;;
20137 freebsd-*)
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20139 need_version=yes
20140 ;;
20141 esac
20142 shlibpath_var=LD_LIBRARY_PATH
20143 case $host_os in
20144 freebsd2*)
20145 shlibpath_overrides_runpath=yes
20146 ;;
20147 freebsd3.01* | freebsdelf3.01*)
20148 shlibpath_overrides_runpath=yes
20149 hardcode_into_libs=yes
20150 ;;
20151 *) # from 3.2 on
20152 shlibpath_overrides_runpath=no
20153 hardcode_into_libs=yes
20154 ;;
20155 esac
20156 ;;
20157
20158gnu*)
20159 version_type=linux
20160 need_lib_prefix=no
20161 need_version=no
20162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 hardcode_into_libs=yes
20166 ;;
20167
20168hpux9* | hpux10* | hpux11*)
20169 # Give a soname corresponding to the major version so that dld.sl refuses to
20170 # link against other versions.
20171 version_type=sunos
20172 need_lib_prefix=no
20173 need_version=no
20174 case "$host_cpu" in
20175 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020176 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020177 hardcode_into_libs=yes
20178 dynamic_linker="$host_os dld.so"
20179 shlibpath_var=LD_LIBRARY_PATH
20180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 if test "X$HPUX_IA64_MODE" = X32; then
20184 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20185 else
20186 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20187 fi
20188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20189 ;;
20190 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020191 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020192 hardcode_into_libs=yes
20193 dynamic_linker="$host_os dld.sl"
20194 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197 soname_spec='${libname}${release}${shared_ext}$major'
20198 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20200 ;;
20201 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020202 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020203 dynamic_linker="$host_os dld.sl"
20204 shlibpath_var=SHLIB_PATH
20205 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 soname_spec='${libname}${release}${shared_ext}$major'
20208 ;;
20209 esac
20210 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20211 postinstall_cmds='chmod 555 $lib'
20212 ;;
20213
20214irix5* | irix6* | nonstopux*)
20215 case $host_os in
20216 nonstopux*) version_type=nonstopux ;;
20217 *)
20218 if test "$lt_cv_prog_gnu_ld" = yes; then
20219 version_type=linux
20220 else
20221 version_type=irix
20222 fi ;;
20223 esac
20224 need_lib_prefix=no
20225 need_version=no
20226 soname_spec='${libname}${release}${shared_ext}$major'
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20228 case $host_os in
20229 irix5* | nonstopux*)
20230 libsuff= shlibsuff=
20231 ;;
20232 *)
20233 case $LD in # libtool.m4 will add one of these switches to LD
20234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20235 libsuff= shlibsuff= libmagic=32-bit;;
20236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20237 libsuff=32 shlibsuff=N32 libmagic=N32;;
20238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20239 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20240 *) libsuff= shlibsuff= libmagic=never-match;;
20241 esac
20242 ;;
20243 esac
20244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20245 shlibpath_overrides_runpath=no
20246 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20247 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20248 hardcode_into_libs=yes
20249 ;;
20250
20251# No shared lib support for Linux oldld, aout, or coff.
20252linux*oldld* | linux*aout* | linux*coff*)
20253 dynamic_linker=no
20254 ;;
20255
20256# This must be Linux ELF.
20257linux*)
20258 version_type=linux
20259 need_lib_prefix=no
20260 need_version=no
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath=no
20266 # This implies no fast_install, which is unacceptable.
20267 # Some rework will be needed to allow for fast_install
20268 # before this can be enabled.
20269 hardcode_into_libs=yes
20270
Reid Spencer2706f8c2004-09-19 23:53:36 +000020271 # Append ld.so.conf contents to the search path
20272 if test -f /etc/ld.so.conf; then
20273 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20275 fi
20276
John Criswell47fdd832003-07-14 16:52:07 +000020277 # We used to test for /lib/ld.so.1 and disable shared libraries on
20278 # powerpc, because MkLinux only supported shared libraries with the
20279 # GNU dynamic linker. Since this was broken with cross compilers,
20280 # most powerpc-linux boxes support dynamic linking these days and
20281 # people can always --disable-shared, the test was removed, and we
20282 # assume the GNU/Linux dynamic linker is in use.
20283 dynamic_linker='GNU/Linux ld.so'
20284 ;;
20285
Reid Spencer2706f8c2004-09-19 23:53:36 +000020286knetbsd*-gnu)
20287 version_type=linux
20288 need_lib_prefix=no
20289 need_version=no
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 shlibpath_overrides_runpath=no
20294 hardcode_into_libs=yes
20295 dynamic_linker='GNU ld.so'
20296 ;;
20297
John Criswell47fdd832003-07-14 16:52:07 +000020298netbsd*)
20299 version_type=sunos
20300 need_lib_prefix=no
20301 need_version=no
20302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20305 dynamic_linker='NetBSD (a.out) ld.so'
20306 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020308 soname_spec='${libname}${release}${shared_ext}$major'
20309 dynamic_linker='NetBSD ld.elf_so'
20310 fi
20311 shlibpath_var=LD_LIBRARY_PATH
20312 shlibpath_overrides_runpath=yes
20313 hardcode_into_libs=yes
20314 ;;
20315
20316newsos6)
20317 version_type=linux
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319 shlibpath_var=LD_LIBRARY_PATH
20320 shlibpath_overrides_runpath=yes
20321 ;;
20322
Reid Spencer2706f8c2004-09-19 23:53:36 +000020323nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020324 version_type=linux
20325 need_lib_prefix=no
20326 need_version=no
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 shlibpath_overrides_runpath=yes
20331 ;;
20332
20333openbsd*)
20334 version_type=sunos
20335 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020336 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20341 case $host_os in
20342 openbsd2.[89] | openbsd2.[89].*)
20343 shlibpath_overrides_runpath=no
20344 ;;
20345 *)
20346 shlibpath_overrides_runpath=yes
20347 ;;
20348 esac
20349 else
20350 shlibpath_overrides_runpath=yes
20351 fi
20352 ;;
20353
20354os2*)
20355 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020356 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020357 need_lib_prefix=no
20358 library_names_spec='$libname${shared_ext} $libname.a'
20359 dynamic_linker='OS/2 ld.exe'
20360 shlibpath_var=LIBPATH
20361 ;;
20362
20363osf3* | osf4* | osf5*)
20364 version_type=osf
20365 need_lib_prefix=no
20366 need_version=no
20367 soname_spec='${libname}${release}${shared_ext}$major'
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369 shlibpath_var=LD_LIBRARY_PATH
20370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20372 ;;
20373
20374sco3.2v5*)
20375 version_type=osf
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 shlibpath_var=LD_LIBRARY_PATH
20379 ;;
20380
20381solaris*)
20382 version_type=linux
20383 need_lib_prefix=no
20384 need_version=no
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386 soname_spec='${libname}${release}${shared_ext}$major'
20387 shlibpath_var=LD_LIBRARY_PATH
20388 shlibpath_overrides_runpath=yes
20389 hardcode_into_libs=yes
20390 # ldd complains unless libraries are executable
20391 postinstall_cmds='chmod +x $lib'
20392 ;;
20393
20394sunos4*)
20395 version_type=sunos
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20398 shlibpath_var=LD_LIBRARY_PATH
20399 shlibpath_overrides_runpath=yes
20400 if test "$with_gnu_ld" = yes; then
20401 need_lib_prefix=no
20402 fi
20403 need_version=yes
20404 ;;
20405
20406sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20407 version_type=linux
20408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 case $host_vendor in
20412 sni)
20413 shlibpath_overrides_runpath=no
20414 need_lib_prefix=no
20415 export_dynamic_flag_spec='${wl}-Blargedynsym'
20416 runpath_var=LD_RUN_PATH
20417 ;;
20418 siemens)
20419 need_lib_prefix=no
20420 ;;
20421 motorola)
20422 need_lib_prefix=no
20423 need_version=no
20424 shlibpath_overrides_runpath=no
20425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20426 ;;
20427 esac
20428 ;;
20429
20430sysv4*MP*)
20431 if test -d /usr/nec ;then
20432 version_type=linux
20433 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20434 soname_spec='$libname${shared_ext}.$major'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 fi
20437 ;;
20438
20439uts4*)
20440 version_type=linux
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 ;;
20445
20446*)
20447 dynamic_linker=no
20448 ;;
20449esac
20450echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20451echo "${ECHO_T}$dynamic_linker" >&6
20452test "$dynamic_linker" = no && can_build_shared=no
20453
Reid Spencer2706f8c2004-09-19 23:53:36 +000020454echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20455echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20456hardcode_action_F77=
20457if test -n "$hardcode_libdir_flag_spec_F77" || \
20458 test -n "$runpath_var_F77" || \
20459 test "X$hardcode_automatic_F77" = "Xyes" ; then
20460
20461 # We can hardcode non-existant directories.
20462 if test "$hardcode_direct_F77" != no &&
20463 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20464 # have to relink, otherwise we might link with an installed library
20465 # when we should be linking with a yet-to-be-installed one
20466 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20467 test "$hardcode_minus_L_F77" != no; then
20468 # Linking always hardcodes the temporary library directory.
20469 hardcode_action_F77=relink
20470 else
20471 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20472 hardcode_action_F77=immediate
20473 fi
20474else
20475 # We cannot hardcode anything, or else we can only hardcode existing
20476 # directories.
20477 hardcode_action_F77=unsupported
20478fi
20479echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20480echo "${ECHO_T}$hardcode_action_F77" >&6
20481
20482if test "$hardcode_action_F77" = relink; then
20483 # Fast installation is not supported
20484 enable_fast_install=no
20485elif test "$shlibpath_overrides_runpath" = yes ||
20486 test "$enable_shared" = no; then
20487 # Fast installation is not necessary
20488 enable_fast_install=needless
20489fi
20490
20491striplib=
20492old_striplib=
20493echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20494echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20495if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20496 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20497 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20498 echo "$as_me:$LINENO: result: yes" >&5
20499echo "${ECHO_T}yes" >&6
20500else
20501# FIXME - insert some real tests, host_os isn't really good enough
20502 case $host_os in
20503 darwin*)
20504 if test -n "$STRIP" ; then
20505 striplib="$STRIP -x"
20506 echo "$as_me:$LINENO: result: yes" >&5
20507echo "${ECHO_T}yes" >&6
20508 else
20509 echo "$as_me:$LINENO: result: no" >&5
20510echo "${ECHO_T}no" >&6
20511fi
20512 ;;
20513 *)
20514 echo "$as_me:$LINENO: result: no" >&5
20515echo "${ECHO_T}no" >&6
20516 ;;
20517 esac
20518fi
20519
20520
John Criswell47fdd832003-07-14 16:52:07 +000020521
20522# The else clause should only fire when bootstrapping the
20523# libtool distribution, otherwise you forgot to ship ltmain.sh
20524# with your package, and you will get complaints that there are
20525# no rules to generate ltmain.sh.
20526if test -f "$ltmain"; then
20527 # See if we are running on zsh, and set the options which allow our commands through
20528 # without removal of \ escapes.
20529 if test -n "${ZSH_VERSION+set}" ; then
20530 setopt NO_GLOB_SUBST
20531 fi
20532 # Now quote all the things that may contain metacharacters while being
20533 # careful not to overquote the AC_SUBSTed values. We take copies of the
20534 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020535 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20536 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020537 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20538 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20539 deplibs_check_method reload_flag reload_cmds need_locks \
20540 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20541 lt_cv_sys_global_symbol_to_c_name_address \
20542 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20543 old_postinstall_cmds old_postuninstall_cmds \
20544 compiler_F77 \
20545 CC_F77 \
20546 LD_F77 \
20547 lt_prog_compiler_wl_F77 \
20548 lt_prog_compiler_pic_F77 \
20549 lt_prog_compiler_static_F77 \
20550 lt_prog_compiler_no_builtin_flag_F77 \
20551 export_dynamic_flag_spec_F77 \
20552 thread_safe_flag_spec_F77 \
20553 whole_archive_flag_spec_F77 \
20554 enable_shared_with_static_runtimes_F77 \
20555 old_archive_cmds_F77 \
20556 old_archive_from_new_cmds_F77 \
20557 predep_objects_F77 \
20558 postdep_objects_F77 \
20559 predeps_F77 \
20560 postdeps_F77 \
20561 compiler_lib_search_path_F77 \
20562 archive_cmds_F77 \
20563 archive_expsym_cmds_F77 \
20564 postinstall_cmds_F77 \
20565 postuninstall_cmds_F77 \
20566 old_archive_from_expsyms_cmds_F77 \
20567 allow_undefined_flag_F77 \
20568 no_undefined_flag_F77 \
20569 export_symbols_cmds_F77 \
20570 hardcode_libdir_flag_spec_F77 \
20571 hardcode_libdir_flag_spec_ld_F77 \
20572 hardcode_libdir_separator_F77 \
20573 hardcode_automatic_F77 \
20574 module_cmds_F77 \
20575 module_expsym_cmds_F77 \
20576 lt_cv_prog_compiler_c_o_F77 \
20577 exclude_expsyms_F77 \
20578 include_expsyms_F77; do
20579
20580 case $var in
20581 old_archive_cmds_F77 | \
20582 old_archive_from_new_cmds_F77 | \
20583 archive_cmds_F77 | \
20584 archive_expsym_cmds_F77 | \
20585 module_cmds_F77 | \
20586 module_expsym_cmds_F77 | \
20587 old_archive_from_expsyms_cmds_F77 | \
20588 export_symbols_cmds_F77 | \
20589 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20590 postinstall_cmds | postuninstall_cmds | \
20591 old_postinstall_cmds | old_postuninstall_cmds | \
20592 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20593 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020594 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 +000020595 ;;
20596 *)
20597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20598 ;;
20599 esac
20600 done
20601
20602 case $lt_echo in
20603 *'\$0 --fallback-echo"')
20604 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20605 ;;
20606 esac
20607
20608cfgfile="$ofile"
20609
20610 cat <<__EOF__ >> "$cfgfile"
20611# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20612
20613# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20614
20615# Shell to use when invoking shell scripts.
20616SHELL=$lt_SHELL
20617
20618# Whether or not to build shared libraries.
20619build_libtool_libs=$enable_shared
20620
20621# Whether or not to build static libraries.
20622build_old_libs=$enable_static
20623
20624# Whether or not to add -lc for building shared libraries.
20625build_libtool_need_lc=$archive_cmds_need_lc_F77
20626
20627# Whether or not to disallow shared libs when runtime libs are static
20628allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20629
20630# Whether or not to optimize for fast installation.
20631fast_install=$enable_fast_install
20632
20633# The host system.
20634host_alias=$host_alias
20635host=$host
20636
20637# An echo program that does not interpret backslashes.
20638echo=$lt_echo
20639
20640# The archiver.
20641AR=$lt_AR
20642AR_FLAGS=$lt_AR_FLAGS
20643
20644# A C compiler.
20645LTCC=$lt_LTCC
20646
20647# A language-specific compiler.
20648CC=$lt_compiler_F77
20649
20650# Is the compiler the GNU C compiler?
20651with_gcc=$GCC_F77
20652
20653# An ERE matcher.
20654EGREP=$lt_EGREP
20655
20656# The linker used to build libraries.
20657LD=$lt_LD_F77
20658
20659# Whether we need hard or soft links.
20660LN_S=$lt_LN_S
20661
20662# A BSD-compatible nm program.
20663NM=$lt_NM
20664
20665# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020666STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020667
20668# Used to examine libraries when file_magic_cmd begins "file"
20669MAGIC_CMD=$MAGIC_CMD
20670
20671# Used on cygwin: DLL creation program.
20672DLLTOOL="$DLLTOOL"
20673
20674# Used on cygwin: object dumper.
20675OBJDUMP="$OBJDUMP"
20676
20677# Used on cygwin: assembler.
20678AS="$AS"
20679
20680# The name of the directory that contains temporary libtool files.
20681objdir=$objdir
20682
20683# How to create reloadable object files.
20684reload_flag=$lt_reload_flag
20685reload_cmds=$lt_reload_cmds
20686
20687# How to pass a linker flag through the compiler.
20688wl=$lt_lt_prog_compiler_wl_F77
20689
20690# Object file suffix (normally "o").
20691objext="$ac_objext"
20692
20693# Old archive suffix (normally "a").
20694libext="$libext"
20695
20696# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020697shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020698
20699# Executable file suffix (normally "").
20700exeext="$exeext"
20701
20702# Additional compiler flags for building library objects.
20703pic_flag=$lt_lt_prog_compiler_pic_F77
20704pic_mode=$pic_mode
20705
20706# What is the maximum length of a command?
20707max_cmd_len=$lt_cv_sys_max_cmd_len
20708
20709# Does compiler simultaneously support -c and -o options?
20710compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20711
20712# Must we lock files when doing compilation ?
20713need_locks=$lt_need_locks
20714
20715# Do we need the lib prefix for modules?
20716need_lib_prefix=$need_lib_prefix
20717
20718# Do we need a version for libraries?
20719need_version=$need_version
20720
20721# Whether dlopen is supported.
20722dlopen_support=$enable_dlopen
20723
20724# Whether dlopen of programs is supported.
20725dlopen_self=$enable_dlopen_self
20726
20727# Whether dlopen of statically linked programs is supported.
20728dlopen_self_static=$enable_dlopen_self_static
20729
20730# Compiler flag to prevent dynamic linking.
20731link_static_flag=$lt_lt_prog_compiler_static_F77
20732
20733# Compiler flag to turn off builtin functions.
20734no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20735
20736# Compiler flag to allow reflexive dlopens.
20737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20738
20739# Compiler flag to generate shared objects directly from archives.
20740whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20741
20742# Compiler flag to generate thread-safe objects.
20743thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20744
20745# Library versioning type.
20746version_type=$version_type
20747
20748# Format of library name prefix.
20749libname_spec=$lt_libname_spec
20750
20751# List of archive names. First name is the real one, the rest are links.
20752# The last name is the one that the linker finds with -lNAME.
20753library_names_spec=$lt_library_names_spec
20754
20755# The coded name of the library, if different from the real name.
20756soname_spec=$lt_soname_spec
20757
20758# Commands used to build and install an old-style archive.
20759RANLIB=$lt_RANLIB
20760old_archive_cmds=$lt_old_archive_cmds_F77
20761old_postinstall_cmds=$lt_old_postinstall_cmds
20762old_postuninstall_cmds=$lt_old_postuninstall_cmds
20763
20764# Create an old-style archive from a shared archive.
20765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20766
20767# Create a temporary old-style archive to link instead of a shared archive.
20768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20769
20770# Commands used to build and install a shared archive.
20771archive_cmds=$lt_archive_cmds_F77
20772archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20773postinstall_cmds=$lt_postinstall_cmds
20774postuninstall_cmds=$lt_postuninstall_cmds
20775
20776# Commands used to build a loadable module (assumed same as above if empty)
20777module_cmds=$lt_module_cmds_F77
20778module_expsym_cmds=$lt_module_expsym_cmds_F77
20779
20780# Commands to strip libraries.
20781old_striplib=$lt_old_striplib
20782striplib=$lt_striplib
20783
20784# Dependencies to place before the objects being linked to create a
20785# shared library.
20786predep_objects=$lt_predep_objects_F77
20787
20788# Dependencies to place after the objects being linked to create a
20789# shared library.
20790postdep_objects=$lt_postdep_objects_F77
20791
20792# Dependencies to place before the objects being linked to create a
20793# shared library.
20794predeps=$lt_predeps_F77
20795
20796# Dependencies to place after the objects being linked to create a
20797# shared library.
20798postdeps=$lt_postdeps_F77
20799
20800# The library search path used internally by the compiler when linking
20801# a shared library.
20802compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20803
20804# Method to check whether dependent libraries are shared objects.
20805deplibs_check_method=$lt_deplibs_check_method
20806
20807# Command to use when deplibs_check_method == file_magic.
20808file_magic_cmd=$lt_file_magic_cmd
20809
20810# Flag that allows shared libraries with undefined symbols to be built.
20811allow_undefined_flag=$lt_allow_undefined_flag_F77
20812
20813# Flag that forces no undefined symbols.
20814no_undefined_flag=$lt_no_undefined_flag_F77
20815
20816# Commands used to finish a libtool library installation in a directory.
20817finish_cmds=$lt_finish_cmds
20818
20819# Same as above, but a single script fragment to be evaled but not shown.
20820finish_eval=$lt_finish_eval
20821
20822# Take the output of nm and produce a listing of raw symbols and C names.
20823global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20824
20825# Transform the output of nm in a proper C declaration
20826global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20827
20828# Transform the output of nm in a C name address pair
20829global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20830
20831# This is the shared library runtime path variable.
20832runpath_var=$runpath_var
20833
20834# This is the shared library path variable.
20835shlibpath_var=$shlibpath_var
20836
20837# Is shlibpath searched before the hard-coded library search path?
20838shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20839
20840# How to hardcode a shared library path into an executable.
20841hardcode_action=$hardcode_action_F77
20842
20843# Whether we should hardcode library paths into libraries.
20844hardcode_into_libs=$hardcode_into_libs
20845
20846# Flag to hardcode \$libdir into a binary during linking.
20847# This must work even if \$libdir does not exist.
20848hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20849
20850# If ld is used when linking, flag to hardcode \$libdir into
20851# a binary during linking. This must work even if \$libdir does
20852# not exist.
20853hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20854
20855# Whether we need a single -rpath flag with a separated argument.
20856hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20857
20858# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20859# resulting binary.
20860hardcode_direct=$hardcode_direct_F77
20861
20862# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20863# resulting binary.
20864hardcode_minus_L=$hardcode_minus_L_F77
20865
20866# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20867# the resulting binary.
20868hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20869
20870# Set to yes if building a shared library automatically hardcodes DIR into the library
20871# and all subsequent libraries and executables linked against it.
20872hardcode_automatic=$hardcode_automatic_F77
20873
20874# Variables whose values should be saved in libtool wrapper scripts and
20875# restored at relink time.
20876variables_saved_for_relink="$variables_saved_for_relink"
20877
20878# Whether libtool must link a program against all its dependency libraries.
20879link_all_deplibs=$link_all_deplibs_F77
20880
20881# Compile-time system search path for libraries
20882sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20883
20884# Run-time system search path for libraries
20885sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20886
20887# Fix the shell variable \$srcfile for the compiler.
20888fix_srcfile_path="$fix_srcfile_path_F77"
20889
20890# Set to yes if exported symbols are required.
20891always_export_symbols=$always_export_symbols_F77
20892
20893# The commands to list exported symbols.
20894export_symbols_cmds=$lt_export_symbols_cmds_F77
20895
20896# The commands to extract the exported symbol list from a shared archive.
20897extract_expsyms_cmds=$lt_extract_expsyms_cmds
20898
20899# Symbols that should not be listed in the preloaded symbols.
20900exclude_expsyms=$lt_exclude_expsyms_F77
20901
20902# Symbols that must always be exported.
20903include_expsyms=$lt_include_expsyms_F77
20904
20905# ### END LIBTOOL TAG CONFIG: $tagname
20906
20907__EOF__
20908
20909
20910else
20911 # If there is no Makefile yet, we rely on a make rule to execute
20912 # `config.status --recheck' to rerun these tests and create the
20913 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20915 if test -f "$ltmain_in"; then
20916 test -f Makefile && make "$ltmain"
20917 fi
John Criswell47fdd832003-07-14 16:52:07 +000020918fi
20919
20920
20921ac_ext=c
20922ac_cpp='$CPP $CPPFLAGS'
20923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20925ac_compiler_gnu=$ac_cv_c_compiler_gnu
20926
20927CC="$lt_save_CC"
20928
20929 else
20930 tagname=""
20931 fi
20932 ;;
20933
20934 GCJ)
20935 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020936 ac_ext=c
20937ac_cpp='$CPP $CPPFLAGS'
20938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020941
20942
20943# Source file extension for Java test sources.
20944ac_ext=java
20945
20946# Object file extension for compiled Java test sources.
20947objext=o
20948objext_GCJ=$objext
20949
20950# Code to be used in simple compile tests
20951lt_simple_compile_test_code="class foo {}\n"
20952
20953# Code to be used in simple link tests
20954lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20955
20956# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20957
20958# If no C compiler was specified, use CC.
20959LTCC=${LTCC-"$CC"}
20960
20961# Allow CC to be a program name with arguments.
20962compiler=$CC
20963
20964
20965# Allow CC to be a program name with arguments.
20966lt_save_CC="$CC"
20967CC=${GCJ-"gcj"}
20968compiler=$CC
20969compiler_GCJ=$CC
20970
20971# GCJ did not exist at the time GCC didn't implicitly link libc in.
20972archive_cmds_need_lc_GCJ=no
20973
John Criswell47fdd832003-07-14 16:52:07 +000020974
20975lt_prog_compiler_no_builtin_flag_GCJ=
20976
20977if test "$GCC" = yes; then
20978 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20979
Reid Spencer2706f8c2004-09-19 23:53:36 +000020980
20981echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020982echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20983if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985else
20986 lt_cv_prog_compiler_rtti_exceptions=no
20987 ac_outfile=conftest.$ac_objext
20988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20989 lt_compiler_flag="-fno-rtti -fno-exceptions"
20990 # Insert the option either (1) after the last *FLAGS variable, or
20991 # (2) before a word containing "conftest.", or (3) at the end.
20992 # Note that $ac_compile itself does not contain backslashes and begins
20993 # with a dollar sign (not a hyphen), so the echo should work correctly.
20994 # The option is referenced via a variable to avoid confusing sed.
20995 lt_compile=`echo "$ac_compile" | $SED \
20996 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20998 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000020999 (eval echo "\"\$as_me:20999: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021000 (eval "$lt_compile" 2>conftest.err)
21001 ac_status=$?
21002 cat conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000021003 echo "$as_me:21003: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021004 if (exit $ac_status) && test -s "$ac_outfile"; then
21005 # The compiler can only warn and ignore the option if not recognized
21006 # So say no if there are warnings
21007 if test ! -s conftest.err; then
21008 lt_cv_prog_compiler_rtti_exceptions=yes
21009 fi
21010 fi
21011 $rm conftest*
21012
21013fi
21014echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21015echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21016
21017if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21018 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21019else
21020 :
21021fi
21022
21023fi
21024
21025lt_prog_compiler_wl_GCJ=
21026lt_prog_compiler_pic_GCJ=
21027lt_prog_compiler_static_GCJ=
21028
21029echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21030echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21031
21032 if test "$GCC" = yes; then
21033 lt_prog_compiler_wl_GCJ='-Wl,'
21034 lt_prog_compiler_static_GCJ='-static'
21035
21036 case $host_os in
21037 aix*)
21038 # All AIX code is PIC.
21039 if test "$host_cpu" = ia64; then
21040 # AIX 5 now supports IA64 processor
21041 lt_prog_compiler_static_GCJ='-Bstatic'
21042 fi
21043 ;;
21044
21045 amigaos*)
21046 # FIXME: we need at least 68020 code to build shared libraries, but
21047 # adding the `-m68020' flag to GCC prevents building anything better,
21048 # like `-m68040'.
21049 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21050 ;;
21051
21052 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21053 # PIC is the default for these OSes.
21054 ;;
21055
21056 mingw* | pw32* | os2*)
21057 # This hack is so that the source file can tell whether it is being
21058 # built for inclusion in a dll (and should export symbols for example).
21059 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21060 ;;
21061
21062 darwin* | rhapsody*)
21063 # PIC is the default on this platform
21064 # Common symbols not allowed in MH_DYLIB files
21065 lt_prog_compiler_pic_GCJ='-fno-common'
21066 ;;
21067
21068 msdosdjgpp*)
21069 # Just because we use GCC doesn't mean we suddenly get shared libraries
21070 # on systems that don't support them.
21071 lt_prog_compiler_can_build_shared_GCJ=no
21072 enable_shared=no
21073 ;;
21074
21075 sysv4*MP*)
21076 if test -d /usr/nec; then
21077 lt_prog_compiler_pic_GCJ=-Kconform_pic
21078 fi
21079 ;;
21080
21081 hpux*)
21082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21083 # not for PA HP-UX.
21084 case "$host_cpu" in
21085 hppa*64*|ia64*)
21086 # +Z the default
21087 ;;
21088 *)
21089 lt_prog_compiler_pic_GCJ='-fPIC'
21090 ;;
21091 esac
21092 ;;
21093
21094 *)
21095 lt_prog_compiler_pic_GCJ='-fPIC'
21096 ;;
21097 esac
21098 else
21099 # PORTME Check for flag to pass linker flags through the system compiler.
21100 case $host_os in
21101 aix*)
21102 lt_prog_compiler_wl_GCJ='-Wl,'
21103 if test "$host_cpu" = ia64; then
21104 # AIX 5 now supports IA64 processor
21105 lt_prog_compiler_static_GCJ='-Bstatic'
21106 else
21107 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21108 fi
21109 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021110 darwin*)
21111 # PIC is the default on this platform
21112 # Common symbols not allowed in MH_DYLIB files
21113 case "$cc_basename" in
21114 xlc*)
21115 lt_prog_compiler_pic_GCJ='-qnocommon'
21116 lt_prog_compiler_wl_GCJ='-Wl,'
21117 ;;
21118 esac
21119 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021120
21121 mingw* | pw32* | os2*)
21122 # This hack is so that the source file can tell whether it is being
21123 # built for inclusion in a dll (and should export symbols for example).
21124 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21125 ;;
21126
21127 hpux9* | hpux10* | hpux11*)
21128 lt_prog_compiler_wl_GCJ='-Wl,'
21129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21130 # not for PA HP-UX.
21131 case "$host_cpu" in
21132 hppa*64*|ia64*)
21133 # +Z the default
21134 ;;
21135 *)
21136 lt_prog_compiler_pic_GCJ='+Z'
21137 ;;
21138 esac
21139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21140 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21141 ;;
21142
21143 irix5* | irix6* | nonstopux*)
21144 lt_prog_compiler_wl_GCJ='-Wl,'
21145 # PIC (with -KPIC) is the default.
21146 lt_prog_compiler_static_GCJ='-non_shared'
21147 ;;
21148
21149 newsos6)
21150 lt_prog_compiler_pic_GCJ='-KPIC'
21151 lt_prog_compiler_static_GCJ='-Bstatic'
21152 ;;
21153
21154 linux*)
21155 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021156 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021157 lt_prog_compiler_wl_GCJ='-Wl,'
21158 lt_prog_compiler_pic_GCJ='-KPIC'
21159 lt_prog_compiler_static_GCJ='-static'
21160 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021161 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021162 lt_prog_compiler_wl_GCJ='-Wl,'
21163 # All Alpha code is PIC.
21164 lt_prog_compiler_static_GCJ='-non_shared'
21165 ;;
21166 esac
21167 ;;
21168
21169 osf3* | osf4* | osf5*)
21170 lt_prog_compiler_wl_GCJ='-Wl,'
21171 # All OSF/1 code is PIC.
21172 lt_prog_compiler_static_GCJ='-non_shared'
21173 ;;
21174
21175 sco3.2v5*)
21176 lt_prog_compiler_pic_GCJ='-Kpic'
21177 lt_prog_compiler_static_GCJ='-dn'
21178 ;;
21179
21180 solaris*)
21181 lt_prog_compiler_wl_GCJ='-Wl,'
21182 lt_prog_compiler_pic_GCJ='-KPIC'
21183 lt_prog_compiler_static_GCJ='-Bstatic'
21184 ;;
21185
21186 sunos4*)
21187 lt_prog_compiler_wl_GCJ='-Qoption ld '
21188 lt_prog_compiler_pic_GCJ='-PIC'
21189 lt_prog_compiler_static_GCJ='-Bstatic'
21190 ;;
21191
21192 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21193 lt_prog_compiler_wl_GCJ='-Wl,'
21194 lt_prog_compiler_pic_GCJ='-KPIC'
21195 lt_prog_compiler_static_GCJ='-Bstatic'
21196 ;;
21197
21198 sysv4*MP*)
21199 if test -d /usr/nec ;then
21200 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21201 lt_prog_compiler_static_GCJ='-Bstatic'
21202 fi
21203 ;;
21204
21205 uts4*)
21206 lt_prog_compiler_pic_GCJ='-pic'
21207 lt_prog_compiler_static_GCJ='-Bstatic'
21208 ;;
21209
21210 *)
21211 lt_prog_compiler_can_build_shared_GCJ=no
21212 ;;
21213 esac
21214 fi
21215
21216echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21217echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21218
21219#
21220# Check to make sure the PIC flag actually works.
21221#
21222if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021223
21224echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021225echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21226if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228else
21229 lt_prog_compiler_pic_works_GCJ=no
21230 ac_outfile=conftest.$ac_objext
21231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21232 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21233 # Insert the option either (1) after the last *FLAGS variable, or
21234 # (2) before a word containing "conftest.", or (3) at the end.
21235 # Note that $ac_compile itself does not contain backslashes and begins
21236 # with a dollar sign (not a hyphen), so the echo should work correctly.
21237 # The option is referenced via a variable to avoid confusing sed.
21238 lt_compile=`echo "$ac_compile" | $SED \
21239 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21241 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000021242 (eval echo "\"\$as_me:21242: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021243 (eval "$lt_compile" 2>conftest.err)
21244 ac_status=$?
21245 cat conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000021246 echo "$as_me:21246: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021247 if (exit $ac_status) && test -s "$ac_outfile"; then
21248 # The compiler can only warn and ignore the option if not recognized
21249 # So say no if there are warnings
21250 if test ! -s conftest.err; then
21251 lt_prog_compiler_pic_works_GCJ=yes
21252 fi
21253 fi
21254 $rm conftest*
21255
21256fi
21257echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21258echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21259
21260if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21261 case $lt_prog_compiler_pic_GCJ in
21262 "" | " "*) ;;
21263 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21264 esac
21265else
21266 lt_prog_compiler_pic_GCJ=
21267 lt_prog_compiler_can_build_shared_GCJ=no
21268fi
21269
21270fi
21271case "$host_os" in
21272 # For platforms which do not support PIC, -DPIC is meaningless:
21273 *djgpp*)
21274 lt_prog_compiler_pic_GCJ=
21275 ;;
21276 *)
21277 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21278 ;;
21279esac
21280
21281echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21282echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21283if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21285else
21286 lt_cv_prog_compiler_c_o_GCJ=no
21287 $rm -r conftest 2>/dev/null
21288 mkdir conftest
21289 cd conftest
21290 mkdir out
21291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21292
John Criswell47fdd832003-07-14 16:52:07 +000021293 lt_compiler_flag="-o out/conftest2.$ac_objext"
21294 # Insert the option either (1) after the last *FLAGS variable, or
21295 # (2) before a word containing "conftest.", or (3) at the end.
21296 # Note that $ac_compile itself does not contain backslashes and begins
21297 # with a dollar sign (not a hyphen), so the echo should work correctly.
21298 lt_compile=`echo "$ac_compile" | $SED \
21299 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21301 -e 's:$: $lt_compiler_flag:'`
Reid Spencer22177fe2005-07-12 15:24:20 +000021302 (eval echo "\"\$as_me:21302: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021303 (eval "$lt_compile" 2>out/conftest.err)
21304 ac_status=$?
21305 cat out/conftest.err >&5
Reid Spencer22177fe2005-07-12 15:24:20 +000021306 echo "$as_me:21306: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21308 then
21309 # The compiler can only warn and ignore the option if not recognized
21310 # So say no if there are warnings
21311 if test ! -s out/conftest.err; then
21312 lt_cv_prog_compiler_c_o_GCJ=yes
21313 fi
21314 fi
21315 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021316 $rm conftest*
21317 # SGI C++ compiler will create directory out/ii_files/ for
21318 # template instantiation
21319 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21320 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021321 cd ..
21322 rmdir conftest
21323 $rm conftest*
21324
21325fi
21326echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21327echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21328
21329
21330hard_links="nottested"
21331if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21332 # do not overwrite the value of need_locks provided by the user
21333 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21334echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21335 hard_links=yes
21336 $rm conftest*
21337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21338 touch conftest.a
21339 ln conftest.a conftest.b 2>&5 || hard_links=no
21340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21341 echo "$as_me:$LINENO: result: $hard_links" >&5
21342echo "${ECHO_T}$hard_links" >&6
21343 if test "$hard_links" = no; then
21344 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21345echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21346 need_locks=warn
21347 fi
21348else
21349 need_locks=no
21350fi
21351
21352echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21353echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21354
21355 runpath_var=
21356 allow_undefined_flag_GCJ=
21357 enable_shared_with_static_runtimes_GCJ=no
21358 archive_cmds_GCJ=
21359 archive_expsym_cmds_GCJ=
21360 old_archive_From_new_cmds_GCJ=
21361 old_archive_from_expsyms_cmds_GCJ=
21362 export_dynamic_flag_spec_GCJ=
21363 whole_archive_flag_spec_GCJ=
21364 thread_safe_flag_spec_GCJ=
21365 hardcode_libdir_flag_spec_GCJ=
21366 hardcode_libdir_flag_spec_ld_GCJ=
21367 hardcode_libdir_separator_GCJ=
21368 hardcode_direct_GCJ=no
21369 hardcode_minus_L_GCJ=no
21370 hardcode_shlibpath_var_GCJ=unsupported
21371 link_all_deplibs_GCJ=unknown
21372 hardcode_automatic_GCJ=no
21373 module_cmds_GCJ=
21374 module_expsym_cmds_GCJ=
21375 always_export_symbols_GCJ=no
21376 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21377 # include_expsyms should be a list of space-separated symbols to be *always*
21378 # included in the symbol list
21379 include_expsyms_GCJ=
21380 # exclude_expsyms can be an extended regexp of symbols to exclude
21381 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21382 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21383 # as well as any symbol that contains `d'.
21384 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21385 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21386 # platforms (ab)use it in PIC code, but their linkers get confused if
21387 # the symbol is explicitly referenced. Since portable code cannot
21388 # rely on this symbol name, it's probably fine to never include it in
21389 # preloaded symbol tables.
21390 extract_expsyms_cmds=
21391
21392 case $host_os in
21393 cygwin* | mingw* | pw32*)
21394 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21395 # When not using gcc, we currently assume that we are using
21396 # Microsoft Visual C++.
21397 if test "$GCC" != yes; then
21398 with_gnu_ld=no
21399 fi
21400 ;;
21401 openbsd*)
21402 with_gnu_ld=no
21403 ;;
21404 esac
21405
21406 ld_shlibs_GCJ=yes
21407 if test "$with_gnu_ld" = yes; then
21408 # If archive_cmds runs LD, not CC, wlarc should be empty
21409 wlarc='${wl}'
21410
21411 # See if GNU ld supports shared libraries.
21412 case $host_os in
21413 aix3* | aix4* | aix5*)
21414 # On AIX/PPC, the GNU linker is very broken
21415 if test "$host_cpu" != ia64; then
21416 ld_shlibs_GCJ=no
21417 cat <<EOF 1>&2
21418
21419*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21420*** to be unable to reliably create shared libraries on AIX.
21421*** Therefore, libtool is disabling shared libraries support. If you
21422*** really care for shared libraries, you may want to modify your PATH
21423*** so that a non-GNU linker is found, and then restart.
21424
21425EOF
21426 fi
21427 ;;
21428
21429 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021430 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 +000021431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21432 hardcode_minus_L_GCJ=yes
21433
21434 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21435 # that the semantics of dynamic libraries on AmigaOS, at least up
21436 # to version 4, is to share data among multiple programs linked
21437 # with the same dynamic library. Since this doesn't match the
21438 # behavior of shared libraries on other platforms, we can't use
21439 # them.
21440 ld_shlibs_GCJ=no
21441 ;;
21442
21443 beos*)
21444 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21445 allow_undefined_flag_GCJ=unsupported
21446 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21447 # support --undefined. This deserves some investigation. FIXME
21448 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21449 else
21450 ld_shlibs_GCJ=no
21451 fi
21452 ;;
21453
21454 cygwin* | mingw* | pw32*)
21455 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21456 # as there is no search path for DLLs.
21457 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21458 allow_undefined_flag_GCJ=unsupported
21459 always_export_symbols_GCJ=no
21460 enable_shared_with_static_runtimes_GCJ=yes
21461 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21462
21463 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21464 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21465 # If the export-symbols file already is a .def file (1st line
21466 # is EXPORTS), use it as is; otherwise, prepend...
21467 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21468 cp $export_symbols $output_objdir/$soname.def;
21469 else
21470 echo EXPORTS > $output_objdir/$soname.def;
21471 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021472 fi~
21473 $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 +000021474 else
21475 ld_shlibs=no
21476 fi
21477 ;;
21478
21479 netbsd*)
21480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21481 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21482 wlarc=
21483 else
21484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21486 fi
21487 ;;
21488
21489 solaris* | sysv5*)
21490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21491 ld_shlibs_GCJ=no
21492 cat <<EOF 1>&2
21493
21494*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21495*** create shared libraries on Solaris systems. Therefore, libtool
21496*** is disabling shared libraries support. We urge you to upgrade GNU
21497*** binutils to release 2.9.1 or newer. Another option is to modify
21498*** your PATH or compiler configuration so that the native linker is
21499*** used, and then restart.
21500
21501EOF
21502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21505 else
21506 ld_shlibs_GCJ=no
21507 fi
21508 ;;
21509
21510 sunos4*)
21511 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21512 wlarc=
21513 hardcode_direct_GCJ=yes
21514 hardcode_shlibpath_var_GCJ=no
21515 ;;
21516
Reid Spencer2706f8c2004-09-19 23:53:36 +000021517 linux*)
21518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21519 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21520 archive_cmds_GCJ="$tmp_archive_cmds"
21521 supports_anon_versioning=no
21522 case `$LD -v 2>/dev/null` in
21523 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21526 *\ 2.11.*) ;; # other 2.11 versions
21527 *) supports_anon_versioning=yes ;;
21528 esac
21529 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021530 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21531cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21532$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021533 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21534 else
21535 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21536 fi
21537 else
21538 ld_shlibs_GCJ=no
21539 fi
21540 ;;
21541
John Criswell47fdd832003-07-14 16:52:07 +000021542 *)
21543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21544 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21545 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21546 else
21547 ld_shlibs_GCJ=no
21548 fi
21549 ;;
21550 esac
21551
21552 if test "$ld_shlibs_GCJ" = yes; then
21553 runpath_var=LD_RUN_PATH
21554 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21555 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21556 # ancient GNU ld didn't support --whole-archive et. al.
21557 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21558 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21559 else
21560 whole_archive_flag_spec_GCJ=
21561 fi
21562 fi
21563 else
21564 # PORTME fill in a description of your system's linker (not GNU ld)
21565 case $host_os in
21566 aix3*)
21567 allow_undefined_flag_GCJ=unsupported
21568 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021569 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 +000021570 # Note: this linker hardcodes the directories in LIBPATH if there
21571 # are no directories specified by -L.
21572 hardcode_minus_L_GCJ=yes
21573 if test "$GCC" = yes && test -z "$link_static_flag"; then
21574 # Neither direct hardcoding nor static linking is supported with a
21575 # broken collect2.
21576 hardcode_direct_GCJ=unsupported
21577 fi
21578 ;;
21579
21580 aix4* | aix5*)
21581 if test "$host_cpu" = ia64; then
21582 # On IA64, the linker does run time linking by default, so we don't
21583 # have to do anything special.
21584 aix_use_runtimelinking=no
21585 exp_sym_flag='-Bexport'
21586 no_entry_flag=""
21587 else
21588 # If we're using GNU nm, then we don't want the "-C" option.
21589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21591 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'
21592 else
21593 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'
21594 fi
21595 aix_use_runtimelinking=no
21596
21597 # Test if we are trying to use run time linking or normal
21598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21599 # need to do runtime linking.
21600 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21601 for ld_flag in $LDFLAGS; do
21602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21603 aix_use_runtimelinking=yes
21604 break
21605 fi
21606 done
21607 esac
21608
21609 exp_sym_flag='-bexport'
21610 no_entry_flag='-bnoentry'
21611 fi
21612
21613 # When large executables or shared objects are built, AIX ld can
21614 # have problems creating the table of contents. If linking a library
21615 # or program results in "error TOC overflow" add -mminimal-toc to
21616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21618
21619 archive_cmds_GCJ=''
21620 hardcode_direct_GCJ=yes
21621 hardcode_libdir_separator_GCJ=':'
21622 link_all_deplibs_GCJ=yes
21623
21624 if test "$GCC" = yes; then
21625 case $host_os in aix4.012|aix4.012.*)
21626 # We only want to do this on AIX 4.2 and lower, the check
21627 # below for broken collect2 doesn't work under 4.3+
21628 collect2name=`${CC} -print-prog-name=collect2`
21629 if test -f "$collect2name" && \
21630 strings "$collect2name" | grep resolve_lib_name >/dev/null
21631 then
21632 # We have reworked collect2
21633 hardcode_direct_GCJ=yes
21634 else
21635 # We have old collect2
21636 hardcode_direct_GCJ=unsupported
21637 # It fails to find uninstalled libraries when the uninstalled
21638 # path is not listed in the libpath. Setting hardcode_minus_L
21639 # to unsupported forces relinking
21640 hardcode_minus_L_GCJ=yes
21641 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21642 hardcode_libdir_separator_GCJ=
21643 fi
21644 esac
21645 shared_flag='-shared'
21646 else
21647 # not using gcc
21648 if test "$host_cpu" = ia64; then
21649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21650 # chokes on -Wl,-G. The following line is correct:
21651 shared_flag='-G'
21652 else
21653 if test "$aix_use_runtimelinking" = yes; then
21654 shared_flag='${wl}-G'
21655 else
21656 shared_flag='${wl}-bM:SRE'
21657 fi
21658 fi
21659 fi
21660
21661 # It seems that -bexpall does not export symbols beginning with
21662 # underscore (_), so it is better to generate a list of symbols to export.
21663 always_export_symbols_GCJ=yes
21664 if test "$aix_use_runtimelinking" = yes; then
21665 # Warning - without using the other runtime loading flags (-brtl),
21666 # -berok will link without error, but may produce a broken library.
21667 allow_undefined_flag_GCJ='-berok'
21668 # Determine the default libpath from the value encoded in an empty executable.
21669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021670/* confdefs.h. */
21671_ACEOF
21672cat confdefs.h >>conftest.$ac_ext
21673cat >>conftest.$ac_ext <<_ACEOF
21674/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021675
John Criswell47fdd832003-07-14 16:52:07 +000021676int
21677main ()
21678{
21679
21680 ;
21681 return 0;
21682}
21683_ACEOF
21684rm -f conftest.$ac_objext conftest$ac_exeext
21685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021686 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021693 { ac_try='test -z "$ac_c_werror_flag"
21694 || test ! -s conftest.err'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; } &&
21700 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21703 ac_status=$?
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; }; then
21706
21707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21708}'`
21709# Check for a 64-bit object if we didn't find anything.
21710if 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; }
21711}'`; fi
21712else
21713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021714sed 's/^/| /' conftest.$ac_ext >&5
21715
John Criswell47fdd832003-07-14 16:52:07 +000021716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021717rm -f conftest.err conftest.$ac_objext \
21718 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21720
21721 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21722 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"
21723 else
21724 if test "$host_cpu" = ia64; then
21725 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21726 allow_undefined_flag_GCJ="-z nodefs"
21727 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"
21728 else
21729 # Determine the default libpath from the value encoded in an empty executable.
21730 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021731/* confdefs.h. */
21732_ACEOF
21733cat confdefs.h >>conftest.$ac_ext
21734cat >>conftest.$ac_ext <<_ACEOF
21735/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021736
John Criswell47fdd832003-07-14 16:52:07 +000021737int
21738main ()
21739{
21740
21741 ;
21742 return 0;
21743}
21744_ACEOF
21745rm -f conftest.$ac_objext conftest$ac_exeext
21746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021747 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021748 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021754 { ac_try='test -z "$ac_c_werror_flag"
21755 || test ! -s conftest.err'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21758 ac_status=$?
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; } &&
21761 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; }; then
21767
21768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21769}'`
21770# Check for a 64-bit object if we didn't find anything.
21771if 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; }
21772}'`; fi
21773else
21774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021775sed 's/^/| /' conftest.$ac_ext >&5
21776
John Criswell47fdd832003-07-14 16:52:07 +000021777fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021778rm -f conftest.err conftest.$ac_objext \
21779 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21781
21782 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21783 # Warning - without using the other run time loading flags,
21784 # -berok will link without error, but may produce a broken library.
21785 no_undefined_flag_GCJ=' ${wl}-bernotok'
21786 allow_undefined_flag_GCJ=' ${wl}-berok'
21787 # -bexpall does not export symbols beginning with underscore (_)
21788 always_export_symbols_GCJ=yes
21789 # Exported symbols can be pulled into shared objects from archives
21790 whole_archive_flag_spec_GCJ=' '
21791 archive_cmds_need_lc_GCJ=yes
21792 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021793 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 +000021794 fi
21795 fi
21796 ;;
21797
21798 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021799 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 +000021800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21801 hardcode_minus_L_GCJ=yes
21802 # see comment about different semantics on the GNU ld section
21803 ld_shlibs_GCJ=no
21804 ;;
21805
Reid Spencer2706f8c2004-09-19 23:53:36 +000021806 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021807 export_dynamic_flag_spec_GCJ=-rdynamic
21808 ;;
21809
21810 cygwin* | mingw* | pw32*)
21811 # When not using gcc, we currently assume that we are using
21812 # Microsoft Visual C++.
21813 # hardcode_libdir_flag_spec is actually meaningless, as there is
21814 # no search path for DLLs.
21815 hardcode_libdir_flag_spec_GCJ=' '
21816 allow_undefined_flag_GCJ=unsupported
21817 # Tell ltmain to make .lib files, not .a files.
21818 libext=lib
21819 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021820 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021821 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021822 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 +000021823 # The linker will automatically build a .lib file if we build a DLL.
21824 old_archive_From_new_cmds_GCJ='true'
21825 # FIXME: Should let the user specify the lib program.
21826 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21827 fix_srcfile_path='`cygpath -w "$srcfile"`'
21828 enable_shared_with_static_runtimes_GCJ=yes
21829 ;;
21830
21831 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021832 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021833 rhapsody* | darwin1.[012])
21834 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21835 ;;
21836 *) # Darwin 1.3 on
21837 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21839 else
21840 case ${MACOSX_DEPLOYMENT_TARGET} in
21841 10.[012])
21842 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21843 ;;
21844 10.*)
21845 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21846 ;;
21847 esac
21848 fi
21849 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021850 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021851 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021852 hardcode_direct_GCJ=no
21853 hardcode_automatic_GCJ=yes
21854 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021855 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021856 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021857 if test "$GCC" = yes ; then
21858 output_verbose_link_cmd='echo'
21859 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21860 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21861 # 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 +000021862 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}'
21863 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 +000021864 else
21865 case "$cc_basename" in
21866 xlc*)
21867 output_verbose_link_cmd='echo'
21868 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21869 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21870 # 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 +000021871 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}'
21872 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 +000021873 ;;
21874 *)
21875 ld_shlibs_GCJ=no
21876 ;;
21877 esac
John Criswell47fdd832003-07-14 16:52:07 +000021878 fi
21879 ;;
21880
21881 dgux*)
21882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21883 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21884 hardcode_shlibpath_var_GCJ=no
21885 ;;
21886
21887 freebsd1*)
21888 ld_shlibs_GCJ=no
21889 ;;
21890
21891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21892 # support. Future versions do this automatically, but an explicit c++rt0.o
21893 # does not break anything, and helps significantly (at the cost of a little
21894 # extra space).
21895 freebsd2.2*)
21896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21897 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21898 hardcode_direct_GCJ=yes
21899 hardcode_shlibpath_var_GCJ=no
21900 ;;
21901
21902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21903 freebsd2*)
21904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21905 hardcode_direct_GCJ=yes
21906 hardcode_minus_L_GCJ=yes
21907 hardcode_shlibpath_var_GCJ=no
21908 ;;
21909
21910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021911 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021912 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21914 hardcode_direct_GCJ=yes
21915 hardcode_shlibpath_var_GCJ=no
21916 ;;
21917
21918 hpux9*)
21919 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021920 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 +000021921 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021922 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 +000021923 fi
21924 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21925 hardcode_libdir_separator_GCJ=:
21926 hardcode_direct_GCJ=yes
21927
21928 # hardcode_minus_L: Not really in the search PATH,
21929 # but as the default location of the library.
21930 hardcode_minus_L_GCJ=yes
21931 export_dynamic_flag_spec_GCJ='${wl}-E'
21932 ;;
21933
21934 hpux10* | hpux11*)
21935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21936 case "$host_cpu" in
21937 hppa*64*|ia64*)
21938 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21939 ;;
21940 *)
21941 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21942 ;;
21943 esac
21944 else
21945 case "$host_cpu" in
21946 hppa*64*|ia64*)
21947 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21948 ;;
21949 *)
21950 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21951 ;;
21952 esac
21953 fi
21954 if test "$with_gnu_ld" = no; then
21955 case "$host_cpu" in
21956 hppa*64*)
21957 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21958 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21959 hardcode_libdir_separator_GCJ=:
21960 hardcode_direct_GCJ=no
21961 hardcode_shlibpath_var_GCJ=no
21962 ;;
21963 ia64*)
21964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21965 hardcode_direct_GCJ=no
21966 hardcode_shlibpath_var_GCJ=no
21967
21968 # hardcode_minus_L: Not really in the search PATH,
21969 # but as the default location of the library.
21970 hardcode_minus_L_GCJ=yes
21971 ;;
21972 *)
21973 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21974 hardcode_libdir_separator_GCJ=:
21975 hardcode_direct_GCJ=yes
21976 export_dynamic_flag_spec_GCJ='${wl}-E'
21977
21978 # hardcode_minus_L: Not really in the search PATH,
21979 # but as the default location of the library.
21980 hardcode_minus_L_GCJ=yes
21981 ;;
21982 esac
21983 fi
21984 ;;
21985
21986 irix5* | irix6* | nonstopux*)
21987 if test "$GCC" = yes; then
21988 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'
21989 else
21990 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'
21991 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21992 fi
21993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21994 hardcode_libdir_separator_GCJ=:
21995 link_all_deplibs_GCJ=yes
21996 ;;
21997
21998 netbsd*)
21999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22000 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22001 else
22002 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22003 fi
22004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22005 hardcode_direct_GCJ=yes
22006 hardcode_shlibpath_var_GCJ=no
22007 ;;
22008
22009 newsos6)
22010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22011 hardcode_direct_GCJ=yes
22012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22013 hardcode_libdir_separator_GCJ=:
22014 hardcode_shlibpath_var_GCJ=no
22015 ;;
22016
22017 openbsd*)
22018 hardcode_direct_GCJ=yes
22019 hardcode_shlibpath_var_GCJ=no
22020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22021 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022022 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 +000022023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22024 export_dynamic_flag_spec_GCJ='${wl}-E'
22025 else
22026 case $host_os in
22027 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22030 ;;
22031 *)
22032 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22033 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22034 ;;
22035 esac
22036 fi
22037 ;;
22038
22039 os2*)
22040 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22041 hardcode_minus_L_GCJ=yes
22042 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022043 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 +000022044 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22045 ;;
22046
22047 osf3*)
22048 if test "$GCC" = yes; then
22049 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22050 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'
22051 else
22052 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22053 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'
22054 fi
22055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22056 hardcode_libdir_separator_GCJ=:
22057 ;;
22058
22059 osf4* | osf5*) # as osf3* with the addition of -msym flag
22060 if test "$GCC" = yes; then
22061 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22062 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'
22063 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22064 else
22065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22066 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 +000022067 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~
22068 $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'
22069
John Criswell47fdd832003-07-14 16:52:07 +000022070 # Both c and cxx compiler support -rpath directly
22071 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22072 fi
22073 hardcode_libdir_separator_GCJ=:
22074 ;;
22075
22076 sco3.2v5*)
22077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22078 hardcode_shlibpath_var_GCJ=no
22079 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22080 runpath_var=LD_RUN_PATH
22081 hardcode_runpath_var=yes
22082 ;;
22083
22084 solaris*)
22085 no_undefined_flag_GCJ=' -z text'
22086 if test "$GCC" = yes; then
22087 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22089 $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 +000022090 else
22091 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022092 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22093 $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 +000022094 fi
22095 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22096 hardcode_shlibpath_var_GCJ=no
22097 case $host_os in
22098 solaris2.[0-5] | solaris2.[0-5].*) ;;
22099 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22100 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22101 esac
22102 link_all_deplibs_GCJ=yes
22103 ;;
22104
22105 sunos4*)
22106 if test "x$host_vendor" = xsequent; then
22107 # Use $CC to link under sequent, because it throws in some extra .o
22108 # files that make .init and .fini sections work.
22109 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22110 else
22111 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22112 fi
22113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22114 hardcode_direct_GCJ=yes
22115 hardcode_minus_L_GCJ=yes
22116 hardcode_shlibpath_var_GCJ=no
22117 ;;
22118
22119 sysv4)
22120 case $host_vendor in
22121 sni)
22122 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22123 hardcode_direct_GCJ=yes # is this really true???
22124 ;;
22125 siemens)
22126 ## LD is ld it makes a PLAMLIB
22127 ## CC just makes a GrossModule.
22128 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22129 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22130 hardcode_direct_GCJ=no
22131 ;;
22132 motorola)
22133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22135 ;;
22136 esac
22137 runpath_var='LD_RUN_PATH'
22138 hardcode_shlibpath_var_GCJ=no
22139 ;;
22140
22141 sysv4.3*)
22142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22143 hardcode_shlibpath_var_GCJ=no
22144 export_dynamic_flag_spec_GCJ='-Bexport'
22145 ;;
22146
22147 sysv4*MP*)
22148 if test -d /usr/nec; then
22149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22150 hardcode_shlibpath_var_GCJ=no
22151 runpath_var=LD_RUN_PATH
22152 hardcode_runpath_var=yes
22153 ld_shlibs_GCJ=yes
22154 fi
22155 ;;
22156
22157 sysv4.2uw2*)
22158 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22159 hardcode_direct_GCJ=yes
22160 hardcode_minus_L_GCJ=no
22161 hardcode_shlibpath_var_GCJ=no
22162 hardcode_runpath_var=yes
22163 runpath_var=LD_RUN_PATH
22164 ;;
22165
22166 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22167 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22168 if test "$GCC" = yes; then
22169 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22170 else
22171 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22172 fi
22173 runpath_var='LD_RUN_PATH'
22174 hardcode_shlibpath_var_GCJ=no
22175 ;;
22176
22177 sysv5*)
22178 no_undefined_flag_GCJ=' -z text'
22179 # $CC -shared without GNU ld will not create a library from C++
22180 # object files and a static libstdc++, better avoid it by now
22181 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022182 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22183 $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 +000022184 hardcode_libdir_flag_spec_GCJ=
22185 hardcode_shlibpath_var_GCJ=no
22186 runpath_var='LD_RUN_PATH'
22187 ;;
22188
22189 uts4*)
22190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22192 hardcode_shlibpath_var_GCJ=no
22193 ;;
22194
22195 *)
22196 ld_shlibs_GCJ=no
22197 ;;
22198 esac
22199 fi
22200
22201echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22202echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22203test "$ld_shlibs_GCJ" = no && can_build_shared=no
22204
22205variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22206if test "$GCC" = yes; then
22207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22208fi
22209
22210#
22211# Do we need to explicitly link libc?
22212#
22213case "x$archive_cmds_need_lc_GCJ" in
22214x|xyes)
22215 # Assume -lc should be added
22216 archive_cmds_need_lc_GCJ=yes
22217
22218 if test "$enable_shared" = yes && test "$GCC" = yes; then
22219 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022220 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022221 # FIXME: we may have to deal with multi-command sequences.
22222 ;;
22223 '$CC '*)
22224 # Test whether the compiler implicitly links with -lc since on some
22225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22226 # to ld, don't add -lc before -lgcc.
22227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22228echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22229 $rm conftest*
22230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22231
22232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22233 (eval $ac_compile) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } 2>conftest.err; then
22237 soname=conftest
22238 lib=conftest
22239 libobjs=conftest.$ac_objext
22240 deplibs=
22241 wl=$lt_prog_compiler_wl_GCJ
22242 compiler_flags=-v
22243 linker_flags=-v
22244 verstring=
22245 output_objdir=.
22246 libname=conftest
22247 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22248 allow_undefined_flag_GCJ=
22249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22250 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }
22254 then
22255 archive_cmds_need_lc_GCJ=no
22256 else
22257 archive_cmds_need_lc_GCJ=yes
22258 fi
22259 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22260 else
22261 cat conftest.err 1>&5
22262 fi
22263 $rm conftest*
22264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22265echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22266 ;;
22267 esac
22268 fi
22269 ;;
22270esac
22271
John Criswell47fdd832003-07-14 16:52:07 +000022272echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22273echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22274library_names_spec=
22275libname_spec='lib$name'
22276soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022277shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022278postinstall_cmds=
22279postuninstall_cmds=
22280finish_cmds=
22281finish_eval=
22282shlibpath_var=
22283shlibpath_overrides_runpath=unknown
22284version_type=none
22285dynamic_linker="$host_os ld.so"
22286sys_lib_dlsearch_path_spec="/lib /usr/lib"
22287if test "$GCC" = yes; then
22288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22290 # if the path contains ";" then we assume it to be the separator
22291 # otherwise default to the standard path separator (i.e. ":") - it is
22292 # assumed that no part of a normal pathname contains ";" but that should
22293 # okay in the real world where ";" in dirpaths is itself problematic.
22294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22295 else
22296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22297 fi
22298else
22299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22300fi
22301need_lib_prefix=unknown
22302hardcode_into_libs=no
22303
22304# when you set need_version to no, make sure it does not cause -set_version
22305# flags to be left without arguments
22306need_version=unknown
22307
22308case $host_os in
22309aix3*)
22310 version_type=linux
22311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22312 shlibpath_var=LIBPATH
22313
22314 # AIX 3 has no versioning support, so we append a major version to the name.
22315 soname_spec='${libname}${release}${shared_ext}$major'
22316 ;;
22317
22318aix4* | aix5*)
22319 version_type=linux
22320 need_lib_prefix=no
22321 need_version=no
22322 hardcode_into_libs=yes
22323 if test "$host_cpu" = ia64; then
22324 # AIX 5 supports IA64
22325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22326 shlibpath_var=LD_LIBRARY_PATH
22327 else
22328 # With GCC up to 2.95.x, collect2 would create an import file
22329 # for dependence libraries. The import file would start with
22330 # the line `#! .'. This would cause the generated library to
22331 # depend on `.', always an invalid library. This was fixed in
22332 # development snapshots of GCC prior to 3.0.
22333 case $host_os in
22334 aix4 | aix4.[01] | aix4.[01].*)
22335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22336 echo ' yes '
22337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22338 :
22339 else
22340 can_build_shared=no
22341 fi
22342 ;;
22343 esac
22344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22345 # soname into executable. Probably we can add versioning support to
22346 # collect2, so additional links can be useful in future.
22347 if test "$aix_use_runtimelinking" = yes; then
22348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22349 # instead of lib<name>.a to let people know that these are not
22350 # typical AIX shared libraries.
22351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22352 else
22353 # We preserve .a as extension for shared libraries through AIX4.2
22354 # and later when we are not doing run time linking.
22355 library_names_spec='${libname}${release}.a $libname.a'
22356 soname_spec='${libname}${release}${shared_ext}$major'
22357 fi
22358 shlibpath_var=LIBPATH
22359 fi
22360 ;;
22361
22362amigaos*)
22363 library_names_spec='$libname.ixlibrary $libname.a'
22364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022365 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 +000022366 ;;
22367
22368beos*)
22369 library_names_spec='${libname}${shared_ext}'
22370 dynamic_linker="$host_os ld.so"
22371 shlibpath_var=LIBRARY_PATH
22372 ;;
22373
Reid Spencer2706f8c2004-09-19 23:53:36 +000022374bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022375 version_type=linux
22376 need_version=no
22377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22378 soname_spec='${libname}${release}${shared_ext}$major'
22379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22380 shlibpath_var=LD_LIBRARY_PATH
22381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22383 # the default ld.so.conf also contains /usr/contrib/lib and
22384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22385 # libtool to hard-code these into programs
22386 ;;
22387
22388cygwin* | mingw* | pw32*)
22389 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022390 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022391 need_version=no
22392 need_lib_prefix=no
22393
22394 case $GCC,$host_os in
22395 yes,cygwin* | yes,mingw* | yes,pw32*)
22396 library_names_spec='$libname.dll.a'
22397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022398 postinstall_cmds='base_file=`basename \${file}`~
22399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22400 dldir=$destdir/`dirname \$dlpath`~
22401 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022402 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22404 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022405 $rm \$dlpath'
22406 shlibpath_overrides_runpath=yes
22407
22408 case $host_os in
22409 cygwin*)
22410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22411 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 +000022412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022413 ;;
22414 mingw*)
22415 # MinGW DLLs use traditional 'lib' prefix
22416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22419 # It is most probably a Windows format PATH printed by
22420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22421 # path with ; separators, and with drive letters. We can handle the
22422 # drive letters (cygwin fileutils understands them), so leave them,
22423 # especially as we might pass files found there to a mingw objdump,
22424 # which wouldn't understand a cygwinified path. Ahh.
22425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22426 else
22427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22428 fi
22429 ;;
22430 pw32*)
22431 # pw32 DLLs use 'pw' prefix rather than 'lib'
22432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22433 ;;
22434 esac
22435 ;;
22436
22437 *)
22438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22439 ;;
22440 esac
22441 dynamic_linker='Win32 ld.exe'
22442 # FIXME: first we should search . and the directory the executable is in
22443 shlibpath_var=PATH
22444 ;;
22445
22446darwin* | rhapsody*)
22447 dynamic_linker="$host_os dyld"
22448 version_type=darwin
22449 need_lib_prefix=no
22450 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022451 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022452 soname_spec='${libname}${release}${major}$shared_ext'
22453 shlibpath_overrides_runpath=yes
22454 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022455 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022457 if test "$GCC" = yes; then
22458 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"`
22459 else
22460 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022461 fi
22462 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22463 ;;
22464
22465dgux*)
22466 version_type=linux
22467 need_lib_prefix=no
22468 need_version=no
22469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22470 soname_spec='${libname}${release}${shared_ext}$major'
22471 shlibpath_var=LD_LIBRARY_PATH
22472 ;;
22473
22474freebsd1*)
22475 dynamic_linker=no
22476 ;;
22477
Reid Spencer2706f8c2004-09-19 23:53:36 +000022478kfreebsd*-gnu)
22479 version_type=linux
22480 need_lib_prefix=no
22481 need_version=no
22482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22483 soname_spec='${libname}${release}${shared_ext}$major'
22484 shlibpath_var=LD_LIBRARY_PATH
22485 shlibpath_overrides_runpath=no
22486 hardcode_into_libs=yes
22487 dynamic_linker='GNU ld.so'
22488 ;;
22489
John Criswell47fdd832003-07-14 16:52:07 +000022490freebsd*)
22491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22492 version_type=freebsd-$objformat
22493 case $version_type in
22494 freebsd-elf*)
22495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22496 need_version=no
22497 need_lib_prefix=no
22498 ;;
22499 freebsd-*)
22500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22501 need_version=yes
22502 ;;
22503 esac
22504 shlibpath_var=LD_LIBRARY_PATH
22505 case $host_os in
22506 freebsd2*)
22507 shlibpath_overrides_runpath=yes
22508 ;;
22509 freebsd3.01* | freebsdelf3.01*)
22510 shlibpath_overrides_runpath=yes
22511 hardcode_into_libs=yes
22512 ;;
22513 *) # from 3.2 on
22514 shlibpath_overrides_runpath=no
22515 hardcode_into_libs=yes
22516 ;;
22517 esac
22518 ;;
22519
22520gnu*)
22521 version_type=linux
22522 need_lib_prefix=no
22523 need_version=no
22524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22525 soname_spec='${libname}${release}${shared_ext}$major'
22526 shlibpath_var=LD_LIBRARY_PATH
22527 hardcode_into_libs=yes
22528 ;;
22529
22530hpux9* | hpux10* | hpux11*)
22531 # Give a soname corresponding to the major version so that dld.sl refuses to
22532 # link against other versions.
22533 version_type=sunos
22534 need_lib_prefix=no
22535 need_version=no
22536 case "$host_cpu" in
22537 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022538 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022539 hardcode_into_libs=yes
22540 dynamic_linker="$host_os dld.so"
22541 shlibpath_var=LD_LIBRARY_PATH
22542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22544 soname_spec='${libname}${release}${shared_ext}$major'
22545 if test "X$HPUX_IA64_MODE" = X32; then
22546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22547 else
22548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22549 fi
22550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22551 ;;
22552 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022553 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022554 hardcode_into_libs=yes
22555 dynamic_linker="$host_os dld.sl"
22556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22559 soname_spec='${libname}${release}${shared_ext}$major'
22560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22562 ;;
22563 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022564 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022565 dynamic_linker="$host_os dld.sl"
22566 shlibpath_var=SHLIB_PATH
22567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22569 soname_spec='${libname}${release}${shared_ext}$major'
22570 ;;
22571 esac
22572 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22573 postinstall_cmds='chmod 555 $lib'
22574 ;;
22575
22576irix5* | irix6* | nonstopux*)
22577 case $host_os in
22578 nonstopux*) version_type=nonstopux ;;
22579 *)
22580 if test "$lt_cv_prog_gnu_ld" = yes; then
22581 version_type=linux
22582 else
22583 version_type=irix
22584 fi ;;
22585 esac
22586 need_lib_prefix=no
22587 need_version=no
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22590 case $host_os in
22591 irix5* | nonstopux*)
22592 libsuff= shlibsuff=
22593 ;;
22594 *)
22595 case $LD in # libtool.m4 will add one of these switches to LD
22596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22597 libsuff= shlibsuff= libmagic=32-bit;;
22598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22599 libsuff=32 shlibsuff=N32 libmagic=N32;;
22600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22602 *) libsuff= shlibsuff= libmagic=never-match;;
22603 esac
22604 ;;
22605 esac
22606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22607 shlibpath_overrides_runpath=no
22608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22610 hardcode_into_libs=yes
22611 ;;
22612
22613# No shared lib support for Linux oldld, aout, or coff.
22614linux*oldld* | linux*aout* | linux*coff*)
22615 dynamic_linker=no
22616 ;;
22617
22618# This must be Linux ELF.
22619linux*)
22620 version_type=linux
22621 need_lib_prefix=no
22622 need_version=no
22623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22624 soname_spec='${libname}${release}${shared_ext}$major'
22625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22626 shlibpath_var=LD_LIBRARY_PATH
22627 shlibpath_overrides_runpath=no
22628 # This implies no fast_install, which is unacceptable.
22629 # Some rework will be needed to allow for fast_install
22630 # before this can be enabled.
22631 hardcode_into_libs=yes
22632
Reid Spencer2706f8c2004-09-19 23:53:36 +000022633 # Append ld.so.conf contents to the search path
22634 if test -f /etc/ld.so.conf; then
22635 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22637 fi
22638
John Criswell47fdd832003-07-14 16:52:07 +000022639 # We used to test for /lib/ld.so.1 and disable shared libraries on
22640 # powerpc, because MkLinux only supported shared libraries with the
22641 # GNU dynamic linker. Since this was broken with cross compilers,
22642 # most powerpc-linux boxes support dynamic linking these days and
22643 # people can always --disable-shared, the test was removed, and we
22644 # assume the GNU/Linux dynamic linker is in use.
22645 dynamic_linker='GNU/Linux ld.so'
22646 ;;
22647
Reid Spencer2706f8c2004-09-19 23:53:36 +000022648knetbsd*-gnu)
22649 version_type=linux
22650 need_lib_prefix=no
22651 need_version=no
22652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22653 soname_spec='${libname}${release}${shared_ext}$major'
22654 shlibpath_var=LD_LIBRARY_PATH
22655 shlibpath_overrides_runpath=no
22656 hardcode_into_libs=yes
22657 dynamic_linker='GNU ld.so'
22658 ;;
22659
John Criswell47fdd832003-07-14 16:52:07 +000022660netbsd*)
22661 version_type=sunos
22662 need_lib_prefix=no
22663 need_version=no
22664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22667 dynamic_linker='NetBSD (a.out) ld.so'
22668 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022670 soname_spec='${libname}${release}${shared_ext}$major'
22671 dynamic_linker='NetBSD ld.elf_so'
22672 fi
22673 shlibpath_var=LD_LIBRARY_PATH
22674 shlibpath_overrides_runpath=yes
22675 hardcode_into_libs=yes
22676 ;;
22677
22678newsos6)
22679 version_type=linux
22680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681 shlibpath_var=LD_LIBRARY_PATH
22682 shlibpath_overrides_runpath=yes
22683 ;;
22684
Reid Spencer2706f8c2004-09-19 23:53:36 +000022685nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022686 version_type=linux
22687 need_lib_prefix=no
22688 need_version=no
22689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22690 soname_spec='${libname}${release}${shared_ext}$major'
22691 shlibpath_var=LD_LIBRARY_PATH
22692 shlibpath_overrides_runpath=yes
22693 ;;
22694
22695openbsd*)
22696 version_type=sunos
22697 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022698 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22701 shlibpath_var=LD_LIBRARY_PATH
22702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22703 case $host_os in
22704 openbsd2.[89] | openbsd2.[89].*)
22705 shlibpath_overrides_runpath=no
22706 ;;
22707 *)
22708 shlibpath_overrides_runpath=yes
22709 ;;
22710 esac
22711 else
22712 shlibpath_overrides_runpath=yes
22713 fi
22714 ;;
22715
22716os2*)
22717 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022718 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022719 need_lib_prefix=no
22720 library_names_spec='$libname${shared_ext} $libname.a'
22721 dynamic_linker='OS/2 ld.exe'
22722 shlibpath_var=LIBPATH
22723 ;;
22724
22725osf3* | osf4* | osf5*)
22726 version_type=osf
22727 need_lib_prefix=no
22728 need_version=no
22729 soname_spec='${libname}${release}${shared_ext}$major'
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731 shlibpath_var=LD_LIBRARY_PATH
22732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22734 ;;
22735
22736sco3.2v5*)
22737 version_type=osf
22738 soname_spec='${libname}${release}${shared_ext}$major'
22739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22740 shlibpath_var=LD_LIBRARY_PATH
22741 ;;
22742
22743solaris*)
22744 version_type=linux
22745 need_lib_prefix=no
22746 need_version=no
22747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22748 soname_spec='${libname}${release}${shared_ext}$major'
22749 shlibpath_var=LD_LIBRARY_PATH
22750 shlibpath_overrides_runpath=yes
22751 hardcode_into_libs=yes
22752 # ldd complains unless libraries are executable
22753 postinstall_cmds='chmod +x $lib'
22754 ;;
22755
22756sunos4*)
22757 version_type=sunos
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22760 shlibpath_var=LD_LIBRARY_PATH
22761 shlibpath_overrides_runpath=yes
22762 if test "$with_gnu_ld" = yes; then
22763 need_lib_prefix=no
22764 fi
22765 need_version=yes
22766 ;;
22767
22768sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22769 version_type=linux
22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22771 soname_spec='${libname}${release}${shared_ext}$major'
22772 shlibpath_var=LD_LIBRARY_PATH
22773 case $host_vendor in
22774 sni)
22775 shlibpath_overrides_runpath=no
22776 need_lib_prefix=no
22777 export_dynamic_flag_spec='${wl}-Blargedynsym'
22778 runpath_var=LD_RUN_PATH
22779 ;;
22780 siemens)
22781 need_lib_prefix=no
22782 ;;
22783 motorola)
22784 need_lib_prefix=no
22785 need_version=no
22786 shlibpath_overrides_runpath=no
22787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22788 ;;
22789 esac
22790 ;;
22791
22792sysv4*MP*)
22793 if test -d /usr/nec ;then
22794 version_type=linux
22795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22796 soname_spec='$libname${shared_ext}.$major'
22797 shlibpath_var=LD_LIBRARY_PATH
22798 fi
22799 ;;
22800
22801uts4*)
22802 version_type=linux
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22804 soname_spec='${libname}${release}${shared_ext}$major'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 ;;
22807
22808*)
22809 dynamic_linker=no
22810 ;;
22811esac
22812echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22813echo "${ECHO_T}$dynamic_linker" >&6
22814test "$dynamic_linker" = no && can_build_shared=no
22815
Reid Spencer2706f8c2004-09-19 23:53:36 +000022816echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22817echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22818hardcode_action_GCJ=
22819if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22820 test -n "$runpath_var_GCJ" || \
22821 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22822
22823 # We can hardcode non-existant directories.
22824 if test "$hardcode_direct_GCJ" != no &&
22825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22826 # have to relink, otherwise we might link with an installed library
22827 # when we should be linking with a yet-to-be-installed one
22828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22829 test "$hardcode_minus_L_GCJ" != no; then
22830 # Linking always hardcodes the temporary library directory.
22831 hardcode_action_GCJ=relink
22832 else
22833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22834 hardcode_action_GCJ=immediate
22835 fi
22836else
22837 # We cannot hardcode anything, or else we can only hardcode existing
22838 # directories.
22839 hardcode_action_GCJ=unsupported
22840fi
22841echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22842echo "${ECHO_T}$hardcode_action_GCJ" >&6
22843
22844if test "$hardcode_action_GCJ" = relink; then
22845 # Fast installation is not supported
22846 enable_fast_install=no
22847elif test "$shlibpath_overrides_runpath" = yes ||
22848 test "$enable_shared" = no; then
22849 # Fast installation is not necessary
22850 enable_fast_install=needless
22851fi
22852
22853striplib=
22854old_striplib=
22855echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22856echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22857if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22859 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22860 echo "$as_me:$LINENO: result: yes" >&5
22861echo "${ECHO_T}yes" >&6
22862else
22863# FIXME - insert some real tests, host_os isn't really good enough
22864 case $host_os in
22865 darwin*)
22866 if test -n "$STRIP" ; then
22867 striplib="$STRIP -x"
22868 echo "$as_me:$LINENO: result: yes" >&5
22869echo "${ECHO_T}yes" >&6
22870 else
22871 echo "$as_me:$LINENO: result: no" >&5
22872echo "${ECHO_T}no" >&6
22873fi
22874 ;;
22875 *)
22876 echo "$as_me:$LINENO: result: no" >&5
22877echo "${ECHO_T}no" >&6
22878 ;;
22879 esac
22880fi
22881
John Criswell47fdd832003-07-14 16:52:07 +000022882if test "x$enable_dlopen" != xyes; then
22883 enable_dlopen=unknown
22884 enable_dlopen_self=unknown
22885 enable_dlopen_self_static=unknown
22886else
22887 lt_cv_dlopen=no
22888 lt_cv_dlopen_libs=
22889
22890 case $host_os in
22891 beos*)
22892 lt_cv_dlopen="load_add_on"
22893 lt_cv_dlopen_libs=
22894 lt_cv_dlopen_self=yes
22895 ;;
22896
22897 mingw* | pw32*)
22898 lt_cv_dlopen="LoadLibrary"
22899 lt_cv_dlopen_libs=
22900 ;;
22901
22902 cygwin*)
22903 lt_cv_dlopen="dlopen"
22904 lt_cv_dlopen_libs=
22905 ;;
22906
22907 darwin*)
22908 # if libdl is installed we need to link against it
22909 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22910echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22911if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22913else
22914 ac_check_lib_save_LIBS=$LIBS
22915LIBS="-ldl $LIBS"
22916cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022917/* confdefs.h. */
22918_ACEOF
22919cat confdefs.h >>conftest.$ac_ext
22920cat >>conftest.$ac_ext <<_ACEOF
22921/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022922
22923/* Override any gcc2 internal prototype to avoid an error. */
22924#ifdef __cplusplus
22925extern "C"
22926#endif
22927/* We use char because int might match the return type of a gcc2
22928 builtin and then its argument prototype would still apply. */
22929char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022930int
22931main ()
22932{
22933dlopen ();
22934 ;
22935 return 0;
22936}
22937_ACEOF
22938rm -f conftest.$ac_objext conftest$ac_exeext
22939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022940 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022947 { ac_try='test -z "$ac_c_werror_flag"
22948 || test ! -s conftest.err'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22951 ac_status=$?
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; } &&
22954 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }; then
22960 ac_cv_lib_dl_dlopen=yes
22961else
22962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022963sed 's/^/| /' conftest.$ac_ext >&5
22964
John Criswell47fdd832003-07-14 16:52:07 +000022965ac_cv_lib_dl_dlopen=no
22966fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022967rm -f conftest.err conftest.$ac_objext \
22968 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022969LIBS=$ac_check_lib_save_LIBS
22970fi
22971echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22972echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22973if test $ac_cv_lib_dl_dlopen = yes; then
22974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22975else
22976
22977 lt_cv_dlopen="dyld"
22978 lt_cv_dlopen_libs=
22979 lt_cv_dlopen_self=yes
22980
22981fi
22982
22983 ;;
22984
22985 *)
22986 echo "$as_me:$LINENO: checking for shl_load" >&5
22987echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22988if test "${ac_cv_func_shl_load+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990else
22991 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022992/* confdefs.h. */
22993_ACEOF
22994cat confdefs.h >>conftest.$ac_ext
22995cat >>conftest.$ac_ext <<_ACEOF
22996/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022997/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22999#define shl_load innocuous_shl_load
23000
John Criswell47fdd832003-07-14 16:52:07 +000023001/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023002 which can conflict with char shl_load (); below.
23003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23004 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023005
John Criswell0c38eaf2003-09-10 15:17:25 +000023006#ifdef __STDC__
23007# include <limits.h>
23008#else
23009# include <assert.h>
23010#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023011
23012#undef shl_load
23013
John Criswell47fdd832003-07-14 16:52:07 +000023014/* Override any gcc2 internal prototype to avoid an error. */
23015#ifdef __cplusplus
23016extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023017{
John Criswell47fdd832003-07-14 16:52:07 +000023018#endif
23019/* We use char because int might match the return type of a gcc2
23020 builtin and then its argument prototype would still apply. */
23021char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023022/* The GNU C library defines this for functions which it implements
23023 to always fail with ENOSYS. Some functions are actually named
23024 something starting with __ and the normal name is an alias. */
23025#if defined (__stub_shl_load) || defined (__stub___shl_load)
23026choke me
23027#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023028char (*f) () = shl_load;
23029#endif
23030#ifdef __cplusplus
23031}
John Criswell47fdd832003-07-14 16:52:07 +000023032#endif
23033
John Criswell0c38eaf2003-09-10 15:17:25 +000023034int
23035main ()
23036{
23037return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023038 ;
23039 return 0;
23040}
23041_ACEOF
23042rm -f conftest.$ac_objext conftest$ac_exeext
23043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023044 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023046 grep -v '^ *+' conftest.er1 >conftest.err
23047 rm -f conftest.er1
23048 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023051 { ac_try='test -z "$ac_c_werror_flag"
23052 || test ! -s conftest.err'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_func_shl_load=yes
23065else
23066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023067sed 's/^/| /' conftest.$ac_ext >&5
23068
John Criswell47fdd832003-07-14 16:52:07 +000023069ac_cv_func_shl_load=no
23070fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023071rm -f conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023073fi
23074echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23075echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23076if test $ac_cv_func_shl_load = yes; then
23077 lt_cv_dlopen="shl_load"
23078else
23079 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23080echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23081if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083else
23084 ac_check_lib_save_LIBS=$LIBS
23085LIBS="-ldld $LIBS"
23086cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023087/* confdefs.h. */
23088_ACEOF
23089cat confdefs.h >>conftest.$ac_ext
23090cat >>conftest.$ac_ext <<_ACEOF
23091/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023092
23093/* Override any gcc2 internal prototype to avoid an error. */
23094#ifdef __cplusplus
23095extern "C"
23096#endif
23097/* We use char because int might match the return type of a gcc2
23098 builtin and then its argument prototype would still apply. */
23099char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023100int
23101main ()
23102{
23103shl_load ();
23104 ;
23105 return 0;
23106}
23107_ACEOF
23108rm -f conftest.$ac_objext conftest$ac_exeext
23109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023110 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023111 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023117 { ac_try='test -z "$ac_c_werror_flag"
23118 || test ! -s conftest.err'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; } &&
23124 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23127 ac_status=$?
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; }; then
23130 ac_cv_lib_dld_shl_load=yes
23131else
23132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023133sed 's/^/| /' conftest.$ac_ext >&5
23134
John Criswell47fdd832003-07-14 16:52:07 +000023135ac_cv_lib_dld_shl_load=no
23136fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023137rm -f conftest.err conftest.$ac_objext \
23138 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023139LIBS=$ac_check_lib_save_LIBS
23140fi
23141echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23142echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23143if test $ac_cv_lib_dld_shl_load = yes; then
23144 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23145else
23146 echo "$as_me:$LINENO: checking for dlopen" >&5
23147echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23148if test "${ac_cv_func_dlopen+set}" = set; then
23149 echo $ECHO_N "(cached) $ECHO_C" >&6
23150else
23151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023152/* confdefs.h. */
23153_ACEOF
23154cat confdefs.h >>conftest.$ac_ext
23155cat >>conftest.$ac_ext <<_ACEOF
23156/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023157/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23159#define dlopen innocuous_dlopen
23160
John Criswell47fdd832003-07-14 16:52:07 +000023161/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023162 which can conflict with char dlopen (); below.
23163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23164 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023165
John Criswell0c38eaf2003-09-10 15:17:25 +000023166#ifdef __STDC__
23167# include <limits.h>
23168#else
23169# include <assert.h>
23170#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023171
23172#undef dlopen
23173
John Criswell47fdd832003-07-14 16:52:07 +000023174/* Override any gcc2 internal prototype to avoid an error. */
23175#ifdef __cplusplus
23176extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023177{
John Criswell47fdd832003-07-14 16:52:07 +000023178#endif
23179/* We use char because int might match the return type of a gcc2
23180 builtin and then its argument prototype would still apply. */
23181char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023182/* The GNU C library defines this for functions which it implements
23183 to always fail with ENOSYS. Some functions are actually named
23184 something starting with __ and the normal name is an alias. */
23185#if defined (__stub_dlopen) || defined (__stub___dlopen)
23186choke me
23187#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023188char (*f) () = dlopen;
23189#endif
23190#ifdef __cplusplus
23191}
John Criswell47fdd832003-07-14 16:52:07 +000023192#endif
23193
John Criswell0c38eaf2003-09-10 15:17:25 +000023194int
23195main ()
23196{
23197return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023198 ;
23199 return 0;
23200}
23201_ACEOF
23202rm -f conftest.$ac_objext conftest$ac_exeext
23203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023204 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023205 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023211 { ac_try='test -z "$ac_c_werror_flag"
23212 || test ! -s conftest.err'
23213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23215 ac_status=$?
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; } &&
23218 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; }; then
23224 ac_cv_func_dlopen=yes
23225else
23226 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023227sed 's/^/| /' conftest.$ac_ext >&5
23228
John Criswell47fdd832003-07-14 16:52:07 +000023229ac_cv_func_dlopen=no
23230fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023231rm -f conftest.err conftest.$ac_objext \
23232 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023233fi
23234echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23235echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23236if test $ac_cv_func_dlopen = yes; then
23237 lt_cv_dlopen="dlopen"
23238else
23239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23240echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23241if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23243else
23244 ac_check_lib_save_LIBS=$LIBS
23245LIBS="-ldl $LIBS"
23246cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023247/* confdefs.h. */
23248_ACEOF
23249cat confdefs.h >>conftest.$ac_ext
23250cat >>conftest.$ac_ext <<_ACEOF
23251/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023252
23253/* Override any gcc2 internal prototype to avoid an error. */
23254#ifdef __cplusplus
23255extern "C"
23256#endif
23257/* We use char because int might match the return type of a gcc2
23258 builtin and then its argument prototype would still apply. */
23259char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023260int
23261main ()
23262{
23263dlopen ();
23264 ;
23265 return 0;
23266}
23267_ACEOF
23268rm -f conftest.$ac_objext conftest$ac_exeext
23269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023270 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023272 grep -v '^ *+' conftest.er1 >conftest.err
23273 rm -f conftest.er1
23274 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023277 { ac_try='test -z "$ac_c_werror_flag"
23278 || test ! -s conftest.err'
23279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280 (eval $ac_try) 2>&5
23281 ac_status=$?
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }; } &&
23284 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ac_cv_lib_dl_dlopen=yes
23291else
23292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023293sed 's/^/| /' conftest.$ac_ext >&5
23294
John Criswell47fdd832003-07-14 16:52:07 +000023295ac_cv_lib_dl_dlopen=no
23296fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023297rm -f conftest.err conftest.$ac_objext \
23298 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023299LIBS=$ac_check_lib_save_LIBS
23300fi
23301echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23302echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23303if test $ac_cv_lib_dl_dlopen = yes; then
23304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23305else
23306 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23307echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23308if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23310else
23311 ac_check_lib_save_LIBS=$LIBS
23312LIBS="-lsvld $LIBS"
23313cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023314/* confdefs.h. */
23315_ACEOF
23316cat confdefs.h >>conftest.$ac_ext
23317cat >>conftest.$ac_ext <<_ACEOF
23318/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023319
23320/* Override any gcc2 internal prototype to avoid an error. */
23321#ifdef __cplusplus
23322extern "C"
23323#endif
23324/* We use char because int might match the return type of a gcc2
23325 builtin and then its argument prototype would still apply. */
23326char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023327int
23328main ()
23329{
23330dlopen ();
23331 ;
23332 return 0;
23333}
23334_ACEOF
23335rm -f conftest.$ac_objext conftest$ac_exeext
23336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023337 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023338 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023339 grep -v '^ *+' conftest.er1 >conftest.err
23340 rm -f conftest.er1
23341 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023344 { ac_try='test -z "$ac_c_werror_flag"
23345 || test ! -s conftest.err'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; } &&
23351 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 ac_cv_lib_svld_dlopen=yes
23358else
23359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023360sed 's/^/| /' conftest.$ac_ext >&5
23361
John Criswell47fdd832003-07-14 16:52:07 +000023362ac_cv_lib_svld_dlopen=no
23363fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023364rm -f conftest.err conftest.$ac_objext \
23365 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023366LIBS=$ac_check_lib_save_LIBS
23367fi
23368echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23369echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23370if test $ac_cv_lib_svld_dlopen = yes; then
23371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23372else
23373 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23374echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23375if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377else
23378 ac_check_lib_save_LIBS=$LIBS
23379LIBS="-ldld $LIBS"
23380cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023381/* confdefs.h. */
23382_ACEOF
23383cat confdefs.h >>conftest.$ac_ext
23384cat >>conftest.$ac_ext <<_ACEOF
23385/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023386
23387/* Override any gcc2 internal prototype to avoid an error. */
23388#ifdef __cplusplus
23389extern "C"
23390#endif
23391/* We use char because int might match the return type of a gcc2
23392 builtin and then its argument prototype would still apply. */
23393char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023394int
23395main ()
23396{
23397dld_link ();
23398 ;
23399 return 0;
23400}
23401_ACEOF
23402rm -f conftest.$ac_objext conftest$ac_exeext
23403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023404 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023411 { ac_try='test -z "$ac_c_werror_flag"
23412 || test ! -s conftest.err'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; } &&
23418 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; }; then
23424 ac_cv_lib_dld_dld_link=yes
23425else
23426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023427sed 's/^/| /' conftest.$ac_ext >&5
23428
John Criswell47fdd832003-07-14 16:52:07 +000023429ac_cv_lib_dld_dld_link=no
23430fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023431rm -f conftest.err conftest.$ac_objext \
23432 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023433LIBS=$ac_check_lib_save_LIBS
23434fi
23435echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23436echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23437if test $ac_cv_lib_dld_dld_link = yes; then
23438 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23439fi
23440
23441
23442fi
23443
23444
23445fi
23446
23447
23448fi
23449
23450
23451fi
23452
23453
23454fi
23455
23456 ;;
23457 esac
23458
23459 if test "x$lt_cv_dlopen" != xno; then
23460 enable_dlopen=yes
23461 else
23462 enable_dlopen=no
23463 fi
23464
23465 case $lt_cv_dlopen in
23466 dlopen)
23467 save_CPPFLAGS="$CPPFLAGS"
23468 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23469
23470 save_LDFLAGS="$LDFLAGS"
23471 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23472
23473 save_LIBS="$LIBS"
23474 LIBS="$lt_cv_dlopen_libs $LIBS"
23475
23476 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23477echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23478if test "${lt_cv_dlopen_self+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23480else
23481 if test "$cross_compiling" = yes; then :
23482 lt_cv_dlopen_self=cross
23483else
23484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23485 lt_status=$lt_dlunknown
23486 cat > conftest.$ac_ext <<EOF
Reid Spencer22177fe2005-07-12 15:24:20 +000023487#line 23487 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023488#include "confdefs.h"
23489
23490#if HAVE_DLFCN_H
23491#include <dlfcn.h>
23492#endif
23493
23494#include <stdio.h>
23495
23496#ifdef RTLD_GLOBAL
23497# define LT_DLGLOBAL RTLD_GLOBAL
23498#else
23499# ifdef DL_GLOBAL
23500# define LT_DLGLOBAL DL_GLOBAL
23501# else
23502# define LT_DLGLOBAL 0
23503# endif
23504#endif
23505
23506/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23507 find out it does not work in some platform. */
23508#ifndef LT_DLLAZY_OR_NOW
23509# ifdef RTLD_LAZY
23510# define LT_DLLAZY_OR_NOW RTLD_LAZY
23511# else
23512# ifdef DL_LAZY
23513# define LT_DLLAZY_OR_NOW DL_LAZY
23514# else
23515# ifdef RTLD_NOW
23516# define LT_DLLAZY_OR_NOW RTLD_NOW
23517# else
23518# ifdef DL_NOW
23519# define LT_DLLAZY_OR_NOW DL_NOW
23520# else
23521# define LT_DLLAZY_OR_NOW 0
23522# endif
23523# endif
23524# endif
23525# endif
23526#endif
23527
23528#ifdef __cplusplus
23529extern "C" void exit (int);
23530#endif
23531
23532void fnord() { int i=42;}
23533int main ()
23534{
23535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23536 int status = $lt_dlunknown;
23537
23538 if (self)
23539 {
23540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23541 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23542 /* dlclose (self); */
23543 }
23544
23545 exit (status);
23546}
23547EOF
23548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23549 (eval $ac_link) 2>&5
23550 ac_status=$?
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23553 (./conftest; exit; ) 2>/dev/null
23554 lt_status=$?
23555 case x$lt_status in
23556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23558 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23559 esac
23560 else :
23561 # compilation failed
23562 lt_cv_dlopen_self=no
23563 fi
23564fi
23565rm -fr conftest*
23566
23567
23568fi
23569echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23570echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23571
23572 if test "x$lt_cv_dlopen_self" = xyes; then
23573 LDFLAGS="$LDFLAGS $link_static_flag"
23574 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23575echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23576if test "${lt_cv_dlopen_self_static+set}" = set; then
23577 echo $ECHO_N "(cached) $ECHO_C" >&6
23578else
23579 if test "$cross_compiling" = yes; then :
23580 lt_cv_dlopen_self_static=cross
23581else
23582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23583 lt_status=$lt_dlunknown
23584 cat > conftest.$ac_ext <<EOF
Reid Spencer22177fe2005-07-12 15:24:20 +000023585#line 23585 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023586#include "confdefs.h"
23587
23588#if HAVE_DLFCN_H
23589#include <dlfcn.h>
23590#endif
23591
23592#include <stdio.h>
23593
23594#ifdef RTLD_GLOBAL
23595# define LT_DLGLOBAL RTLD_GLOBAL
23596#else
23597# ifdef DL_GLOBAL
23598# define LT_DLGLOBAL DL_GLOBAL
23599# else
23600# define LT_DLGLOBAL 0
23601# endif
23602#endif
23603
23604/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23605 find out it does not work in some platform. */
23606#ifndef LT_DLLAZY_OR_NOW
23607# ifdef RTLD_LAZY
23608# define LT_DLLAZY_OR_NOW RTLD_LAZY
23609# else
23610# ifdef DL_LAZY
23611# define LT_DLLAZY_OR_NOW DL_LAZY
23612# else
23613# ifdef RTLD_NOW
23614# define LT_DLLAZY_OR_NOW RTLD_NOW
23615# else
23616# ifdef DL_NOW
23617# define LT_DLLAZY_OR_NOW DL_NOW
23618# else
23619# define LT_DLLAZY_OR_NOW 0
23620# endif
23621# endif
23622# endif
23623# endif
23624#endif
23625
23626#ifdef __cplusplus
23627extern "C" void exit (int);
23628#endif
23629
23630void fnord() { int i=42;}
23631int main ()
23632{
23633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23634 int status = $lt_dlunknown;
23635
23636 if (self)
23637 {
23638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23640 /* dlclose (self); */
23641 }
23642
23643 exit (status);
23644}
23645EOF
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>&5
23648 ac_status=$?
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23651 (./conftest; exit; ) 2>/dev/null
23652 lt_status=$?
23653 case x$lt_status in
23654 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23655 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23656 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23657 esac
23658 else :
23659 # compilation failed
23660 lt_cv_dlopen_self_static=no
23661 fi
23662fi
23663rm -fr conftest*
23664
23665
23666fi
23667echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23668echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23669 fi
23670
23671 CPPFLAGS="$save_CPPFLAGS"
23672 LDFLAGS="$save_LDFLAGS"
23673 LIBS="$save_LIBS"
23674 ;;
23675 esac
23676
23677 case $lt_cv_dlopen_self in
23678 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23679 *) enable_dlopen_self=unknown ;;
23680 esac
23681
23682 case $lt_cv_dlopen_self_static in
23683 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23684 *) enable_dlopen_self_static=unknown ;;
23685 esac
23686fi
23687
23688
23689# The else clause should only fire when bootstrapping the
23690# libtool distribution, otherwise you forgot to ship ltmain.sh
23691# with your package, and you will get complaints that there are
23692# no rules to generate ltmain.sh.
23693if test -f "$ltmain"; then
23694 # See if we are running on zsh, and set the options which allow our commands through
23695 # without removal of \ escapes.
23696 if test -n "${ZSH_VERSION+set}" ; then
23697 setopt NO_GLOB_SUBST
23698 fi
23699 # Now quote all the things that may contain metacharacters while being
23700 # careful not to overquote the AC_SUBSTed values. We take copies of the
23701 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23703 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23706 deplibs_check_method reload_flag reload_cmds need_locks \
23707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23708 lt_cv_sys_global_symbol_to_c_name_address \
23709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23710 old_postinstall_cmds old_postuninstall_cmds \
23711 compiler_GCJ \
23712 CC_GCJ \
23713 LD_GCJ \
23714 lt_prog_compiler_wl_GCJ \
23715 lt_prog_compiler_pic_GCJ \
23716 lt_prog_compiler_static_GCJ \
23717 lt_prog_compiler_no_builtin_flag_GCJ \
23718 export_dynamic_flag_spec_GCJ \
23719 thread_safe_flag_spec_GCJ \
23720 whole_archive_flag_spec_GCJ \
23721 enable_shared_with_static_runtimes_GCJ \
23722 old_archive_cmds_GCJ \
23723 old_archive_from_new_cmds_GCJ \
23724 predep_objects_GCJ \
23725 postdep_objects_GCJ \
23726 predeps_GCJ \
23727 postdeps_GCJ \
23728 compiler_lib_search_path_GCJ \
23729 archive_cmds_GCJ \
23730 archive_expsym_cmds_GCJ \
23731 postinstall_cmds_GCJ \
23732 postuninstall_cmds_GCJ \
23733 old_archive_from_expsyms_cmds_GCJ \
23734 allow_undefined_flag_GCJ \
23735 no_undefined_flag_GCJ \
23736 export_symbols_cmds_GCJ \
23737 hardcode_libdir_flag_spec_GCJ \
23738 hardcode_libdir_flag_spec_ld_GCJ \
23739 hardcode_libdir_separator_GCJ \
23740 hardcode_automatic_GCJ \
23741 module_cmds_GCJ \
23742 module_expsym_cmds_GCJ \
23743 lt_cv_prog_compiler_c_o_GCJ \
23744 exclude_expsyms_GCJ \
23745 include_expsyms_GCJ; do
23746
23747 case $var in
23748 old_archive_cmds_GCJ | \
23749 old_archive_from_new_cmds_GCJ | \
23750 archive_cmds_GCJ | \
23751 archive_expsym_cmds_GCJ | \
23752 module_cmds_GCJ | \
23753 module_expsym_cmds_GCJ | \
23754 old_archive_from_expsyms_cmds_GCJ | \
23755 export_symbols_cmds_GCJ | \
23756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23757 postinstall_cmds | postuninstall_cmds | \
23758 old_postinstall_cmds | old_postuninstall_cmds | \
23759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23760 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023761 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 +000023762 ;;
23763 *)
23764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23765 ;;
23766 esac
23767 done
23768
23769 case $lt_echo in
23770 *'\$0 --fallback-echo"')
23771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23772 ;;
23773 esac
23774
23775cfgfile="$ofile"
23776
23777 cat <<__EOF__ >> "$cfgfile"
23778# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23779
23780# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23781
23782# Shell to use when invoking shell scripts.
23783SHELL=$lt_SHELL
23784
23785# Whether or not to build shared libraries.
23786build_libtool_libs=$enable_shared
23787
23788# Whether or not to build static libraries.
23789build_old_libs=$enable_static
23790
23791# Whether or not to add -lc for building shared libraries.
23792build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23793
23794# Whether or not to disallow shared libs when runtime libs are static
23795allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23796
23797# Whether or not to optimize for fast installation.
23798fast_install=$enable_fast_install
23799
23800# The host system.
23801host_alias=$host_alias
23802host=$host
23803
23804# An echo program that does not interpret backslashes.
23805echo=$lt_echo
23806
23807# The archiver.
23808AR=$lt_AR
23809AR_FLAGS=$lt_AR_FLAGS
23810
23811# A C compiler.
23812LTCC=$lt_LTCC
23813
23814# A language-specific compiler.
23815CC=$lt_compiler_GCJ
23816
23817# Is the compiler the GNU C compiler?
23818with_gcc=$GCC_GCJ
23819
23820# An ERE matcher.
23821EGREP=$lt_EGREP
23822
23823# The linker used to build libraries.
23824LD=$lt_LD_GCJ
23825
23826# Whether we need hard or soft links.
23827LN_S=$lt_LN_S
23828
23829# A BSD-compatible nm program.
23830NM=$lt_NM
23831
23832# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023833STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023834
23835# Used to examine libraries when file_magic_cmd begins "file"
23836MAGIC_CMD=$MAGIC_CMD
23837
23838# Used on cygwin: DLL creation program.
23839DLLTOOL="$DLLTOOL"
23840
23841# Used on cygwin: object dumper.
23842OBJDUMP="$OBJDUMP"
23843
23844# Used on cygwin: assembler.
23845AS="$AS"
23846
23847# The name of the directory that contains temporary libtool files.
23848objdir=$objdir
23849
23850# How to create reloadable object files.
23851reload_flag=$lt_reload_flag
23852reload_cmds=$lt_reload_cmds
23853
23854# How to pass a linker flag through the compiler.
23855wl=$lt_lt_prog_compiler_wl_GCJ
23856
23857# Object file suffix (normally "o").
23858objext="$ac_objext"
23859
23860# Old archive suffix (normally "a").
23861libext="$libext"
23862
23863# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023864shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023865
23866# Executable file suffix (normally "").
23867exeext="$exeext"
23868
23869# Additional compiler flags for building library objects.
23870pic_flag=$lt_lt_prog_compiler_pic_GCJ
23871pic_mode=$pic_mode
23872
23873# What is the maximum length of a command?
23874max_cmd_len=$lt_cv_sys_max_cmd_len
23875
23876# Does compiler simultaneously support -c and -o options?
23877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23878
23879# Must we lock files when doing compilation ?
23880need_locks=$lt_need_locks
23881
23882# Do we need the lib prefix for modules?
23883need_lib_prefix=$need_lib_prefix
23884
23885# Do we need a version for libraries?
23886need_version=$need_version
23887
23888# Whether dlopen is supported.
23889dlopen_support=$enable_dlopen
23890
23891# Whether dlopen of programs is supported.
23892dlopen_self=$enable_dlopen_self
23893
23894# Whether dlopen of statically linked programs is supported.
23895dlopen_self_static=$enable_dlopen_self_static
23896
23897# Compiler flag to prevent dynamic linking.
23898link_static_flag=$lt_lt_prog_compiler_static_GCJ
23899
23900# Compiler flag to turn off builtin functions.
23901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23902
23903# Compiler flag to allow reflexive dlopens.
23904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23905
23906# Compiler flag to generate shared objects directly from archives.
23907whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23908
23909# Compiler flag to generate thread-safe objects.
23910thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23911
23912# Library versioning type.
23913version_type=$version_type
23914
23915# Format of library name prefix.
23916libname_spec=$lt_libname_spec
23917
23918# List of archive names. First name is the real one, the rest are links.
23919# The last name is the one that the linker finds with -lNAME.
23920library_names_spec=$lt_library_names_spec
23921
23922# The coded name of the library, if different from the real name.
23923soname_spec=$lt_soname_spec
23924
23925# Commands used to build and install an old-style archive.
23926RANLIB=$lt_RANLIB
23927old_archive_cmds=$lt_old_archive_cmds_GCJ
23928old_postinstall_cmds=$lt_old_postinstall_cmds
23929old_postuninstall_cmds=$lt_old_postuninstall_cmds
23930
23931# Create an old-style archive from a shared archive.
23932old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23933
23934# Create a temporary old-style archive to link instead of a shared archive.
23935old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23936
23937# Commands used to build and install a shared archive.
23938archive_cmds=$lt_archive_cmds_GCJ
23939archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23940postinstall_cmds=$lt_postinstall_cmds
23941postuninstall_cmds=$lt_postuninstall_cmds
23942
23943# Commands used to build a loadable module (assumed same as above if empty)
23944module_cmds=$lt_module_cmds_GCJ
23945module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23946
23947# Commands to strip libraries.
23948old_striplib=$lt_old_striplib
23949striplib=$lt_striplib
23950
23951# Dependencies to place before the objects being linked to create a
23952# shared library.
23953predep_objects=$lt_predep_objects_GCJ
23954
23955# Dependencies to place after the objects being linked to create a
23956# shared library.
23957postdep_objects=$lt_postdep_objects_GCJ
23958
23959# Dependencies to place before the objects being linked to create a
23960# shared library.
23961predeps=$lt_predeps_GCJ
23962
23963# Dependencies to place after the objects being linked to create a
23964# shared library.
23965postdeps=$lt_postdeps_GCJ
23966
23967# The library search path used internally by the compiler when linking
23968# a shared library.
23969compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23970
23971# Method to check whether dependent libraries are shared objects.
23972deplibs_check_method=$lt_deplibs_check_method
23973
23974# Command to use when deplibs_check_method == file_magic.
23975file_magic_cmd=$lt_file_magic_cmd
23976
23977# Flag that allows shared libraries with undefined symbols to be built.
23978allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23979
23980# Flag that forces no undefined symbols.
23981no_undefined_flag=$lt_no_undefined_flag_GCJ
23982
23983# Commands used to finish a libtool library installation in a directory.
23984finish_cmds=$lt_finish_cmds
23985
23986# Same as above, but a single script fragment to be evaled but not shown.
23987finish_eval=$lt_finish_eval
23988
23989# Take the output of nm and produce a listing of raw symbols and C names.
23990global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23991
23992# Transform the output of nm in a proper C declaration
23993global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23994
23995# Transform the output of nm in a C name address pair
23996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23997
23998# This is the shared library runtime path variable.
23999runpath_var=$runpath_var
24000
24001# This is the shared library path variable.
24002shlibpath_var=$shlibpath_var
24003
24004# Is shlibpath searched before the hard-coded library search path?
24005shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24006
24007# How to hardcode a shared library path into an executable.
24008hardcode_action=$hardcode_action_GCJ
24009
24010# Whether we should hardcode library paths into libraries.
24011hardcode_into_libs=$hardcode_into_libs
24012
24013# Flag to hardcode \$libdir into a binary during linking.
24014# This must work even if \$libdir does not exist.
24015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24016
24017# If ld is used when linking, flag to hardcode \$libdir into
24018# a binary during linking. This must work even if \$libdir does
24019# not exist.
24020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24021
24022# Whether we need a single -rpath flag with a separated argument.
24023hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24024
24025# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24026# resulting binary.
24027hardcode_direct=$hardcode_direct_GCJ
24028
24029# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24030# resulting binary.
24031hardcode_minus_L=$hardcode_minus_L_GCJ
24032
24033# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24034# the resulting binary.
24035hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24036
24037# Set to yes if building a shared library automatically hardcodes DIR into the library
24038# and all subsequent libraries and executables linked against it.
24039hardcode_automatic=$hardcode_automatic_GCJ
24040
24041# Variables whose values should be saved in libtool wrapper scripts and
24042# restored at relink time.
24043variables_saved_for_relink="$variables_saved_for_relink"
24044
24045# Whether libtool must link a program against all its dependency libraries.
24046link_all_deplibs=$link_all_deplibs_GCJ
24047
24048# Compile-time system search path for libraries
24049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24050
24051# Run-time system search path for libraries
24052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24053
24054# Fix the shell variable \$srcfile for the compiler.
24055fix_srcfile_path="$fix_srcfile_path_GCJ"
24056
24057# Set to yes if exported symbols are required.
24058always_export_symbols=$always_export_symbols_GCJ
24059
24060# The commands to list exported symbols.
24061export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24062
24063# The commands to extract the exported symbol list from a shared archive.
24064extract_expsyms_cmds=$lt_extract_expsyms_cmds
24065
24066# Symbols that should not be listed in the preloaded symbols.
24067exclude_expsyms=$lt_exclude_expsyms_GCJ
24068
24069# Symbols that must always be exported.
24070include_expsyms=$lt_include_expsyms_GCJ
24071
24072# ### END LIBTOOL TAG CONFIG: $tagname
24073
24074__EOF__
24075
24076
24077else
24078 # If there is no Makefile yet, we rely on a make rule to execute
24079 # `config.status --recheck' to rerun these tests and create the
24080 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24082 if test -f "$ltmain_in"; then
24083 test -f Makefile && make "$ltmain"
24084 fi
John Criswell47fdd832003-07-14 16:52:07 +000024085fi
24086
24087
24088ac_ext=c
24089ac_cpp='$CPP $CPPFLAGS'
24090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24092ac_compiler_gnu=$ac_cv_c_compiler_gnu
24093
24094CC="$lt_save_CC"
24095
24096 else
24097 tagname=""
24098 fi
24099 ;;
24100
24101 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024102 ac_ext=c
24103ac_cpp='$CPP $CPPFLAGS'
24104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24106ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024107
24108
24109# Source file extension for RC test sources.
24110ac_ext=rc
24111
24112# Object file extension for compiled RC test sources.
24113objext=o
24114objext_RC=$objext
24115
24116# Code to be used in simple compile tests
24117lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24118
24119# Code to be used in simple link tests
24120lt_simple_link_test_code="$lt_simple_compile_test_code"
24121
24122# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24123
24124# If no C compiler was specified, use CC.
24125LTCC=${LTCC-"$CC"}
24126
24127# Allow CC to be a program name with arguments.
24128compiler=$CC
24129
24130
24131# Allow CC to be a program name with arguments.
24132lt_save_CC="$CC"
24133CC=${RC-"windres"}
24134compiler=$CC
24135compiler_RC=$CC
24136lt_cv_prog_compiler_c_o_RC=yes
24137
24138# The else clause should only fire when bootstrapping the
24139# libtool distribution, otherwise you forgot to ship ltmain.sh
24140# with your package, and you will get complaints that there are
24141# no rules to generate ltmain.sh.
24142if test -f "$ltmain"; then
24143 # See if we are running on zsh, and set the options which allow our commands through
24144 # without removal of \ escapes.
24145 if test -n "${ZSH_VERSION+set}" ; then
24146 setopt NO_GLOB_SUBST
24147 fi
24148 # Now quote all the things that may contain metacharacters while being
24149 # careful not to overquote the AC_SUBSTed values. We take copies of the
24150 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024151 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24152 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024153 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24154 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24155 deplibs_check_method reload_flag reload_cmds need_locks \
24156 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24157 lt_cv_sys_global_symbol_to_c_name_address \
24158 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24159 old_postinstall_cmds old_postuninstall_cmds \
24160 compiler_RC \
24161 CC_RC \
24162 LD_RC \
24163 lt_prog_compiler_wl_RC \
24164 lt_prog_compiler_pic_RC \
24165 lt_prog_compiler_static_RC \
24166 lt_prog_compiler_no_builtin_flag_RC \
24167 export_dynamic_flag_spec_RC \
24168 thread_safe_flag_spec_RC \
24169 whole_archive_flag_spec_RC \
24170 enable_shared_with_static_runtimes_RC \
24171 old_archive_cmds_RC \
24172 old_archive_from_new_cmds_RC \
24173 predep_objects_RC \
24174 postdep_objects_RC \
24175 predeps_RC \
24176 postdeps_RC \
24177 compiler_lib_search_path_RC \
24178 archive_cmds_RC \
24179 archive_expsym_cmds_RC \
24180 postinstall_cmds_RC \
24181 postuninstall_cmds_RC \
24182 old_archive_from_expsyms_cmds_RC \
24183 allow_undefined_flag_RC \
24184 no_undefined_flag_RC \
24185 export_symbols_cmds_RC \
24186 hardcode_libdir_flag_spec_RC \
24187 hardcode_libdir_flag_spec_ld_RC \
24188 hardcode_libdir_separator_RC \
24189 hardcode_automatic_RC \
24190 module_cmds_RC \
24191 module_expsym_cmds_RC \
24192 lt_cv_prog_compiler_c_o_RC \
24193 exclude_expsyms_RC \
24194 include_expsyms_RC; do
24195
24196 case $var in
24197 old_archive_cmds_RC | \
24198 old_archive_from_new_cmds_RC | \
24199 archive_cmds_RC | \
24200 archive_expsym_cmds_RC | \
24201 module_cmds_RC | \
24202 module_expsym_cmds_RC | \
24203 old_archive_from_expsyms_cmds_RC | \
24204 export_symbols_cmds_RC | \
24205 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24206 postinstall_cmds | postuninstall_cmds | \
24207 old_postinstall_cmds | old_postuninstall_cmds | \
24208 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24209 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024210 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 +000024211 ;;
24212 *)
24213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24214 ;;
24215 esac
24216 done
24217
24218 case $lt_echo in
24219 *'\$0 --fallback-echo"')
24220 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24221 ;;
24222 esac
24223
24224cfgfile="$ofile"
24225
24226 cat <<__EOF__ >> "$cfgfile"
24227# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24228
24229# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24230
24231# Shell to use when invoking shell scripts.
24232SHELL=$lt_SHELL
24233
24234# Whether or not to build shared libraries.
24235build_libtool_libs=$enable_shared
24236
24237# Whether or not to build static libraries.
24238build_old_libs=$enable_static
24239
24240# Whether or not to add -lc for building shared libraries.
24241build_libtool_need_lc=$archive_cmds_need_lc_RC
24242
24243# Whether or not to disallow shared libs when runtime libs are static
24244allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24245
24246# Whether or not to optimize for fast installation.
24247fast_install=$enable_fast_install
24248
24249# The host system.
24250host_alias=$host_alias
24251host=$host
24252
24253# An echo program that does not interpret backslashes.
24254echo=$lt_echo
24255
24256# The archiver.
24257AR=$lt_AR
24258AR_FLAGS=$lt_AR_FLAGS
24259
24260# A C compiler.
24261LTCC=$lt_LTCC
24262
24263# A language-specific compiler.
24264CC=$lt_compiler_RC
24265
24266# Is the compiler the GNU C compiler?
24267with_gcc=$GCC_RC
24268
24269# An ERE matcher.
24270EGREP=$lt_EGREP
24271
24272# The linker used to build libraries.
24273LD=$lt_LD_RC
24274
24275# Whether we need hard or soft links.
24276LN_S=$lt_LN_S
24277
24278# A BSD-compatible nm program.
24279NM=$lt_NM
24280
24281# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024282STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024283
24284# Used to examine libraries when file_magic_cmd begins "file"
24285MAGIC_CMD=$MAGIC_CMD
24286
24287# Used on cygwin: DLL creation program.
24288DLLTOOL="$DLLTOOL"
24289
24290# Used on cygwin: object dumper.
24291OBJDUMP="$OBJDUMP"
24292
24293# Used on cygwin: assembler.
24294AS="$AS"
24295
24296# The name of the directory that contains temporary libtool files.
24297objdir=$objdir
24298
24299# How to create reloadable object files.
24300reload_flag=$lt_reload_flag
24301reload_cmds=$lt_reload_cmds
24302
24303# How to pass a linker flag through the compiler.
24304wl=$lt_lt_prog_compiler_wl_RC
24305
24306# Object file suffix (normally "o").
24307objext="$ac_objext"
24308
24309# Old archive suffix (normally "a").
24310libext="$libext"
24311
24312# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024313shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024314
24315# Executable file suffix (normally "").
24316exeext="$exeext"
24317
24318# Additional compiler flags for building library objects.
24319pic_flag=$lt_lt_prog_compiler_pic_RC
24320pic_mode=$pic_mode
24321
24322# What is the maximum length of a command?
24323max_cmd_len=$lt_cv_sys_max_cmd_len
24324
24325# Does compiler simultaneously support -c and -o options?
24326compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24327
24328# Must we lock files when doing compilation ?
24329need_locks=$lt_need_locks
24330
24331# Do we need the lib prefix for modules?
24332need_lib_prefix=$need_lib_prefix
24333
24334# Do we need a version for libraries?
24335need_version=$need_version
24336
24337# Whether dlopen is supported.
24338dlopen_support=$enable_dlopen
24339
24340# Whether dlopen of programs is supported.
24341dlopen_self=$enable_dlopen_self
24342
24343# Whether dlopen of statically linked programs is supported.
24344dlopen_self_static=$enable_dlopen_self_static
24345
24346# Compiler flag to prevent dynamic linking.
24347link_static_flag=$lt_lt_prog_compiler_static_RC
24348
24349# Compiler flag to turn off builtin functions.
24350no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24351
24352# Compiler flag to allow reflexive dlopens.
24353export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24354
24355# Compiler flag to generate shared objects directly from archives.
24356whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24357
24358# Compiler flag to generate thread-safe objects.
24359thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24360
24361# Library versioning type.
24362version_type=$version_type
24363
24364# Format of library name prefix.
24365libname_spec=$lt_libname_spec
24366
24367# List of archive names. First name is the real one, the rest are links.
24368# The last name is the one that the linker finds with -lNAME.
24369library_names_spec=$lt_library_names_spec
24370
24371# The coded name of the library, if different from the real name.
24372soname_spec=$lt_soname_spec
24373
24374# Commands used to build and install an old-style archive.
24375RANLIB=$lt_RANLIB
24376old_archive_cmds=$lt_old_archive_cmds_RC
24377old_postinstall_cmds=$lt_old_postinstall_cmds
24378old_postuninstall_cmds=$lt_old_postuninstall_cmds
24379
24380# Create an old-style archive from a shared archive.
24381old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24382
24383# Create a temporary old-style archive to link instead of a shared archive.
24384old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24385
24386# Commands used to build and install a shared archive.
24387archive_cmds=$lt_archive_cmds_RC
24388archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24389postinstall_cmds=$lt_postinstall_cmds
24390postuninstall_cmds=$lt_postuninstall_cmds
24391
24392# Commands used to build a loadable module (assumed same as above if empty)
24393module_cmds=$lt_module_cmds_RC
24394module_expsym_cmds=$lt_module_expsym_cmds_RC
24395
24396# Commands to strip libraries.
24397old_striplib=$lt_old_striplib
24398striplib=$lt_striplib
24399
24400# Dependencies to place before the objects being linked to create a
24401# shared library.
24402predep_objects=$lt_predep_objects_RC
24403
24404# Dependencies to place after the objects being linked to create a
24405# shared library.
24406postdep_objects=$lt_postdep_objects_RC
24407
24408# Dependencies to place before the objects being linked to create a
24409# shared library.
24410predeps=$lt_predeps_RC
24411
24412# Dependencies to place after the objects being linked to create a
24413# shared library.
24414postdeps=$lt_postdeps_RC
24415
24416# The library search path used internally by the compiler when linking
24417# a shared library.
24418compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24419
24420# Method to check whether dependent libraries are shared objects.
24421deplibs_check_method=$lt_deplibs_check_method
24422
24423# Command to use when deplibs_check_method == file_magic.
24424file_magic_cmd=$lt_file_magic_cmd
24425
24426# Flag that allows shared libraries with undefined symbols to be built.
24427allow_undefined_flag=$lt_allow_undefined_flag_RC
24428
24429# Flag that forces no undefined symbols.
24430no_undefined_flag=$lt_no_undefined_flag_RC
24431
24432# Commands used to finish a libtool library installation in a directory.
24433finish_cmds=$lt_finish_cmds
24434
24435# Same as above, but a single script fragment to be evaled but not shown.
24436finish_eval=$lt_finish_eval
24437
24438# Take the output of nm and produce a listing of raw symbols and C names.
24439global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24440
24441# Transform the output of nm in a proper C declaration
24442global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24443
24444# Transform the output of nm in a C name address pair
24445global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24446
24447# This is the shared library runtime path variable.
24448runpath_var=$runpath_var
24449
24450# This is the shared library path variable.
24451shlibpath_var=$shlibpath_var
24452
24453# Is shlibpath searched before the hard-coded library search path?
24454shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24455
24456# How to hardcode a shared library path into an executable.
24457hardcode_action=$hardcode_action_RC
24458
24459# Whether we should hardcode library paths into libraries.
24460hardcode_into_libs=$hardcode_into_libs
24461
24462# Flag to hardcode \$libdir into a binary during linking.
24463# This must work even if \$libdir does not exist.
24464hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24465
24466# If ld is used when linking, flag to hardcode \$libdir into
24467# a binary during linking. This must work even if \$libdir does
24468# not exist.
24469hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24470
24471# Whether we need a single -rpath flag with a separated argument.
24472hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24473
24474# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24475# resulting binary.
24476hardcode_direct=$hardcode_direct_RC
24477
24478# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24479# resulting binary.
24480hardcode_minus_L=$hardcode_minus_L_RC
24481
24482# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24483# the resulting binary.
24484hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24485
24486# Set to yes if building a shared library automatically hardcodes DIR into the library
24487# and all subsequent libraries and executables linked against it.
24488hardcode_automatic=$hardcode_automatic_RC
24489
24490# Variables whose values should be saved in libtool wrapper scripts and
24491# restored at relink time.
24492variables_saved_for_relink="$variables_saved_for_relink"
24493
24494# Whether libtool must link a program against all its dependency libraries.
24495link_all_deplibs=$link_all_deplibs_RC
24496
24497# Compile-time system search path for libraries
24498sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24499
24500# Run-time system search path for libraries
24501sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24502
24503# Fix the shell variable \$srcfile for the compiler.
24504fix_srcfile_path="$fix_srcfile_path_RC"
24505
24506# Set to yes if exported symbols are required.
24507always_export_symbols=$always_export_symbols_RC
24508
24509# The commands to list exported symbols.
24510export_symbols_cmds=$lt_export_symbols_cmds_RC
24511
24512# The commands to extract the exported symbol list from a shared archive.
24513extract_expsyms_cmds=$lt_extract_expsyms_cmds
24514
24515# Symbols that should not be listed in the preloaded symbols.
24516exclude_expsyms=$lt_exclude_expsyms_RC
24517
24518# Symbols that must always be exported.
24519include_expsyms=$lt_include_expsyms_RC
24520
24521# ### END LIBTOOL TAG CONFIG: $tagname
24522
24523__EOF__
24524
24525
24526else
24527 # If there is no Makefile yet, we rely on a make rule to execute
24528 # `config.status --recheck' to rerun these tests and create the
24529 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024530 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24531 if test -f "$ltmain_in"; then
24532 test -f Makefile && make "$ltmain"
24533 fi
John Criswell47fdd832003-07-14 16:52:07 +000024534fi
24535
24536
24537ac_ext=c
24538ac_cpp='$CPP $CPPFLAGS'
24539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24541ac_compiler_gnu=$ac_cv_c_compiler_gnu
24542
24543CC="$lt_save_CC"
24544
24545 ;;
24546
24547 *)
24548 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24549echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24550 { (exit 1); exit 1; }; }
24551 ;;
24552 esac
24553
24554 # Append the new tag name to the list of available tags.
24555 if test -n "$tagname" ; then
24556 available_tags="$available_tags $tagname"
24557 fi
24558 fi
24559 done
24560 IFS="$lt_save_ifs"
24561
24562 # Now substitute the updated list of available tags.
24563 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24564 mv "${ofile}T" "$ofile"
24565 chmod +x "$ofile"
24566 else
24567 rm -f "${ofile}T"
24568 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24569echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24570 { (exit 1); exit 1; }; }
24571 fi
24572fi
John Criswell7a73b802003-06-30 21:59:07 +000024573
24574
24575
24576# This can be used to rebuild libtool when needed
24577LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24578
24579# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024580LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024581
24582# Prevent multiple expansion
24583
24584
24585
John Criswell47fdd832003-07-14 16:52:07 +000024586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024603
Reid Spencer582a23c2004-12-29 07:07:57 +000024604if test "$lt_cv_dlopen_self" = "yes" ; then
24605
24606cat >>confdefs.h <<\_ACEOF
24607#define CAN_DLOPEN_SELF 1
24608_ACEOF
24609
24610fi
24611
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024612etags_version=`$ETAGS --version 2>&1`
24613case "$etags_version" in
24614 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24615 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24616 *) ETAGSFLAGS="" ;;
24617esac
24618ETAGSFLAGS=$ETAGSFLAGS
24619
24620
Reid Spencer7931a782004-12-27 06:15:02 +000024621if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024622 LLVMGCC="llvm-gcc${EXEEXT}"
24623 LLVMGXX="llvm-g++${EXEEXT}"
24624 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24625set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024626echo "$as_me:$LINENO: checking for $ac_word" >&5
24627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24628if test "${ac_cv_path_LLVMGCC+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24630else
24631 case $LLVMGCC in
24632 [\\/]* | ?:[\\/]*)
24633 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24634 ;;
24635 *)
24636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24637for as_dir in $PATH
24638do
24639 IFS=$as_save_IFS
24640 test -z "$as_dir" && as_dir=.
24641 for ac_exec_ext in '' $ac_executable_extensions; do
24642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24643 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24645 break 2
24646 fi
24647done
24648done
24649
Reid Spencer59473af2004-12-25 07:31:29 +000024650 ;;
24651esac
24652fi
24653LLVMGCC=$ac_cv_path_LLVMGCC
24654
24655if test -n "$LLVMGCC"; then
24656 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24657echo "${ECHO_T}$LLVMGCC" >&6
24658else
24659 echo "$as_me:$LINENO: result: no" >&5
24660echo "${ECHO_T}no" >&6
24661fi
24662
Reid Spencerc84492c2005-06-02 22:34:49 +000024663 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24664set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024665echo "$as_me:$LINENO: checking for $ac_word" >&5
24666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24667if test "${ac_cv_path_LLVMGXX+set}" = set; then
24668 echo $ECHO_N "(cached) $ECHO_C" >&6
24669else
24670 case $LLVMGXX in
24671 [\\/]* | ?:[\\/]*)
24672 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24673 ;;
24674 *)
24675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24676for as_dir in $PATH
24677do
24678 IFS=$as_save_IFS
24679 test -z "$as_dir" && as_dir=.
24680 for ac_exec_ext in '' $ac_executable_extensions; do
24681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24682 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24684 break 2
24685 fi
24686done
24687done
24688
Reid Spencer59473af2004-12-25 07:31:29 +000024689 ;;
24690esac
24691fi
24692LLVMGXX=$ac_cv_path_LLVMGXX
24693
24694if test -n "$LLVMGXX"; then
24695 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24696echo "${ECHO_T}$LLVMGXX" >&6
24697else
24698 echo "$as_me:$LINENO: result: no" >&5
24699echo "${ECHO_T}no" >&6
24700fi
24701
24702else
Reid Spencerc84492c2005-06-02 22:34:49 +000024703 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24704 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024705 LLVMGCC=$LLVMGCC
24706
24707 LLVMGXX=$LLVMGXX
24708
24709fi
24710
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024711echo "$as_me:$LINENO: checking tool compatibility" >&5
24712echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24713
Reid Spencer86901802004-12-08 23:07:27 +000024714ICC=no
24715IXX=no
24716case $CC in
24717 icc*|icpc*)
24718 ICC=yes
24719 IXX=yes
24720 ;;
24721 *)
24722 ;;
24723esac
24724
24725if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024726then
Reid Spencer86901802004-12-08 23:07:27 +000024727 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24728echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024729 { (exit 1); exit 1; }; }
24730fi
24731
Reid Spencer86901802004-12-08 23:07:27 +000024732if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024733then
Reid Spencer86901802004-12-08 23:07:27 +000024734 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24735echo "$as_me: error: g++|icc required but not found" >&2;}
24736 { (exit 1); exit 1; }; }
24737fi
24738
24739if test "$GCC" = "yes"
24740then
24741 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24742 if test "$gccmajor" -lt "3"
24743 then
24744 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024745echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24746 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024747 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024748fi
24749
24750if test -z "$llvm_cv_gnu_make_command"
24751then
24752 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24753echo "$as_me: error: GNU Make required but not found" >&2;}
24754 { (exit 1); exit 1; }; }
24755fi
24756
24757echo "$as_me:$LINENO: result: ok" >&5
24758echo "${ECHO_T}ok" >&6
24759
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024760
John Criswell7a73b802003-06-30 21:59:07 +000024761
John Criswell7a73b802003-06-30 21:59:07 +000024762echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24763echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24764if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24765 echo $ECHO_N "(cached) $ECHO_C" >&6
24766else
24767 ac_check_lib_save_LIBS=$LIBS
24768LIBS="-lelf $LIBS"
24769cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024770/* confdefs.h. */
24771_ACEOF
24772cat confdefs.h >>conftest.$ac_ext
24773cat >>conftest.$ac_ext <<_ACEOF
24774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024775
24776/* Override any gcc2 internal prototype to avoid an error. */
24777#ifdef __cplusplus
24778extern "C"
24779#endif
24780/* We use char because int might match the return type of a gcc2
24781 builtin and then its argument prototype would still apply. */
24782char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024783int
24784main ()
24785{
24786elf_begin ();
24787 ;
24788 return 0;
24789}
24790_ACEOF
24791rm -f conftest.$ac_objext conftest$ac_exeext
24792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024793 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024794 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024795 grep -v '^ *+' conftest.er1 >conftest.err
24796 rm -f conftest.er1
24797 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024800 { ac_try='test -z "$ac_c_werror_flag"
24801 || test ! -s conftest.err'
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; } &&
24807 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
24813 ac_cv_lib_elf_elf_begin=yes
24814else
24815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024816sed 's/^/| /' conftest.$ac_ext >&5
24817
John Criswell7a73b802003-06-30 21:59:07 +000024818ac_cv_lib_elf_elf_begin=no
24819fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024820rm -f conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024822LIBS=$ac_check_lib_save_LIBS
24823fi
24824echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24825echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24826if test $ac_cv_lib_elf_elf_begin = yes; then
24827 cat >>confdefs.h <<_ACEOF
24828#define HAVE_LIBELF 1
24829_ACEOF
24830
24831 LIBS="-lelf $LIBS"
24832
24833fi
24834
24835
Reid Spencer22177fe2005-07-12 15:24:20 +000024836
Reid Spencer17795972004-11-18 09:47:37 +000024837echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24838echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24839if test "${ac_cv_search_lt_dlopen+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24841else
24842 ac_func_search_save_LIBS=$LIBS
24843ac_cv_search_lt_dlopen=no
24844cat >conftest.$ac_ext <<_ACEOF
24845/* confdefs.h. */
24846_ACEOF
24847cat confdefs.h >>conftest.$ac_ext
24848cat >>conftest.$ac_ext <<_ACEOF
24849/* end confdefs.h. */
24850
24851/* Override any gcc2 internal prototype to avoid an error. */
24852#ifdef __cplusplus
24853extern "C"
24854#endif
24855/* We use char because int might match the return type of a gcc2
24856 builtin and then its argument prototype would still apply. */
24857char lt_dlopen ();
24858int
24859main ()
24860{
24861lt_dlopen ();
24862 ;
24863 return 0;
24864}
24865_ACEOF
24866rm -f conftest.$ac_objext conftest$ac_exeext
24867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24868 (eval $ac_link) 2>conftest.er1
24869 ac_status=$?
24870 grep -v '^ *+' conftest.er1 >conftest.err
24871 rm -f conftest.er1
24872 cat conftest.err >&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } &&
24875 { ac_try='test -z "$ac_c_werror_flag"
24876 || test ! -s conftest.err'
24877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878 (eval $ac_try) 2>&5
24879 ac_status=$?
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); }; } &&
24882 { ac_try='test -s conftest$ac_exeext'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24885 ac_status=$?
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; }; then
24888 ac_cv_search_lt_dlopen="none required"
24889else
24890 echo "$as_me: failed program was:" >&5
24891sed 's/^/| /' conftest.$ac_ext >&5
24892
24893fi
24894rm -f conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
24896if test "$ac_cv_search_lt_dlopen" = no; then
24897 for ac_lib in ltdl; do
24898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24899 cat >conftest.$ac_ext <<_ACEOF
24900/* confdefs.h. */
24901_ACEOF
24902cat confdefs.h >>conftest.$ac_ext
24903cat >>conftest.$ac_ext <<_ACEOF
24904/* end confdefs.h. */
24905
24906/* Override any gcc2 internal prototype to avoid an error. */
24907#ifdef __cplusplus
24908extern "C"
24909#endif
24910/* We use char because int might match the return type of a gcc2
24911 builtin and then its argument prototype would still apply. */
24912char lt_dlopen ();
24913int
24914main ()
24915{
24916lt_dlopen ();
24917 ;
24918 return 0;
24919}
24920_ACEOF
24921rm -f conftest.$ac_objext conftest$ac_exeext
24922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24923 (eval $ac_link) 2>conftest.er1
24924 ac_status=$?
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag"
24931 || test ! -s conftest.err'
24932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933 (eval $ac_try) 2>&5
24934 ac_status=$?
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; } &&
24937 { ac_try='test -s conftest$ac_exeext'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24940 ac_status=$?
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; }; then
24943 ac_cv_search_lt_dlopen="-l$ac_lib"
24944break
24945else
24946 echo "$as_me: failed program was:" >&5
24947sed 's/^/| /' conftest.$ac_ext >&5
24948
24949fi
24950rm -f conftest.err conftest.$ac_objext \
24951 conftest$ac_exeext conftest.$ac_ext
24952 done
24953fi
24954LIBS=$ac_func_search_save_LIBS
24955fi
24956echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24957echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24958if test "$ac_cv_search_lt_dlopen" != no; then
24959 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24960
24961cat >>confdefs.h <<\_ACEOF
24962#define HAVE_LT_DLOPEN 1
24963_ACEOF
24964
24965else
24966 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24967 not be available" >&5
24968echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24969 not be available" >&2;}
24970fi
24971
24972
John Criswell7a73b802003-06-30 21:59:07 +000024973echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24974echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24975if test "${ac_cv_search_dlopen+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24977else
24978 ac_func_search_save_LIBS=$LIBS
24979ac_cv_search_dlopen=no
24980cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024981/* confdefs.h. */
24982_ACEOF
24983cat confdefs.h >>conftest.$ac_ext
24984cat >>conftest.$ac_ext <<_ACEOF
24985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024986
24987/* Override any gcc2 internal prototype to avoid an error. */
24988#ifdef __cplusplus
24989extern "C"
24990#endif
24991/* We use char because int might match the return type of a gcc2
24992 builtin and then its argument prototype would still apply. */
24993char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024994int
24995main ()
24996{
24997dlopen ();
24998 ;
24999 return 0;
25000}
25001_ACEOF
25002rm -f conftest.$ac_objext conftest$ac_exeext
25003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025004 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025005 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025011 { ac_try='test -z "$ac_c_werror_flag"
25012 || test ! -s conftest.err'
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 ac_cv_search_dlopen="none required"
25025else
25026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025027sed 's/^/| /' conftest.$ac_ext >&5
25028
John Criswell7a73b802003-06-30 21:59:07 +000025029fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025030rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025032if test "$ac_cv_search_dlopen" = no; then
25033 for ac_lib in dl; do
25034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25035 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025036/* confdefs.h. */
25037_ACEOF
25038cat confdefs.h >>conftest.$ac_ext
25039cat >>conftest.$ac_ext <<_ACEOF
25040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025041
25042/* Override any gcc2 internal prototype to avoid an error. */
25043#ifdef __cplusplus
25044extern "C"
25045#endif
25046/* We use char because int might match the return type of a gcc2
25047 builtin and then its argument prototype would still apply. */
25048char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025049int
25050main ()
25051{
25052dlopen ();
25053 ;
25054 return 0;
25055}
25056_ACEOF
25057rm -f conftest.$ac_objext conftest$ac_exeext
25058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025059 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025061 grep -v '^ *+' conftest.er1 >conftest.err
25062 rm -f conftest.er1
25063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025066 { ac_try='test -z "$ac_c_werror_flag"
25067 || test ! -s conftest.err'
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 ac_cv_search_dlopen="-l$ac_lib"
25080break
25081else
25082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025083sed 's/^/| /' conftest.$ac_ext >&5
25084
John Criswell7a73b802003-06-30 21:59:07 +000025085fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025086rm -f conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025088 done
25089fi
25090LIBS=$ac_func_search_save_LIBS
25091fi
25092echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25093echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25094if test "$ac_cv_search_dlopen" != no; then
25095 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025096
25097cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025098#define HAVE_DLOPEN 1
25099_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025100
25101else
Brian Gaekec45be042003-10-07 06:01:34 +000025102 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25103echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025104fi
25105
25106
25107echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25108echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25109if test "${ac_cv_search_mallinfo+set}" = set; then
25110 echo $ECHO_N "(cached) $ECHO_C" >&6
25111else
25112 ac_func_search_save_LIBS=$LIBS
25113ac_cv_search_mallinfo=no
25114cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025115/* confdefs.h. */
25116_ACEOF
25117cat confdefs.h >>conftest.$ac_ext
25118cat >>conftest.$ac_ext <<_ACEOF
25119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025120
25121/* Override any gcc2 internal prototype to avoid an error. */
25122#ifdef __cplusplus
25123extern "C"
25124#endif
25125/* We use char because int might match the return type of a gcc2
25126 builtin and then its argument prototype would still apply. */
25127char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025128int
25129main ()
25130{
25131mallinfo ();
25132 ;
25133 return 0;
25134}
25135_ACEOF
25136rm -f conftest.$ac_objext conftest$ac_exeext
25137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025138 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025139 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025140 grep -v '^ *+' conftest.er1 >conftest.err
25141 rm -f conftest.er1
25142 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025145 { ac_try='test -z "$ac_c_werror_flag"
25146 || test ! -s conftest.err'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; } &&
25152 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25155 ac_status=$?
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; }; then
25158 ac_cv_search_mallinfo="none required"
25159else
25160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025161sed 's/^/| /' conftest.$ac_ext >&5
25162
John Criswell7a73b802003-06-30 21:59:07 +000025163fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025164rm -f conftest.err conftest.$ac_objext \
25165 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025166if test "$ac_cv_search_mallinfo" = no; then
25167 for ac_lib in malloc; do
25168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025170/* confdefs.h. */
25171_ACEOF
25172cat confdefs.h >>conftest.$ac_ext
25173cat >>conftest.$ac_ext <<_ACEOF
25174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025175
25176/* Override any gcc2 internal prototype to avoid an error. */
25177#ifdef __cplusplus
25178extern "C"
25179#endif
25180/* We use char because int might match the return type of a gcc2
25181 builtin and then its argument prototype would still apply. */
25182char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025183int
25184main ()
25185{
25186mallinfo ();
25187 ;
25188 return 0;
25189}
25190_ACEOF
25191rm -f conftest.$ac_objext conftest$ac_exeext
25192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025194 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025195 grep -v '^ *+' conftest.er1 >conftest.err
25196 rm -f conftest.er1
25197 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_cv_search_mallinfo="-l$ac_lib"
25214break
25215else
25216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025217sed 's/^/| /' conftest.$ac_ext >&5
25218
John Criswell7a73b802003-06-30 21:59:07 +000025219fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025220rm -f conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025222 done
25223fi
25224LIBS=$ac_func_search_save_LIBS
25225fi
25226echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25227echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25228if test "$ac_cv_search_mallinfo" != no; then
25229 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025230
25231cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025232#define HAVE_MALLINFO 1
25233_ACEOF
25234
25235fi
25236
25237
Reid Spencer22177fe2005-07-12 15:24:20 +000025238
25239echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25240echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25241if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25243else
25244 ac_check_lib_save_LIBS=$LIBS
25245LIBS="-lpthread $LIBS"
25246cat >conftest.$ac_ext <<_ACEOF
25247/* confdefs.h. */
25248_ACEOF
25249cat confdefs.h >>conftest.$ac_ext
25250cat >>conftest.$ac_ext <<_ACEOF
25251/* end confdefs.h. */
25252
25253/* Override any gcc2 internal prototype to avoid an error. */
25254#ifdef __cplusplus
25255extern "C"
25256#endif
25257/* We use char because int might match the return type of a gcc2
25258 builtin and then its argument prototype would still apply. */
25259char pthread_mutex_init ();
25260int
25261main ()
25262{
25263pthread_mutex_init ();
25264 ;
25265 return 0;
25266}
25267_ACEOF
25268rm -f conftest.$ac_objext conftest$ac_exeext
25269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25270 (eval $ac_link) 2>conftest.er1
25271 ac_status=$?
25272 grep -v '^ *+' conftest.er1 >conftest.err
25273 rm -f conftest.er1
25274 cat conftest.err >&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); } &&
25277 { ac_try='test -z "$ac_c_werror_flag"
25278 || test ! -s conftest.err'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; } &&
25284 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25290 ac_cv_lib_pthread_pthread_mutex_init=yes
25291else
25292 echo "$as_me: failed program was:" >&5
25293sed 's/^/| /' conftest.$ac_ext >&5
25294
25295ac_cv_lib_pthread_pthread_mutex_init=no
25296fi
25297rm -f conftest.err conftest.$ac_objext \
25298 conftest$ac_exeext conftest.$ac_ext
25299LIBS=$ac_check_lib_save_LIBS
25300fi
25301echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25302echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25303if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25304 cat >>confdefs.h <<_ACEOF
25305#define HAVE_LIBPTHREAD 1
25306_ACEOF
25307
25308 LIBS="-lpthread $LIBS"
25309
25310fi
25311
Brian Gaeke5f268f72003-12-05 19:29:01 +000025312echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25313echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25314if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25316else
25317 ac_func_search_save_LIBS=$LIBS
25318ac_cv_search_pthread_mutex_lock=no
25319cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025320/* confdefs.h. */
25321_ACEOF
25322cat confdefs.h >>conftest.$ac_ext
25323cat >>conftest.$ac_ext <<_ACEOF
25324/* end confdefs.h. */
25325
25326/* Override any gcc2 internal prototype to avoid an error. */
25327#ifdef __cplusplus
25328extern "C"
25329#endif
25330/* We use char because int might match the return type of a gcc2
25331 builtin and then its argument prototype would still apply. */
25332char pthread_mutex_lock ();
25333int
25334main ()
25335{
25336pthread_mutex_lock ();
25337 ;
25338 return 0;
25339}
25340_ACEOF
25341rm -f conftest.$ac_objext conftest$ac_exeext
25342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025343 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025344 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025345 grep -v '^ *+' conftest.er1 >conftest.err
25346 rm -f conftest.er1
25347 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025350 { ac_try='test -z "$ac_c_werror_flag"
25351 || test ! -s conftest.err'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 ac_cv_search_pthread_mutex_lock="none required"
25364else
25365 echo "$as_me: failed program was:" >&5
25366sed 's/^/| /' conftest.$ac_ext >&5
25367
25368fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025369rm -f conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025371if test "$ac_cv_search_pthread_mutex_lock" = no; then
25372 for ac_lib in pthread; do
25373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25374 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025375/* confdefs.h. */
25376_ACEOF
25377cat confdefs.h >>conftest.$ac_ext
25378cat >>conftest.$ac_ext <<_ACEOF
25379/* end confdefs.h. */
25380
25381/* Override any gcc2 internal prototype to avoid an error. */
25382#ifdef __cplusplus
25383extern "C"
25384#endif
25385/* We use char because int might match the return type of a gcc2
25386 builtin and then its argument prototype would still apply. */
25387char pthread_mutex_lock ();
25388int
25389main ()
25390{
25391pthread_mutex_lock ();
25392 ;
25393 return 0;
25394}
25395_ACEOF
25396rm -f conftest.$ac_objext conftest$ac_exeext
25397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025398 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025399 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025400 grep -v '^ *+' conftest.er1 >conftest.err
25401 rm -f conftest.er1
25402 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025405 { ac_try='test -z "$ac_c_werror_flag"
25406 || test ! -s conftest.err'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; } &&
25412 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414 (eval $ac_try) 2>&5
25415 ac_status=$?
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); }; }; then
25418 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25419break
25420else
25421 echo "$as_me: failed program was:" >&5
25422sed 's/^/| /' conftest.$ac_ext >&5
25423
25424fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025425rm -f conftest.err conftest.$ac_objext \
25426 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025427 done
25428fi
25429LIBS=$ac_func_search_save_LIBS
25430fi
25431echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25432echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25433if test "$ac_cv_search_pthread_mutex_lock" != no; then
25434 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025435
John Criswell40468462004-09-24 21:19:06 +000025436cat >>confdefs.h <<\_ACEOF
25437#define HAVE_PTHREAD_MUTEX_LOCK 1
25438_ACEOF
25439
25440fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025441
Brian Gaekec9a410c2004-02-23 21:30:37 +000025442
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025443
Reid Spencer59473af2004-12-25 07:31:29 +000025444
25445
25446
25447
25448
25449ac_header_dirent=no
25450for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25451 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25452echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25453echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25454if eval "test \"\${$as_ac_Header+set}\" = set"; then
25455 echo $ECHO_N "(cached) $ECHO_C" >&6
25456else
25457 cat >conftest.$ac_ext <<_ACEOF
25458/* confdefs.h. */
25459_ACEOF
25460cat confdefs.h >>conftest.$ac_ext
25461cat >>conftest.$ac_ext <<_ACEOF
25462/* end confdefs.h. */
25463#include <sys/types.h>
25464#include <$ac_hdr>
25465
25466int
25467main ()
25468{
25469if ((DIR *) 0)
25470return 0;
25471 ;
25472 return 0;
25473}
25474_ACEOF
25475rm -f conftest.$ac_objext
25476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25477 (eval $ac_compile) 2>conftest.er1
25478 ac_status=$?
25479 grep -v '^ *+' conftest.er1 >conftest.err
25480 rm -f conftest.er1
25481 cat conftest.err >&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } &&
25484 { ac_try='test -z "$ac_c_werror_flag"
25485 || test ! -s conftest.err'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; } &&
25491 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25497 eval "$as_ac_Header=yes"
25498else
25499 echo "$as_me: failed program was:" >&5
25500sed 's/^/| /' conftest.$ac_ext >&5
25501
25502eval "$as_ac_Header=no"
25503fi
25504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25505fi
25506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25508if test `eval echo '${'$as_ac_Header'}'` = yes; then
25509 cat >>confdefs.h <<_ACEOF
25510#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25511_ACEOF
25512
25513ac_header_dirent=$ac_hdr; break
25514fi
25515
25516done
25517# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25518if test $ac_header_dirent = dirent.h; then
25519 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25520echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25521if test "${ac_cv_search_opendir+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25523else
25524 ac_func_search_save_LIBS=$LIBS
25525ac_cv_search_opendir=no
25526cat >conftest.$ac_ext <<_ACEOF
25527/* confdefs.h. */
25528_ACEOF
25529cat confdefs.h >>conftest.$ac_ext
25530cat >>conftest.$ac_ext <<_ACEOF
25531/* end confdefs.h. */
25532
25533/* Override any gcc2 internal prototype to avoid an error. */
25534#ifdef __cplusplus
25535extern "C"
25536#endif
25537/* We use char because int might match the return type of a gcc2
25538 builtin and then its argument prototype would still apply. */
25539char opendir ();
25540int
25541main ()
25542{
25543opendir ();
25544 ;
25545 return 0;
25546}
25547_ACEOF
25548rm -f conftest.$ac_objext conftest$ac_exeext
25549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25550 (eval $ac_link) 2>conftest.er1
25551 ac_status=$?
25552 grep -v '^ *+' conftest.er1 >conftest.err
25553 rm -f conftest.er1
25554 cat conftest.err >&5
25555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556 (exit $ac_status); } &&
25557 { ac_try='test -z "$ac_c_werror_flag"
25558 || test ! -s conftest.err'
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; } &&
25564 { ac_try='test -s conftest$ac_exeext'
25565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566 (eval $ac_try) 2>&5
25567 ac_status=$?
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); }; }; then
25570 ac_cv_search_opendir="none required"
25571else
25572 echo "$as_me: failed program was:" >&5
25573sed 's/^/| /' conftest.$ac_ext >&5
25574
25575fi
25576rm -f conftest.err conftest.$ac_objext \
25577 conftest$ac_exeext conftest.$ac_ext
25578if test "$ac_cv_search_opendir" = no; then
25579 for ac_lib in dir; do
25580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25581 cat >conftest.$ac_ext <<_ACEOF
25582/* confdefs.h. */
25583_ACEOF
25584cat confdefs.h >>conftest.$ac_ext
25585cat >>conftest.$ac_ext <<_ACEOF
25586/* end confdefs.h. */
25587
25588/* Override any gcc2 internal prototype to avoid an error. */
25589#ifdef __cplusplus
25590extern "C"
25591#endif
25592/* We use char because int might match the return type of a gcc2
25593 builtin and then its argument prototype would still apply. */
25594char opendir ();
25595int
25596main ()
25597{
25598opendir ();
25599 ;
25600 return 0;
25601}
25602_ACEOF
25603rm -f conftest.$ac_objext conftest$ac_exeext
25604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25605 (eval $ac_link) 2>conftest.er1
25606 ac_status=$?
25607 grep -v '^ *+' conftest.er1 >conftest.err
25608 rm -f conftest.er1
25609 cat conftest.err >&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } &&
25612 { ac_try='test -z "$ac_c_werror_flag"
25613 || test ! -s conftest.err'
25614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615 (eval $ac_try) 2>&5
25616 ac_status=$?
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; } &&
25619 { ac_try='test -s conftest$ac_exeext'
25620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25621 (eval $ac_try) 2>&5
25622 ac_status=$?
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); }; }; then
25625 ac_cv_search_opendir="-l$ac_lib"
25626break
25627else
25628 echo "$as_me: failed program was:" >&5
25629sed 's/^/| /' conftest.$ac_ext >&5
25630
25631fi
25632rm -f conftest.err conftest.$ac_objext \
25633 conftest$ac_exeext conftest.$ac_ext
25634 done
25635fi
25636LIBS=$ac_func_search_save_LIBS
25637fi
25638echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25639echo "${ECHO_T}$ac_cv_search_opendir" >&6
25640if test "$ac_cv_search_opendir" != no; then
25641 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25642
25643fi
25644
25645else
25646 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25647echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25648if test "${ac_cv_search_opendir+set}" = set; then
25649 echo $ECHO_N "(cached) $ECHO_C" >&6
25650else
25651 ac_func_search_save_LIBS=$LIBS
25652ac_cv_search_opendir=no
25653cat >conftest.$ac_ext <<_ACEOF
25654/* confdefs.h. */
25655_ACEOF
25656cat confdefs.h >>conftest.$ac_ext
25657cat >>conftest.$ac_ext <<_ACEOF
25658/* end confdefs.h. */
25659
25660/* Override any gcc2 internal prototype to avoid an error. */
25661#ifdef __cplusplus
25662extern "C"
25663#endif
25664/* We use char because int might match the return type of a gcc2
25665 builtin and then its argument prototype would still apply. */
25666char opendir ();
25667int
25668main ()
25669{
25670opendir ();
25671 ;
25672 return 0;
25673}
25674_ACEOF
25675rm -f conftest.$ac_objext conftest$ac_exeext
25676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25677 (eval $ac_link) 2>conftest.er1
25678 ac_status=$?
25679 grep -v '^ *+' conftest.er1 >conftest.err
25680 rm -f conftest.er1
25681 cat conftest.err >&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } &&
25684 { ac_try='test -z "$ac_c_werror_flag"
25685 || test ! -s conftest.err'
25686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687 (eval $ac_try) 2>&5
25688 ac_status=$?
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; } &&
25691 { ac_try='test -s conftest$ac_exeext'
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; }; then
25697 ac_cv_search_opendir="none required"
25698else
25699 echo "$as_me: failed program was:" >&5
25700sed 's/^/| /' conftest.$ac_ext >&5
25701
25702fi
25703rm -f conftest.err conftest.$ac_objext \
25704 conftest$ac_exeext conftest.$ac_ext
25705if test "$ac_cv_search_opendir" = no; then
25706 for ac_lib in x; do
25707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25708 cat >conftest.$ac_ext <<_ACEOF
25709/* confdefs.h. */
25710_ACEOF
25711cat confdefs.h >>conftest.$ac_ext
25712cat >>conftest.$ac_ext <<_ACEOF
25713/* end confdefs.h. */
25714
25715/* Override any gcc2 internal prototype to avoid an error. */
25716#ifdef __cplusplus
25717extern "C"
25718#endif
25719/* We use char because int might match the return type of a gcc2
25720 builtin and then its argument prototype would still apply. */
25721char opendir ();
25722int
25723main ()
25724{
25725opendir ();
25726 ;
25727 return 0;
25728}
25729_ACEOF
25730rm -f conftest.$ac_objext conftest$ac_exeext
25731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25732 (eval $ac_link) 2>conftest.er1
25733 ac_status=$?
25734 grep -v '^ *+' conftest.er1 >conftest.err
25735 rm -f conftest.er1
25736 cat conftest.err >&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } &&
25739 { ac_try='test -z "$ac_c_werror_flag"
25740 || test ! -s conftest.err'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; } &&
25746 { ac_try='test -s conftest$ac_exeext'
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
25752 ac_cv_search_opendir="-l$ac_lib"
25753break
25754else
25755 echo "$as_me: failed program was:" >&5
25756sed 's/^/| /' conftest.$ac_ext >&5
25757
25758fi
25759rm -f conftest.err conftest.$ac_objext \
25760 conftest$ac_exeext conftest.$ac_ext
25761 done
25762fi
25763LIBS=$ac_func_search_save_LIBS
25764fi
25765echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25766echo "${ECHO_T}$ac_cv_search_opendir" >&6
25767if test "$ac_cv_search_opendir" != no; then
25768 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25769
25770fi
25771
25772fi
25773
25774echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25775echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25776if test "${ac_cv_header_mmap_anon+set}" = set; then
25777 echo $ECHO_N "(cached) $ECHO_C" >&6
25778else
25779 ac_ext=c
25780ac_cpp='$CPP $CPPFLAGS'
25781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25783ac_compiler_gnu=$ac_cv_c_compiler_gnu
25784
25785 cat >conftest.$ac_ext <<_ACEOF
25786/* confdefs.h. */
25787_ACEOF
25788cat confdefs.h >>conftest.$ac_ext
25789cat >>conftest.$ac_ext <<_ACEOF
25790/* end confdefs.h. */
25791#include <sys/mman.h>
25792#include <unistd.h>
25793#include <fcntl.h>
25794int
25795main ()
25796{
25797mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25798 ;
25799 return 0;
25800}
25801_ACEOF
25802rm -f conftest.$ac_objext
25803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25804 (eval $ac_compile) 2>conftest.er1
25805 ac_status=$?
25806 grep -v '^ *+' conftest.er1 >conftest.err
25807 rm -f conftest.er1
25808 cat conftest.err >&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } &&
25811 { ac_try='test -z "$ac_c_werror_flag"
25812 || test ! -s conftest.err'
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; } &&
25818 { ac_try='test -s conftest.$ac_objext'
25819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820 (eval $ac_try) 2>&5
25821 ac_status=$?
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); }; }; then
25824 ac_cv_header_mmap_anon=yes
25825else
25826 echo "$as_me: failed program was:" >&5
25827sed 's/^/| /' conftest.$ac_ext >&5
25828
25829ac_cv_header_mmap_anon=no
25830fi
25831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25832 ac_ext=c
25833ac_cpp='$CPP $CPPFLAGS'
25834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25836ac_compiler_gnu=$ac_cv_c_compiler_gnu
25837
25838
25839fi
25840echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25841echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25842if test "$ac_cv_header_mmap_anon" = yes; then
25843
25844cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025845#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025846_ACEOF
25847
25848fi
25849
25850echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25851echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25852if test "${ac_cv_header_stat_broken+set}" = set; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25854else
25855 cat >conftest.$ac_ext <<_ACEOF
25856/* confdefs.h. */
25857_ACEOF
25858cat confdefs.h >>conftest.$ac_ext
25859cat >>conftest.$ac_ext <<_ACEOF
25860/* end confdefs.h. */
25861#include <sys/types.h>
25862#include <sys/stat.h>
25863
25864#if defined(S_ISBLK) && defined(S_IFDIR)
25865# if S_ISBLK (S_IFDIR)
25866You lose.
25867# endif
25868#endif
25869
25870#if defined(S_ISBLK) && defined(S_IFCHR)
25871# if S_ISBLK (S_IFCHR)
25872You lose.
25873# endif
25874#endif
25875
25876#if defined(S_ISLNK) && defined(S_IFREG)
25877# if S_ISLNK (S_IFREG)
25878You lose.
25879# endif
25880#endif
25881
25882#if defined(S_ISSOCK) && defined(S_IFREG)
25883# if S_ISSOCK (S_IFREG)
25884You lose.
25885# endif
25886#endif
25887
25888_ACEOF
25889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25890 $EGREP "You lose" >/dev/null 2>&1; then
25891 ac_cv_header_stat_broken=yes
25892else
25893 ac_cv_header_stat_broken=no
25894fi
25895rm -f conftest*
25896
25897fi
25898echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25899echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25900if test $ac_cv_header_stat_broken = yes; then
25901
25902cat >>confdefs.h <<\_ACEOF
25903#define STAT_MACROS_BROKEN 1
25904_ACEOF
25905
25906fi
25907
John Criswell7a73b802003-06-30 21:59:07 +000025908echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25909echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25910if test "${ac_cv_header_stdc+set}" = set; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25912else
25913 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025914/* confdefs.h. */
25915_ACEOF
25916cat confdefs.h >>conftest.$ac_ext
25917cat >>conftest.$ac_ext <<_ACEOF
25918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025919#include <stdlib.h>
25920#include <stdarg.h>
25921#include <string.h>
25922#include <float.h>
25923
John Criswell0c38eaf2003-09-10 15:17:25 +000025924int
25925main ()
25926{
25927
25928 ;
25929 return 0;
25930}
John Criswell7a73b802003-06-30 21:59:07 +000025931_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025932rm -f conftest.$ac_objext
25933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025934 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025935 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025936 grep -v '^ *+' conftest.er1 >conftest.err
25937 rm -f conftest.er1
25938 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025940 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025941 { ac_try='test -z "$ac_c_werror_flag"
25942 || test ! -s conftest.err'
25943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); }; } &&
25948 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025954 ac_cv_header_stdc=yes
25955else
25956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025957sed 's/^/| /' conftest.$ac_ext >&5
25958
25959ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025960fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025962
25963if test $ac_cv_header_stdc = yes; then
25964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25965 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025966/* confdefs.h. */
25967_ACEOF
25968cat confdefs.h >>conftest.$ac_ext
25969cat >>conftest.$ac_ext <<_ACEOF
25970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025971#include <string.h>
25972
25973_ACEOF
25974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025975 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025976 :
25977else
25978 ac_cv_header_stdc=no
25979fi
25980rm -f conftest*
25981
25982fi
25983
25984if test $ac_cv_header_stdc = yes; then
25985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25986 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025987/* confdefs.h. */
25988_ACEOF
25989cat confdefs.h >>conftest.$ac_ext
25990cat >>conftest.$ac_ext <<_ACEOF
25991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025992#include <stdlib.h>
25993
25994_ACEOF
25995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025996 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025997 :
25998else
25999 ac_cv_header_stdc=no
26000fi
26001rm -f conftest*
26002
26003fi
26004
26005if test $ac_cv_header_stdc = yes; then
26006 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26007 if test "$cross_compiling" = yes; then
26008 :
26009else
26010 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026011/* confdefs.h. */
26012_ACEOF
26013cat confdefs.h >>conftest.$ac_ext
26014cat >>conftest.$ac_ext <<_ACEOF
26015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026016#include <ctype.h>
26017#if ((' ' & 0x0FF) == 0x020)
26018# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26019# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26020#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026021# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026022 (('a' <= (c) && (c) <= 'i') \
26023 || ('j' <= (c) && (c) <= 'r') \
26024 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026025# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26026#endif
26027
26028#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26029int
26030main ()
26031{
26032 int i;
26033 for (i = 0; i < 256; i++)
26034 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026035 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026036 exit(2);
26037 exit (0);
26038}
26039_ACEOF
26040rm -f conftest$ac_exeext
26041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26042 (eval $ac_link) 2>&5
26043 ac_status=$?
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26048 ac_status=$?
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; }; then
26051 :
26052else
26053 echo "$as_me: program exited with status $ac_status" >&5
26054echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026055sed 's/^/| /' conftest.$ac_ext >&5
26056
John Criswell7a73b802003-06-30 21:59:07 +000026057( exit $ac_status )
26058ac_cv_header_stdc=no
26059fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026060rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026061fi
26062fi
26063fi
26064echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26065echo "${ECHO_T}$ac_cv_header_stdc" >&6
26066if test $ac_cv_header_stdc = yes; then
26067
26068cat >>confdefs.h <<\_ACEOF
26069#define STDC_HEADERS 1
26070_ACEOF
26071
26072fi
26073
26074echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26075echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26076if test "${ac_cv_header_sys_wait_h+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26078else
26079 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026080/* confdefs.h. */
26081_ACEOF
26082cat confdefs.h >>conftest.$ac_ext
26083cat >>conftest.$ac_ext <<_ACEOF
26084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026085#include <sys/types.h>
26086#include <sys/wait.h>
26087#ifndef WEXITSTATUS
26088# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26089#endif
26090#ifndef WIFEXITED
26091# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26092#endif
26093
John Criswell7a73b802003-06-30 21:59:07 +000026094int
26095main ()
26096{
26097 int s;
26098 wait (&s);
26099 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26100 ;
26101 return 0;
26102}
26103_ACEOF
26104rm -f conftest.$ac_objext
26105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026106 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026108 grep -v '^ *+' conftest.er1 >conftest.err
26109 rm -f conftest.er1
26110 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026113 { ac_try='test -z "$ac_c_werror_flag"
26114 || test ! -s conftest.err'
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; } &&
26120 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26123 ac_status=$?
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; }; then
26126 ac_cv_header_sys_wait_h=yes
26127else
26128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026129sed 's/^/| /' conftest.$ac_ext >&5
26130
John Criswell7a73b802003-06-30 21:59:07 +000026131ac_cv_header_sys_wait_h=no
26132fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026134fi
26135echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26136echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26137if test $ac_cv_header_sys_wait_h = yes; then
26138
26139cat >>confdefs.h <<\_ACEOF
26140#define HAVE_SYS_WAIT_H 1
26141_ACEOF
26142
26143fi
26144
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026145echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26146echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26147if test "${ac_cv_header_time+set}" = set; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26149else
26150 cat >conftest.$ac_ext <<_ACEOF
26151/* confdefs.h. */
26152_ACEOF
26153cat confdefs.h >>conftest.$ac_ext
26154cat >>conftest.$ac_ext <<_ACEOF
26155/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026156#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026157#include <sys/time.h>
26158#include <time.h>
26159
26160int
26161main ()
26162{
26163if ((struct tm *) 0)
26164return 0;
26165 ;
26166 return 0;
26167}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026168_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026169rm -f conftest.$ac_objext
26170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26171 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026172 ac_status=$?
26173 grep -v '^ *+' conftest.er1 >conftest.err
26174 rm -f conftest.er1
26175 cat conftest.err >&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026177 (exit $ac_status); } &&
26178 { ac_try='test -z "$ac_c_werror_flag"
26179 || test ! -s conftest.err'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; } &&
26185 { ac_try='test -s conftest.$ac_objext'
26186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187 (eval $ac_try) 2>&5
26188 ac_status=$?
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); }; }; then
26191 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026192else
26193 echo "$as_me: failed program was:" >&5
26194sed 's/^/| /' conftest.$ac_ext >&5
26195
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026196ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026197fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26199fi
26200echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26201echo "${ECHO_T}$ac_cv_header_time" >&6
26202if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026203
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026204cat >>confdefs.h <<\_ACEOF
26205#define TIME_WITH_SYS_TIME 1
26206_ACEOF
26207
26208fi
26209
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026210
Reid Spencer59473af2004-12-25 07:31:29 +000026211
26212
26213
26214
26215
26216
26217for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26218do
26219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26220if eval "test \"\${$as_ac_Header+set}\" = set"; then
26221 echo "$as_me:$LINENO: checking for $ac_header" >&5
26222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26223if eval "test \"\${$as_ac_Header+set}\" = set"; then
26224 echo $ECHO_N "(cached) $ECHO_C" >&6
26225fi
26226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26228else
26229 # Is the header compilable?
26230echo "$as_me:$LINENO: checking $ac_header usability" >&5
26231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26232cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026233/* confdefs.h. */
26234_ACEOF
26235cat confdefs.h >>conftest.$ac_ext
26236cat >>conftest.$ac_ext <<_ACEOF
26237/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026238$ac_includes_default
26239#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026240_ACEOF
26241rm -f conftest.$ac_objext
26242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26243 (eval $ac_compile) 2>conftest.er1
26244 ac_status=$?
26245 grep -v '^ *+' conftest.er1 >conftest.err
26246 rm -f conftest.er1
26247 cat conftest.err >&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } &&
26250 { ac_try='test -z "$ac_c_werror_flag"
26251 || test ! -s conftest.err'
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26254 ac_status=$?
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; } &&
26257 { ac_try='test -s conftest.$ac_objext'
26258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259 (eval $ac_try) 2>&5
26260 ac_status=$?
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026263 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026264else
26265 echo "$as_me: failed program was:" >&5
26266sed 's/^/| /' conftest.$ac_ext >&5
26267
Reid Spencer59473af2004-12-25 07:31:29 +000026268ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026269fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26272echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026273
Reid Spencer59473af2004-12-25 07:31:29 +000026274# Is the header present?
26275echo "$as_me:$LINENO: checking $ac_header presence" >&5
26276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26277cat >conftest.$ac_ext <<_ACEOF
26278/* confdefs.h. */
26279_ACEOF
26280cat confdefs.h >>conftest.$ac_ext
26281cat >>conftest.$ac_ext <<_ACEOF
26282/* end confdefs.h. */
26283#include <$ac_header>
26284_ACEOF
26285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26287 ac_status=$?
26288 grep -v '^ *+' conftest.er1 >conftest.err
26289 rm -f conftest.er1
26290 cat conftest.err >&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } >/dev/null; then
26293 if test -s conftest.err; then
26294 ac_cpp_err=$ac_c_preproc_warn_flag
26295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26296 else
26297 ac_cpp_err=
26298 fi
26299else
26300 ac_cpp_err=yes
26301fi
26302if test -z "$ac_cpp_err"; then
26303 ac_header_preproc=yes
26304else
26305 echo "$as_me: failed program was:" >&5
26306sed 's/^/| /' conftest.$ac_ext >&5
26307
26308 ac_header_preproc=no
26309fi
26310rm -f conftest.err conftest.$ac_ext
26311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26312echo "${ECHO_T}$ac_header_preproc" >&6
26313
26314# So? What about this header?
26315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26316 yes:no: )
26317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26321 ac_header_preproc=yes
26322 ;;
26323 no:yes:* )
26324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26336 (
26337 cat <<\_ASBOX
26338## ----------------------------------- ##
26339## Report this to llvmbugs@cs.uiuc.edu ##
26340## ----------------------------------- ##
26341_ASBOX
26342 ) |
26343 sed "s/^/$as_me: WARNING: /" >&2
26344 ;;
26345esac
26346echo "$as_me:$LINENO: checking for $ac_header" >&5
26347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26348if eval "test \"\${$as_ac_Header+set}\" = set"; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26350else
26351 eval "$as_ac_Header=\$ac_header_preproc"
26352fi
26353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026355
26356fi
Reid Spencer59473af2004-12-25 07:31:29 +000026357if test `eval echo '${'$as_ac_Header'}'` = yes; then
26358 cat >>confdefs.h <<_ACEOF
26359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026360_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026361
26362fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026363
Reid Spencer59473af2004-12-25 07:31:29 +000026364done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026365
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026366
26367
Reid Spencer59473af2004-12-25 07:31:29 +000026368
26369
26370
26371
Reid Spencer22177fe2005-07-12 15:24:20 +000026372for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26373do
26374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26375if eval "test \"\${$as_ac_Header+set}\" = set"; then
26376 echo "$as_me:$LINENO: checking for $ac_header" >&5
26377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26378if eval "test \"\${$as_ac_Header+set}\" = set"; then
26379 echo $ECHO_N "(cached) $ECHO_C" >&6
26380fi
26381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26383else
26384 # Is the header compilable?
26385echo "$as_me:$LINENO: checking $ac_header usability" >&5
26386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26387cat >conftest.$ac_ext <<_ACEOF
26388/* confdefs.h. */
26389_ACEOF
26390cat confdefs.h >>conftest.$ac_ext
26391cat >>conftest.$ac_ext <<_ACEOF
26392/* end confdefs.h. */
26393$ac_includes_default
26394#include <$ac_header>
26395_ACEOF
26396rm -f conftest.$ac_objext
26397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26398 (eval $ac_compile) 2>conftest.er1
26399 ac_status=$?
26400 grep -v '^ *+' conftest.er1 >conftest.err
26401 rm -f conftest.er1
26402 cat conftest.err >&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); } &&
26405 { ac_try='test -z "$ac_c_werror_flag"
26406 || test ! -s conftest.err'
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26409 ac_status=$?
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; } &&
26412 { ac_try='test -s conftest.$ac_objext'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
26418 ac_header_compiler=yes
26419else
26420 echo "$as_me: failed program was:" >&5
26421sed 's/^/| /' conftest.$ac_ext >&5
26422
26423ac_header_compiler=no
26424fi
26425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26427echo "${ECHO_T}$ac_header_compiler" >&6
26428
26429# Is the header present?
26430echo "$as_me:$LINENO: checking $ac_header presence" >&5
26431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26432cat >conftest.$ac_ext <<_ACEOF
26433/* confdefs.h. */
26434_ACEOF
26435cat confdefs.h >>conftest.$ac_ext
26436cat >>conftest.$ac_ext <<_ACEOF
26437/* end confdefs.h. */
26438#include <$ac_header>
26439_ACEOF
26440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26442 ac_status=$?
26443 grep -v '^ *+' conftest.er1 >conftest.err
26444 rm -f conftest.er1
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } >/dev/null; then
26448 if test -s conftest.err; then
26449 ac_cpp_err=$ac_c_preproc_warn_flag
26450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26451 else
26452 ac_cpp_err=
26453 fi
26454else
26455 ac_cpp_err=yes
26456fi
26457if test -z "$ac_cpp_err"; then
26458 ac_header_preproc=yes
26459else
26460 echo "$as_me: failed program was:" >&5
26461sed 's/^/| /' conftest.$ac_ext >&5
26462
26463 ac_header_preproc=no
26464fi
26465rm -f conftest.err conftest.$ac_ext
26466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26467echo "${ECHO_T}$ac_header_preproc" >&6
26468
26469# So? What about this header?
26470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26471 yes:no: )
26472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26476 ac_header_preproc=yes
26477 ;;
26478 no:yes:* )
26479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26482echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26486echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26491 (
26492 cat <<\_ASBOX
26493## ----------------------------------- ##
26494## Report this to llvmbugs@cs.uiuc.edu ##
26495## ----------------------------------- ##
26496_ASBOX
26497 ) |
26498 sed "s/^/$as_me: WARNING: /" >&2
26499 ;;
26500esac
26501echo "$as_me:$LINENO: checking for $ac_header" >&5
26502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26503if eval "test \"\${$as_ac_Header+set}\" = set"; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26505else
26506 eval "$as_ac_Header=\$ac_header_preproc"
26507fi
26508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26510
26511fi
26512if test `eval echo '${'$as_ac_Header'}'` = yes; then
26513 cat >>confdefs.h <<_ACEOF
26514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26515_ACEOF
26516
26517fi
26518
26519done
26520
26521
26522for ac_header in windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026523do
26524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26525if eval "test \"\${$as_ac_Header+set}\" = set"; then
26526 echo "$as_me:$LINENO: checking for $ac_header" >&5
26527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26528if eval "test \"\${$as_ac_Header+set}\" = set"; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26530fi
26531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26533else
26534 # Is the header compilable?
26535echo "$as_me:$LINENO: checking $ac_header usability" >&5
26536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26537cat >conftest.$ac_ext <<_ACEOF
26538/* confdefs.h. */
26539_ACEOF
26540cat confdefs.h >>conftest.$ac_ext
26541cat >>conftest.$ac_ext <<_ACEOF
26542/* end confdefs.h. */
26543$ac_includes_default
26544#include <$ac_header>
26545_ACEOF
26546rm -f conftest.$ac_objext
26547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26548 (eval $ac_compile) 2>conftest.er1
26549 ac_status=$?
26550 grep -v '^ *+' conftest.er1 >conftest.err
26551 rm -f conftest.er1
26552 cat conftest.err >&5
26553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); } &&
26555 { ac_try='test -z "$ac_c_werror_flag"
26556 || test ! -s conftest.err'
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; } &&
26562 { ac_try='test -s conftest.$ac_objext'
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; }; then
26568 ac_header_compiler=yes
26569else
26570 echo "$as_me: failed program was:" >&5
26571sed 's/^/| /' conftest.$ac_ext >&5
26572
26573ac_header_compiler=no
26574fi
26575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26577echo "${ECHO_T}$ac_header_compiler" >&6
26578
26579# Is the header present?
26580echo "$as_me:$LINENO: checking $ac_header presence" >&5
26581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26582cat >conftest.$ac_ext <<_ACEOF
26583/* confdefs.h. */
26584_ACEOF
26585cat confdefs.h >>conftest.$ac_ext
26586cat >>conftest.$ac_ext <<_ACEOF
26587/* end confdefs.h. */
26588#include <$ac_header>
26589_ACEOF
26590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26592 ac_status=$?
26593 grep -v '^ *+' conftest.er1 >conftest.err
26594 rm -f conftest.er1
26595 cat conftest.err >&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); } >/dev/null; then
26598 if test -s conftest.err; then
26599 ac_cpp_err=$ac_c_preproc_warn_flag
26600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26601 else
26602 ac_cpp_err=
26603 fi
26604else
26605 ac_cpp_err=yes
26606fi
26607if test -z "$ac_cpp_err"; then
26608 ac_header_preproc=yes
26609else
26610 echo "$as_me: failed program was:" >&5
26611sed 's/^/| /' conftest.$ac_ext >&5
26612
26613 ac_header_preproc=no
26614fi
26615rm -f conftest.err conftest.$ac_ext
26616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26617echo "${ECHO_T}$ac_header_preproc" >&6
26618
26619# So? What about this header?
26620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26621 yes:no: )
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26626 ac_header_preproc=yes
26627 ;;
26628 no:yes:* )
26629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26641 (
26642 cat <<\_ASBOX
26643## ----------------------------------- ##
26644## Report this to llvmbugs@cs.uiuc.edu ##
26645## ----------------------------------- ##
26646_ASBOX
26647 ) |
26648 sed "s/^/$as_me: WARNING: /" >&2
26649 ;;
26650esac
26651echo "$as_me:$LINENO: checking for $ac_header" >&5
26652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26653if eval "test \"\${$as_ac_Header+set}\" = set"; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26655else
26656 eval "$as_ac_Header=\$ac_header_preproc"
26657fi
26658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26660
26661fi
26662if test `eval echo '${'$as_ac_Header'}'` = yes; then
26663 cat >>confdefs.h <<_ACEOF
26664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26665_ACEOF
26666
26667fi
26668
26669done
26670
26671
26672
26673
26674
26675
26676for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026677do
26678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26679if eval "test \"\${$as_ac_Header+set}\" = set"; then
26680 echo "$as_me:$LINENO: checking for $ac_header" >&5
26681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26682if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026683 echo $ECHO_N "(cached) $ECHO_C" >&6
26684fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026687else
26688 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026689echo "$as_me:$LINENO: checking $ac_header usability" >&5
26690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026691cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026692/* confdefs.h. */
26693_ACEOF
26694cat confdefs.h >>conftest.$ac_ext
26695cat >>conftest.$ac_ext <<_ACEOF
26696/* end confdefs.h. */
26697$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026698#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026699_ACEOF
26700rm -f conftest.$ac_objext
26701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026702 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026704 grep -v '^ *+' conftest.er1 >conftest.err
26705 rm -f conftest.er1
26706 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026709 { ac_try='test -z "$ac_c_werror_flag"
26710 || test ! -s conftest.err'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; } &&
26716 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26719 ac_status=$?
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; }; then
26722 ac_header_compiler=yes
26723else
26724 echo "$as_me: failed program was:" >&5
26725sed 's/^/| /' conftest.$ac_ext >&5
26726
26727ac_header_compiler=no
26728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26731echo "${ECHO_T}$ac_header_compiler" >&6
26732
26733# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026734echo "$as_me:$LINENO: checking $ac_header presence" >&5
26735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026736cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026737/* confdefs.h. */
26738_ACEOF
26739cat confdefs.h >>conftest.$ac_ext
26740cat >>conftest.$ac_ext <<_ACEOF
26741/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026742#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026743_ACEOF
26744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26746 ac_status=$?
26747 grep -v '^ *+' conftest.er1 >conftest.err
26748 rm -f conftest.er1
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } >/dev/null; then
26752 if test -s conftest.err; then
26753 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026755 else
26756 ac_cpp_err=
26757 fi
26758else
26759 ac_cpp_err=yes
26760fi
26761if test -z "$ac_cpp_err"; then
26762 ac_header_preproc=yes
26763else
26764 echo "$as_me: failed program was:" >&5
26765sed 's/^/| /' conftest.$ac_ext >&5
26766
26767 ac_header_preproc=no
26768fi
26769rm -f conftest.err conftest.$ac_ext
26770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26771echo "${ECHO_T}$ac_header_preproc" >&6
26772
26773# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26775 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026780 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026781 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026782 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26790echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026795 (
26796 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026797## ----------------------------------- ##
26798## Report this to llvmbugs@cs.uiuc.edu ##
26799## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026800_ASBOX
26801 ) |
26802 sed "s/^/$as_me: WARNING: /" >&2
26803 ;;
26804esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026805echo "$as_me:$LINENO: checking for $ac_header" >&5
26806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26807if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026808 echo $ECHO_N "(cached) $ECHO_C" >&6
26809else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026810 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026811fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026814
26815fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026816if test `eval echo '${'$as_ac_Header'}'` = yes; then
26817 cat >>confdefs.h <<_ACEOF
26818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026819_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026820
26821fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026822
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026823done
26824
John Criswell7ed43ad2004-07-19 16:12:29 +000026825
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026826
Reid Spencer8085cff2005-01-16 02:58:39 +000026827for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26828do
26829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26830if eval "test \"\${$as_ac_Header+set}\" = set"; then
26831 echo "$as_me:$LINENO: checking for $ac_header" >&5
26832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26833if eval "test \"\${$as_ac_Header+set}\" = set"; then
26834 echo $ECHO_N "(cached) $ECHO_C" >&6
26835fi
26836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26838else
26839 # Is the header compilable?
26840echo "$as_me:$LINENO: checking $ac_header usability" >&5
26841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26842cat >conftest.$ac_ext <<_ACEOF
26843/* confdefs.h. */
26844_ACEOF
26845cat confdefs.h >>conftest.$ac_ext
26846cat >>conftest.$ac_ext <<_ACEOF
26847/* end confdefs.h. */
26848$ac_includes_default
26849#include <$ac_header>
26850_ACEOF
26851rm -f conftest.$ac_objext
26852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26853 (eval $ac_compile) 2>conftest.er1
26854 ac_status=$?
26855 grep -v '^ *+' conftest.er1 >conftest.err
26856 rm -f conftest.er1
26857 cat conftest.err >&5
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); } &&
26860 { ac_try='test -z "$ac_c_werror_flag"
26861 || test ! -s conftest.err'
26862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863 (eval $ac_try) 2>&5
26864 ac_status=$?
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; } &&
26867 { ac_try='test -s conftest.$ac_objext'
26868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869 (eval $ac_try) 2>&5
26870 ac_status=$?
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); }; }; then
26873 ac_header_compiler=yes
26874else
26875 echo "$as_me: failed program was:" >&5
26876sed 's/^/| /' conftest.$ac_ext >&5
26877
26878ac_header_compiler=no
26879fi
26880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26882echo "${ECHO_T}$ac_header_compiler" >&6
26883
26884# Is the header present?
26885echo "$as_me:$LINENO: checking $ac_header presence" >&5
26886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26887cat >conftest.$ac_ext <<_ACEOF
26888/* confdefs.h. */
26889_ACEOF
26890cat confdefs.h >>conftest.$ac_ext
26891cat >>conftest.$ac_ext <<_ACEOF
26892/* end confdefs.h. */
26893#include <$ac_header>
26894_ACEOF
26895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26897 ac_status=$?
26898 grep -v '^ *+' conftest.er1 >conftest.err
26899 rm -f conftest.er1
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } >/dev/null; then
26903 if test -s conftest.err; then
26904 ac_cpp_err=$ac_c_preproc_warn_flag
26905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26906 else
26907 ac_cpp_err=
26908 fi
26909else
26910 ac_cpp_err=yes
26911fi
26912if test -z "$ac_cpp_err"; then
26913 ac_header_preproc=yes
26914else
26915 echo "$as_me: failed program was:" >&5
26916sed 's/^/| /' conftest.$ac_ext >&5
26917
26918 ac_header_preproc=no
26919fi
26920rm -f conftest.err conftest.$ac_ext
26921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26922echo "${ECHO_T}$ac_header_preproc" >&6
26923
26924# So? What about this header?
26925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26926 yes:no: )
26927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26931 ac_header_preproc=yes
26932 ;;
26933 no:yes:* )
26934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26941echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26946 (
26947 cat <<\_ASBOX
26948## ----------------------------------- ##
26949## Report this to llvmbugs@cs.uiuc.edu ##
26950## ----------------------------------- ##
26951_ASBOX
26952 ) |
26953 sed "s/^/$as_me: WARNING: /" >&2
26954 ;;
26955esac
26956echo "$as_me:$LINENO: checking for $ac_header" >&5
26957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26958if eval "test \"\${$as_ac_Header+set}\" = set"; then
26959 echo $ECHO_N "(cached) $ECHO_C" >&6
26960else
26961 eval "$as_ac_Header=\$ac_header_preproc"
26962fi
26963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26965
26966fi
26967if test `eval echo '${'$as_ac_Header'}'` = yes; then
26968 cat >>confdefs.h <<_ACEOF
26969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26970_ACEOF
26971
26972fi
26973
26974done
26975
26976
26977
John Criswell7a73b802003-06-30 21:59:07 +000026978echo "$as_me:$LINENO: checking for pid_t" >&5
26979echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26980if test "${ac_cv_type_pid_t+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26982else
26983 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026984/* confdefs.h. */
26985_ACEOF
26986cat confdefs.h >>conftest.$ac_ext
26987cat >>conftest.$ac_ext <<_ACEOF
26988/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026989$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026990int
26991main ()
26992{
26993if ((pid_t *) 0)
26994 return 0;
26995if (sizeof (pid_t))
26996 return 0;
26997 ;
26998 return 0;
26999}
27000_ACEOF
27001rm -f conftest.$ac_objext
27002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027003 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027005 grep -v '^ *+' conftest.er1 >conftest.err
27006 rm -f conftest.er1
27007 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027010 { ac_try='test -z "$ac_c_werror_flag"
27011 || test ! -s conftest.err'
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; } &&
27017 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019 (eval $ac_try) 2>&5
27020 ac_status=$?
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); }; }; then
27023 ac_cv_type_pid_t=yes
27024else
27025 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027026sed 's/^/| /' conftest.$ac_ext >&5
27027
John Criswell7a73b802003-06-30 21:59:07 +000027028ac_cv_type_pid_t=no
27029fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027031fi
27032echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27033echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27034if test $ac_cv_type_pid_t = yes; then
27035 :
27036else
27037
27038cat >>confdefs.h <<_ACEOF
27039#define pid_t int
27040_ACEOF
27041
27042fi
27043
27044echo "$as_me:$LINENO: checking for size_t" >&5
27045echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27046if test "${ac_cv_type_size_t+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27048else
27049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027050/* confdefs.h. */
27051_ACEOF
27052cat confdefs.h >>conftest.$ac_ext
27053cat >>conftest.$ac_ext <<_ACEOF
27054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027055$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027056int
27057main ()
27058{
27059if ((size_t *) 0)
27060 return 0;
27061if (sizeof (size_t))
27062 return 0;
27063 ;
27064 return 0;
27065}
27066_ACEOF
27067rm -f conftest.$ac_objext
27068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027069 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027070 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027071 grep -v '^ *+' conftest.er1 >conftest.err
27072 rm -f conftest.er1
27073 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027076 { ac_try='test -z "$ac_c_werror_flag"
27077 || test ! -s conftest.err'
27078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
27089 ac_cv_type_size_t=yes
27090else
27091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027092sed 's/^/| /' conftest.$ac_ext >&5
27093
John Criswell7a73b802003-06-30 21:59:07 +000027094ac_cv_type_size_t=no
27095fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027097fi
27098echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27099echo "${ECHO_T}$ac_cv_type_size_t" >&6
27100if test $ac_cv_type_size_t = yes; then
27101 :
27102else
27103
27104cat >>confdefs.h <<_ACEOF
27105#define size_t unsigned
27106_ACEOF
27107
27108fi
27109
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027110echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27111echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27112if test "${ac_cv_type_signal+set}" = set; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27114else
27115 cat >conftest.$ac_ext <<_ACEOF
27116/* confdefs.h. */
27117_ACEOF
27118cat confdefs.h >>conftest.$ac_ext
27119cat >>conftest.$ac_ext <<_ACEOF
27120/* end confdefs.h. */
27121#include <sys/types.h>
27122#include <signal.h>
27123#ifdef signal
27124# undef signal
27125#endif
27126#ifdef __cplusplus
27127extern "C" void (*signal (int, void (*)(int)))(int);
27128#else
27129void (*signal ()) ();
27130#endif
27131
27132int
27133main ()
27134{
27135int i;
27136 ;
27137 return 0;
27138}
27139_ACEOF
27140rm -f conftest.$ac_objext
27141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27142 (eval $ac_compile) 2>conftest.er1
27143 ac_status=$?
27144 grep -v '^ *+' conftest.er1 >conftest.err
27145 rm -f conftest.er1
27146 cat conftest.err >&5
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); } &&
27149 { ac_try='test -z "$ac_c_werror_flag"
27150 || test ! -s conftest.err'
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; } &&
27156 { ac_try='test -s conftest.$ac_objext'
27157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158 (eval $ac_try) 2>&5
27159 ac_status=$?
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); }; }; then
27162 ac_cv_type_signal=void
27163else
27164 echo "$as_me: failed program was:" >&5
27165sed 's/^/| /' conftest.$ac_ext >&5
27166
27167ac_cv_type_signal=int
27168fi
27169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27170fi
27171echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27172echo "${ECHO_T}$ac_cv_type_signal" >&6
27173
27174cat >>confdefs.h <<_ACEOF
27175#define RETSIGTYPE $ac_cv_type_signal
27176_ACEOF
27177
27178
27179echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27180echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27181if test "${ac_cv_struct_tm+set}" = set; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27183else
27184 cat >conftest.$ac_ext <<_ACEOF
27185/* confdefs.h. */
27186_ACEOF
27187cat confdefs.h >>conftest.$ac_ext
27188cat >>conftest.$ac_ext <<_ACEOF
27189/* end confdefs.h. */
27190#include <sys/types.h>
27191#include <time.h>
27192
27193int
27194main ()
27195{
27196struct tm *tp; tp->tm_sec;
27197 ;
27198 return 0;
27199}
27200_ACEOF
27201rm -f conftest.$ac_objext
27202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27203 (eval $ac_compile) 2>conftest.er1
27204 ac_status=$?
27205 grep -v '^ *+' conftest.er1 >conftest.err
27206 rm -f conftest.er1
27207 cat conftest.err >&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); } &&
27210 { ac_try='test -z "$ac_c_werror_flag"
27211 || test ! -s conftest.err'
27212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27213 (eval $ac_try) 2>&5
27214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; } &&
27217 { ac_try='test -s conftest.$ac_objext'
27218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27219 (eval $ac_try) 2>&5
27220 ac_status=$?
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; }; then
27223 ac_cv_struct_tm=time.h
27224else
27225 echo "$as_me: failed program was:" >&5
27226sed 's/^/| /' conftest.$ac_ext >&5
27227
27228ac_cv_struct_tm=sys/time.h
27229fi
27230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27231fi
27232echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27233echo "${ECHO_T}$ac_cv_struct_tm" >&6
27234if test $ac_cv_struct_tm = sys/time.h; then
27235
27236cat >>confdefs.h <<\_ACEOF
27237#define TM_IN_SYS_TIME 1
27238_ACEOF
27239
27240fi
27241
John Criswell7a73b802003-06-30 21:59:07 +000027242echo "$as_me:$LINENO: checking for int64_t" >&5
27243echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27244if test "${ac_cv_type_int64_t+set}" = set; then
27245 echo $ECHO_N "(cached) $ECHO_C" >&6
27246else
27247 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027248/* confdefs.h. */
27249_ACEOF
27250cat confdefs.h >>conftest.$ac_ext
27251cat >>conftest.$ac_ext <<_ACEOF
27252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027253$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027254int
27255main ()
27256{
27257if ((int64_t *) 0)
27258 return 0;
27259if (sizeof (int64_t))
27260 return 0;
27261 ;
27262 return 0;
27263}
27264_ACEOF
27265rm -f conftest.$ac_objext
27266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027267 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027268 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027269 grep -v '^ *+' conftest.er1 >conftest.err
27270 rm -f conftest.er1
27271 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027274 { ac_try='test -z "$ac_c_werror_flag"
27275 || test ! -s conftest.err'
27276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27277 (eval $ac_try) 2>&5
27278 ac_status=$?
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); }; } &&
27281 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283 (eval $ac_try) 2>&5
27284 ac_status=$?
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; }; then
27287 ac_cv_type_int64_t=yes
27288else
27289 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027290sed 's/^/| /' conftest.$ac_ext >&5
27291
John Criswell7a73b802003-06-30 21:59:07 +000027292ac_cv_type_int64_t=no
27293fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027295fi
27296echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27297echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27298if test $ac_cv_type_int64_t = yes; then
27299
27300cat >>confdefs.h <<_ACEOF
27301#define HAVE_INT64_T 1
27302_ACEOF
27303
27304
27305else
27306 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27307echo "$as_me: error: Type int64_t required but not found" >&2;}
27308 { (exit 1); exit 1; }; }
27309fi
27310
27311echo "$as_me:$LINENO: checking for uint64_t" >&5
27312echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27313if test "${ac_cv_type_uint64_t+set}" = set; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27315else
27316 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027317/* confdefs.h. */
27318_ACEOF
27319cat confdefs.h >>conftest.$ac_ext
27320cat >>conftest.$ac_ext <<_ACEOF
27321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027322$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027323int
27324main ()
27325{
27326if ((uint64_t *) 0)
27327 return 0;
27328if (sizeof (uint64_t))
27329 return 0;
27330 ;
27331 return 0;
27332}
27333_ACEOF
27334rm -f conftest.$ac_objext
27335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027336 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027337 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027338 grep -v '^ *+' conftest.er1 >conftest.err
27339 rm -f conftest.er1
27340 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027343 { ac_try='test -z "$ac_c_werror_flag"
27344 || test ! -s conftest.err'
27345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27346 (eval $ac_try) 2>&5
27347 ac_status=$?
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); }; } &&
27350 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352 (eval $ac_try) 2>&5
27353 ac_status=$?
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; }; then
27356 ac_cv_type_uint64_t=yes
27357else
27358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027359sed 's/^/| /' conftest.$ac_ext >&5
27360
John Criswell7a73b802003-06-30 21:59:07 +000027361ac_cv_type_uint64_t=no
27362fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027364fi
27365echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27366echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27367if test $ac_cv_type_uint64_t = yes; then
27368
27369cat >>confdefs.h <<_ACEOF
27370#define HAVE_UINT64_T 1
27371_ACEOF
27372
27373
27374else
Misha Brukmanceca9042004-09-02 23:02:30 +000027375 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027376echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27377if test "${ac_cv_type_u_int64_t+set}" = set; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27379else
27380 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027381/* confdefs.h. */
27382_ACEOF
27383cat confdefs.h >>conftest.$ac_ext
27384cat >>conftest.$ac_ext <<_ACEOF
27385/* end confdefs.h. */
27386$ac_includes_default
27387int
27388main ()
27389{
27390if ((u_int64_t *) 0)
27391 return 0;
27392if (sizeof (u_int64_t))
27393 return 0;
27394 ;
27395 return 0;
27396}
27397_ACEOF
27398rm -f conftest.$ac_objext
27399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027400 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027401 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027407 { ac_try='test -z "$ac_c_werror_flag"
27408 || test ! -s conftest.err'
27409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410 (eval $ac_try) 2>&5
27411 ac_status=$?
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; } &&
27414 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; }; then
27420 ac_cv_type_u_int64_t=yes
27421else
27422 echo "$as_me: failed program was:" >&5
27423sed 's/^/| /' conftest.$ac_ext >&5
27424
27425ac_cv_type_u_int64_t=no
27426fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027428fi
27429echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27430echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27431if test $ac_cv_type_u_int64_t = yes; then
27432
27433cat >>confdefs.h <<_ACEOF
27434#define HAVE_U_INT64_T 1
27435_ACEOF
27436
27437
Misha Brukmanceca9042004-09-02 23:02:30 +000027438else
27439 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27440echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27441 { (exit 1); exit 1; }; }
27442fi
27443
John Criswell679ff312004-09-02 18:44:44 +000027444fi
27445
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027446
27447
27448
27449
27450
27451
27452
Reid Spencerb9a5d682005-05-15 22:15:11 +000027453for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
Reid Spencerab5eaea2004-12-20 00:59:04 +000027454do
27455as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27456echo "$as_me:$LINENO: checking for $ac_func" >&5
27457echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27458if eval "test \"\${$as_ac_var+set}\" = set"; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
27460else
27461 cat >conftest.$ac_ext <<_ACEOF
27462/* confdefs.h. */
27463_ACEOF
27464cat confdefs.h >>conftest.$ac_ext
27465cat >>conftest.$ac_ext <<_ACEOF
27466/* end confdefs.h. */
27467/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27469#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027470
Reid Spencerab5eaea2004-12-20 00:59:04 +000027471/* System header to define __stub macros and hopefully few prototypes,
27472 which can conflict with char $ac_func (); below.
27473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27474 <limits.h> exists even on freestanding compilers. */
27475
27476#ifdef __STDC__
27477# include <limits.h>
27478#else
27479# include <assert.h>
27480#endif
27481
27482#undef $ac_func
27483
27484/* Override any gcc2 internal prototype to avoid an error. */
27485#ifdef __cplusplus
27486extern "C"
27487{
27488#endif
27489/* We use char because int might match the return type of a gcc2
27490 builtin and then its argument prototype would still apply. */
27491char $ac_func ();
27492/* The GNU C library defines this for functions which it implements
27493 to always fail with ENOSYS. Some functions are actually named
27494 something starting with __ and the normal name is an alias. */
27495#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27496choke me
27497#else
27498char (*f) () = $ac_func;
27499#endif
27500#ifdef __cplusplus
27501}
27502#endif
27503
27504int
27505main ()
27506{
27507return f != $ac_func;
27508 ;
27509 return 0;
27510}
27511_ACEOF
27512rm -f conftest.$ac_objext conftest$ac_exeext
27513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27514 (eval $ac_link) 2>conftest.er1
27515 ac_status=$?
27516 grep -v '^ *+' conftest.er1 >conftest.err
27517 rm -f conftest.er1
27518 cat conftest.err >&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); } &&
27521 { ac_try='test -z "$ac_c_werror_flag"
27522 || test ! -s conftest.err'
27523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524 (eval $ac_try) 2>&5
27525 ac_status=$?
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; } &&
27528 { ac_try='test -s conftest$ac_exeext'
27529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530 (eval $ac_try) 2>&5
27531 ac_status=$?
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; }; then
27534 eval "$as_ac_var=yes"
27535else
27536 echo "$as_me: failed program was:" >&5
27537sed 's/^/| /' conftest.$ac_ext >&5
27538
27539eval "$as_ac_var=no"
27540fi
27541rm -f conftest.err conftest.$ac_objext \
27542 conftest$ac_exeext conftest.$ac_ext
27543fi
27544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27546if test `eval echo '${'$as_ac_var'}'` = yes; then
27547 cat >>confdefs.h <<_ACEOF
27548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27549_ACEOF
27550
27551fi
27552done
27553
27554
27555
27556
Reid Spencerc29b13d2005-05-14 16:42:52 +000027557
27558for ac_func in isatty mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027559do
27560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27561echo "$as_me:$LINENO: checking for $ac_func" >&5
27562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27563if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027564 echo $ECHO_N "(cached) $ECHO_C" >&6
27565else
27566 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027567/* confdefs.h. */
27568_ACEOF
27569cat confdefs.h >>conftest.$ac_ext
27570cat >>conftest.$ac_ext <<_ACEOF
27571/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27574#define $ac_func innocuous_$ac_func
27575
27576/* System header to define __stub macros and hopefully few prototypes,
27577 which can conflict with char $ac_func (); below.
27578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27579 <limits.h> exists even on freestanding compilers. */
27580
27581#ifdef __STDC__
27582# include <limits.h>
27583#else
27584# include <assert.h>
27585#endif
27586
27587#undef $ac_func
27588
27589/* Override any gcc2 internal prototype to avoid an error. */
27590#ifdef __cplusplus
27591extern "C"
27592{
27593#endif
27594/* We use char because int might match the return type of a gcc2
27595 builtin and then its argument prototype would still apply. */
27596char $ac_func ();
27597/* The GNU C library defines this for functions which it implements
27598 to always fail with ENOSYS. Some functions are actually named
27599 something starting with __ and the normal name is an alias. */
27600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27601choke me
27602#else
27603char (*f) () = $ac_func;
27604#endif
27605#ifdef __cplusplus
27606}
27607#endif
John Criswell7a73b802003-06-30 21:59:07 +000027608
John Criswell7a73b802003-06-30 21:59:07 +000027609int
27610main ()
27611{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027612return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027613 ;
27614 return 0;
27615}
27616_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027617rm -f conftest.$ac_objext conftest$ac_exeext
27618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27619 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027621 grep -v '^ *+' conftest.er1 >conftest.err
27622 rm -f conftest.er1
27623 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027626 { ac_try='test -z "$ac_c_werror_flag"
27627 || test ! -s conftest.err'
27628 { (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); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027633 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027639 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027640else
27641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027642sed 's/^/| /' conftest.$ac_ext >&5
27643
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027644eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027645fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027646rm -f conftest.err conftest.$ac_objext \
27647 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027648fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27651if test `eval echo '${'$as_ac_var'}'` = yes; then
27652 cat >>confdefs.h <<_ACEOF
27653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027654_ACEOF
27655
27656fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027657done
John Criswell7a73b802003-06-30 21:59:07 +000027658
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027659
27660
27661
Reid Spencer6af3d262004-12-15 04:01:48 +000027662
27663
Reid Spencer59473af2004-12-25 07:31:29 +000027664
Reid Spencerba46ca32004-12-31 05:49:15 +000027665for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027666do
27667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27668echo "$as_me:$LINENO: checking for $ac_func" >&5
27669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27670if eval "test \"\${$as_ac_var+set}\" = set"; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27672else
27673 cat >conftest.$ac_ext <<_ACEOF
27674/* confdefs.h. */
27675_ACEOF
27676cat confdefs.h >>conftest.$ac_ext
27677cat >>conftest.$ac_ext <<_ACEOF
27678/* end confdefs.h. */
27679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27681#define $ac_func innocuous_$ac_func
27682
27683/* System header to define __stub macros and hopefully few prototypes,
27684 which can conflict with char $ac_func (); below.
27685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27686 <limits.h> exists even on freestanding compilers. */
27687
27688#ifdef __STDC__
27689# include <limits.h>
27690#else
27691# include <assert.h>
27692#endif
27693
27694#undef $ac_func
27695
27696/* Override any gcc2 internal prototype to avoid an error. */
27697#ifdef __cplusplus
27698extern "C"
27699{
27700#endif
27701/* We use char because int might match the return type of a gcc2
27702 builtin and then its argument prototype would still apply. */
27703char $ac_func ();
27704/* The GNU C library defines this for functions which it implements
27705 to always fail with ENOSYS. Some functions are actually named
27706 something starting with __ and the normal name is an alias. */
27707#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27708choke me
27709#else
27710char (*f) () = $ac_func;
27711#endif
27712#ifdef __cplusplus
27713}
27714#endif
27715
27716int
27717main ()
27718{
27719return f != $ac_func;
27720 ;
27721 return 0;
27722}
27723_ACEOF
27724rm -f conftest.$ac_objext conftest$ac_exeext
27725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27726 (eval $ac_link) 2>conftest.er1
27727 ac_status=$?
27728 grep -v '^ *+' conftest.er1 >conftest.err
27729 rm -f conftest.er1
27730 cat conftest.err >&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); } &&
27733 { ac_try='test -z "$ac_c_werror_flag"
27734 || test ! -s conftest.err'
27735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736 (eval $ac_try) 2>&5
27737 ac_status=$?
27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); }; } &&
27740 { ac_try='test -s conftest$ac_exeext'
27741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742 (eval $ac_try) 2>&5
27743 ac_status=$?
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); }; }; then
27746 eval "$as_ac_var=yes"
27747else
27748 echo "$as_me: failed program was:" >&5
27749sed 's/^/| /' conftest.$ac_ext >&5
27750
27751eval "$as_ac_var=no"
27752fi
27753rm -f conftest.err conftest.$ac_objext \
27754 conftest$ac_exeext conftest.$ac_ext
27755fi
27756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27757echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27758if test `eval echo '${'$as_ac_var'}'` = yes; then
27759 cat >>confdefs.h <<_ACEOF
27760#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27761_ACEOF
27762
27763fi
27764done
27765
27766
Reid Spencerba46ca32004-12-31 05:49:15 +000027767
27768
27769for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027770do
27771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27772echo "$as_me:$LINENO: checking for $ac_func" >&5
27773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27774if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027775 echo $ECHO_N "(cached) $ECHO_C" >&6
27776else
27777 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027778/* confdefs.h. */
27779_ACEOF
27780cat confdefs.h >>conftest.$ac_ext
27781cat >>conftest.$ac_ext <<_ACEOF
27782/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27785#define $ac_func innocuous_$ac_func
27786
27787/* System header to define __stub macros and hopefully few prototypes,
27788 which can conflict with char $ac_func (); below.
27789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27790 <limits.h> exists even on freestanding compilers. */
27791
27792#ifdef __STDC__
27793# include <limits.h>
27794#else
27795# include <assert.h>
27796#endif
27797
27798#undef $ac_func
27799
27800/* Override any gcc2 internal prototype to avoid an error. */
27801#ifdef __cplusplus
27802extern "C"
27803{
27804#endif
27805/* We use char because int might match the return type of a gcc2
27806 builtin and then its argument prototype would still apply. */
27807char $ac_func ();
27808/* The GNU C library defines this for functions which it implements
27809 to always fail with ENOSYS. Some functions are actually named
27810 something starting with __ and the normal name is an alias. */
27811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27812choke me
27813#else
27814char (*f) () = $ac_func;
27815#endif
27816#ifdef __cplusplus
27817}
27818#endif
John Criswell7a73b802003-06-30 21:59:07 +000027819
John Criswell7a73b802003-06-30 21:59:07 +000027820int
27821main ()
27822{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027823return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027824 ;
27825 return 0;
27826}
27827_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027828rm -f conftest.$ac_objext conftest$ac_exeext
27829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27830 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027831 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027832 grep -v '^ *+' conftest.er1 >conftest.err
27833 rm -f conftest.er1
27834 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027837 { ac_try='test -z "$ac_c_werror_flag"
27838 || test ! -s conftest.err'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27841 ac_status=$?
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027844 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027850 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027851else
27852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027853sed 's/^/| /' conftest.$ac_ext >&5
27854
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027855eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027856fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027857rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027859fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27862if test `eval echo '${'$as_ac_var'}'` = yes; then
27863 cat >>confdefs.h <<_ACEOF
27864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027865_ACEOF
27866
27867fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027868done
John Criswell7a73b802003-06-30 21:59:07 +000027869
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027870echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27871echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027872if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027873 echo $ECHO_N "(cached) $ECHO_C" >&6
27874else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027875 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027876ac_cpp='$CPP $CPPFLAGS'
27877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27879ac_compiler_gnu=$ac_cv_c_compiler_gnu
27880
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027881 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027882 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027883else
27884 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027885
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027886 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027887_ACEOF
27888cat confdefs.h >>conftest.$ac_ext
27889cat >>conftest.$ac_ext <<_ACEOF
27890/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027891
John Criswella0137d32003-10-13 16:22:01 +000027892#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027893#include <stdlib.h>
27894
John Criswella0137d32003-10-13 16:22:01 +000027895int
27896main ()
27897{
27898
Reid Spencer2706f8c2004-09-19 23:53:36 +000027899volatile double A, B;
27900char Buffer[100];
27901A = 1;
27902A /= 10.0;
27903sprintf(Buffer, "%a", A);
27904B = atof(Buffer);
27905if (A != B)
27906 return (1);
27907if (A != 0x1.999999999999ap-4)
27908 return (1);
27909return (0);
John Criswella0137d32003-10-13 16:22:01 +000027910 ;
27911 return 0;
27912}
27913_ACEOF
27914rm -f conftest$ac_exeext
27915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27916 (eval $ac_link) 2>&5
27917 ac_status=$?
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27921 (eval $ac_try) 2>&5
27922 ac_status=$?
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027925 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027926else
27927 echo "$as_me: program exited with status $ac_status" >&5
27928echo "$as_me: failed program was:" >&5
27929sed 's/^/| /' conftest.$ac_ext >&5
27930
27931( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027932llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027933fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027934rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027935fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027936 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027937ac_cpp='$CPP $CPPFLAGS'
27938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27940ac_compiler_gnu=$ac_cv_c_compiler_gnu
27941
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027942fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027943echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27944echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27945 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027946
27947cat >>confdefs.h <<\_ACEOF
27948#define HAVE_PRINTF_A 1
27949_ACEOF
27950
Reid Spencer2706f8c2004-09-19 23:53:36 +000027951 fi
John Criswella0137d32003-10-13 16:22:01 +000027952
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027953# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27954# for constant arguments. Useless!
27955echo "$as_me:$LINENO: checking for working alloca.h" >&5
27956echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27957if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027958 echo $ECHO_N "(cached) $ECHO_C" >&6
27959else
John Criswell0021c312004-02-13 21:57:29 +000027960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027961/* confdefs.h. */
27962_ACEOF
27963cat confdefs.h >>conftest.$ac_ext
27964cat >>conftest.$ac_ext <<_ACEOF
27965/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027966#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027967int
27968main ()
27969{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027970char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027971 ;
27972 return 0;
27973}
27974_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027975rm -f conftest.$ac_objext conftest$ac_exeext
27976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27977 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027978 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027979 grep -v '^ *+' conftest.er1 >conftest.err
27980 rm -f conftest.er1
27981 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027984 { ac_try='test -z "$ac_c_werror_flag"
27985 || test ! -s conftest.err'
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027991 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027997 ac_cv_working_alloca_h=yes
27998else
27999 echo "$as_me: failed program was:" >&5
28000sed 's/^/| /' conftest.$ac_ext >&5
28001
28002ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028003fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028004rm -f conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext conftest.$ac_ext
28006fi
28007echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28008echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28009if test $ac_cv_working_alloca_h = yes; then
28010
28011cat >>confdefs.h <<\_ACEOF
28012#define HAVE_ALLOCA_H 1
28013_ACEOF
28014
28015fi
28016
28017echo "$as_me:$LINENO: checking for alloca" >&5
28018echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28019if test "${ac_cv_func_alloca_works+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022 cat >conftest.$ac_ext <<_ACEOF
28023/* confdefs.h. */
28024_ACEOF
28025cat confdefs.h >>conftest.$ac_ext
28026cat >>conftest.$ac_ext <<_ACEOF
28027/* end confdefs.h. */
28028#ifdef __GNUC__
28029# define alloca __builtin_alloca
28030#else
28031# ifdef _MSC_VER
28032# include <malloc.h>
28033# define alloca _alloca
28034# else
28035# if HAVE_ALLOCA_H
28036# include <alloca.h>
28037# else
28038# ifdef _AIX
28039 #pragma alloca
28040# else
28041# ifndef alloca /* predefined by HP cc +Olibcalls */
28042char *alloca ();
28043# endif
28044# endif
28045# endif
28046# endif
28047#endif
28048
28049int
28050main ()
28051{
28052char *p = (char *) alloca (1);
28053 ;
28054 return 0;
28055}
28056_ACEOF
28057rm -f conftest.$ac_objext conftest$ac_exeext
28058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059 (eval $ac_link) 2>conftest.er1
28060 ac_status=$?
28061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag"
28067 || test ! -s conftest.err'
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); }; } &&
28073 { ac_try='test -s conftest$ac_exeext'
28074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28076 ac_status=$?
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; }; then
28079 ac_cv_func_alloca_works=yes
28080else
28081 echo "$as_me: failed program was:" >&5
28082sed 's/^/| /' conftest.$ac_ext >&5
28083
28084ac_cv_func_alloca_works=no
28085fi
28086rm -f conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
28088fi
28089echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28090echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28091
28092if test $ac_cv_func_alloca_works = yes; then
28093
28094cat >>confdefs.h <<\_ACEOF
28095#define HAVE_ALLOCA 1
28096_ACEOF
28097
28098else
28099 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28100# that cause trouble. Some versions do not even contain alloca or
28101# contain a buggy version. If you still want to use their alloca,
28102# use ar to extract alloca.o from them instead of compiling alloca.c.
28103
28104ALLOCA=alloca.$ac_objext
28105
28106cat >>confdefs.h <<\_ACEOF
28107#define C_ALLOCA 1
28108_ACEOF
28109
28110
28111echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28112echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28113if test "${ac_cv_os_cray+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28115else
28116 cat >conftest.$ac_ext <<_ACEOF
28117/* confdefs.h. */
28118_ACEOF
28119cat confdefs.h >>conftest.$ac_ext
28120cat >>conftest.$ac_ext <<_ACEOF
28121/* end confdefs.h. */
28122#if defined(CRAY) && ! defined(CRAY2)
28123webecray
28124#else
28125wenotbecray
28126#endif
28127
28128_ACEOF
28129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28130 $EGREP "webecray" >/dev/null 2>&1; then
28131 ac_cv_os_cray=yes
28132else
28133 ac_cv_os_cray=no
28134fi
28135rm -f conftest*
28136
28137fi
28138echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28139echo "${ECHO_T}$ac_cv_os_cray" >&6
28140if test $ac_cv_os_cray = yes; then
28141 for ac_func in _getb67 GETB67 getb67; do
28142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28143echo "$as_me:$LINENO: checking for $ac_func" >&5
28144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28145if eval "test \"\${$as_ac_var+set}\" = set"; then
28146 echo $ECHO_N "(cached) $ECHO_C" >&6
28147else
28148 cat >conftest.$ac_ext <<_ACEOF
28149/* confdefs.h. */
28150_ACEOF
28151cat confdefs.h >>conftest.$ac_ext
28152cat >>conftest.$ac_ext <<_ACEOF
28153/* end confdefs.h. */
28154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28156#define $ac_func innocuous_$ac_func
28157
28158/* System header to define __stub macros and hopefully few prototypes,
28159 which can conflict with char $ac_func (); below.
28160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28161 <limits.h> exists even on freestanding compilers. */
28162
28163#ifdef __STDC__
28164# include <limits.h>
28165#else
28166# include <assert.h>
28167#endif
28168
28169#undef $ac_func
28170
28171/* Override any gcc2 internal prototype to avoid an error. */
28172#ifdef __cplusplus
28173extern "C"
28174{
28175#endif
28176/* We use char because int might match the return type of a gcc2
28177 builtin and then its argument prototype would still apply. */
28178char $ac_func ();
28179/* The GNU C library defines this for functions which it implements
28180 to always fail with ENOSYS. Some functions are actually named
28181 something starting with __ and the normal name is an alias. */
28182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28183choke me
28184#else
28185char (*f) () = $ac_func;
28186#endif
28187#ifdef __cplusplus
28188}
28189#endif
28190
28191int
28192main ()
28193{
28194return f != $ac_func;
28195 ;
28196 return 0;
28197}
28198_ACEOF
28199rm -f conftest.$ac_objext conftest$ac_exeext
28200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28201 (eval $ac_link) 2>conftest.er1
28202 ac_status=$?
28203 grep -v '^ *+' conftest.er1 >conftest.err
28204 rm -f conftest.er1
28205 cat conftest.err >&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); } &&
28208 { ac_try='test -z "$ac_c_werror_flag"
28209 || test ! -s conftest.err'
28210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211 (eval $ac_try) 2>&5
28212 ac_status=$?
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; } &&
28215 { ac_try='test -s conftest$ac_exeext'
28216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28217 (eval $ac_try) 2>&5
28218 ac_status=$?
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; }; then
28221 eval "$as_ac_var=yes"
28222else
28223 echo "$as_me: failed program was:" >&5
28224sed 's/^/| /' conftest.$ac_ext >&5
28225
28226eval "$as_ac_var=no"
28227fi
28228rm -f conftest.err conftest.$ac_objext \
28229 conftest$ac_exeext conftest.$ac_ext
28230fi
28231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28232echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28233if test `eval echo '${'$as_ac_var'}'` = yes; then
28234
28235cat >>confdefs.h <<_ACEOF
28236#define CRAY_STACKSEG_END $ac_func
28237_ACEOF
28238
28239 break
28240fi
28241
28242 done
28243fi
28244
28245echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28246echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28247if test "${ac_cv_c_stack_direction+set}" = set; then
28248 echo $ECHO_N "(cached) $ECHO_C" >&6
28249else
28250 if test "$cross_compiling" = yes; then
28251 ac_cv_c_stack_direction=0
28252else
28253 cat >conftest.$ac_ext <<_ACEOF
28254/* confdefs.h. */
28255_ACEOF
28256cat confdefs.h >>conftest.$ac_ext
28257cat >>conftest.$ac_ext <<_ACEOF
28258/* end confdefs.h. */
28259int
28260find_stack_direction ()
28261{
28262 static char *addr = 0;
28263 auto char dummy;
28264 if (addr == 0)
28265 {
28266 addr = &dummy;
28267 return find_stack_direction ();
28268 }
John Criswell0021c312004-02-13 21:57:29 +000028269 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028270 return (&dummy > addr) ? 1 : -1;
28271}
John Criswell0021c312004-02-13 21:57:29 +000028272
John Criswell0021c312004-02-13 21:57:29 +000028273int
28274main ()
28275{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028276 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028277}
28278_ACEOF
28279rm -f conftest$ac_exeext
28280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28281 (eval $ac_link) 2>&5
28282 ac_status=$?
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286 (eval $ac_try) 2>&5
28287 ac_status=$?
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028290 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028291else
28292 echo "$as_me: program exited with status $ac_status" >&5
28293echo "$as_me: failed program was:" >&5
28294sed 's/^/| /' conftest.$ac_ext >&5
28295
28296( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028297ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028298fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028300fi
28301fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028302echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28303echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28304
28305cat >>confdefs.h <<_ACEOF
28306#define STACK_DIRECTION $ac_cv_c_stack_direction
28307_ACEOF
28308
28309
John Criswell0021c312004-02-13 21:57:29 +000028310fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028311
28312
28313echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28314echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28315if test "${ac_cv_func_rand48+set}" = set; then
28316 echo $ECHO_N "(cached) $ECHO_C" >&6
28317else
28318 ac_ext=cc
28319ac_cpp='$CXXCPP $CPPFLAGS'
28320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28323
28324 cat >conftest.$ac_ext <<_ACEOF
28325/* confdefs.h. */
28326_ACEOF
28327cat confdefs.h >>conftest.$ac_ext
28328cat >>conftest.$ac_ext <<_ACEOF
28329/* end confdefs.h. */
28330#include <stdlib.h>
28331int
28332main ()
28333{
28334srand48(0);lrand48();drand48();
28335 ;
28336 return 0;
28337}
28338_ACEOF
28339rm -f conftest.$ac_objext
28340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28341 (eval $ac_compile) 2>conftest.er1
28342 ac_status=$?
28343 grep -v '^ *+' conftest.er1 >conftest.err
28344 rm -f conftest.er1
28345 cat conftest.err >&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); } &&
28348 { ac_try='test -z "$ac_cxx_werror_flag"
28349 || test ! -s conftest.err'
28350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28351 (eval $ac_try) 2>&5
28352 ac_status=$?
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); }; } &&
28355 { ac_try='test -s conftest.$ac_objext'
28356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357 (eval $ac_try) 2>&5
28358 ac_status=$?
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); }; }; then
28361 ac_cv_func_rand48=yes
28362else
28363 echo "$as_me: failed program was:" >&5
28364sed 's/^/| /' conftest.$ac_ext >&5
28365
28366ac_cv_func_rand48=no
28367fi
28368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28369 ac_ext=c
28370ac_cpp='$CPP $CPPFLAGS'
28371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28373ac_compiler_gnu=$ac_cv_c_compiler_gnu
28374
28375fi
28376echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28377echo "${ECHO_T}$ac_cv_func_rand48" >&6
28378
28379if test "$ac_cv_func_rand48" = "yes" ; then
28380
28381cat >>confdefs.h <<\_ACEOF
28382#define HAVE_RAND48 1
28383_ACEOF
28384
28385fi
John Criswell0021c312004-02-13 21:57:29 +000028386
28387
John Criswell7a73b802003-06-30 21:59:07 +000028388echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28389echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28390if test "${ac_cv_cxx_namespaces+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28392else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028393 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028394ac_cpp='$CXXCPP $CPPFLAGS'
28395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28398
28399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028400/* confdefs.h. */
28401_ACEOF
28402cat confdefs.h >>conftest.$ac_ext
28403cat >>conftest.$ac_ext <<_ACEOF
28404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028405namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028406int
28407main ()
28408{
28409using namespace Outer::Inner; return i;
28410 ;
28411 return 0;
28412}
28413_ACEOF
28414rm -f conftest.$ac_objext
28415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028416 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028417 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028418 grep -v '^ *+' conftest.er1 >conftest.err
28419 rm -f conftest.er1
28420 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028423 { ac_try='test -z "$ac_cxx_werror_flag"
28424 || test ! -s conftest.err'
28425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28426 (eval $ac_try) 2>&5
28427 ac_status=$?
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); }; } &&
28430 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28436 ac_cv_cxx_namespaces=yes
28437else
28438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028439sed 's/^/| /' conftest.$ac_ext >&5
28440
John Criswell7a73b802003-06-30 21:59:07 +000028441ac_cv_cxx_namespaces=no
28442fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028444 ac_ext=c
28445ac_cpp='$CPP $CPPFLAGS'
28446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28448ac_compiler_gnu=$ac_cv_c_compiler_gnu
28449
28450
28451fi
28452echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28453echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28454if test "$ac_cv_cxx_namespaces" = yes; then
28455
28456cat >>confdefs.h <<\_ACEOF
28457#define HAVE_NAMESPACES
28458_ACEOF
28459
28460fi
28461
Brian Gaeke90583492003-11-10 03:06:28 +000028462echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28463echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28464if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028465 echo $ECHO_N "(cached) $ECHO_C" >&6
28466else
28467
John Criswell7a73b802003-06-30 21:59:07 +000028468 ac_ext=cc
28469ac_cpp='$CXXCPP $CPPFLAGS'
28470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28473
28474 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028475/* confdefs.h. */
28476_ACEOF
28477cat confdefs.h >>conftest.$ac_ext
28478cat >>conftest.$ac_ext <<_ACEOF
28479/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028480#include <ext/hash_map>
28481#ifdef HAVE_NAMESPACES
28482using namespace std;
28483#endif
John Criswell7a73b802003-06-30 21:59:07 +000028484int
28485main ()
28486{
Brian Gaeke90583492003-11-10 03:06:28 +000028487hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028488 ;
28489 return 0;
28490}
28491_ACEOF
28492rm -f conftest.$ac_objext
28493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028494 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028495 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028496 grep -v '^ *+' conftest.er1 >conftest.err
28497 rm -f conftest.er1
28498 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028501 { ac_try='test -z "$ac_cxx_werror_flag"
28502 || test ! -s conftest.err'
28503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504 (eval $ac_try) 2>&5
28505 ac_status=$?
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; } &&
28508 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028514 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028515else
28516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028517sed 's/^/| /' conftest.$ac_ext >&5
28518
Brian Gaeke90583492003-11-10 03:06:28 +000028519ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028520fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028522 ac_ext=c
28523ac_cpp='$CPP $CPPFLAGS'
28524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28526ac_compiler_gnu=$ac_cv_c_compiler_gnu
28527
John Criswell7a73b802003-06-30 21:59:07 +000028528fi
Brian Gaeke90583492003-11-10 03:06:28 +000028529echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28530echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028531 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28532 then
John Criswell9f011862004-09-24 18:28:00 +000028533
28534cat >>confdefs.h <<\_ACEOF
28535#define HAVE_STD_EXT_HASH_MAP 1
28536_ACEOF
28537
28538 else
28539
28540cat >>confdefs.h <<\_ACEOF
28541#define HAVE_STD_EXT_HASH_MAP 0
28542_ACEOF
28543
Brian Gaeke90583492003-11-10 03:06:28 +000028544 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028545
Brian Gaeke90583492003-11-10 03:06:28 +000028546 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28547echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28548if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28550else
28551
Brian Gaeke90583492003-11-10 03:06:28 +000028552 ac_ext=cc
28553ac_cpp='$CXXCPP $CPPFLAGS'
28554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28557
28558 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028559/* confdefs.h. */
28560_ACEOF
28561cat confdefs.h >>conftest.$ac_ext
28562cat >>conftest.$ac_ext <<_ACEOF
28563/* end confdefs.h. */
28564#include <ext/hash_map>
28565#ifdef HAVE_NAMESPACES
28566using namespace __gnu_cxx;
28567#endif
28568int
28569main ()
28570{
28571hash_map<int,int> t;
28572 ;
28573 return 0;
28574}
28575_ACEOF
28576rm -f conftest.$ac_objext
28577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028578 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028579 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028580 grep -v '^ *+' conftest.er1 >conftest.err
28581 rm -f conftest.er1
28582 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028585 { ac_try='test -z "$ac_cxx_werror_flag"
28586 || test ! -s conftest.err'
28587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28589 ac_status=$?
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; } &&
28592 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28595 ac_status=$?
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; }; then
28598 ac_cv_cxx_have_gnu_ext_hash_map=yes
28599else
28600 echo "$as_me: failed program was:" >&5
28601sed 's/^/| /' conftest.$ac_ext >&5
28602
28603ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028604fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028606 ac_ext=c
28607ac_cpp='$CPP $CPPFLAGS'
28608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610ac_compiler_gnu=$ac_cv_c_compiler_gnu
28611
28612fi
28613echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28614echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028615 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28616 then
John Criswell9f011862004-09-24 18:28:00 +000028617
28618cat >>confdefs.h <<\_ACEOF
28619#define HAVE_GNU_EXT_HASH_MAP 1
28620_ACEOF
28621
28622 else
28623
28624cat >>confdefs.h <<\_ACEOF
28625#define HAVE_GNU_EXT_HASH_MAP 0
28626_ACEOF
28627
Brian Gaeke90583492003-11-10 03:06:28 +000028628 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028629
Brian Gaeke90583492003-11-10 03:06:28 +000028630 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28631echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28632if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28633 echo $ECHO_N "(cached) $ECHO_C" >&6
28634else
John Criswell7a73b802003-06-30 21:59:07 +000028635
Brian Gaeke90583492003-11-10 03:06:28 +000028636 ac_ext=cc
28637ac_cpp='$CXXCPP $CPPFLAGS'
28638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28641
28642 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028643/* confdefs.h. */
28644_ACEOF
28645cat confdefs.h >>conftest.$ac_ext
28646cat >>conftest.$ac_ext <<_ACEOF
28647/* end confdefs.h. */
28648#include <hash_map>
28649int
28650main ()
28651{
28652hash_map<int,int> t;
28653 ;
28654 return 0;
28655}
28656_ACEOF
28657rm -f conftest.$ac_objext
28658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028659 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028660 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028661 grep -v '^ *+' conftest.er1 >conftest.err
28662 rm -f conftest.er1
28663 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028666 { ac_try='test -z "$ac_cxx_werror_flag"
28667 || test ! -s conftest.err'
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28670 ac_status=$?
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28676 ac_status=$?
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; }; then
28679 ac_cv_cxx_have_global_hash_map=yes
28680else
28681 echo "$as_me: failed program was:" >&5
28682sed 's/^/| /' conftest.$ac_ext >&5
28683
28684ac_cv_cxx_have_global_hash_map=no
28685fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028687 ac_ext=c
28688ac_cpp='$CPP $CPPFLAGS'
28689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28691ac_compiler_gnu=$ac_cv_c_compiler_gnu
28692
28693fi
28694echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28695echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028696 if test "$ac_cv_cxx_have_global_hash_map" = yes
28697 then
John Criswell9f011862004-09-24 18:28:00 +000028698
28699cat >>confdefs.h <<\_ACEOF
28700#define HAVE_GLOBAL_HASH_MAP 1
28701_ACEOF
28702
28703 else
28704
28705cat >>confdefs.h <<\_ACEOF
28706#define HAVE_GLOBAL_HASH_MAP 0
28707_ACEOF
28708
Brian Gaeke90583492003-11-10 03:06:28 +000028709 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028710
Brian Gaeke90583492003-11-10 03:06:28 +000028711echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28712echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28713if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028714 echo $ECHO_N "(cached) $ECHO_C" >&6
28715else
28716
John Criswell7a73b802003-06-30 21:59:07 +000028717 ac_ext=cc
28718ac_cpp='$CXXCPP $CPPFLAGS'
28719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28722
28723 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028724/* confdefs.h. */
28725_ACEOF
28726cat confdefs.h >>conftest.$ac_ext
28727cat >>conftest.$ac_ext <<_ACEOF
28728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028729#include <ext/hash_set>
28730#ifdef HAVE_NAMESPACES
28731using namespace std;
28732#endif
John Criswell7a73b802003-06-30 21:59:07 +000028733int
28734main ()
28735{
Brian Gaeke90583492003-11-10 03:06:28 +000028736hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028737 ;
28738 return 0;
28739}
28740_ACEOF
28741rm -f conftest.$ac_objext
28742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028743 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028744 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028745 grep -v '^ *+' conftest.er1 >conftest.err
28746 rm -f conftest.er1
28747 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028750 { ac_try='test -z "$ac_cxx_werror_flag"
28751 || test ! -s conftest.err'
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; } &&
28757 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759 (eval $ac_try) 2>&5
28760 ac_status=$?
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028763 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028764else
28765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028766sed 's/^/| /' conftest.$ac_ext >&5
28767
Brian Gaeke90583492003-11-10 03:06:28 +000028768ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028769fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028771 ac_ext=c
28772ac_cpp='$CPP $CPPFLAGS'
28773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28775ac_compiler_gnu=$ac_cv_c_compiler_gnu
28776
28777fi
28778echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28779echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028780 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28781 then
John Criswell9f011862004-09-24 18:28:00 +000028782
28783cat >>confdefs.h <<\_ACEOF
28784#define HAVE_STD_EXT_HASH_SET 1
28785_ACEOF
28786
28787 else
28788
28789cat >>confdefs.h <<\_ACEOF
28790#define HAVE_STD_EXT_HASH_SET 0
28791_ACEOF
28792
Brian Gaeke90583492003-11-10 03:06:28 +000028793 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028794
Brian Gaeke90583492003-11-10 03:06:28 +000028795 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28796echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28797if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28798 echo $ECHO_N "(cached) $ECHO_C" >&6
28799else
28800
Brian Gaeke90583492003-11-10 03:06:28 +000028801 ac_ext=cc
28802ac_cpp='$CXXCPP $CPPFLAGS'
28803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28806
John Criswell7a73b802003-06-30 21:59:07 +000028807 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028808/* confdefs.h. */
28809_ACEOF
28810cat confdefs.h >>conftest.$ac_ext
28811cat >>conftest.$ac_ext <<_ACEOF
28812/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028813#include <ext/hash_set>
28814#ifdef HAVE_NAMESPACES
28815using namespace __gnu_cxx;
28816#endif
John Criswell7a73b802003-06-30 21:59:07 +000028817int
28818main ()
28819{
Brian Gaeke90583492003-11-10 03:06:28 +000028820hash_set<int> t;
28821 ;
28822 return 0;
28823}
28824_ACEOF
28825rm -f conftest.$ac_objext
28826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028827 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028828 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028829 grep -v '^ *+' conftest.er1 >conftest.err
28830 rm -f conftest.er1
28831 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028834 { ac_try='test -z "$ac_cxx_werror_flag"
28835 || test ! -s conftest.err'
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847 ac_cv_cxx_have_gnu_ext_hash_set=yes
28848else
28849 echo "$as_me: failed program was:" >&5
28850sed 's/^/| /' conftest.$ac_ext >&5
28851
28852ac_cv_cxx_have_gnu_ext_hash_set=no
28853fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028855 ac_ext=c
28856ac_cpp='$CPP $CPPFLAGS'
28857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28859ac_compiler_gnu=$ac_cv_c_compiler_gnu
28860
28861fi
28862echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28863echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028864 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28865 then
John Criswell9f011862004-09-24 18:28:00 +000028866
28867cat >>confdefs.h <<\_ACEOF
28868#define HAVE_GNU_EXT_HASH_SET 1
28869_ACEOF
28870
28871 else
28872
28873cat >>confdefs.h <<\_ACEOF
28874#define HAVE_GNU_EXT_HASH_SET 0
28875_ACEOF
28876
Brian Gaeke90583492003-11-10 03:06:28 +000028877 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028878
Brian Gaeke90583492003-11-10 03:06:28 +000028879 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28880echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28881if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28882 echo $ECHO_N "(cached) $ECHO_C" >&6
28883else
28884
Brian Gaeke90583492003-11-10 03:06:28 +000028885 ac_ext=cc
28886ac_cpp='$CXXCPP $CPPFLAGS'
28887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28890
28891 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028892/* confdefs.h. */
28893_ACEOF
28894cat confdefs.h >>conftest.$ac_ext
28895cat >>conftest.$ac_ext <<_ACEOF
28896/* end confdefs.h. */
28897#include <hash_set>
28898int
28899main ()
28900{
John Criswell7a73b802003-06-30 21:59:07 +000028901hash_set<int> t; return 0;
28902 ;
28903 return 0;
28904}
28905_ACEOF
28906rm -f conftest.$ac_objext
28907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028908 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028909 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028910 grep -v '^ *+' conftest.er1 >conftest.err
28911 rm -f conftest.er1
28912 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028915 { ac_try='test -z "$ac_cxx_werror_flag"
28916 || test ! -s conftest.err'
28917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 (eval $ac_try) 2>&5
28919 ac_status=$?
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; } &&
28922 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924 (eval $ac_try) 2>&5
28925 ac_status=$?
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028928 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028929else
28930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028931sed 's/^/| /' conftest.$ac_ext >&5
28932
Brian Gaeke90583492003-11-10 03:06:28 +000028933ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028934fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028936 ac_ext=c
28937ac_cpp='$CPP $CPPFLAGS'
28938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28940ac_compiler_gnu=$ac_cv_c_compiler_gnu
28941
John Criswell7a73b802003-06-30 21:59:07 +000028942fi
Brian Gaeke90583492003-11-10 03:06:28 +000028943echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28944echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028945 if test "$ac_cv_cxx_have_global_hash_set" = yes
28946 then
John Criswell9f011862004-09-24 18:28:00 +000028947
28948cat >>confdefs.h <<\_ACEOF
28949#define HAVE_GLOBAL_HASH_SET 1
28950_ACEOF
28951
28952 else
28953
28954cat >>confdefs.h <<\_ACEOF
28955#define HAVE_GLOBAL_HASH_SET 0
28956_ACEOF
28957
Brian Gaeke90583492003-11-10 03:06:28 +000028958 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028959
John Criswell7a73b802003-06-30 21:59:07 +000028960echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28961echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28962if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28963 echo $ECHO_N "(cached) $ECHO_C" >&6
28964else
28965
John Criswell7a73b802003-06-30 21:59:07 +000028966 ac_ext=cc
28967ac_cpp='$CXXCPP $CPPFLAGS'
28968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28971
28972 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028973/* confdefs.h. */
28974_ACEOF
28975cat confdefs.h >>conftest.$ac_ext
28976cat >>conftest.$ac_ext <<_ACEOF
28977/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028978#include <iterator>
28979#ifdef HAVE_NAMESPACES
28980using namespace std;
28981#endif
John Criswell7a73b802003-06-30 21:59:07 +000028982int
28983main ()
28984{
28985iterator<int,int,int> t; return 0;
28986 ;
28987 return 0;
28988}
28989_ACEOF
28990rm -f conftest.$ac_objext
28991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028992 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028993 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028994 grep -v '^ *+' conftest.er1 >conftest.err
28995 rm -f conftest.er1
28996 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028999 { ac_try='test -z "$ac_cxx_werror_flag"
29000 || test ! -s conftest.err'
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29003 ac_status=$?
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; } &&
29006 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008 (eval $ac_try) 2>&5
29009 ac_status=$?
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; }; then
29012 ac_cv_cxx_have_std_iterator=yes
29013else
29014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029015sed 's/^/| /' conftest.$ac_ext >&5
29016
John Criswell7a73b802003-06-30 21:59:07 +000029017ac_cv_cxx_have_std_iterator=no
29018fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029020 ac_ext=c
29021ac_cpp='$CPP $CPPFLAGS'
29022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29024ac_compiler_gnu=$ac_cv_c_compiler_gnu
29025
29026
29027fi
29028echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29029echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029030if test "$ac_cv_cxx_have_std_iterator" = yes
29031then
John Criswell40468462004-09-24 21:19:06 +000029032
29033cat >>confdefs.h <<\_ACEOF
29034#define HAVE_STD_ITERATOR 1
29035_ACEOF
29036
29037else
29038
29039cat >>confdefs.h <<\_ACEOF
29040#define HAVE_STD_ITERATOR 0
29041_ACEOF
29042
John Criswell7a73b802003-06-30 21:59:07 +000029043fi
29044
29045echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29046echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29047if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29049else
29050
John Criswell7a73b802003-06-30 21:59:07 +000029051 ac_ext=cc
29052ac_cpp='$CXXCPP $CPPFLAGS'
29053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29056
29057 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029058/* confdefs.h. */
29059_ACEOF
29060cat confdefs.h >>conftest.$ac_ext
29061cat >>conftest.$ac_ext <<_ACEOF
29062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029063#include <iterator>
29064#ifdef HAVE_NAMESPACES
29065using namespace std;
29066#endif
John Criswell7a73b802003-06-30 21:59:07 +000029067int
29068main ()
29069{
John Criswellc78022e2003-07-29 19:11:58 +000029070bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029071 ;
29072 return 0;
29073}
29074_ACEOF
29075rm -f conftest.$ac_objext
29076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029077 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029079 grep -v '^ *+' conftest.er1 >conftest.err
29080 rm -f conftest.er1
29081 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029084 { ac_try='test -z "$ac_cxx_werror_flag"
29085 || test ! -s conftest.err'
29086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087 (eval $ac_try) 2>&5
29088 ac_status=$?
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; } &&
29091 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093 (eval $ac_try) 2>&5
29094 ac_status=$?
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); }; }; then
29097 ac_cv_cxx_have_bi_iterator=yes
29098else
29099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029100sed 's/^/| /' conftest.$ac_ext >&5
29101
John Criswell7a73b802003-06-30 21:59:07 +000029102ac_cv_cxx_have_bi_iterator=no
29103fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029105 ac_ext=c
29106ac_cpp='$CPP $CPPFLAGS'
29107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29109ac_compiler_gnu=$ac_cv_c_compiler_gnu
29110
29111
29112fi
29113echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29114echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029115if test "$ac_cv_cxx_have_bi_iterator" = yes
29116then
John Criswell40468462004-09-24 21:19:06 +000029117
29118cat >>confdefs.h <<\_ACEOF
29119#define HAVE_BI_ITERATOR 1
29120_ACEOF
29121
29122else
29123
29124cat >>confdefs.h <<\_ACEOF
29125#define HAVE_BI_ITERATOR 0
29126_ACEOF
29127
John Criswell7a73b802003-06-30 21:59:07 +000029128fi
29129
29130echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29131echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29132if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29133 echo $ECHO_N "(cached) $ECHO_C" >&6
29134else
29135
John Criswell7a73b802003-06-30 21:59:07 +000029136 ac_ext=cc
29137ac_cpp='$CXXCPP $CPPFLAGS'
29138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29141
29142 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029143/* confdefs.h. */
29144_ACEOF
29145cat confdefs.h >>conftest.$ac_ext
29146cat >>conftest.$ac_ext <<_ACEOF
29147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029148#include <iterator>
29149#ifdef HAVE_NAMESPACES
29150using namespace std;
29151#endif
John Criswell7a73b802003-06-30 21:59:07 +000029152int
29153main ()
29154{
John Criswellc78022e2003-07-29 19:11:58 +000029155forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029156 ;
29157 return 0;
29158}
29159_ACEOF
29160rm -f conftest.$ac_objext
29161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029162 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029164 grep -v '^ *+' conftest.er1 >conftest.err
29165 rm -f conftest.er1
29166 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029169 { ac_try='test -z "$ac_cxx_werror_flag"
29170 || test ! -s conftest.err'
29171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29172 (eval $ac_try) 2>&5
29173 ac_status=$?
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); }; } &&
29176 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178 (eval $ac_try) 2>&5
29179 ac_status=$?
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); }; }; then
29182 ac_cv_cxx_have_fwd_iterator=yes
29183else
29184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029185sed 's/^/| /' conftest.$ac_ext >&5
29186
John Criswell7a73b802003-06-30 21:59:07 +000029187ac_cv_cxx_have_fwd_iterator=no
29188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029190 ac_ext=c
29191ac_cpp='$CPP $CPPFLAGS'
29192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29194ac_compiler_gnu=$ac_cv_c_compiler_gnu
29195
29196
29197fi
29198echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29199echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029200if test "$ac_cv_cxx_have_fwd_iterator" = yes
29201then
John Criswell40468462004-09-24 21:19:06 +000029202
29203cat >>confdefs.h <<\_ACEOF
29204#define HAVE_FWD_ITERATOR 1
29205_ACEOF
29206
29207else
29208
29209cat >>confdefs.h <<\_ACEOF
29210#define HAVE_FWD_ITERATOR 0
29211_ACEOF
29212
John Criswell7a73b802003-06-30 21:59:07 +000029213fi
29214
29215
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029216echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29217echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29218if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29220else
29221 ac_ext=cc
29222ac_cpp='$CXXCPP $CPPFLAGS'
29223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29226
Reid Spencerabec8f92004-10-27 23:03:44 +000029227 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029228/* confdefs.h. */
29229_ACEOF
29230cat confdefs.h >>conftest.$ac_ext
29231cat >>conftest.$ac_ext <<_ACEOF
29232/* end confdefs.h. */
29233#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029234int
29235main ()
29236{
29237float f; isnan(f);
29238 ;
29239 return 0;
29240}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029241_ACEOF
29242rm -f conftest.$ac_objext
29243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029244 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029246 grep -v '^ *+' conftest.er1 >conftest.err
29247 rm -f conftest.er1
29248 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029251 { ac_try='test -z "$ac_cxx_werror_flag"
29252 || test ! -s conftest.err'
29253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254 (eval $ac_try) 2>&5
29255 ac_status=$?
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; } &&
29258 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29261 ac_status=$?
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; }; then
29264 ac_cv_func_isnan_in_math_h=yes
29265else
29266 echo "$as_me: failed program was:" >&5
29267sed 's/^/| /' conftest.$ac_ext >&5
29268
29269ac_cv_func_isnan_in_math_h=no
29270fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029272 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029273ac_cpp='$CPP $CPPFLAGS'
29274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29276ac_compiler_gnu=$ac_cv_c_compiler_gnu
29277
29278fi
29279echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29280echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029281
29282
29283if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029284
29285cat >>confdefs.h <<\_ACEOF
29286#define HAVE_ISNAN_IN_MATH_H 1
29287_ACEOF
29288
Reid Spencerabec8f92004-10-27 23:03:44 +000029289fi
29290
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029291echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29292echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29293if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29295else
29296 ac_ext=cc
29297ac_cpp='$CXXCPP $CPPFLAGS'
29298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29301
Reid Spencerabec8f92004-10-27 23:03:44 +000029302 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029303/* confdefs.h. */
29304_ACEOF
29305cat confdefs.h >>conftest.$ac_ext
29306cat >>conftest.$ac_ext <<_ACEOF
29307/* end confdefs.h. */
29308#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029309int
29310main ()
29311{
29312float f; isnan(f);
29313 ;
29314 return 0;
29315}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029316_ACEOF
29317rm -f conftest.$ac_objext
29318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029319 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029320 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029321 grep -v '^ *+' conftest.er1 >conftest.err
29322 rm -f conftest.er1
29323 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029326 { ac_try='test -z "$ac_cxx_werror_flag"
29327 || test ! -s conftest.err'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29330 ac_status=$?
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029334 { (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); }; }; then
29339 ac_cv_func_isnan_in_cmath=yes
29340else
29341 echo "$as_me: failed program was:" >&5
29342sed 's/^/| /' conftest.$ac_ext >&5
29343
29344ac_cv_func_isnan_in_cmath=no
29345fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029347 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029348ac_cpp='$CPP $CPPFLAGS'
29349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29351ac_compiler_gnu=$ac_cv_c_compiler_gnu
29352
29353fi
29354echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29355echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029356
29357if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029358
29359cat >>confdefs.h <<\_ACEOF
29360#define HAVE_ISNAN_IN_CMATH 1
29361_ACEOF
29362
Reid Spencerabec8f92004-10-27 23:03:44 +000029363fi
29364
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029365echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29366echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29367if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29369else
29370 ac_ext=cc
29371ac_cpp='$CXXCPP $CPPFLAGS'
29372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29375
Reid Spencerabec8f92004-10-27 23:03:44 +000029376 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029377/* confdefs.h. */
29378_ACEOF
29379cat confdefs.h >>conftest.$ac_ext
29380cat >>conftest.$ac_ext <<_ACEOF
29381/* end confdefs.h. */
29382#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029383int
29384main ()
29385{
29386float f; std::isnan(f);
29387 ;
29388 return 0;
29389}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029390_ACEOF
29391rm -f conftest.$ac_objext
29392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029393 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029395 grep -v '^ *+' conftest.er1 >conftest.err
29396 rm -f conftest.er1
29397 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029400 { ac_try='test -z "$ac_cxx_werror_flag"
29401 || test ! -s conftest.err'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; } &&
29407 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029408 { (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); }; }; then
29413 ac_cv_func_std_isnan_in_cmath=yes
29414else
29415 echo "$as_me: failed program was:" >&5
29416sed 's/^/| /' conftest.$ac_ext >&5
29417
29418ac_cv_func_std_isnan_in_cmath=no
29419fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029421 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029422ac_cpp='$CPP $CPPFLAGS'
29423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425ac_compiler_gnu=$ac_cv_c_compiler_gnu
29426
29427fi
29428echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29429echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029430
29431if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029432
29433cat >>confdefs.h <<\_ACEOF
29434#define HAVE_STD_ISNAN_IN_CMATH 1
29435_ACEOF
29436
Reid Spencerabec8f92004-10-27 23:03:44 +000029437fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029438
29439
Brian Gaeke52a551d2004-07-21 03:14:12 +000029440echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29441echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29442if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29444else
29445 ac_ext=cc
29446ac_cpp='$CXXCPP $CPPFLAGS'
29447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29450
Reid Spencerabec8f92004-10-27 23:03:44 +000029451 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029452/* confdefs.h. */
29453_ACEOF
29454cat confdefs.h >>conftest.$ac_ext
29455cat >>conftest.$ac_ext <<_ACEOF
29456/* end confdefs.h. */
29457#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029458int
29459main ()
29460{
29461float f; isinf(f);
29462 ;
29463 return 0;
29464}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029465_ACEOF
29466rm -f conftest.$ac_objext
29467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029468 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029475 { ac_try='test -z "$ac_cxx_werror_flag"
29476 || test ! -s conftest.err'
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29479 ac_status=$?
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; } &&
29482 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29485 ac_status=$?
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; }; then
29488 ac_cv_func_isinf_in_math_h=yes
29489else
29490 echo "$as_me: failed program was:" >&5
29491sed 's/^/| /' conftest.$ac_ext >&5
29492
29493ac_cv_func_isinf_in_math_h=no
29494fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029496 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029497ac_cpp='$CPP $CPPFLAGS'
29498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500ac_compiler_gnu=$ac_cv_c_compiler_gnu
29501
29502fi
29503echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29504echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029505
29506if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029507
29508cat >>confdefs.h <<\_ACEOF
29509#define HAVE_ISINF_IN_MATH_H 1
29510_ACEOF
29511
Reid Spencerabec8f92004-10-27 23:03:44 +000029512fi
29513
Brian Gaeke52a551d2004-07-21 03:14:12 +000029514echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29515echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29516if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29517 echo $ECHO_N "(cached) $ECHO_C" >&6
29518else
29519 ac_ext=cc
29520ac_cpp='$CXXCPP $CPPFLAGS'
29521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29524
Reid Spencerabec8f92004-10-27 23:03:44 +000029525 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029526/* confdefs.h. */
29527_ACEOF
29528cat confdefs.h >>conftest.$ac_ext
29529cat >>conftest.$ac_ext <<_ACEOF
29530/* end confdefs.h. */
29531#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029532int
29533main ()
29534{
29535float f; isinf(f);
29536 ;
29537 return 0;
29538}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029539_ACEOF
29540rm -f conftest.$ac_objext
29541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029542 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029544 grep -v '^ *+' conftest.er1 >conftest.err
29545 rm -f conftest.er1
29546 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029549 { ac_try='test -z "$ac_cxx_werror_flag"
29550 || test ! -s conftest.err'
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29553 ac_status=$?
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; } &&
29556 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29559 ac_status=$?
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; }; then
29562 ac_cv_func_isinf_in_cmath=yes
29563else
29564 echo "$as_me: failed program was:" >&5
29565sed 's/^/| /' conftest.$ac_ext >&5
29566
29567ac_cv_func_isinf_in_cmath=no
29568fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029570 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029571ac_cpp='$CPP $CPPFLAGS'
29572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29574ac_compiler_gnu=$ac_cv_c_compiler_gnu
29575
29576fi
29577echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29578echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029579
29580if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029581
29582cat >>confdefs.h <<\_ACEOF
29583#define HAVE_ISINF_IN_CMATH 1
29584_ACEOF
29585
Reid Spencerabec8f92004-10-27 23:03:44 +000029586fi
29587
Brian Gaeke52a551d2004-07-21 03:14:12 +000029588echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29589echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29590if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29592else
29593 ac_ext=cc
29594ac_cpp='$CXXCPP $CPPFLAGS'
29595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29598
Reid Spencerabec8f92004-10-27 23:03:44 +000029599 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029600/* confdefs.h. */
29601_ACEOF
29602cat confdefs.h >>conftest.$ac_ext
29603cat >>conftest.$ac_ext <<_ACEOF
29604/* end confdefs.h. */
29605#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029606int
29607main ()
29608{
29609float f; std::isinf(f)}
29610 ;
29611 return 0;
29612}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029613_ACEOF
29614rm -f conftest.$ac_objext
29615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029616 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029618 grep -v '^ *+' conftest.er1 >conftest.err
29619 rm -f conftest.er1
29620 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029623 { ac_try='test -z "$ac_cxx_werror_flag"
29624 || test ! -s conftest.err'
29625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626 (eval $ac_try) 2>&5
29627 ac_status=$?
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; } &&
29630 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632 (eval $ac_try) 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; }; then
29636 ac_cv_func_std_isinf_in_cmath=yes
29637else
29638 echo "$as_me: failed program was:" >&5
29639sed 's/^/| /' conftest.$ac_ext >&5
29640
29641ac_cv_func_std_isinf_in_cmath=no
29642fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029644 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029645ac_cpp='$CPP $CPPFLAGS'
29646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29648ac_compiler_gnu=$ac_cv_c_compiler_gnu
29649
29650fi
29651echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29652echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029653
29654if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029655
29656cat >>confdefs.h <<\_ACEOF
29657#define HAVE_STD_ISINF_IN_CMATH 1
29658_ACEOF
29659
Reid Spencerabec8f92004-10-27 23:03:44 +000029660fi
29661
Brian Gaeked59a6472004-07-21 03:33:58 +000029662echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29663echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29664if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29666else
29667 ac_ext=cc
29668ac_cpp='$CXXCPP $CPPFLAGS'
29669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29672
Reid Spencerabec8f92004-10-27 23:03:44 +000029673 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029674/* confdefs.h. */
29675_ACEOF
29676cat confdefs.h >>conftest.$ac_ext
29677cat >>conftest.$ac_ext <<_ACEOF
29678/* end confdefs.h. */
29679#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029680int
29681main ()
29682{
29683float f; finite(f);
29684 ;
29685 return 0;
29686}
Brian Gaeked59a6472004-07-21 03:33:58 +000029687_ACEOF
29688rm -f conftest.$ac_objext
29689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029690 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029692 grep -v '^ *+' conftest.er1 >conftest.err
29693 rm -f conftest.er1
29694 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029697 { ac_try='test -z "$ac_cxx_werror_flag"
29698 || test ! -s conftest.err'
29699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; } &&
29704 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706 (eval $ac_try) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; }; then
29710 ac_cv_func_finite_in_ieeefp_h=yes
29711else
29712 echo "$as_me: failed program was:" >&5
29713sed 's/^/| /' conftest.$ac_ext >&5
29714
29715ac_cv_func_finite_in_ieeefp_h=no
29716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029718 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029719ac_cpp='$CPP $CPPFLAGS'
29720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29722ac_compiler_gnu=$ac_cv_c_compiler_gnu
29723
29724fi
29725echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29726echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029727
Brian Gaeke6802b552004-10-28 05:06:45 +000029728if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029729
29730cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029731#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029732_ACEOF
29733
Reid Spencerabec8f92004-10-27 23:03:44 +000029734fi
29735
29736
29737
John Criswell7a73b802003-06-30 21:59:07 +000029738
29739
29740for ac_header in stdlib.h unistd.h
29741do
29742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29743if eval "test \"\${$as_ac_Header+set}\" = set"; then
29744 echo "$as_me:$LINENO: checking for $ac_header" >&5
29745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29746if eval "test \"\${$as_ac_Header+set}\" = set"; then
29747 echo $ECHO_N "(cached) $ECHO_C" >&6
29748fi
29749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29751else
29752 # Is the header compilable?
29753echo "$as_me:$LINENO: checking $ac_header usability" >&5
29754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29755cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029756/* confdefs.h. */
29757_ACEOF
29758cat confdefs.h >>conftest.$ac_ext
29759cat >>conftest.$ac_ext <<_ACEOF
29760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029761$ac_includes_default
29762#include <$ac_header>
29763_ACEOF
29764rm -f conftest.$ac_objext
29765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029766 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029767 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029768 grep -v '^ *+' conftest.er1 >conftest.err
29769 rm -f conftest.er1
29770 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029773 { ac_try='test -z "$ac_c_werror_flag"
29774 || test ! -s conftest.err'
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786 ac_header_compiler=yes
29787else
29788 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029789sed 's/^/| /' conftest.$ac_ext >&5
29790
John Criswell7a73b802003-06-30 21:59:07 +000029791ac_header_compiler=no
29792fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029794echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29795echo "${ECHO_T}$ac_header_compiler" >&6
29796
29797# Is the header present?
29798echo "$as_me:$LINENO: checking $ac_header presence" >&5
29799echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29800cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029801/* confdefs.h. */
29802_ACEOF
29803cat confdefs.h >>conftest.$ac_ext
29804cat >>conftest.$ac_ext <<_ACEOF
29805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029806#include <$ac_header>
29807_ACEOF
29808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29810 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029811 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029812 rm -f conftest.er1
29813 cat conftest.err >&5
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); } >/dev/null; then
29816 if test -s conftest.err; then
29817 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029819 else
29820 ac_cpp_err=
29821 fi
29822else
29823 ac_cpp_err=yes
29824fi
29825if test -z "$ac_cpp_err"; then
29826 ac_header_preproc=yes
29827else
29828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029829sed 's/^/| /' conftest.$ac_ext >&5
29830
John Criswell7a73b802003-06-30 21:59:07 +000029831 ac_header_preproc=no
29832fi
29833rm -f conftest.err conftest.$ac_ext
29834echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29835echo "${ECHO_T}$ac_header_preproc" >&6
29836
29837# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29839 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29841echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29843echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29844 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029845 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029846 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29852echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29854echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29858echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029859 (
29860 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029861## ----------------------------------- ##
29862## Report this to llvmbugs@cs.uiuc.edu ##
29863## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029864_ASBOX
29865 ) |
29866 sed "s/^/$as_me: WARNING: /" >&2
29867 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029868esac
29869echo "$as_me:$LINENO: checking for $ac_header" >&5
29870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29871if eval "test \"\${$as_ac_Header+set}\" = set"; then
29872 echo $ECHO_N "(cached) $ECHO_C" >&6
29873else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029874 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029875fi
29876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29878
29879fi
29880if test `eval echo '${'$as_ac_Header'}'` = yes; then
29881 cat >>confdefs.h <<_ACEOF
29882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29883_ACEOF
29884
29885fi
29886
29887done
29888
29889
29890for ac_func in getpagesize
29891do
29892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29893echo "$as_me:$LINENO: checking for $ac_func" >&5
29894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29895if eval "test \"\${$as_ac_var+set}\" = set"; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897else
29898 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029899/* confdefs.h. */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29906#define $ac_func innocuous_$ac_func
29907
John Criswell7a73b802003-06-30 21:59:07 +000029908/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029909 which can conflict with char $ac_func (); below.
29910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29911 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029912
John Criswell0c38eaf2003-09-10 15:17:25 +000029913#ifdef __STDC__
29914# include <limits.h>
29915#else
29916# include <assert.h>
29917#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029918
29919#undef $ac_func
29920
John Criswell7a73b802003-06-30 21:59:07 +000029921/* Override any gcc2 internal prototype to avoid an error. */
29922#ifdef __cplusplus
29923extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029924{
John Criswell7a73b802003-06-30 21:59:07 +000029925#endif
29926/* We use char because int might match the return type of a gcc2
29927 builtin and then its argument prototype would still apply. */
29928char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029929/* The GNU C library defines this for functions which it implements
29930 to always fail with ENOSYS. Some functions are actually named
29931 something starting with __ and the normal name is an alias. */
29932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29933choke me
29934#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029935char (*f) () = $ac_func;
29936#endif
29937#ifdef __cplusplus
29938}
John Criswell7a73b802003-06-30 21:59:07 +000029939#endif
29940
John Criswell0c38eaf2003-09-10 15:17:25 +000029941int
29942main ()
29943{
29944return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029945 ;
29946 return 0;
29947}
29948_ACEOF
29949rm -f conftest.$ac_objext conftest$ac_exeext
29950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029951 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029952 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029953 grep -v '^ *+' conftest.er1 >conftest.err
29954 rm -f conftest.er1
29955 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029958 { ac_try='test -z "$ac_c_werror_flag"
29959 || test ! -s conftest.err'
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967 (eval $ac_try) 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
29971 eval "$as_ac_var=yes"
29972else
29973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029974sed 's/^/| /' conftest.$ac_ext >&5
29975
John Criswell7a73b802003-06-30 21:59:07 +000029976eval "$as_ac_var=no"
29977fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029978rm -f conftest.err conftest.$ac_objext \
29979 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029980fi
29981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29983if test `eval echo '${'$as_ac_var'}'` = yes; then
29984 cat >>confdefs.h <<_ACEOF
29985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29986_ACEOF
29987
29988fi
29989done
29990
29991echo "$as_me:$LINENO: checking for working mmap" >&5
29992echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29993if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29994 echo $ECHO_N "(cached) $ECHO_C" >&6
29995else
29996 if test "$cross_compiling" = yes; then
29997 ac_cv_func_mmap_fixed_mapped=no
29998else
29999 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030000/* confdefs.h. */
30001_ACEOF
30002cat confdefs.h >>conftest.$ac_ext
30003cat >>conftest.$ac_ext <<_ACEOF
30004/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030005$ac_includes_default
30006/* malloc might have been renamed as rpl_malloc. */
30007#undef malloc
30008
30009/* Thanks to Mike Haertel and Jim Avera for this test.
30010 Here is a matrix of mmap possibilities:
30011 mmap private not fixed
30012 mmap private fixed at somewhere currently unmapped
30013 mmap private fixed at somewhere already mapped
30014 mmap shared not fixed
30015 mmap shared fixed at somewhere currently unmapped
30016 mmap shared fixed at somewhere already mapped
30017 For private mappings, we should verify that changes cannot be read()
30018 back from the file, nor mmap's back from the file at a different
30019 address. (There have been systems where private was not correctly
30020 implemented like the infamous i386 svr4.0, and systems where the
30021 VM page cache was not coherent with the file system buffer cache
30022 like early versions of FreeBSD and possibly contemporary NetBSD.)
30023 For shared mappings, we should conversely verify that changes get
30024 propagated back to all the places they're supposed to be.
30025
30026 Grep wants private fixed already mapped.
30027 The main things grep needs to know about mmap are:
30028 * does it exist and is it safe to write into the mmap'd area
30029 * how to use it (BSD variants) */
30030
30031#include <fcntl.h>
30032#include <sys/mman.h>
30033
30034#if !STDC_HEADERS && !HAVE_STDLIB_H
30035char *malloc ();
30036#endif
30037
30038/* This mess was copied from the GNU getpagesize.h. */
30039#if !HAVE_GETPAGESIZE
30040/* Assume that all systems that can run configure have sys/param.h. */
30041# if !HAVE_SYS_PARAM_H
30042# define HAVE_SYS_PARAM_H 1
30043# endif
30044
30045# ifdef _SC_PAGESIZE
30046# define getpagesize() sysconf(_SC_PAGESIZE)
30047# else /* no _SC_PAGESIZE */
30048# if HAVE_SYS_PARAM_H
30049# include <sys/param.h>
30050# ifdef EXEC_PAGESIZE
30051# define getpagesize() EXEC_PAGESIZE
30052# else /* no EXEC_PAGESIZE */
30053# ifdef NBPG
30054# define getpagesize() NBPG * CLSIZE
30055# ifndef CLSIZE
30056# define CLSIZE 1
30057# endif /* no CLSIZE */
30058# else /* no NBPG */
30059# ifdef NBPC
30060# define getpagesize() NBPC
30061# else /* no NBPC */
30062# ifdef PAGESIZE
30063# define getpagesize() PAGESIZE
30064# endif /* PAGESIZE */
30065# endif /* no NBPC */
30066# endif /* no NBPG */
30067# endif /* no EXEC_PAGESIZE */
30068# else /* no HAVE_SYS_PARAM_H */
30069# define getpagesize() 8192 /* punt totally */
30070# endif /* no HAVE_SYS_PARAM_H */
30071# endif /* no _SC_PAGESIZE */
30072
30073#endif /* no HAVE_GETPAGESIZE */
30074
30075int
30076main ()
30077{
30078 char *data, *data2, *data3;
30079 int i, pagesize;
30080 int fd;
30081
30082 pagesize = getpagesize ();
30083
30084 /* First, make a file with some known garbage in it. */
30085 data = (char *) malloc (pagesize);
30086 if (!data)
30087 exit (1);
30088 for (i = 0; i < pagesize; ++i)
30089 *(data + i) = rand ();
30090 umask (0);
30091 fd = creat ("conftest.mmap", 0600);
30092 if (fd < 0)
30093 exit (1);
30094 if (write (fd, data, pagesize) != pagesize)
30095 exit (1);
30096 close (fd);
30097
30098 /* Next, try to mmap the file at a fixed address which already has
30099 something else allocated at it. If we can, also make sure that
30100 we see the same garbage. */
30101 fd = open ("conftest.mmap", O_RDWR);
30102 if (fd < 0)
30103 exit (1);
30104 data2 = (char *) malloc (2 * pagesize);
30105 if (!data2)
30106 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030107 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030108 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030109 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030110 exit (1);
30111 for (i = 0; i < pagesize; ++i)
30112 if (*(data + i) != *(data2 + i))
30113 exit (1);
30114
30115 /* Finally, make sure that changes to the mapped area do not
30116 percolate back to the file as seen by read(). (This is a bug on
30117 some variants of i386 svr4.0.) */
30118 for (i = 0; i < pagesize; ++i)
30119 *(data2 + i) = *(data2 + i) + 1;
30120 data3 = (char *) malloc (pagesize);
30121 if (!data3)
30122 exit (1);
30123 if (read (fd, data3, pagesize) != pagesize)
30124 exit (1);
30125 for (i = 0; i < pagesize; ++i)
30126 if (*(data + i) != *(data3 + i))
30127 exit (1);
30128 close (fd);
30129 exit (0);
30130}
30131_ACEOF
30132rm -f conftest$ac_exeext
30133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30134 (eval $ac_link) 2>&5
30135 ac_status=$?
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139 (eval $ac_try) 2>&5
30140 ac_status=$?
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; }; then
30143 ac_cv_func_mmap_fixed_mapped=yes
30144else
30145 echo "$as_me: program exited with status $ac_status" >&5
30146echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030147sed 's/^/| /' conftest.$ac_ext >&5
30148
John Criswell7a73b802003-06-30 21:59:07 +000030149( exit $ac_status )
30150ac_cv_func_mmap_fixed_mapped=no
30151fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030152rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030153fi
30154fi
30155echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30156echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30157if test $ac_cv_func_mmap_fixed_mapped = yes; then
30158
30159cat >>confdefs.h <<\_ACEOF
30160#define HAVE_MMAP 1
30161_ACEOF
30162
30163fi
30164rm -f conftest.mmap
30165
30166echo "$as_me:$LINENO: checking for mmap of files" >&5
30167echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30168if test "${ac_cv_func_mmap_file+set}" = set; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30170else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030171 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030172ac_cpp='$CPP $CPPFLAGS'
30173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30175ac_compiler_gnu=$ac_cv_c_compiler_gnu
30176
30177 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030178 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030179else
30180 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030181
Reid Spencer777ce172004-09-20 04:09:56 +000030182 /* confdefs.h. */
30183_ACEOF
30184cat confdefs.h >>conftest.$ac_ext
30185cat >>conftest.$ac_ext <<_ACEOF
30186/* end confdefs.h. */
30187
John Criswell7a73b802003-06-30 21:59:07 +000030188#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030189#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030190#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030191
30192int
30193main ()
30194{
John Criswell7a73b802003-06-30 21:59:07 +000030195
30196 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030197 fd = creat ("foo",0777);
30198 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30199 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030200 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030201 ;
30202 return 0;
30203}
John Criswell7a73b802003-06-30 21:59:07 +000030204_ACEOF
30205rm -f conftest$ac_exeext
30206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30207 (eval $ac_link) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212 (eval $ac_try) 2>&5
30213 ac_status=$?
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
30216 ac_cv_func_mmap_file=yes
30217else
30218 echo "$as_me: program exited with status $ac_status" >&5
30219echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030220sed 's/^/| /' conftest.$ac_ext >&5
30221
John Criswell7a73b802003-06-30 21:59:07 +000030222( exit $ac_status )
30223ac_cv_func_mmap_file=no
30224fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030225rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030226fi
30227 ac_ext=c
30228ac_cpp='$CPP $CPPFLAGS'
30229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30231ac_compiler_gnu=$ac_cv_c_compiler_gnu
30232
30233
30234fi
30235echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30236echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30237if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030238
30239cat >>confdefs.h <<\_ACEOF
30240#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030241_ACEOF
30242
30243 MMAP_FILE=yes
30244
30245fi
30246
Reid Spencer7931a782004-12-27 06:15:02 +000030247echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30248echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30249if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30251else
Reid Spencer582a23c2004-12-29 07:07:57 +000030252 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030253 ac_cv_need_dev_zero_for_mmap=yes
30254 else
30255 ac_cv_need_dev_zero_for_mmap=no
30256 fi
30257
30258fi
30259echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30260echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30261if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30262
30263cat >>confdefs.h <<\_ACEOF
30264#define NEED_DEV_ZERO_FOR_MMAP 1
30265_ACEOF
30266
30267fi
John Criswell7a73b802003-06-30 21:59:07 +000030268echo "$as_me:$LINENO: checking for mprotect" >&5
30269echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30270if test "${ac_cv_func_mprotect+set}" = set; then
30271 echo $ECHO_N "(cached) $ECHO_C" >&6
30272else
30273 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030274/* confdefs.h. */
30275_ACEOF
30276cat confdefs.h >>conftest.$ac_ext
30277cat >>conftest.$ac_ext <<_ACEOF
30278/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030279/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30281#define mprotect innocuous_mprotect
30282
John Criswell7a73b802003-06-30 21:59:07 +000030283/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030284 which can conflict with char mprotect (); below.
30285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30286 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030287
John Criswell0c38eaf2003-09-10 15:17:25 +000030288#ifdef __STDC__
30289# include <limits.h>
30290#else
30291# include <assert.h>
30292#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030293
30294#undef mprotect
30295
John Criswell7a73b802003-06-30 21:59:07 +000030296/* Override any gcc2 internal prototype to avoid an error. */
30297#ifdef __cplusplus
30298extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030299{
John Criswell7a73b802003-06-30 21:59:07 +000030300#endif
30301/* We use char because int might match the return type of a gcc2
30302 builtin and then its argument prototype would still apply. */
30303char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030304/* The GNU C library defines this for functions which it implements
30305 to always fail with ENOSYS. Some functions are actually named
30306 something starting with __ and the normal name is an alias. */
30307#if defined (__stub_mprotect) || defined (__stub___mprotect)
30308choke me
30309#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030310char (*f) () = mprotect;
30311#endif
30312#ifdef __cplusplus
30313}
John Criswell7a73b802003-06-30 21:59:07 +000030314#endif
30315
John Criswell0c38eaf2003-09-10 15:17:25 +000030316int
30317main ()
30318{
30319return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030320 ;
30321 return 0;
30322}
30323_ACEOF
30324rm -f conftest.$ac_objext conftest$ac_exeext
30325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030326 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030327 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030328 grep -v '^ *+' conftest.er1 >conftest.err
30329 rm -f conftest.er1
30330 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030333 { ac_try='test -z "$ac_c_werror_flag"
30334 || test ! -s conftest.err'
30335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336 (eval $ac_try) 2>&5
30337 ac_status=$?
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); }; } &&
30340 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30342 (eval $ac_try) 2>&5
30343 ac_status=$?
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; }; then
30346 ac_cv_func_mprotect=yes
30347else
30348 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030349sed 's/^/| /' conftest.$ac_ext >&5
30350
John Criswell7a73b802003-06-30 21:59:07 +000030351ac_cv_func_mprotect=no
30352fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030353rm -f conftest.err conftest.$ac_objext \
30354 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030355fi
30356echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30357echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30358if test $ac_cv_func_mprotect = yes; then
30359 :
30360else
30361 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30362echo "$as_me: error: Function mprotect() required but not found" >&2;}
30363 { (exit 1); exit 1; }; }
30364fi
30365
30366
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030367if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030368then
Reid Spencer582a23c2004-12-29 07:07:57 +000030369 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30370echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030371fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030372if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030373then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030374 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30375echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030376fi
John Criswell7a73b802003-06-30 21:59:07 +000030377
30378
Brian Gaekef3b24102003-11-16 18:38:14 +000030379echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30380echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030381if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30382 echo $ECHO_N "(cached) $ECHO_C" >&6
30383else
30384 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030385if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030386 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030387 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030388 if test $? -eq 0 ; then
30389 llvm_cv_llvmgcc_sanity="yes"
30390 fi
30391 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030392fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030393fi
30394echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30395echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30396
30397if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030398 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030399 LLVMCC1=$llvmcc1path
30400
Reid Spencer502935f2004-12-22 05:56:56 +000030401 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030402 LLVMCC1PLUS=$llvmcc1pluspath
30403
Reid Spencer502935f2004-12-22 05:56:56 +000030404 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30405 LLVMGCCDIR=$llvmgccdir
30406
Brian Gaekef3b24102003-11-16 18:38:14 +000030407fi
30408
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030409SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030410
30411
Reid Spencere9de0912004-08-20 09:03:57 +000030412# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030413# information into substitutions that will end up in Makefile.config.in
30414# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030415eval LLVM_PREFIX="${prefix}";
30416eval LLVM_BINDIR="${prefix}/bin";
30417eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030418eval LLVM_DATADIR="${prefix}/share/llvm";
30419eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30420eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030421eval LLVM_INCLUDEDIR="${prefix}/include";
30422eval LLVM_INFODIR="${prefix}/info";
30423eval LLVM_MANDIR="${prefix}/man";
30424LLVM_CONFIGTIME=`date`
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030436# Place the various directores into the config.h file as #defines so that we
30437# can know about the installation paths within LLVM.
30438
Reid Spencere9de0912004-08-20 09:03:57 +000030439cat >>confdefs.h <<_ACEOF
30440#define LLVM_PREFIX "$LLVM_PREFIX"
30441_ACEOF
30442
30443
30444cat >>confdefs.h <<_ACEOF
30445#define LLVM_BINDIR "$LLVM_BINDIR"
30446_ACEOF
30447
30448
30449cat >>confdefs.h <<_ACEOF
30450#define LLVM_LIBDIR "$LLVM_LIBDIR"
30451_ACEOF
30452
30453
30454cat >>confdefs.h <<_ACEOF
30455#define LLVM_DATADIR "$LLVM_DATADIR"
30456_ACEOF
30457
30458
30459cat >>confdefs.h <<_ACEOF
30460#define LLVM_DATADIR "$LLVM_DOCSDIR"
30461_ACEOF
30462
30463
30464cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030465#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030466_ACEOF
30467
30468
30469cat >>confdefs.h <<_ACEOF
30470#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30471_ACEOF
30472
30473
30474cat >>confdefs.h <<_ACEOF
30475#define LLVM_INFODIR "$LLVM_INFODIR"
30476_ACEOF
30477
30478
30479cat >>confdefs.h <<_ACEOF
30480#define LLVM_MANDIR "$LLVM_MANDIR"
30481_ACEOF
30482
30483
30484cat >>confdefs.h <<_ACEOF
30485#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30486_ACEOF
30487
30488
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030489
30490 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30491
30492
30493 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30494
30495 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30496
30497 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30498
30499 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30500
30501 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30502
30503
30504 ac_config_files="$ac_config_files Makefile.config"
30505
30506
Reid Spencer1f319422004-11-29 04:56:35 +000030507 ac_config_files="$ac_config_files docs/doxygen.cfg"
30508
30509
Reid Spencerc0682832005-02-24 19:05:19 +000030510 ac_config_commands="$ac_config_commands setup"
30511
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030512 ac_config_commands="$ac_config_commands Makefile"
30513
30514
30515 ac_config_commands="$ac_config_commands Makefile.common"
30516
30517
30518 ac_config_commands="$ac_config_commands examples/Makefile"
30519
30520
30521 ac_config_commands="$ac_config_commands lib/Makefile"
30522
30523
30524 ac_config_commands="$ac_config_commands runtime/Makefile"
30525
30526
30527 ac_config_commands="$ac_config_commands test/Makefile"
30528
30529
30530 ac_config_commands="$ac_config_commands test/Makefile.tests"
30531
30532
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030533 ac_config_commands="$ac_config_commands tools/Makefile"
30534
30535
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030536 ac_config_commands="$ac_config_commands utils/Makefile"
30537
30538
30539 ac_config_commands="$ac_config_commands projects/Makefile"
30540
30541
30542
John Criswell7a73b802003-06-30 21:59:07 +000030543cat >confcache <<\_ACEOF
30544# This file is a shell script that caches the results of configure
30545# tests run on this system so they can be shared between configure
30546# scripts and configure runs, see configure's option --config-cache.
30547# It is not useful on other systems. If it contains results you don't
30548# want to keep, you may remove or edit it.
30549#
30550# config.status only pays attention to the cache file if you give it
30551# the --recheck option to rerun configure.
30552#
John Criswell0c38eaf2003-09-10 15:17:25 +000030553# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030554# loading this file, other *unset* `ac_cv_foo' will be assigned the
30555# following values.
30556
30557_ACEOF
30558
30559# The following way of writing the cache mishandles newlines in values,
30560# but we know of no workaround that is simple, portable, and efficient.
30561# So, don't put newlines in cache variables' values.
30562# Ultrix sh set writes to stderr and can't be redirected directly,
30563# and sets the high bit in the cache file unless we assign to the vars.
30564{
30565 (set) 2>&1 |
30566 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30567 *ac_space=\ *)
30568 # `set' does not quote correctly, so add quotes (double-quote
30569 # substitution turns \\\\ into \\, and sed turns \\ into \).
30570 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030571 "s/'/'\\\\''/g;
30572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030573 ;;
30574 *)
30575 # `set' quotes correctly as required by POSIX, so do not add quotes.
30576 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030577 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030578 ;;
30579 esac;
30580} |
30581 sed '
30582 t clear
30583 : clear
30584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30585 t end
30586 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30587 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030588if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030589 if test -w $cache_file; then
30590 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30591 cat confcache >$cache_file
30592 else
30593 echo "not updating unwritable cache $cache_file"
30594 fi
30595fi
30596rm -f confcache
30597
30598test "x$prefix" = xNONE && prefix=$ac_default_prefix
30599# Let make expand exec_prefix.
30600test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30601
30602# VPATH may cause trouble with some makes, so we remove $(srcdir),
30603# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30604# trailing colons and then remove the whole line if VPATH becomes empty
30605# (actually we leave an empty line to preserve line numbers).
30606if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030607 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030608s/:*\$(srcdir):*/:/;
30609s/:*\${srcdir}:*/:/;
30610s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030611s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030612s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030613s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030614}'
30615fi
30616
30617DEFS=-DHAVE_CONFIG_H
30618
John Criswell0c38eaf2003-09-10 15:17:25 +000030619ac_libobjs=
30620ac_ltlibobjs=
30621for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30622 # 1. Remove the extension, and $U if already installed.
30623 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030624 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030625 # 2. Add them.
30626 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30627 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30628done
30629LIBOBJS=$ac_libobjs
30630
30631LTLIBOBJS=$ac_ltlibobjs
30632
30633
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030634if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30635 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30636Usually this means the macro was only invoked conditionally." >&5
30637echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30638Usually this means the macro was only invoked conditionally." >&2;}
30639 { (exit 1); exit 1; }; }
30640fi
30641if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30642 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30643Usually this means the macro was only invoked conditionally." >&5
30644echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30645Usually this means the macro was only invoked conditionally." >&2;}
30646 { (exit 1); exit 1; }; }
30647fi
John Criswell7a73b802003-06-30 21:59:07 +000030648
30649: ${CONFIG_STATUS=./config.status}
30650ac_clean_files_save=$ac_clean_files
30651ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30652{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30653echo "$as_me: creating $CONFIG_STATUS" >&6;}
30654cat >$CONFIG_STATUS <<_ACEOF
30655#! $SHELL
30656# Generated by $as_me.
30657# Run this file to recreate the current configuration.
30658# Compiler output produced by configure, useful for debugging
30659# configure, is in config.log if it exists.
30660
30661debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030662ac_cs_recheck=false
30663ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030664SHELL=\${CONFIG_SHELL-$SHELL}
30665_ACEOF
30666
30667cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030668## --------------------- ##
30669## M4sh Initialization. ##
30670## --------------------- ##
30671
30672# Be Bourne compatible
30673if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30674 emulate sh
30675 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030676 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30677 # is contrary to our usage. Disable this feature.
30678 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030679elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30680 set -o posix
30681fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030682DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030683
John Criswell7a73b802003-06-30 21:59:07 +000030684# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030685if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030686 as_unset=unset
30687else
30688 as_unset=false
30689fi
30690
John Criswell0c38eaf2003-09-10 15:17:25 +000030691
30692# Work around bugs in pre-3.0 UWIN ksh.
30693$as_unset ENV MAIL MAILPATH
30694PS1='$ '
30695PS2='> '
30696PS4='+ '
30697
30698# NLS nuisances.
30699for as_var in \
30700 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30701 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30702 LC_TELEPHONE LC_TIME
30703do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030704 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030705 eval $as_var=C; export $as_var
30706 else
30707 $as_unset $as_var
30708 fi
30709done
30710
30711# Required to use basename.
30712if expr a : '\(a\)' >/dev/null 2>&1; then
30713 as_expr=expr
30714else
30715 as_expr=false
30716fi
30717
30718if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30719 as_basename=basename
30720else
30721 as_basename=false
30722fi
John Criswell7a73b802003-06-30 21:59:07 +000030723
30724
30725# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030726as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030727$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30728 X"$0" : 'X\(//\)$' \| \
30729 X"$0" : 'X\(/\)$' \| \
30730 . : '\(.\)' 2>/dev/null ||
30731echo X/"$0" |
30732 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30733 /^X\/\(\/\/\)$/{ s//\1/; q; }
30734 /^X\/\(\/\).*/{ s//\1/; q; }
30735 s/.*/./; q'`
30736
John Criswell0c38eaf2003-09-10 15:17:25 +000030737
John Criswell7a73b802003-06-30 21:59:07 +000030738# PATH needs CR, and LINENO needs CR and PATH.
30739# Avoid depending upon Character Ranges.
30740as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30741as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30742as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30743as_cr_digits='0123456789'
30744as_cr_alnum=$as_cr_Letters$as_cr_digits
30745
30746# The user is always right.
30747if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030748 echo "#! /bin/sh" >conf$$.sh
30749 echo "exit 0" >>conf$$.sh
30750 chmod +x conf$$.sh
30751 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030752 PATH_SEPARATOR=';'
30753 else
30754 PATH_SEPARATOR=:
30755 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030756 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030757fi
30758
30759
30760 as_lineno_1=$LINENO
30761 as_lineno_2=$LINENO
30762 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30763 test "x$as_lineno_1" != "x$as_lineno_2" &&
30764 test "x$as_lineno_3" = "x$as_lineno_2" || {
30765 # Find who we are. Look in the path if we contain no path at all
30766 # relative or not.
30767 case $0 in
30768 *[\\/]* ) as_myself=$0 ;;
30769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30770for as_dir in $PATH
30771do
30772 IFS=$as_save_IFS
30773 test -z "$as_dir" && as_dir=.
30774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30775done
30776
30777 ;;
30778 esac
30779 # We did not find ourselves, most probably we were run as `sh COMMAND'
30780 # in which case we are not to be found in the path.
30781 if test "x$as_myself" = x; then
30782 as_myself=$0
30783 fi
30784 if test ! -f "$as_myself"; then
30785 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30786echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30787 { (exit 1); exit 1; }; }
30788 fi
30789 case $CONFIG_SHELL in
30790 '')
30791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30792for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30793do
30794 IFS=$as_save_IFS
30795 test -z "$as_dir" && as_dir=.
30796 for as_base in sh bash ksh sh5; do
30797 case $as_dir in
30798 /*)
30799 if ("$as_dir/$as_base" -c '
30800 as_lineno_1=$LINENO
30801 as_lineno_2=$LINENO
30802 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30803 test "x$as_lineno_1" != "x$as_lineno_2" &&
30804 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030805 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30806 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030807 CONFIG_SHELL=$as_dir/$as_base
30808 export CONFIG_SHELL
30809 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30810 fi;;
30811 esac
30812 done
30813done
30814;;
30815 esac
30816
30817 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30818 # uniformly replaced by the line number. The first 'sed' inserts a
30819 # line-number line before each line; the second 'sed' does the real
30820 # work. The second script uses 'N' to pair each line-number line
30821 # with the numbered line, and appends trailing '-' during
30822 # substitution so that $LINENO is not a special case at line end.
30823 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30824 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30825 sed '=' <$as_myself |
30826 sed '
30827 N
30828 s,$,-,
30829 : loop
30830 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30831 t loop
30832 s,-$,,
30833 s,^['$as_cr_digits']*\n,,
30834 ' >$as_me.lineno &&
30835 chmod +x $as_me.lineno ||
30836 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30837echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30838 { (exit 1); exit 1; }; }
30839
30840 # Don't try to exec as it changes $[0], causing all sort of problems
30841 # (the dirname of $[0] is not the place where we might find the
30842 # original and so on. Autoconf is especially sensible to this).
30843 . ./$as_me.lineno
30844 # Exit status is that of the last command.
30845 exit
30846}
30847
30848
30849case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30850 *c*,-n*) ECHO_N= ECHO_C='
30851' ECHO_T=' ' ;;
30852 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30853 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30854esac
30855
30856if expr a : '\(a\)' >/dev/null 2>&1; then
30857 as_expr=expr
30858else
30859 as_expr=false
30860fi
30861
30862rm -f conf$$ conf$$.exe conf$$.file
30863echo >conf$$.file
30864if ln -s conf$$.file conf$$ 2>/dev/null; then
30865 # We could just check for DJGPP; but this test a) works b) is more generic
30866 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30867 if test -f conf$$.exe; then
30868 # Don't use ln at all; we don't have any links
30869 as_ln_s='cp -p'
30870 else
30871 as_ln_s='ln -s'
30872 fi
30873elif ln conf$$.file conf$$ 2>/dev/null; then
30874 as_ln_s=ln
30875else
30876 as_ln_s='cp -p'
30877fi
30878rm -f conf$$ conf$$.exe conf$$.file
30879
John Criswell0c38eaf2003-09-10 15:17:25 +000030880if mkdir -p . 2>/dev/null; then
30881 as_mkdir_p=:
30882else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030883 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030884 as_mkdir_p=false
30885fi
30886
John Criswell7a73b802003-06-30 21:59:07 +000030887as_executable_p="test -f"
30888
30889# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030890as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030891
30892# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030893as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030894
30895
30896# IFS
30897# We need space, tab and new line, in precisely that order.
30898as_nl='
30899'
30900IFS=" $as_nl"
30901
30902# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030903$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030904
30905exec 6>&1
30906
30907# Open the log real soon, to keep \$[0] and so on meaningful, and to
30908# report actual input values of CONFIG_FILES etc. instead of their
30909# values after options handling. Logging --version etc. is OK.
30910exec 5>>config.log
30911{
30912 echo
30913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30914## Running $as_me. ##
30915_ASBOX
30916} >&5
30917cat >&5 <<_CSEOF
30918
John Criswell5690c532005-05-18 20:18:40 +000030919This file was extended by llvm $as_me 1.6cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030920generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030921
30922 CONFIG_FILES = $CONFIG_FILES
30923 CONFIG_HEADERS = $CONFIG_HEADERS
30924 CONFIG_LINKS = $CONFIG_LINKS
30925 CONFIG_COMMANDS = $CONFIG_COMMANDS
30926 $ $0 $@
30927
30928_CSEOF
30929echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30930echo >&5
30931_ACEOF
30932
30933# Files that config.status was made for.
30934if test -n "$ac_config_files"; then
30935 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30936fi
30937
30938if test -n "$ac_config_headers"; then
30939 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30940fi
30941
30942if test -n "$ac_config_links"; then
30943 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30944fi
30945
30946if test -n "$ac_config_commands"; then
30947 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30948fi
30949
30950cat >>$CONFIG_STATUS <<\_ACEOF
30951
30952ac_cs_usage="\
30953\`$as_me' instantiates files from templates according to the
30954current configuration.
30955
30956Usage: $0 [OPTIONS] [FILE]...
30957
30958 -h, --help print this help, then exit
30959 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030960 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030961 -d, --debug don't remove temporary files
30962 --recheck update $as_me by reconfiguring in the same conditions
30963 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030964 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030965 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030966 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030967
30968Configuration files:
30969$config_files
30970
30971Configuration headers:
30972$config_headers
30973
John Criswellc764fbc2003-09-06 15:17:13 +000030974Configuration commands:
30975$config_commands
30976
John Criswell7a73b802003-06-30 21:59:07 +000030977Report bugs to <bug-autoconf@gnu.org>."
30978_ACEOF
30979
30980cat >>$CONFIG_STATUS <<_ACEOF
30981ac_cs_version="\\
John Criswell5690c532005-05-18 20:18:40 +000030982llvm config.status 1.6cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000030983configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030984 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30985
Reid Spencer2706f8c2004-09-19 23:53:36 +000030986Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030987This config.status script is free software; the Free Software Foundation
30988gives unlimited permission to copy, distribute and modify it."
30989srcdir=$srcdir
30990INSTALL="$INSTALL"
30991_ACEOF
30992
30993cat >>$CONFIG_STATUS <<\_ACEOF
30994# If no file are specified by the user, then we need to provide default
30995# value. By we need to know if files were specified by the user.
30996ac_need_defaults=:
30997while test $# != 0
30998do
30999 case $1 in
31000 --*=*)
31001 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31002 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031003 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031004 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031005 -*)
31006 ac_option=$1
31007 ac_optarg=$2
31008 ac_shift=shift
31009 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031010 *) # This is not an option, so the user has probably given explicit
31011 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031012 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031013 ac_need_defaults=false;;
31014 esac
31015
John Criswell0c38eaf2003-09-10 15:17:25 +000031016 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031017 # Handling of the options.
31018_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031019cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31021 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031022 --version | --vers* | -V )
31023 echo "$ac_cs_version"; exit 0 ;;
31024 --he | --h)
31025 # Conflict between --help and --header
31026 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31027Try \`$0 --help' for more information." >&5
31028echo "$as_me: error: ambiguous option: $1
31029Try \`$0 --help' for more information." >&2;}
31030 { (exit 1); exit 1; }; };;
31031 --help | --hel | -h )
31032 echo "$ac_cs_usage"; exit 0 ;;
31033 --debug | --d* | -d )
31034 debug=: ;;
31035 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031036 $ac_shift
31037 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031038 ac_need_defaults=false;;
31039 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031040 $ac_shift
31041 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031042 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31044 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31045 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031046
31047 # This is an error.
31048 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31049Try \`$0 --help' for more information." >&5
31050echo "$as_me: error: unrecognized option: $1
31051Try \`$0 --help' for more information." >&2;}
31052 { (exit 1); exit 1; }; } ;;
31053
31054 *) ac_config_targets="$ac_config_targets $1" ;;
31055
31056 esac
31057 shift
31058done
31059
John Criswell0c38eaf2003-09-10 15:17:25 +000031060ac_configure_extra_args=
31061
31062if $ac_cs_silent; then
31063 exec 6>/dev/null
31064 ac_configure_extra_args="$ac_configure_extra_args --silent"
31065fi
31066
31067_ACEOF
31068cat >>$CONFIG_STATUS <<_ACEOF
31069if \$ac_cs_recheck; then
31070 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31071 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31072fi
31073
John Criswell7a73b802003-06-30 21:59:07 +000031074_ACEOF
31075
John Criswellc764fbc2003-09-06 15:17:13 +000031076cat >>$CONFIG_STATUS <<_ACEOF
31077#
31078# INIT-COMMANDS section.
31079#
John Criswell7a73b802003-06-30 21:59:07 +000031080
Reid Spencerc0682832005-02-24 19:05:19 +000031081llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031082
31083_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031084
31085
31086
31087cat >>$CONFIG_STATUS <<\_ACEOF
31088for ac_config_target in $ac_config_targets
31089do
31090 case "$ac_config_target" in
31091 # Handling of arguments.
31092 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031093 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031094 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031095 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31096 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031097 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031098 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031099 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031100 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31101 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031102 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031103 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031104 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031105 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031106 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031107 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31108 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031109 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
31110 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031111 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31112echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31113 { (exit 1); exit 1; }; };;
31114 esac
31115done
31116
31117# If the user did not use the arguments to specify the items to instantiate,
31118# then the envvar interface is used. Set only those that are not.
31119# We use the long form for the default assignment because of an extremely
31120# bizarre bug on SunOS 4.1.3.
31121if $ac_need_defaults; then
31122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031124 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031125fi
31126
John Criswell0c38eaf2003-09-10 15:17:25 +000031127# Have a temporary directory for convenience. Make it in the build tree
31128# simply because there is no reason to put it here, and in addition,
31129# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031130# Create a temporary directory, and hook for its removal unless debugging.
31131$debug ||
31132{
31133 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31134 trap '{ (exit 1); exit 1; }' 1 2 13 15
31135}
31136
31137# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031138
John Criswell7a73b802003-06-30 21:59:07 +000031139{
John Criswell0c38eaf2003-09-10 15:17:25 +000031140 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031141 test -n "$tmp" && test -d "$tmp"
31142} ||
31143{
John Criswell0c38eaf2003-09-10 15:17:25 +000031144 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031145 (umask 077 && mkdir $tmp)
31146} ||
31147{
John Criswell0c38eaf2003-09-10 15:17:25 +000031148 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031149 { (exit 1); exit 1; }
31150}
31151
31152_ACEOF
31153
31154cat >>$CONFIG_STATUS <<_ACEOF
31155
31156#
31157# CONFIG_FILES section.
31158#
31159
31160# No need to generate the scripts if there are no CONFIG_FILES.
31161# This happens for instance when ./config.status config.h
31162if test -n "\$CONFIG_FILES"; then
31163 # Protect against being on the right side of a sed subst in config.status.
31164 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31165 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31166s,@SHELL@,$SHELL,;t t
31167s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31168s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31169s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31170s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31171s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31172s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31173s,@exec_prefix@,$exec_prefix,;t t
31174s,@prefix@,$prefix,;t t
31175s,@program_transform_name@,$program_transform_name,;t t
31176s,@bindir@,$bindir,;t t
31177s,@sbindir@,$sbindir,;t t
31178s,@libexecdir@,$libexecdir,;t t
31179s,@datadir@,$datadir,;t t
31180s,@sysconfdir@,$sysconfdir,;t t
31181s,@sharedstatedir@,$sharedstatedir,;t t
31182s,@localstatedir@,$localstatedir,;t t
31183s,@libdir@,$libdir,;t t
31184s,@includedir@,$includedir,;t t
31185s,@oldincludedir@,$oldincludedir,;t t
31186s,@infodir@,$infodir,;t t
31187s,@mandir@,$mandir,;t t
31188s,@build_alias@,$build_alias,;t t
31189s,@host_alias@,$host_alias,;t t
31190s,@target_alias@,$target_alias,;t t
31191s,@DEFS@,$DEFS,;t t
31192s,@ECHO_C@,$ECHO_C,;t t
31193s,@ECHO_N@,$ECHO_N,;t t
31194s,@ECHO_T@,$ECHO_T,;t t
31195s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031196s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031197s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031198s,@build@,$build,;t t
31199s,@build_cpu@,$build_cpu,;t t
31200s,@build_vendor@,$build_vendor,;t t
31201s,@build_os@,$build_os,;t t
31202s,@host@,$host,;t t
31203s,@host_cpu@,$host_cpu,;t t
31204s,@host_vendor@,$host_vendor,;t t
31205s,@host_os@,$host_os,;t t
31206s,@target@,$target,;t t
31207s,@target_cpu@,$target_cpu,;t t
31208s,@target_vendor@,$target_vendor,;t t
31209s,@target_os@,$target_os,;t t
31210s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031211s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31212s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031213s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031214s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031215s,@CC@,$CC,;t t
31216s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031217s,@LDFLAGS@,$LDFLAGS,;t t
31218s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031219s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220s,@EXEEXT@,$EXEEXT,;t t
31221s,@OBJEXT@,$OBJEXT,;t t
31222s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31223s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031224s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031225s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031226s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031227s,@CXX@,$CXX,;t t
31228s,@CXXFLAGS@,$CXXFLAGS,;t t
31229s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031230s,@LEX@,$LEX,;t t
31231s,@LEXLIB@,$LEXLIB,;t t
31232s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031233s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031234s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031235s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031236s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031237s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031238s,@CMP@,$CMP,;t t
31239s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031240s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031241s,@FIND@,$FIND,;t t
31242s,@GREP@,$GREP,;t t
31243s,@MKDIR@,$MKDIR,;t t
31244s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031245s,@RANLIB@,$RANLIB,;t t
31246s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031247s,@RM@,$RM,;t t
31248s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031249s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031250s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31251s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31252s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031253s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031254s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031255s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031256s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031257s,@GROFF@,$GROFF,;t t
31258s,@GZIP@,$GZIP,;t t
31259s,@POD2HTML@,$POD2HTML,;t t
31260s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031261s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031262s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031263s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031264s,@EGREP@,$EGREP,;t t
31265s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31266s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31267s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31268s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31269s,@LIBADD_DL@,$LIBADD_DL,;t t
31270s,@ECHO@,$ECHO,;t t
31271s,@AR@,$AR,;t t
31272s,@ac_ct_AR@,$ac_ct_AR,;t t
31273s,@STRIP@,$STRIP,;t t
31274s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31275s,@CXXCPP@,$CXXCPP,;t t
31276s,@F77@,$F77,;t t
31277s,@FFLAGS@,$FFLAGS,;t t
31278s,@ac_ct_F77@,$ac_ct_F77,;t t
31279s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031280s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031281s,@LLVMGCC@,$LLVMGCC,;t t
31282s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031283s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031284s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031285s,@LLVMCC1@,$LLVMCC1,;t t
31286s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031287s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031288s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031289s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31290s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31291s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31292s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31293s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31294s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31295s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31296s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31297s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31298s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031299s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031300s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031301CEOF
31302
31303_ACEOF
31304
31305 cat >>$CONFIG_STATUS <<\_ACEOF
31306 # Split the substitutions into bite-sized pieces for seds with
31307 # small command number limits, like on Digital OSF/1 and HP-UX.
31308 ac_max_sed_lines=48
31309 ac_sed_frag=1 # Number of current file.
31310 ac_beg=1 # First line for current file.
31311 ac_end=$ac_max_sed_lines # Line after last line for current file.
31312 ac_more_lines=:
31313 ac_sed_cmds=
31314 while $ac_more_lines; do
31315 if test $ac_beg -gt 1; then
31316 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31317 else
31318 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31319 fi
31320 if test ! -s $tmp/subs.frag; then
31321 ac_more_lines=false
31322 else
31323 # The purpose of the label and of the branching condition is to
31324 # speed up the sed processing (if there are no `@' at all, there
31325 # is no need to browse any of the substitutions).
31326 # These are the two extra sed commands mentioned above.
31327 (echo ':t
31328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31329 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031330 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031331 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031332 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031333 fi
31334 ac_sed_frag=`expr $ac_sed_frag + 1`
31335 ac_beg=$ac_end
31336 ac_end=`expr $ac_end + $ac_max_sed_lines`
31337 fi
31338 done
31339 if test -z "$ac_sed_cmds"; then
31340 ac_sed_cmds=cat
31341 fi
31342fi # test -n "$CONFIG_FILES"
31343
31344_ACEOF
31345cat >>$CONFIG_STATUS <<\_ACEOF
31346for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31347 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31348 case $ac_file in
31349 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031350 cat >$tmp/stdin
31351 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031353 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031355 * ) ac_file_in=$ac_file.in ;;
31356 esac
31357
31358 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31359 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031361 X"$ac_file" : 'X\(//\)[^/]' \| \
31362 X"$ac_file" : 'X\(//\)$' \| \
31363 X"$ac_file" : 'X\(/\)' \| \
31364 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031365echo X"$ac_file" |
31366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31368 /^X\(\/\/\)$/{ s//\1/; q; }
31369 /^X\(\/\).*/{ s//\1/; q; }
31370 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031371 { if $as_mkdir_p; then
31372 mkdir -p "$ac_dir"
31373 else
31374 as_dir="$ac_dir"
31375 as_dirs=
31376 while test ! -d "$as_dir"; do
31377 as_dirs="$as_dir $as_dirs"
31378 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031380 X"$as_dir" : 'X\(//\)[^/]' \| \
31381 X"$as_dir" : 'X\(//\)$' \| \
31382 X"$as_dir" : 'X\(/\)' \| \
31383 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031384echo X"$as_dir" |
31385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31387 /^X\(\/\/\)$/{ s//\1/; q; }
31388 /^X\(\/\).*/{ s//\1/; q; }
31389 s/.*/./; q'`
31390 done
31391 test ! -n "$as_dirs" || mkdir $as_dirs
31392 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31393echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31394 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031395
31396 ac_builddir=.
31397
31398if test "$ac_dir" != .; then
31399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31400 # A "../" for each directory in $ac_dir_suffix.
31401 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31402else
31403 ac_dir_suffix= ac_top_builddir=
31404fi
31405
31406case $srcdir in
31407 .) # No --srcdir option. We are building in place.
31408 ac_srcdir=.
31409 if test -z "$ac_top_builddir"; then
31410 ac_top_srcdir=.
31411 else
31412 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31413 fi ;;
31414 [\\/]* | ?:[\\/]* ) # Absolute path.
31415 ac_srcdir=$srcdir$ac_dir_suffix;
31416 ac_top_srcdir=$srcdir ;;
31417 *) # Relative path.
31418 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31419 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31420esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031421
31422# Do not use `cd foo && pwd` to compute absolute paths, because
31423# the directories may not exist.
31424case `pwd` in
31425.) ac_abs_builddir="$ac_dir";;
31426*)
31427 case "$ac_dir" in
31428 .) ac_abs_builddir=`pwd`;;
31429 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31430 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31431 esac;;
31432esac
31433case $ac_abs_builddir in
31434.) ac_abs_top_builddir=${ac_top_builddir}.;;
31435*)
31436 case ${ac_top_builddir}. in
31437 .) ac_abs_top_builddir=$ac_abs_builddir;;
31438 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31439 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31440 esac;;
31441esac
31442case $ac_abs_builddir in
31443.) ac_abs_srcdir=$ac_srcdir;;
31444*)
31445 case $ac_srcdir in
31446 .) ac_abs_srcdir=$ac_abs_builddir;;
31447 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31448 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31449 esac;;
31450esac
31451case $ac_abs_builddir in
31452.) ac_abs_top_srcdir=$ac_top_srcdir;;
31453*)
31454 case $ac_top_srcdir in
31455 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31456 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31457 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31458 esac;;
31459esac
John Criswell7a73b802003-06-30 21:59:07 +000031460
31461
31462 case $INSTALL in
31463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31464 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31465 esac
31466
31467 if test x"$ac_file" != x-; then
31468 { echo "$as_me:$LINENO: creating $ac_file" >&5
31469echo "$as_me: creating $ac_file" >&6;}
31470 rm -f "$ac_file"
31471 fi
31472 # Let's still pretend it is `configure' which instantiates (i.e., don't
31473 # use $as_me), people would be surprised to read:
31474 # /* config.h. Generated by config.status. */
31475 if test x"$ac_file" = x-; then
31476 configure_input=
31477 else
31478 configure_input="$ac_file. "
31479 fi
31480 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031481 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031482
31483 # First look for the input files in the build tree, otherwise in the
31484 # src tree.
31485 ac_file_inputs=`IFS=:
31486 for f in $ac_file_in; do
31487 case $f in
31488 -) echo $tmp/stdin ;;
31489 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031490 # Absolute (can't be DOS-style, as IFS=:)
31491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031492echo "$as_me: error: cannot find input file: $f" >&2;}
31493 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031494 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031495 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031496 if test -f "$f"; then
31497 # Build tree
31498 echo "$f"
31499 elif test -f "$srcdir/$f"; then
31500 # Source tree
31501 echo "$srcdir/$f"
31502 else
31503 # /dev/null tree
31504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031505echo "$as_me: error: cannot find input file: $f" >&2;}
31506 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031507 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031508 esac
31509 done` || { (exit 1); exit 1; }
31510_ACEOF
31511cat >>$CONFIG_STATUS <<_ACEOF
31512 sed "$ac_vpsub
31513$extrasub
31514_ACEOF
31515cat >>$CONFIG_STATUS <<\_ACEOF
31516:t
31517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31518s,@configure_input@,$configure_input,;t t
31519s,@srcdir@,$ac_srcdir,;t t
31520s,@abs_srcdir@,$ac_abs_srcdir,;t t
31521s,@top_srcdir@,$ac_top_srcdir,;t t
31522s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31523s,@builddir@,$ac_builddir,;t t
31524s,@abs_builddir@,$ac_abs_builddir,;t t
31525s,@top_builddir@,$ac_top_builddir,;t t
31526s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31527s,@INSTALL@,$ac_INSTALL,;t t
31528" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31529 rm -f $tmp/stdin
31530 if test x"$ac_file" != x-; then
31531 mv $tmp/out $ac_file
31532 else
31533 cat $tmp/out
31534 rm -f $tmp/out
31535 fi
31536
31537done
31538_ACEOF
31539cat >>$CONFIG_STATUS <<\_ACEOF
31540
31541#
31542# CONFIG_HEADER section.
31543#
31544
31545# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31546# NAME is the cpp macro being defined and VALUE is the value it is being given.
31547#
31548# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031549ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31550ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031551ac_dC=' '
31552ac_dD=',;t'
31553# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031554ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031555ac_uB='$,\1#\2define\3'
31556ac_uC=' '
31557ac_uD=',;t'
31558
31559for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31561 case $ac_file in
31562 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031563 cat >$tmp/stdin
31564 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031566 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031567 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031568 * ) ac_file_in=$ac_file.in ;;
31569 esac
31570
31571 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31572echo "$as_me: creating $ac_file" >&6;}
31573
31574 # First look for the input files in the build tree, otherwise in the
31575 # src tree.
31576 ac_file_inputs=`IFS=:
31577 for f in $ac_file_in; do
31578 case $f in
31579 -) echo $tmp/stdin ;;
31580 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031581 # Absolute (can't be DOS-style, as IFS=:)
31582 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031583echo "$as_me: error: cannot find input file: $f" >&2;}
31584 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031585 # Do quote $f, to prevent DOS paths from being IFS'd.
31586 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031587 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031588 if test -f "$f"; then
31589 # Build tree
31590 echo "$f"
31591 elif test -f "$srcdir/$f"; then
31592 # Source tree
31593 echo "$srcdir/$f"
31594 else
31595 # /dev/null tree
31596 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031597echo "$as_me: error: cannot find input file: $f" >&2;}
31598 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031599 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031600 esac
31601 done` || { (exit 1); exit 1; }
31602 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031603 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031604
31605_ACEOF
31606
31607# Transform confdefs.h into two sed scripts, `conftest.defines' and
31608# `conftest.undefs', that substitutes the proper values into
31609# config.h.in to produce config.h. The first handles `#define'
31610# templates, and the second `#undef' templates.
31611# And first: Protect against being on the right side of a sed subst in
31612# config.status. Protect against being in an unquoted here document
31613# in config.status.
31614rm -f conftest.defines conftest.undefs
31615# Using a here document instead of a string reduces the quoting nightmare.
31616# Putting comments in sed scripts is not portable.
31617#
31618# `end' is used to avoid that the second main sed command (meant for
31619# 0-ary CPP macros) applies to n-ary macro definitions.
31620# See the Autoconf documentation for `clear'.
31621cat >confdef2sed.sed <<\_ACEOF
31622s/[\\&,]/\\&/g
31623s,[\\$`],\\&,g
31624t clear
31625: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031626s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031627t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031628s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031629: end
31630_ACEOF
31631# If some macros were called several times there might be several times
31632# the same #defines, which is useless. Nevertheless, we may not want to
31633# sort them, since we want the *last* AC-DEFINE to be honored.
31634uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31635sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31636rm -f confdef2sed.sed
31637
31638# This sed command replaces #undef with comments. This is necessary, for
31639# example, in the case of _POSIX_SOURCE, which is predefined and required
31640# on some systems where configure will not decide to define it.
31641cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031642s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031643_ACEOF
31644
31645# Break up conftest.defines because some shells have a limit on the size
31646# of here documents, and old seds have small limits too (100 cmds).
31647echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031648echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031649echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31650echo ' :' >>$CONFIG_STATUS
31651rm -f conftest.tail
31652while grep . conftest.defines >/dev/null
31653do
31654 # Write a limited-size here document to $tmp/defines.sed.
31655 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31656 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031657 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031658 # Work around the forget-to-reset-the-flag bug.
31659 echo 't clr' >>$CONFIG_STATUS
31660 echo ': clr' >>$CONFIG_STATUS
31661 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31662 echo 'CEOF
31663 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31664 rm -f $tmp/in
31665 mv $tmp/out $tmp/in
31666' >>$CONFIG_STATUS
31667 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31668 rm -f conftest.defines
31669 mv conftest.tail conftest.defines
31670done
31671rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031672echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031673echo >>$CONFIG_STATUS
31674
31675# Break up conftest.undefs because some shells have a limit on the size
31676# of here documents, and old seds have small limits too (100 cmds).
31677echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31678rm -f conftest.tail
31679while grep . conftest.undefs >/dev/null
31680do
31681 # Write a limited-size here document to $tmp/undefs.sed.
31682 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31683 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031684 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031685 # Work around the forget-to-reset-the-flag bug.
31686 echo 't clr' >>$CONFIG_STATUS
31687 echo ': clr' >>$CONFIG_STATUS
31688 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31689 echo 'CEOF
31690 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31691 rm -f $tmp/in
31692 mv $tmp/out $tmp/in
31693' >>$CONFIG_STATUS
31694 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31695 rm -f conftest.undefs
31696 mv conftest.tail conftest.undefs
31697done
31698rm -f conftest.undefs
31699
31700cat >>$CONFIG_STATUS <<\_ACEOF
31701 # Let's still pretend it is `configure' which instantiates (i.e., don't
31702 # use $as_me), people would be surprised to read:
31703 # /* config.h. Generated by config.status. */
31704 if test x"$ac_file" = x-; then
31705 echo "/* Generated by configure. */" >$tmp/config.h
31706 else
31707 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31708 fi
31709 cat $tmp/in >>$tmp/config.h
31710 rm -f $tmp/in
31711 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031712 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031713 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31714echo "$as_me: $ac_file is unchanged" >&6;}
31715 else
31716 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31717$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031718 X"$ac_file" : 'X\(//\)[^/]' \| \
31719 X"$ac_file" : 'X\(//\)$' \| \
31720 X"$ac_file" : 'X\(/\)' \| \
31721 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031722echo X"$ac_file" |
31723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31725 /^X\(\/\/\)$/{ s//\1/; q; }
31726 /^X\(\/\).*/{ s//\1/; q; }
31727 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031728 { if $as_mkdir_p; then
31729 mkdir -p "$ac_dir"
31730 else
31731 as_dir="$ac_dir"
31732 as_dirs=
31733 while test ! -d "$as_dir"; do
31734 as_dirs="$as_dir $as_dirs"
31735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31736$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031737 X"$as_dir" : 'X\(//\)[^/]' \| \
31738 X"$as_dir" : 'X\(//\)$' \| \
31739 X"$as_dir" : 'X\(/\)' \| \
31740 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031741echo X"$as_dir" |
31742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31744 /^X\(\/\/\)$/{ s//\1/; q; }
31745 /^X\(\/\).*/{ s//\1/; q; }
31746 s/.*/./; q'`
31747 done
31748 test ! -n "$as_dirs" || mkdir $as_dirs
31749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31750echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31751 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031752
31753 rm -f $ac_file
31754 mv $tmp/config.h $ac_file
31755 fi
31756 else
31757 cat $tmp/config.h
31758 rm -f $tmp/config.h
31759 fi
31760done
31761_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031762cat >>$CONFIG_STATUS <<\_ACEOF
31763
31764#
31765# CONFIG_COMMANDS section.
31766#
31767for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31768 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31769 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31770 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31771$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031772 X"$ac_dest" : 'X\(//\)[^/]' \| \
31773 X"$ac_dest" : 'X\(//\)$' \| \
31774 X"$ac_dest" : 'X\(/\)' \| \
31775 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031776echo X"$ac_dest" |
31777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31779 /^X\(\/\/\)$/{ s//\1/; q; }
31780 /^X\(\/\).*/{ s//\1/; q; }
31781 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031782 { if $as_mkdir_p; then
31783 mkdir -p "$ac_dir"
31784 else
31785 as_dir="$ac_dir"
31786 as_dirs=
31787 while test ! -d "$as_dir"; do
31788 as_dirs="$as_dir $as_dirs"
31789 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31790$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31791 X"$as_dir" : 'X\(//\)[^/]' \| \
31792 X"$as_dir" : 'X\(//\)$' \| \
31793 X"$as_dir" : 'X\(/\)' \| \
31794 . : '\(.\)' 2>/dev/null ||
31795echo X"$as_dir" |
31796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31798 /^X\(\/\/\)$/{ s//\1/; q; }
31799 /^X\(\/\).*/{ s//\1/; q; }
31800 s/.*/./; q'`
31801 done
31802 test ! -n "$as_dirs" || mkdir $as_dirs
31803 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31804echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31805 { (exit 1); exit 1; }; }; }
31806
John Criswellc764fbc2003-09-06 15:17:13 +000031807 ac_builddir=.
31808
31809if test "$ac_dir" != .; then
31810 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31811 # A "../" for each directory in $ac_dir_suffix.
31812 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31813else
31814 ac_dir_suffix= ac_top_builddir=
31815fi
31816
31817case $srcdir in
31818 .) # No --srcdir option. We are building in place.
31819 ac_srcdir=.
31820 if test -z "$ac_top_builddir"; then
31821 ac_top_srcdir=.
31822 else
31823 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31824 fi ;;
31825 [\\/]* | ?:[\\/]* ) # Absolute path.
31826 ac_srcdir=$srcdir$ac_dir_suffix;
31827 ac_top_srcdir=$srcdir ;;
31828 *) # Relative path.
31829 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31830 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31831esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031832
31833# Do not use `cd foo && pwd` to compute absolute paths, because
31834# the directories may not exist.
31835case `pwd` in
31836.) ac_abs_builddir="$ac_dir";;
31837*)
31838 case "$ac_dir" in
31839 .) ac_abs_builddir=`pwd`;;
31840 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31841 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31842 esac;;
31843esac
31844case $ac_abs_builddir in
31845.) ac_abs_top_builddir=${ac_top_builddir}.;;
31846*)
31847 case ${ac_top_builddir}. in
31848 .) ac_abs_top_builddir=$ac_abs_builddir;;
31849 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31850 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31851 esac;;
31852esac
31853case $ac_abs_builddir in
31854.) ac_abs_srcdir=$ac_srcdir;;
31855*)
31856 case $ac_srcdir in
31857 .) ac_abs_srcdir=$ac_abs_builddir;;
31858 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31859 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31860 esac;;
31861esac
31862case $ac_abs_builddir in
31863.) ac_abs_top_srcdir=$ac_top_srcdir;;
31864*)
31865 case $ac_top_srcdir in
31866 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31867 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31868 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31869 esac;;
31870esac
John Criswellc764fbc2003-09-06 15:17:13 +000031871
31872
31873 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31874echo "$as_me: executing $ac_dest commands" >&6;}
31875 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031876 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31877 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31878 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31879 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31880 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31881 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31882 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31884 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31886 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31888 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31890 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31891 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31892 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31893 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31894 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31895 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031896 esac
31897done
31898_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031899
31900cat >>$CONFIG_STATUS <<\_ACEOF
31901
31902{ (exit 0); exit 0; }
31903_ACEOF
31904chmod +x $CONFIG_STATUS
31905ac_clean_files=$ac_clean_files_save
31906
31907
31908# configure is writing to config.log, and then calls config.status.
31909# config.status does its own redirection, appending to config.log.
31910# Unfortunately, on DOS this fails, as config.log is still kept open
31911# by configure, so config.status won't be able to write to it; its
31912# output is simply discarded. So we exec the FD to /dev/null,
31913# effectively closing config.log, so it can be properly (re)opened and
31914# appended to by config.status. When coming back to configure, we
31915# need to make the FD available again.
31916if test "$no_create" != yes; then
31917 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031918 ac_config_status_args=
31919 test "$silent" = yes &&
31920 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031921 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031923 exec 5>>config.log
31924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31925 # would make configure fail if this is the last instruction.
31926 $ac_cs_success || { (exit 1); exit 1; }
31927fi
31928
John Criswell12399a12003-09-30 15:55:44 +000031929#
31930# CONFIG_SUBDIRS section.
31931#
31932if test "$no_recursion" != yes; then
31933
31934 # Remove --cache-file and --srcdir arguments so they do not pile up.
31935 ac_sub_configure_args=
31936 ac_prev=
31937 for ac_arg in $ac_configure_args; do
31938 if test -n "$ac_prev"; then
31939 ac_prev=
31940 continue
31941 fi
31942 case $ac_arg in
31943 -cache-file | --cache-file | --cache-fil | --cache-fi \
31944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31945 ac_prev=cache_file ;;
31946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31948 | --c=*)
31949 ;;
31950 --config-cache | -C)
31951 ;;
31952 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31953 ac_prev=srcdir ;;
31954 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31955 ;;
31956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31957 ac_prev=prefix ;;
31958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31959 ;;
31960 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31961 esac
31962 done
31963
31964 # Always prepend --prefix to ensure using the same prefix
31965 # in subdir configurations.
31966 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31967
31968 ac_popdir=`pwd`
31969 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31970
31971 # Do not complain, so a configure script can configure whichever
31972 # parts of a large source tree are present.
31973 test -d $srcdir/$ac_dir || continue
31974
31975 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31976echo "$as_me: configuring in $ac_dir" >&6;}
31977 { if $as_mkdir_p; then
31978 mkdir -p "$ac_dir"
31979 else
31980 as_dir="$ac_dir"
31981 as_dirs=
31982 while test ! -d "$as_dir"; do
31983 as_dirs="$as_dir $as_dirs"
31984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031986 X"$as_dir" : 'X\(//\)[^/]' \| \
31987 X"$as_dir" : 'X\(//\)$' \| \
31988 X"$as_dir" : 'X\(/\)' \| \
31989 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031990echo X"$as_dir" |
31991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31993 /^X\(\/\/\)$/{ s//\1/; q; }
31994 /^X\(\/\).*/{ s//\1/; q; }
31995 s/.*/./; q'`
31996 done
31997 test ! -n "$as_dirs" || mkdir $as_dirs
31998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31999echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32000 { (exit 1); exit 1; }; }; }
32001
32002 ac_builddir=.
32003
32004if test "$ac_dir" != .; then
32005 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32006 # A "../" for each directory in $ac_dir_suffix.
32007 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32008else
32009 ac_dir_suffix= ac_top_builddir=
32010fi
32011
32012case $srcdir in
32013 .) # No --srcdir option. We are building in place.
32014 ac_srcdir=.
32015 if test -z "$ac_top_builddir"; then
32016 ac_top_srcdir=.
32017 else
32018 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32019 fi ;;
32020 [\\/]* | ?:[\\/]* ) # Absolute path.
32021 ac_srcdir=$srcdir$ac_dir_suffix;
32022 ac_top_srcdir=$srcdir ;;
32023 *) # Relative path.
32024 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32025 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32026esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032027
32028# Do not use `cd foo && pwd` to compute absolute paths, because
32029# the directories may not exist.
32030case `pwd` in
32031.) ac_abs_builddir="$ac_dir";;
32032*)
32033 case "$ac_dir" in
32034 .) ac_abs_builddir=`pwd`;;
32035 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32036 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32037 esac;;
32038esac
32039case $ac_abs_builddir in
32040.) ac_abs_top_builddir=${ac_top_builddir}.;;
32041*)
32042 case ${ac_top_builddir}. in
32043 .) ac_abs_top_builddir=$ac_abs_builddir;;
32044 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32045 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32046 esac;;
32047esac
32048case $ac_abs_builddir in
32049.) ac_abs_srcdir=$ac_srcdir;;
32050*)
32051 case $ac_srcdir in
32052 .) ac_abs_srcdir=$ac_abs_builddir;;
32053 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32054 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32055 esac;;
32056esac
32057case $ac_abs_builddir in
32058.) ac_abs_top_srcdir=$ac_top_srcdir;;
32059*)
32060 case $ac_top_srcdir in
32061 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32062 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32063 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32064 esac;;
32065esac
John Criswell12399a12003-09-30 15:55:44 +000032066
32067
32068 cd $ac_dir
32069
32070 # Check for guested configure; otherwise get Cygnus style configure.
32071 if test -f $ac_srcdir/configure.gnu; then
32072 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32073 elif test -f $ac_srcdir/configure; then
32074 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32075 elif test -f $ac_srcdir/configure.in; then
32076 ac_sub_configure=$ac_configure
32077 else
32078 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32079echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32080 ac_sub_configure=
32081 fi
32082
32083 # The recursion is here.
32084 if test -n "$ac_sub_configure"; then
32085 # Make the cache file name correct relative to the subdirectory.
32086 case $cache_file in
32087 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32088 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032089 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032090 esac
32091
32092 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32093echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32094 # The eval makes quoting arguments work.
32095 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032096 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32097 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032098echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32099 { (exit 1); exit 1; }; }
32100 fi
32101
32102 cd $ac_popdir
32103 done
32104fi
32105
Brian Gaekef3b24102003-11-16 18:38:14 +000032106
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032107if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032108 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32109echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032110 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32111echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32112 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32113echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32114 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32115echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32116 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32117echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032118fi