blob: d93b4d81bd1a4125c2aa479bb696e3630b7c593b [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 Spencerbe130282005-07-14 05:19:12 +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 GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +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 ;;
Andrew Lenharthddc31e82005-07-22 20:54:01 +00003000 Alpha) JIT=TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003001 ;;
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
Reid Spencer8a2246f2005-07-13 03:20:14 +00005057# Extract the first word of "Graphviz", so it can be a program name with args.
5058set dummy Graphviz; ac_word=$2
5059echo "$as_me:$LINENO: checking for $ac_word" >&5
5060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
5064 case $GRAPHVIZ in
5065 [\\/]* | ?:[\\/]*)
5066 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5067 ;;
5068 *)
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070for as_dir in $PATH
5071do
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
5080done
5081done
5082
Reid Spencerc232a652005-07-14 02:25:12 +00005083 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005084 ;;
5085esac
5086fi
5087GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5088
5089if test -n "$GRAPHVIZ"; then
5090 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5091echo "${ECHO_T}$GRAPHVIZ" >&6
5092else
5093 echo "$as_me:$LINENO: result: no" >&5
5094echo "${ECHO_T}no" >&6
5095fi
5096
Reid Spencerc232a652005-07-14 02:25:12 +00005097if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005098
5099cat >>confdefs.h <<\_ACEOF
5100#define HAVE_GRAPHVIZ 1
5101_ACEOF
5102
Reid Spencerc232a652005-07-14 02:25:12 +00005103
Reid Spencerbe130282005-07-14 05:19:12 +00005104cat >>confdefs.h <<_ACEOF
Reid Spencerc232a652005-07-14 02:25:12 +00005105#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5106_ACEOF
5107
Reid Spencer8a2246f2005-07-13 03:20:14 +00005108fi
Reid Spencerbe130282005-07-14 05:19:12 +00005109# Extract the first word of "gv", so it can be a program name with args.
5110set dummy gv; ac_word=$2
5111echo "$as_me:$LINENO: checking for $ac_word" >&5
5112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113if test "${ac_cv_path_GV+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116 case $GV in
5117 [\\/]* | ?:[\\/]*)
5118 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5119 ;;
5120 *)
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133done
5134
5135 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5136 ;;
5137esac
5138fi
5139GV=$ac_cv_path_GV
5140
5141if test -n "$GV"; then
5142 echo "$as_me:$LINENO: result: $GV" >&5
5143echo "${ECHO_T}$GV" >&6
5144else
5145 echo "$as_me:$LINENO: result: no" >&5
5146echo "${ECHO_T}no" >&6
5147fi
5148
5149if test "$GRAPHVIZ" != "echo gv" ; then
5150
5151cat >>confdefs.h <<\_ACEOF
5152#define HAVE_GV 1
5153_ACEOF
5154
5155
5156cat >>confdefs.h <<_ACEOF
5157#define LLVM_PATH_GV "$GV"
5158_ACEOF
5159
5160fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005161
5162# Find a good install program. We prefer a C program (faster),
5163# so one script is as good as another. But avoid the broken or
5164# incompatible versions:
5165# SysV /etc/install, /usr/sbin/install
5166# SunOS /usr/etc/install
5167# IRIX /sbin/install
5168# AIX /bin/install
5169# AmigaOS /C/install, which installs bootblocks on floppy discs
5170# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5171# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5172# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5173# OS/2's system install, which has a completely different semantic
5174# ./install, which can be erroneously created by make from ./install.sh.
5175echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5176echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5177if test -z "$INSTALL"; then
5178if test "${ac_cv_path_install+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 # Account for people who put trailing slashes in PATH elements.
5187case $as_dir/ in
5188 ./ | .// | /cC/* | \
5189 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5190 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5191 /usr/ucb/* ) ;;
5192 *)
5193 # OSF1 and SCO ODT 3.0 have their own names for install.
5194 # Don't use installbsd from OSF since it installs stuff as root
5195 # by default.
5196 for ac_prog in ginstall scoinst install; do
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5199 if test $ac_prog = install &&
5200 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5201 # AIX install. It has an incompatible calling convention.
5202 :
5203 elif test $ac_prog = install &&
5204 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5205 # program-specific install script used by HP pwplus--don't use.
5206 :
5207 else
5208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5209 break 3
5210 fi
5211 fi
5212 done
5213 done
5214 ;;
5215esac
5216done
5217
5218
5219fi
5220 if test "${ac_cv_path_install+set}" = set; then
5221 INSTALL=$ac_cv_path_install
5222 else
5223 # As a last resort, use the slow shell script. We don't cache a
5224 # path for INSTALL within a source directory, because that will
5225 # break other packages using the cache if that directory is
5226 # removed, or if the path is relative.
5227 INSTALL=$ac_install_sh
5228 fi
5229fi
5230echo "$as_me:$LINENO: result: $INSTALL" >&5
5231echo "${ECHO_T}$INSTALL" >&6
5232
5233# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5234# It thinks the first close brace ends the variable substitution.
5235test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5236
5237test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5238
5239test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5240
5241
5242# Extract the first word of "bzip2", so it can be a program name with args.
5243set dummy bzip2; ac_word=$2
5244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_path_BZIP2+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 case $BZIP2 in
5250 [\\/]* | ?:[\\/]*)
5251 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5252 ;;
5253 *)
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265done
5266done
5267
5268 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5269 ;;
5270esac
5271fi
5272BZIP2=$ac_cv_path_BZIP2
5273
5274if test -n "$BZIP2"; then
5275 echo "$as_me:$LINENO: result: $BZIP2" >&5
5276echo "${ECHO_T}$BZIP2" >&6
5277else
5278 echo "$as_me:$LINENO: result: no" >&5
5279echo "${ECHO_T}no" >&6
5280fi
5281
5282# Extract the first word of "dot", so it can be a program name with args.
5283set dummy dot; ac_word=$2
5284echo "$as_me:$LINENO: checking for $ac_word" >&5
5285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286if test "${ac_cv_path_DOT+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
5289 case $DOT in
5290 [\\/]* | ?:[\\/]*)
5291 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5292 ;;
5293 *)
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305done
5306done
5307
5308 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5309 ;;
5310esac
5311fi
5312DOT=$ac_cv_path_DOT
5313
5314if test -n "$DOT"; then
5315 echo "$as_me:$LINENO: result: $DOT" >&5
5316echo "${ECHO_T}$DOT" >&6
5317else
5318 echo "$as_me:$LINENO: result: no" >&5
5319echo "${ECHO_T}no" >&6
5320fi
5321
5322# Extract the first word of "doxygen", so it can be a program name with args.
5323set dummy doxygen; ac_word=$2
5324echo "$as_me:$LINENO: checking for $ac_word" >&5
5325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326if test "${ac_cv_path_DOXYGEN+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329 case $DOXYGEN in
5330 [\\/]* | ?:[\\/]*)
5331 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5332 ;;
5333 *)
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345done
5346done
5347
5348 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5349 ;;
5350esac
5351fi
5352DOXYGEN=$ac_cv_path_DOXYGEN
5353
5354if test -n "$DOXYGEN"; then
5355 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5356echo "${ECHO_T}$DOXYGEN" >&6
5357else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360fi
5361
5362# Extract the first word of "etags", so it can be a program name with args.
5363set dummy etags; ac_word=$2
5364echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366if test "${ac_cv_path_ETAGS+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369 case $ETAGS in
5370 [\\/]* | ?:[\\/]*)
5371 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5372 ;;
5373 *)
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385done
5386done
5387
5388 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5389 ;;
5390esac
5391fi
5392ETAGS=$ac_cv_path_ETAGS
5393
5394if test -n "$ETAGS"; then
5395 echo "$as_me:$LINENO: result: $ETAGS" >&5
5396echo "${ECHO_T}$ETAGS" >&6
5397else
5398 echo "$as_me:$LINENO: result: no" >&5
5399echo "${ECHO_T}no" >&6
5400fi
5401
5402# Extract the first word of "groff", so it can be a program name with args.
5403set dummy groff; ac_word=$2
5404echo "$as_me:$LINENO: checking for $ac_word" >&5
5405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5406if test "${ac_cv_path_GROFF+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409 case $GROFF in
5410 [\\/]* | ?:[\\/]*)
5411 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5412 ;;
5413 *)
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425done
5426done
5427
5428 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5429 ;;
5430esac
5431fi
5432GROFF=$ac_cv_path_GROFF
5433
5434if test -n "$GROFF"; then
5435 echo "$as_me:$LINENO: result: $GROFF" >&5
5436echo "${ECHO_T}$GROFF" >&6
5437else
5438 echo "$as_me:$LINENO: result: no" >&5
5439echo "${ECHO_T}no" >&6
5440fi
5441
5442# Extract the first word of "gzip", so it can be a program name with args.
5443set dummy gzip; ac_word=$2
5444echo "$as_me:$LINENO: checking for $ac_word" >&5
5445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5446if test "${ac_cv_path_GZIP+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449 case $GZIP in
5450 [\\/]* | ?:[\\/]*)
5451 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5452 ;;
5453 *)
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455for as_dir in $PATH
5456do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465done
5466done
5467
5468 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5469 ;;
5470esac
5471fi
5472GZIP=$ac_cv_path_GZIP
5473
5474if test -n "$GZIP"; then
5475 echo "$as_me:$LINENO: result: $GZIP" >&5
5476echo "${ECHO_T}$GZIP" >&6
5477else
5478 echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480fi
5481
5482# Extract the first word of "pod2html", so it can be a program name with args.
5483set dummy pod2html; ac_word=$2
5484echo "$as_me:$LINENO: checking for $ac_word" >&5
5485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486if test "${ac_cv_path_POD2HTML+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489 case $POD2HTML in
5490 [\\/]* | ?:[\\/]*)
5491 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5492 ;;
5493 *)
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH
5496do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505done
5506done
5507
5508 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5509 ;;
5510esac
5511fi
5512POD2HTML=$ac_cv_path_POD2HTML
5513
5514if test -n "$POD2HTML"; then
5515 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5516echo "${ECHO_T}$POD2HTML" >&6
5517else
5518 echo "$as_me:$LINENO: result: no" >&5
5519echo "${ECHO_T}no" >&6
5520fi
5521
5522# Extract the first word of "pod2man", so it can be a program name with args.
5523set dummy pod2man; ac_word=$2
5524echo "$as_me:$LINENO: checking for $ac_word" >&5
5525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526if test "${ac_cv_path_POD2MAN+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529 case $POD2MAN in
5530 [\\/]* | ?:[\\/]*)
5531 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5532 ;;
5533 *)
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545done
5546done
5547
5548 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5549 ;;
5550esac
5551fi
5552POD2MAN=$ac_cv_path_POD2MAN
5553
5554if test -n "$POD2MAN"; then
5555 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5556echo "${ECHO_T}$POD2MAN" >&6
5557else
5558 echo "$as_me:$LINENO: result: no" >&5
5559echo "${ECHO_T}no" >&6
5560fi
5561
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005562# Extract the first word of "runtest", so it can be a program name with args.
5563set dummy runtest; ac_word=$2
5564echo "$as_me:$LINENO: checking for $ac_word" >&5
5565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566if test "${ac_cv_path_RUNTEST+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569 case $RUNTEST in
5570 [\\/]* | ?:[\\/]*)
5571 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5572 ;;
5573 *)
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585done
5586done
5587
5588 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5589 ;;
5590esac
5591fi
5592RUNTEST=$ac_cv_path_RUNTEST
5593
5594if test -n "$RUNTEST"; then
5595 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5596echo "${ECHO_T}$RUNTEST" >&6
5597else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600fi
5601
Reid Spencer0fcb9412004-11-30 08:11:54 +00005602
Reid Spencer0fcb9412004-11-30 08:11:54 +00005603no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005604echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5605echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005606
5607# Check whether --with-tclinclude or --without-tclinclude was given.
5608if test "${with_tclinclude+set}" = set; then
5609 withval="$with_tclinclude"
5610 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005611else
5612 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005613fi;
5614if test "${ac_cv_path_tclsh+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616else
5617
5618if test x"${with_tclinclude}" != x ; then
5619 if test -f ${with_tclinclude}/tclsh ; then
5620 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5621 elif test -f ${with_tclinclude}/src/tclsh ; then
5622 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5623 else
5624 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5625echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5626 { (exit 1); exit 1; }; }
5627 fi
5628fi
5629
Reid Spencer0fcb9412004-11-30 08:11:54 +00005630if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005631 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005632echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005633 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 +00005634do
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005637echo "$as_me:$LINENO: checking for $ac_word" >&5
5638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005639if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
Reid Spencercda35f82004-12-02 04:17:20 +00005642 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005643 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005644 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005645 ;;
5646 *)
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005654 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5657 fi
5658done
5659done
5660
5661 ;;
5662esac
5663fi
Reid Spencercda35f82004-12-02 04:17:20 +00005664TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005665
Reid Spencercda35f82004-12-02 04:17:20 +00005666if test -n "$TCLSH"; then
5667 echo "$as_me:$LINENO: result: $TCLSH" >&5
5668echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005669else
5670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672fi
5673
Reid Spencercda35f82004-12-02 04:17:20 +00005674 test -n "$TCLSH" && break
5675done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005676
Reid Spencercda35f82004-12-02 04:17:20 +00005677 if test x"${TCLSH}" = x ; then
5678 ac_cv_path_tclsh='';
5679 else
5680 ac_cv_path_tclsh="${TCLSH}";
5681 fi
5682else
5683 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5684echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5685 TCLSH="${ac_cv_path_tclsh}"
5686
5687fi
5688
5689fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005690
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005691# Extract the first word of "zip", so it can be a program name with args.
5692set dummy zip; ac_word=$2
5693echo "$as_me:$LINENO: checking for $ac_word" >&5
5694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5695if test "${ac_cv_path_ZIP+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698 case $ZIP in
5699 [\\/]* | ?:[\\/]*)
5700 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5701 ;;
5702 *)
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714done
5715done
5716
5717 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5718 ;;
5719esac
5720fi
5721ZIP=$ac_cv_path_ZIP
5722
5723if test -n "$ZIP"; then
5724 echo "$as_me:$LINENO: result: $ZIP" >&5
5725echo "${ECHO_T}$ZIP" >&6
5726else
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729fi
5730
5731
5732echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5733echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5734if test "${llvm_cv_link_use_r+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005738ac_cpp='$CPP $CPPFLAGS'
5739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005743 oldcflags="$CFLAGS"
5744 CFLAGS="$CFLAGS -Wl,-R."
5745 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005746/* confdefs.h. */
5747_ACEOF
5748cat confdefs.h >>conftest.$ac_ext
5749cat >>conftest.$ac_ext <<_ACEOF
5750/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005751
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005752int
5753main ()
5754{
5755int main() { return 0; }
5756 ;
5757 return 0;
5758}
John Criswell47fdd832003-07-14 16:52:07 +00005759_ACEOF
5760rm -f conftest.$ac_objext conftest$ac_exeext
5761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005762 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005768 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005769 { ac_try='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005782 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005783else
John Criswell47fdd832003-07-14 16:52:07 +00005784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005785sed 's/^/| /' conftest.$ac_ext >&5
5786
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005787llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005788fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005789rm -f conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005791 CFLAGS="$oldcflags"
5792 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005793ac_cpp='$CPP $CPPFLAGS'
5794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005798
John Criswell7a73b802003-06-30 21:59:07 +00005799fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005800echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5801echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5802if test "$llvm_cv_link_use_r" = yes ; then
5803
5804cat >>confdefs.h <<\_ACEOF
5805#define HAVE_LINK_R 1
5806_ACEOF
5807
John Criswell47fdd832003-07-14 16:52:07 +00005808 fi
John Criswell47fdd832003-07-14 16:52:07 +00005809
John Criswell47fdd832003-07-14 16:52:07 +00005810
John Criswell47fdd832003-07-14 16:52:07 +00005811
John Criswell7a73b802003-06-30 21:59:07 +00005812
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005813echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5814echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5815if test "${ac_cv_c_const+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824
5825int
5826main ()
5827{
5828/* FIXME: Include the comments suggested by Paul. */
5829#ifndef __cplusplus
5830 /* Ultrix mips cc rejects this. */
5831 typedef int charset[2];
5832 const charset x;
5833 /* SunOS 4.1.1 cc rejects this. */
5834 char const *const *ccp;
5835 char **p;
5836 /* NEC SVR4.0.2 mips cc rejects this. */
5837 struct point {int x, y;};
5838 static struct point const zero = {0,0};
5839 /* AIX XL C 1.02.0.0 rejects this.
5840 It does not let you subtract one const X* pointer from another in
5841 an arm of an if-expression whose if-part is not a constant
5842 expression */
5843 const char *g = "string";
5844 ccp = &g + (g ? g-g : 0);
5845 /* HPUX 7.0 cc rejects these. */
5846 ++ccp;
5847 p = (char**) ccp;
5848 ccp = (char const *const *) p;
5849 { /* SCO 3.2v4 cc rejects this. */
5850 char *t;
5851 char const *s = 0 ? (char *) 0 : (char const *) 0;
5852
5853 *t++ = 0;
5854 }
5855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5856 int x[] = {25, 17};
5857 const int *foo = &x[0];
5858 ++foo;
5859 }
5860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5861 typedef const int *iptr;
5862 iptr p = 0;
5863 ++p;
5864 }
5865 { /* AIX XL C 1.02.0.0 rejects this saying
5866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5867 struct s { int j; const int *ap[3]; };
5868 struct s *b; b->j = 5;
5869 }
5870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5871 const int foo = 10;
5872 }
5873#endif
5874
5875 ;
5876 return 0;
5877}
5878_ACEOF
5879rm -f conftest.$ac_objext
5880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_c_const=yes
5902else
5903 echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906ac_cv_c_const=no
5907fi
5908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909fi
5910echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5911echo "${ECHO_T}$ac_cv_c_const" >&6
5912if test $ac_cv_c_const = no; then
5913
5914cat >>confdefs.h <<\_ACEOF
5915#define const
5916_ACEOF
5917
5918fi
5919
5920
5921echo "$as_me:$LINENO: checking for egrep" >&5
5922echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5923if test "${ac_cv_prog_egrep+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5927 then ac_cv_prog_egrep='grep -E'
5928 else ac_cv_prog_egrep='egrep'
5929 fi
5930fi
5931echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5932echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5933 EGREP=$ac_cv_prog_egrep
5934
John Criswell7a73b802003-06-30 21:59:07 +00005935
5936echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5937echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5938if test "${ac_cv_header_stdc+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005942/* confdefs.h. */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005947#include <stdlib.h>
5948#include <stdarg.h>
5949#include <string.h>
5950#include <float.h>
5951
John Criswell0c38eaf2003-09-10 15:17:25 +00005952int
5953main ()
5954{
5955
5956 ;
5957 return 0;
5958}
John Criswell7a73b802003-06-30 21:59:07 +00005959_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005960rm -f conftest.$ac_objext
5961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005962 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005963 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005968 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005969 { ac_try='test -z "$ac_c_werror_flag"
5970 || test ! -s conftest.err'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; } &&
5976 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005982 ac_cv_header_stdc=yes
5983else
5984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005985sed 's/^/| /' conftest.$ac_ext >&5
5986
5987ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005988fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005990
5991if test $ac_cv_header_stdc = yes; then
5992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5993 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005994/* confdefs.h. */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005999#include <string.h>
6000
6001_ACEOF
6002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006003 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006004 :
6005else
6006 ac_cv_header_stdc=no
6007fi
6008rm -f conftest*
6009
6010fi
6011
6012if test $ac_cv_header_stdc = yes; then
6013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6014 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006015/* confdefs.h. */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006020#include <stdlib.h>
6021
6022_ACEOF
6023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006024 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006025 :
6026else
6027 ac_cv_header_stdc=no
6028fi
6029rm -f conftest*
6030
6031fi
6032
6033if test $ac_cv_header_stdc = yes; then
6034 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6035 if test "$cross_compiling" = yes; then
6036 :
6037else
6038 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006044#include <ctype.h>
6045#if ((' ' & 0x0FF) == 0x020)
6046# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6047# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6048#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006049# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006050 (('a' <= (c) && (c) <= 'i') \
6051 || ('j' <= (c) && (c) <= 'r') \
6052 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006053# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6054#endif
6055
6056#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6057int
6058main ()
6059{
6060 int i;
6061 for (i = 0; i < 256; i++)
6062 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006063 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006064 exit(2);
6065 exit (0);
6066}
6067_ACEOF
6068rm -f conftest$ac_exeext
6069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6070 (eval $ac_link) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 :
6080else
6081 echo "$as_me: program exited with status $ac_status" >&5
6082echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006083sed 's/^/| /' conftest.$ac_ext >&5
6084
John Criswell7a73b802003-06-30 21:59:07 +00006085( exit $ac_status )
6086ac_cv_header_stdc=no
6087fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006088rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006089fi
6090fi
6091fi
6092echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6093echo "${ECHO_T}$ac_cv_header_stdc" >&6
6094if test $ac_cv_header_stdc = yes; then
6095
6096cat >>confdefs.h <<\_ACEOF
6097#define STDC_HEADERS 1
6098_ACEOF
6099
6100fi
6101
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006102
6103
6104
6105
6106
6107ac_header_dirent=no
6108for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6109 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6110echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6111echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6112if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121#include <sys/types.h>
6122#include <$ac_hdr>
6123
6124int
6125main ()
6126{
6127if ((DIR *) 0)
6128return 0;
6129 ;
6130 return 0;
6131}
6132_ACEOF
6133rm -f conftest.$ac_objext
6134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135 (eval $ac_compile) 2>conftest.er1
6136 ac_status=$?
6137 grep -v '^ *+' conftest.er1 >conftest.err
6138 rm -f conftest.er1
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -z "$ac_c_werror_flag"
6143 || test ! -s conftest.err'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; } &&
6149 { ac_try='test -s conftest.$ac_objext'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; }; then
6155 eval "$as_ac_Header=yes"
6156else
6157 echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160eval "$as_ac_Header=no"
6161fi
6162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6163fi
6164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6166if test `eval echo '${'$as_ac_Header'}'` = yes; then
6167 cat >>confdefs.h <<_ACEOF
6168#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6169_ACEOF
6170
6171ac_header_dirent=$ac_hdr; break
6172fi
6173
6174done
6175# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6176if test $ac_header_dirent = dirent.h; then
6177 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6178echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6179if test "${ac_cv_search_opendir+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
6182 ac_func_search_save_LIBS=$LIBS
6183ac_cv_search_opendir=no
6184cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h. */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h. */
6190
6191/* Override any gcc2 internal prototype to avoid an error. */
6192#ifdef __cplusplus
6193extern "C"
6194#endif
6195/* We use char because int might match the return type of a gcc2
6196 builtin and then its argument prototype would still apply. */
6197char opendir ();
6198int
6199main ()
6200{
6201opendir ();
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206rm -f conftest.$ac_objext conftest$ac_exeext
6207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6208 (eval $ac_link) 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -z "$ac_c_werror_flag"
6216 || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_search_opendir="none required"
6229else
6230 echo "$as_me: failed program was:" >&5
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
6233fi
6234rm -f conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6236if test "$ac_cv_search_opendir" = no; then
6237 for ac_lib in dir; do
6238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6239 cat >conftest.$ac_ext <<_ACEOF
6240/* confdefs.h. */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h. */
6245
6246/* Override any gcc2 internal prototype to avoid an error. */
6247#ifdef __cplusplus
6248extern "C"
6249#endif
6250/* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6252char opendir ();
6253int
6254main ()
6255{
6256opendir ();
6257 ;
6258 return 0;
6259}
6260_ACEOF
6261rm -f conftest.$ac_objext conftest$ac_exeext
6262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263 (eval $ac_link) 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag"
6271 || test ! -s conftest.err'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
6277 { ac_try='test -s conftest$ac_exeext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_search_opendir="-l$ac_lib"
6284break
6285else
6286 echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
6289fi
6290rm -f conftest.err conftest.$ac_objext \
6291 conftest$ac_exeext conftest.$ac_ext
6292 done
6293fi
6294LIBS=$ac_func_search_save_LIBS
6295fi
6296echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6297echo "${ECHO_T}$ac_cv_search_opendir" >&6
6298if test "$ac_cv_search_opendir" != no; then
6299 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6300
6301fi
6302
6303else
6304 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6305echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6306if test "${ac_cv_search_opendir+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309 ac_func_search_save_LIBS=$LIBS
6310ac_cv_search_opendir=no
6311cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317
6318/* Override any gcc2 internal prototype to avoid an error. */
6319#ifdef __cplusplus
6320extern "C"
6321#endif
6322/* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6324char opendir ();
6325int
6326main ()
6327{
6328opendir ();
6329 ;
6330 return 0;
6331}
6332_ACEOF
6333rm -f conftest.$ac_objext conftest$ac_exeext
6334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_search_opendir="none required"
6356else
6357 echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360fi
6361rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363if test "$ac_cv_search_opendir" = no; then
6364 for ac_lib in x; do
6365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6366 cat >conftest.$ac_ext <<_ACEOF
6367/* confdefs.h. */
6368_ACEOF
6369cat confdefs.h >>conftest.$ac_ext
6370cat >>conftest.$ac_ext <<_ACEOF
6371/* end confdefs.h. */
6372
6373/* Override any gcc2 internal prototype to avoid an error. */
6374#ifdef __cplusplus
6375extern "C"
6376#endif
6377/* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6379char opendir ();
6380int
6381main ()
6382{
6383opendir ();
6384 ;
6385 return 0;
6386}
6387_ACEOF
6388rm -f conftest.$ac_objext conftest$ac_exeext
6389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try='test -z "$ac_c_werror_flag"
6398 || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest$ac_exeext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_search_opendir="-l$ac_lib"
6411break
6412else
6413 echo "$as_me: failed program was:" >&5
6414sed 's/^/| /' conftest.$ac_ext >&5
6415
6416fi
6417rm -f conftest.err conftest.$ac_objext \
6418 conftest$ac_exeext conftest.$ac_ext
6419 done
6420fi
6421LIBS=$ac_func_search_save_LIBS
6422fi
6423echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6424echo "${ECHO_T}$ac_cv_search_opendir" >&6
6425if test "$ac_cv_search_opendir" != no; then
6426 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6427
6428fi
6429
6430fi
6431
John Criswell7a73b802003-06-30 21:59:07 +00006432# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006443 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006444do
6445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6446echo "$as_me:$LINENO: checking for $ac_header" >&5
6447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6448if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006452/* confdefs.h. */
6453_ACEOF
6454cat confdefs.h >>conftest.$ac_ext
6455cat >>conftest.$ac_ext <<_ACEOF
6456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006457$ac_includes_default
6458
6459#include <$ac_header>
6460_ACEOF
6461rm -f conftest.$ac_objext
6462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006463 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006465 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1
6467 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006470 { ac_try='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 eval "$as_ac_Header=yes"
6484else
6485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006486sed 's/^/| /' conftest.$ac_ext >&5
6487
John Criswell7a73b802003-06-30 21:59:07 +00006488eval "$as_ac_Header=no"
6489fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006491fi
6492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6494if test `eval echo '${'$as_ac_Header'}'` = yes; then
6495 cat >>confdefs.h <<_ACEOF
6496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6497_ACEOF
6498
6499fi
6500
6501done
6502
6503
6504
6505for ac_header in dlfcn.h
6506do
6507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006508if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6511if eval "test \"\${$as_ac_Header+set}\" = set"; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006513fi
6514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006516else
Brian Gaeke0a621332004-09-08 20:38:05 +00006517 # Is the header compilable?
6518echo "$as_me:$LINENO: checking $ac_header usability" >&5
6519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6520cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006521/* confdefs.h. */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006526$ac_includes_default
6527#include <$ac_header>
6528_ACEOF
6529rm -f conftest.$ac_objext
6530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006531 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006532 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006538 { ac_try='test -z "$ac_c_werror_flag"
6539 || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 (eval $ac_try) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006551 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006552else
6553 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006554sed 's/^/| /' conftest.$ac_ext >&5
6555
Brian Gaeke0a621332004-09-08 20:38:05 +00006556ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006557fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6560echo "${ECHO_T}$ac_header_compiler" >&6
6561
6562# Is the header present?
6563echo "$as_me:$LINENO: checking $ac_header presence" >&5
6564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6565cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006566/* confdefs.h. */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h. */
6571#include <$ac_header>
6572_ACEOF
6573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6575 ac_status=$?
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } >/dev/null; then
6581 if test -s conftest.err; then
6582 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006584 else
6585 ac_cpp_err=
6586 fi
6587else
6588 ac_cpp_err=yes
6589fi
6590if test -z "$ac_cpp_err"; then
6591 ac_header_preproc=yes
6592else
6593 echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596 ac_header_preproc=no
6597fi
6598rm -f conftest.err conftest.$ac_ext
6599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6600echo "${ECHO_T}$ac_header_preproc" >&6
6601
6602# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6604 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6609 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006610 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006611 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006624 (
6625 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006626## ----------------------------------- ##
6627## Report this to llvmbugs@cs.uiuc.edu ##
6628## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006629_ASBOX
6630 ) |
6631 sed "s/^/$as_me: WARNING: /" >&2
6632 ;;
6633esac
6634echo "$as_me:$LINENO: checking for $ac_header" >&5
6635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6636if eval "test \"\${$as_ac_Header+set}\" = set"; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006639 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006640fi
6641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006643
6644fi
John Criswell7a73b802003-06-30 21:59:07 +00006645if test `eval echo '${'$as_ac_Header'}'` = yes; then
6646 cat >>confdefs.h <<_ACEOF
6647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648_ACEOF
6649
6650fi
6651
6652done
6653
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006654# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6655if test "${enable_ltdl_install+set}" = set; then
6656 enableval="$enable_ltdl_install"
6657
6658fi;
6659
6660
6661
6662if test x"${enable_ltdl_install-no}" != xno; then
6663 INSTALL_LTDL_TRUE=
6664 INSTALL_LTDL_FALSE='#'
6665else
6666 INSTALL_LTDL_TRUE='#'
6667 INSTALL_LTDL_FALSE=
6668fi
6669
6670
6671
6672if test x"${enable_ltdl_convenience-no}" != xno; then
6673 CONVENIENCE_LTDL_TRUE=
6674 CONVENIENCE_LTDL_FALSE='#'
6675else
6676 CONVENIENCE_LTDL_TRUE='#'
6677 CONVENIENCE_LTDL_FALSE=
6678fi
6679
6680
6681echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6682echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6683library_names_spec=
6684libname_spec='lib$name'
6685soname_spec=
6686shrext_cmds=".so"
6687postinstall_cmds=
6688postuninstall_cmds=
6689finish_cmds=
6690finish_eval=
6691shlibpath_var=
6692shlibpath_overrides_runpath=unknown
6693version_type=none
6694dynamic_linker="$host_os ld.so"
6695sys_lib_dlsearch_path_spec="/lib /usr/lib"
6696if test "$GCC" = yes; then
6697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6699 # if the path contains ";" then we assume it to be the separator
6700 # otherwise default to the standard path separator (i.e. ":") - it is
6701 # assumed that no part of a normal pathname contains ";" but that should
6702 # okay in the real world where ";" in dirpaths is itself problematic.
6703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6704 else
6705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6706 fi
6707else
6708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6709fi
6710need_lib_prefix=unknown
6711hardcode_into_libs=no
6712
6713# when you set need_version to no, make sure it does not cause -set_version
6714# flags to be left without arguments
6715need_version=unknown
6716
6717case $host_os in
6718aix3*)
6719 version_type=linux
6720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6721 shlibpath_var=LIBPATH
6722
6723 # AIX 3 has no versioning support, so we append a major version to the name.
6724 soname_spec='${libname}${release}${shared_ext}$major'
6725 ;;
6726
6727aix4* | aix5*)
6728 version_type=linux
6729 need_lib_prefix=no
6730 need_version=no
6731 hardcode_into_libs=yes
6732 if test "$host_cpu" = ia64; then
6733 # AIX 5 supports IA64
6734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6735 shlibpath_var=LD_LIBRARY_PATH
6736 else
6737 # With GCC up to 2.95.x, collect2 would create an import file
6738 # for dependence libraries. The import file would start with
6739 # the line `#! .'. This would cause the generated library to
6740 # depend on `.', always an invalid library. This was fixed in
6741 # development snapshots of GCC prior to 3.0.
6742 case $host_os in
6743 aix4 | aix4.[01] | aix4.[01].*)
6744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6745 echo ' yes '
6746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6747 :
6748 else
6749 can_build_shared=no
6750 fi
6751 ;;
6752 esac
6753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6754 # soname into executable. Probably we can add versioning support to
6755 # collect2, so additional links can be useful in future.
6756 if test "$aix_use_runtimelinking" = yes; then
6757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6758 # instead of lib<name>.a to let people know that these are not
6759 # typical AIX shared libraries.
6760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6761 else
6762 # We preserve .a as extension for shared libraries through AIX4.2
6763 # and later when we are not doing run time linking.
6764 library_names_spec='${libname}${release}.a $libname.a'
6765 soname_spec='${libname}${release}${shared_ext}$major'
6766 fi
6767 shlibpath_var=LIBPATH
6768 fi
6769 ;;
6770
6771amigaos*)
6772 library_names_spec='$libname.ixlibrary $libname.a'
6773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6774 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'
6775 ;;
6776
6777beos*)
6778 library_names_spec='${libname}${shared_ext}'
6779 dynamic_linker="$host_os ld.so"
6780 shlibpath_var=LIBRARY_PATH
6781 ;;
6782
6783bsdi[45]*)
6784 version_type=linux
6785 need_version=no
6786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6787 soname_spec='${libname}${release}${shared_ext}$major'
6788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6789 shlibpath_var=LD_LIBRARY_PATH
6790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6792 # the default ld.so.conf also contains /usr/contrib/lib and
6793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6794 # libtool to hard-code these into programs
6795 ;;
6796
6797cygwin* | mingw* | pw32*)
6798 version_type=windows
6799 shrext_cmds=".dll"
6800 need_version=no
6801 need_lib_prefix=no
6802
6803 case $GCC,$host_os in
6804 yes,cygwin* | yes,mingw* | yes,pw32*)
6805 library_names_spec='$libname.dll.a'
6806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6807 postinstall_cmds='base_file=`basename \${file}`~
6808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6809 dldir=$destdir/`dirname \$dlpath`~
6810 test -d \$dldir || mkdir -p \$dldir~
6811 $install_prog $dir/$dlname \$dldir/$dlname'
6812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6813 dlpath=$dir/\$dldll~
6814 $rm \$dlpath'
6815 shlibpath_overrides_runpath=yes
6816
6817 case $host_os in
6818 cygwin*)
6819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6822 ;;
6823 mingw*)
6824 # MinGW DLLs use traditional 'lib' prefix
6825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6828 # It is most probably a Windows format PATH printed by
6829 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6830 # path with ; separators, and with drive letters. We can handle the
6831 # drive letters (cygwin fileutils understands them), so leave them,
6832 # especially as we might pass files found there to a mingw objdump,
6833 # which wouldn't understand a cygwinified path. Ahh.
6834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6835 else
6836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6837 fi
6838 ;;
6839 pw32*)
6840 # pw32 DLLs use 'pw' prefix rather than 'lib'
6841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6842 ;;
6843 esac
6844 ;;
6845
6846 *)
6847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6848 ;;
6849 esac
6850 dynamic_linker='Win32 ld.exe'
6851 # FIXME: first we should search . and the directory the executable is in
6852 shlibpath_var=PATH
6853 ;;
6854
6855darwin* | rhapsody*)
6856 dynamic_linker="$host_os dyld"
6857 version_type=darwin
6858 need_lib_prefix=no
6859 need_version=no
6860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6861 soname_spec='${libname}${release}${major}$shared_ext'
6862 shlibpath_overrides_runpath=yes
6863 shlibpath_var=DYLD_LIBRARY_PATH
6864 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6865 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6866 if test "$GCC" = yes; then
6867 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"`
6868 else
6869 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6870 fi
6871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6872 ;;
6873
6874dgux*)
6875 version_type=linux
6876 need_lib_prefix=no
6877 need_version=no
6878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6879 soname_spec='${libname}${release}${shared_ext}$major'
6880 shlibpath_var=LD_LIBRARY_PATH
6881 ;;
6882
6883freebsd1*)
6884 dynamic_linker=no
6885 ;;
6886
6887kfreebsd*-gnu)
6888 version_type=linux
6889 need_lib_prefix=no
6890 need_version=no
6891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6892 soname_spec='${libname}${release}${shared_ext}$major'
6893 shlibpath_var=LD_LIBRARY_PATH
6894 shlibpath_overrides_runpath=no
6895 hardcode_into_libs=yes
6896 dynamic_linker='GNU ld.so'
6897 ;;
6898
6899freebsd*)
6900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6901 version_type=freebsd-$objformat
6902 case $version_type in
6903 freebsd-elf*)
6904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6905 need_version=no
6906 need_lib_prefix=no
6907 ;;
6908 freebsd-*)
6909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6910 need_version=yes
6911 ;;
6912 esac
6913 shlibpath_var=LD_LIBRARY_PATH
6914 case $host_os in
6915 freebsd2*)
6916 shlibpath_overrides_runpath=yes
6917 ;;
6918 freebsd3.01* | freebsdelf3.01*)
6919 shlibpath_overrides_runpath=yes
6920 hardcode_into_libs=yes
6921 ;;
6922 *) # from 3.2 on
6923 shlibpath_overrides_runpath=no
6924 hardcode_into_libs=yes
6925 ;;
6926 esac
6927 ;;
6928
6929gnu*)
6930 version_type=linux
6931 need_lib_prefix=no
6932 need_version=no
6933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6934 soname_spec='${libname}${release}${shared_ext}$major'
6935 shlibpath_var=LD_LIBRARY_PATH
6936 hardcode_into_libs=yes
6937 ;;
6938
6939hpux9* | hpux10* | hpux11*)
6940 # Give a soname corresponding to the major version so that dld.sl refuses to
6941 # link against other versions.
6942 version_type=sunos
6943 need_lib_prefix=no
6944 need_version=no
6945 case "$host_cpu" in
6946 ia64*)
6947 shrext_cmds='.so'
6948 hardcode_into_libs=yes
6949 dynamic_linker="$host_os dld.so"
6950 shlibpath_var=LD_LIBRARY_PATH
6951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6953 soname_spec='${libname}${release}${shared_ext}$major'
6954 if test "X$HPUX_IA64_MODE" = X32; then
6955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6956 else
6957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6958 fi
6959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6960 ;;
6961 hppa*64*)
6962 shrext_cmds='.sl'
6963 hardcode_into_libs=yes
6964 dynamic_linker="$host_os dld.sl"
6965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6968 soname_spec='${libname}${release}${shared_ext}$major'
6969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6971 ;;
6972 *)
6973 shrext_cmds='.sl'
6974 dynamic_linker="$host_os dld.sl"
6975 shlibpath_var=SHLIB_PATH
6976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6978 soname_spec='${libname}${release}${shared_ext}$major'
6979 ;;
6980 esac
6981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6982 postinstall_cmds='chmod 555 $lib'
6983 ;;
6984
6985irix5* | irix6* | nonstopux*)
6986 case $host_os in
6987 nonstopux*) version_type=nonstopux ;;
6988 *)
6989 if test "$lt_cv_prog_gnu_ld" = yes; then
6990 version_type=linux
6991 else
6992 version_type=irix
6993 fi ;;
6994 esac
6995 need_lib_prefix=no
6996 need_version=no
6997 soname_spec='${libname}${release}${shared_ext}$major'
6998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6999 case $host_os in
7000 irix5* | nonstopux*)
7001 libsuff= shlibsuff=
7002 ;;
7003 *)
7004 case $LD in # libtool.m4 will add one of these switches to LD
7005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7006 libsuff= shlibsuff= libmagic=32-bit;;
7007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7008 libsuff=32 shlibsuff=N32 libmagic=N32;;
7009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7011 *) libsuff= shlibsuff= libmagic=never-match;;
7012 esac
7013 ;;
7014 esac
7015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7016 shlibpath_overrides_runpath=no
7017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7019 hardcode_into_libs=yes
7020 ;;
7021
7022# No shared lib support for Linux oldld, aout, or coff.
7023linux*oldld* | linux*aout* | linux*coff*)
7024 dynamic_linker=no
7025 ;;
7026
7027# This must be Linux ELF.
7028linux*)
7029 version_type=linux
7030 need_lib_prefix=no
7031 need_version=no
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033 soname_spec='${libname}${release}${shared_ext}$major'
7034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7035 shlibpath_var=LD_LIBRARY_PATH
7036 shlibpath_overrides_runpath=no
7037 # This implies no fast_install, which is unacceptable.
7038 # Some rework will be needed to allow for fast_install
7039 # before this can be enabled.
7040 hardcode_into_libs=yes
7041
7042 # Append ld.so.conf contents to the search path
7043 if test -f /etc/ld.so.conf; then
7044 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7046 fi
7047
7048 # We used to test for /lib/ld.so.1 and disable shared libraries on
7049 # powerpc, because MkLinux only supported shared libraries with the
7050 # GNU dynamic linker. Since this was broken with cross compilers,
7051 # most powerpc-linux boxes support dynamic linking these days and
7052 # people can always --disable-shared, the test was removed, and we
7053 # assume the GNU/Linux dynamic linker is in use.
7054 dynamic_linker='GNU/Linux ld.so'
7055 ;;
7056
7057knetbsd*-gnu)
7058 version_type=linux
7059 need_lib_prefix=no
7060 need_version=no
7061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7062 soname_spec='${libname}${release}${shared_ext}$major'
7063 shlibpath_var=LD_LIBRARY_PATH
7064 shlibpath_overrides_runpath=no
7065 hardcode_into_libs=yes
7066 dynamic_linker='GNU ld.so'
7067 ;;
7068
7069netbsd*)
7070 version_type=sunos
7071 need_lib_prefix=no
7072 need_version=no
7073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7076 dynamic_linker='NetBSD (a.out) ld.so'
7077 else
7078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7079 soname_spec='${libname}${release}${shared_ext}$major'
7080 dynamic_linker='NetBSD ld.elf_so'
7081 fi
7082 shlibpath_var=LD_LIBRARY_PATH
7083 shlibpath_overrides_runpath=yes
7084 hardcode_into_libs=yes
7085 ;;
7086
7087newsos6)
7088 version_type=linux
7089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 shlibpath_overrides_runpath=yes
7092 ;;
7093
7094nto-qnx*)
7095 version_type=linux
7096 need_lib_prefix=no
7097 need_version=no
7098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7099 soname_spec='${libname}${release}${shared_ext}$major'
7100 shlibpath_var=LD_LIBRARY_PATH
7101 shlibpath_overrides_runpath=yes
7102 ;;
7103
7104openbsd*)
7105 version_type=sunos
7106 need_lib_prefix=no
7107 need_version=no
7108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7110 shlibpath_var=LD_LIBRARY_PATH
7111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7112 case $host_os in
7113 openbsd2.[89] | openbsd2.[89].*)
7114 shlibpath_overrides_runpath=no
7115 ;;
7116 *)
7117 shlibpath_overrides_runpath=yes
7118 ;;
7119 esac
7120 else
7121 shlibpath_overrides_runpath=yes
7122 fi
7123 ;;
7124
7125os2*)
7126 libname_spec='$name'
7127 shrext_cmds=".dll"
7128 need_lib_prefix=no
7129 library_names_spec='$libname${shared_ext} $libname.a'
7130 dynamic_linker='OS/2 ld.exe'
7131 shlibpath_var=LIBPATH
7132 ;;
7133
7134osf3* | osf4* | osf5*)
7135 version_type=osf
7136 need_lib_prefix=no
7137 need_version=no
7138 soname_spec='${libname}${release}${shared_ext}$major'
7139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7140 shlibpath_var=LD_LIBRARY_PATH
7141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7143 ;;
7144
7145sco3.2v5*)
7146 version_type=osf
7147 soname_spec='${libname}${release}${shared_ext}$major'
7148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7149 shlibpath_var=LD_LIBRARY_PATH
7150 ;;
7151
7152solaris*)
7153 version_type=linux
7154 need_lib_prefix=no
7155 need_version=no
7156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7157 soname_spec='${libname}${release}${shared_ext}$major'
7158 shlibpath_var=LD_LIBRARY_PATH
7159 shlibpath_overrides_runpath=yes
7160 hardcode_into_libs=yes
7161 # ldd complains unless libraries are executable
7162 postinstall_cmds='chmod +x $lib'
7163 ;;
7164
7165sunos4*)
7166 version_type=sunos
7167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7169 shlibpath_var=LD_LIBRARY_PATH
7170 shlibpath_overrides_runpath=yes
7171 if test "$with_gnu_ld" = yes; then
7172 need_lib_prefix=no
7173 fi
7174 need_version=yes
7175 ;;
7176
7177sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7178 version_type=linux
7179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7180 soname_spec='${libname}${release}${shared_ext}$major'
7181 shlibpath_var=LD_LIBRARY_PATH
7182 case $host_vendor in
7183 sni)
7184 shlibpath_overrides_runpath=no
7185 need_lib_prefix=no
7186 export_dynamic_flag_spec='${wl}-Blargedynsym'
7187 runpath_var=LD_RUN_PATH
7188 ;;
7189 siemens)
7190 need_lib_prefix=no
7191 ;;
7192 motorola)
7193 need_lib_prefix=no
7194 need_version=no
7195 shlibpath_overrides_runpath=no
7196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7197 ;;
7198 esac
7199 ;;
7200
7201sysv4*MP*)
7202 if test -d /usr/nec ;then
7203 version_type=linux
7204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7205 soname_spec='$libname${shared_ext}.$major'
7206 shlibpath_var=LD_LIBRARY_PATH
7207 fi
7208 ;;
7209
7210uts4*)
7211 version_type=linux
7212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7213 soname_spec='${libname}${release}${shared_ext}$major'
7214 shlibpath_var=LD_LIBRARY_PATH
7215 ;;
7216
7217*)
7218 dynamic_linker=no
7219 ;;
7220esac
7221echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7222echo "${ECHO_T}$dynamic_linker" >&6
7223test "$dynamic_linker" = no && can_build_shared=no
7224
7225
7226echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7227echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7228if test "${libltdl_cv_shlibext+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231
7232module=yes
7233eval libltdl_cv_shlibext=$shrext_cmds
7234
7235fi
7236echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7237echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7238if test -n "$libltdl_cv_shlibext"; then
7239
7240cat >>confdefs.h <<_ACEOF
7241#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7242_ACEOF
7243
7244fi
7245
7246
7247echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7248echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7249if test "${libltdl_cv_shlibpath_var+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252 libltdl_cv_shlibpath_var="$shlibpath_var"
7253fi
7254echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7255echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7256if test -n "$libltdl_cv_shlibpath_var"; then
7257
7258cat >>confdefs.h <<_ACEOF
7259#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7260_ACEOF
7261
7262fi
7263
7264
7265echo "$as_me:$LINENO: checking for the default library search path" >&5
7266echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7267if test "${libltdl_cv_sys_search_path+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7271fi
7272echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7273echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7274if test -n "$libltdl_cv_sys_search_path"; then
7275 sys_search_path=
7276 for dir in $libltdl_cv_sys_search_path; do
7277 if test -z "$sys_search_path"; then
7278 sys_search_path="$dir"
7279 else
7280 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7281 fi
7282 done
7283
7284cat >>confdefs.h <<_ACEOF
7285#define LTDL_SYSSEARCHPATH "$sys_search_path"
7286_ACEOF
7287
7288fi
7289
7290echo "$as_me:$LINENO: checking for objdir" >&5
7291echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7292if test "${libltdl_cv_objdir+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 libltdl_cv_objdir="$objdir"
7296 if test -n "$objdir"; then
7297 :
7298 else
7299 rm -f .libs 2>/dev/null
7300 mkdir .libs 2>/dev/null
7301 if test -d .libs; then
7302 libltdl_cv_objdir=.libs
7303 else
7304 # MS-DOS does not allow filenames that begin with a dot.
7305 libltdl_cv_objdir=_libs
7306 fi
7307 rmdir .libs 2>/dev/null
7308 fi
7309
7310fi
7311echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7312echo "${ECHO_T}$libltdl_cv_objdir" >&6
7313
7314cat >>confdefs.h <<_ACEOF
7315#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7316_ACEOF
7317
7318
7319echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7320echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7321if test "${lt_cv_path_NM+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324 if test -n "$NM"; then
7325 # Let the user override the test.
7326 lt_cv_path_NM="$NM"
7327else
7328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7329 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7330 IFS="$lt_save_ifs"
7331 test -z "$ac_dir" && ac_dir=.
7332 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7334 # Check to see if the nm accepts a BSD-compat flag.
7335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7336 # nm: unknown option "B" ignored
7337 # Tru64's nm complains that /dev/null is an invalid object file
7338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7339 */dev/null* | *'Invalid file or object type'*)
7340 lt_cv_path_NM="$tmp_nm -B"
7341 break
7342 ;;
7343 *)
7344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7345 */dev/null*)
7346 lt_cv_path_NM="$tmp_nm -p"
7347 break
7348 ;;
7349 *)
7350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7351 continue # so that we can try to find one that supports BSD flags
7352 ;;
7353 esac
7354 esac
7355 fi
7356 done
7357 IFS="$lt_save_ifs"
7358 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7359fi
7360fi
7361echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7362echo "${ECHO_T}$lt_cv_path_NM" >&6
7363NM="$lt_cv_path_NM"
7364
7365
7366
7367
7368
7369# Check for command to grab the raw symbol name followed by C symbol from nm.
7370echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7371echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7372if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374else
7375
7376# These are sane defaults that work on at least a few old systems.
7377# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7378
7379# Character class describing NM global symbol codes.
7380symcode='[BCDEGRST]'
7381
7382# Regexp to match symbols that can be accessed directly from C.
7383sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7384
7385# Transform the above into a raw symbol and a C symbol.
7386symxfrm='\1 \2\3 \3'
7387
7388# Transform an extracted symbol line into a proper C declaration
7389lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7390
7391# Transform an extracted symbol line into symbol name and symbol address
7392lt_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'"
7393
7394# Define system-specific variables.
7395case $host_os in
7396aix*)
7397 symcode='[BCDT]'
7398 ;;
7399cygwin* | mingw* | pw32*)
7400 symcode='[ABCDGISTW]'
7401 ;;
7402hpux*) # Its linker distinguishes data from code symbols
7403 if test "$host_cpu" = ia64; then
7404 symcode='[ABCDEGRST]'
7405 fi
7406 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7407 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'"
7408 ;;
7409linux*)
7410 if test "$host_cpu" = ia64; then
7411 symcode='[ABCDGIRSTW]'
7412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7413 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'"
7414 fi
7415 ;;
7416irix* | nonstopux*)
7417 symcode='[BCDEGRST]'
7418 ;;
7419osf*)
7420 symcode='[BCDEGQRST]'
7421 ;;
7422solaris* | sysv5*)
7423 symcode='[BDRT]'
7424 ;;
7425sysv4)
7426 symcode='[DFNSTU]'
7427 ;;
7428esac
7429
7430# Handle CRLF in mingw tool chain
7431opt_cr=
7432case $build_os in
7433mingw*)
7434 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7435 ;;
7436esac
7437
7438# If we're using GNU nm, then use its standard symbol codes.
7439case `$NM -V 2>&1` in
7440*GNU* | *'with BFD'*)
7441 symcode='[ABCDGIRSTW]' ;;
7442esac
7443
7444# Try without a prefix undercore, then with it.
7445for ac_symprfx in "" "_"; do
7446
7447 # Write the raw and C identifiers.
7448 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7449
7450 # Check to see that the pipe works correctly.
7451 pipe_works=no
7452
7453 rm -f conftest*
7454 cat > conftest.$ac_ext <<EOF
7455#ifdef __cplusplus
7456extern "C" {
7457#endif
7458char nm_test_var;
7459void nm_test_func(){}
7460#ifdef __cplusplus
7461}
7462#endif
7463int main(){nm_test_var='a';nm_test_func();return(0);}
7464EOF
7465
7466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7467 (eval $ac_compile) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; then
7471 # Now try to grab the symbols.
7472 nlist=conftest.nm
7473 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7474 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && test -s "$nlist"; then
7478 # Try sorting and uniquifying the output.
7479 if sort "$nlist" | uniq > "$nlist"T; then
7480 mv -f "$nlist"T "$nlist"
7481 else
7482 rm -f "$nlist"T
7483 fi
7484
7485 # Make sure that we snagged all the symbols we need.
7486 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7487 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7488 cat <<EOF > conftest.$ac_ext
7489#ifdef __cplusplus
7490extern "C" {
7491#endif
7492
7493EOF
7494 # Now generate the symbol file.
7495 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7496
7497 cat <<EOF >> conftest.$ac_ext
7498#if defined (__STDC__) && __STDC__
7499# define lt_ptr_t void *
7500#else
7501# define lt_ptr_t char *
7502# define const
7503#endif
7504
7505/* The mapping between symbol names and symbols. */
7506const struct {
7507 const char *name;
7508 lt_ptr_t address;
7509}
7510lt_preloaded_symbols[] =
7511{
7512EOF
7513 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7514 cat <<\EOF >> conftest.$ac_ext
7515 {0, (lt_ptr_t) 0}
7516};
7517
7518#ifdef __cplusplus
7519}
7520#endif
7521EOF
7522 # Now try linking the two files.
7523 mv conftest.$ac_objext conftstm.$ac_objext
7524 lt_save_LIBS="$LIBS"
7525 lt_save_CFLAGS="$CFLAGS"
7526 LIBS="conftstm.$ac_objext"
7527 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529 (eval $ac_link) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7533 pipe_works=yes
7534 fi
7535 LIBS="$lt_save_LIBS"
7536 CFLAGS="$lt_save_CFLAGS"
7537 else
7538 echo "cannot find nm_test_func in $nlist" >&5
7539 fi
7540 else
7541 echo "cannot find nm_test_var in $nlist" >&5
7542 fi
7543 else
7544 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7545 fi
7546 else
7547 echo "$progname: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 fi
7550 rm -f conftest* conftst*
7551
7552 # Do not use the global_symbol_pipe unless it works.
7553 if test "$pipe_works" = yes; then
7554 break
7555 else
7556 lt_cv_sys_global_symbol_pipe=
7557 fi
7558done
7559
7560fi
7561
7562if test -z "$lt_cv_sys_global_symbol_pipe"; then
7563 lt_cv_sys_global_symbol_to_cdecl=
7564fi
7565if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7566 echo "$as_me:$LINENO: result: failed" >&5
7567echo "${ECHO_T}failed" >&6
7568else
7569 echo "$as_me:$LINENO: result: ok" >&5
7570echo "${ECHO_T}ok" >&6
7571fi
7572
7573
7574echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7575echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7576if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7580 libltdl_cv_preloaded_symbols=yes
7581 else
7582 libltdl_cv_preloaded_symbols=no
7583 fi
7584
7585fi
7586echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7587echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7588if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_PRELOADED_SYMBOLS 1
7592_ACEOF
7593
7594fi
7595
7596LIBADD_DL=
7597
7598ac_ext=c
7599ac_cpp='$CPP $CPPFLAGS'
7600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604
7605echo "$as_me:$LINENO: checking for shl_load" >&5
7606echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7607if test "${ac_cv_func_shl_load+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h. */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
7616/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7618#define shl_load innocuous_shl_load
7619
7620/* System header to define __stub macros and hopefully few prototypes,
7621 which can conflict with char shl_load (); below.
7622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7623 <limits.h> exists even on freestanding compilers. */
7624
7625#ifdef __STDC__
7626# include <limits.h>
7627#else
7628# include <assert.h>
7629#endif
7630
7631#undef shl_load
7632
7633/* Override any gcc2 internal prototype to avoid an error. */
7634#ifdef __cplusplus
7635extern "C"
7636{
7637#endif
7638/* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7640char shl_load ();
7641/* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644#if defined (__stub_shl_load) || defined (__stub___shl_load)
7645choke me
7646#else
7647char (*f) () = shl_load;
7648#endif
7649#ifdef __cplusplus
7650}
7651#endif
7652
7653int
7654main ()
7655{
7656return f != shl_load;
7657 ;
7658 return 0;
7659}
7660_ACEOF
7661rm -f conftest.$ac_objext conftest$ac_exeext
7662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try='test -z "$ac_c_werror_flag"
7671 || test ! -s conftest.err'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; } &&
7677 { ac_try='test -s conftest$ac_exeext'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 (eval $ac_try) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 ac_cv_func_shl_load=yes
7684else
7685 echo "$as_me: failed program was:" >&5
7686sed 's/^/| /' conftest.$ac_ext >&5
7687
7688ac_cv_func_shl_load=no
7689fi
7690rm -f conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7692fi
7693echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7694echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7695if test $ac_cv_func_shl_load = yes; then
7696
7697cat >>confdefs.h <<\_ACEOF
7698#define HAVE_SHL_LOAD 1
7699_ACEOF
7700
7701else
7702 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7703echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7704if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 ac_check_lib_save_LIBS=$LIBS
7708LIBS="-ldld $LIBS"
7709cat >conftest.$ac_ext <<_ACEOF
7710/* confdefs.h. */
7711_ACEOF
7712cat confdefs.h >>conftest.$ac_ext
7713cat >>conftest.$ac_ext <<_ACEOF
7714/* end confdefs.h. */
7715
7716/* Override any gcc2 internal prototype to avoid an error. */
7717#ifdef __cplusplus
7718extern "C"
7719#endif
7720/* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722char shl_load ();
7723int
7724main ()
7725{
7726shl_load ();
7727 ;
7728 return 0;
7729}
7730_ACEOF
7731rm -f conftest.$ac_objext conftest$ac_exeext
7732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7733 (eval $ac_link) 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag"
7741 || test ! -s conftest.err'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 (eval $ac_try) 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; } &&
7747 { ac_try='test -s conftest$ac_exeext'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7753 ac_cv_lib_dld_shl_load=yes
7754else
7755 echo "$as_me: failed program was:" >&5
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
7758ac_cv_lib_dld_shl_load=no
7759fi
7760rm -f conftest.err conftest.$ac_objext \
7761 conftest$ac_exeext conftest.$ac_ext
7762LIBS=$ac_check_lib_save_LIBS
7763fi
7764echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7765echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7766if test $ac_cv_lib_dld_shl_load = yes; then
7767
7768cat >>confdefs.h <<\_ACEOF
7769#define HAVE_SHL_LOAD 1
7770_ACEOF
7771
7772 LIBADD_DL="$LIBADD_DL -ldld"
7773else
7774 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7775echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7776if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778else
7779 ac_check_lib_save_LIBS=$LIBS
7780LIBS="-ldl $LIBS"
7781cat >conftest.$ac_ext <<_ACEOF
7782/* confdefs.h. */
7783_ACEOF
7784cat confdefs.h >>conftest.$ac_ext
7785cat >>conftest.$ac_ext <<_ACEOF
7786/* end confdefs.h. */
7787
7788/* Override any gcc2 internal prototype to avoid an error. */
7789#ifdef __cplusplus
7790extern "C"
7791#endif
7792/* We use char because int might match the return type of a gcc2
7793 builtin and then its argument prototype would still apply. */
7794char dlopen ();
7795int
7796main ()
7797{
7798dlopen ();
7799 ;
7800 return 0;
7801}
7802_ACEOF
7803rm -f conftest.$ac_objext conftest$ac_exeext
7804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7805 (eval $ac_link) 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag"
7813 || test ! -s conftest.err'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest$ac_exeext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_lib_dl_dlopen=yes
7826else
7827 echo "$as_me: failed program was:" >&5
7828sed 's/^/| /' conftest.$ac_ext >&5
7829
7830ac_cv_lib_dl_dlopen=no
7831fi
7832rm -f conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834LIBS=$ac_check_lib_save_LIBS
7835fi
7836echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7837echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7838if test $ac_cv_lib_dl_dlopen = yes; then
7839
7840cat >>confdefs.h <<\_ACEOF
7841#define HAVE_LIBDL 1
7842_ACEOF
7843
7844 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7845else
7846 cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h. */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h. */
7852#if HAVE_DLFCN_H
7853# include <dlfcn.h>
7854#endif
7855
7856int
7857main ()
7858{
7859dlopen(0, 0);
7860 ;
7861 return 0;
7862}
7863_ACEOF
7864rm -f conftest.$ac_objext conftest$ac_exeext
7865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7866 (eval $ac_link) 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag"
7874 || test ! -s conftest.err'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; } &&
7880 { ac_try='test -s conftest$ac_exeext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886
7887cat >>confdefs.h <<\_ACEOF
7888#define HAVE_LIBDL 1
7889_ACEOF
7890 libltdl_cv_func_dlopen="yes"
7891else
7892 echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7896echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7897if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 ac_check_lib_save_LIBS=$LIBS
7901LIBS="-lsvld $LIBS"
7902cat >conftest.$ac_ext <<_ACEOF
7903/* confdefs.h. */
7904_ACEOF
7905cat confdefs.h >>conftest.$ac_ext
7906cat >>conftest.$ac_ext <<_ACEOF
7907/* end confdefs.h. */
7908
7909/* Override any gcc2 internal prototype to avoid an error. */
7910#ifdef __cplusplus
7911extern "C"
7912#endif
7913/* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7915char dlopen ();
7916int
7917main ()
7918{
7919dlopen ();
7920 ;
7921 return 0;
7922}
7923_ACEOF
7924rm -f conftest.$ac_objext conftest$ac_exeext
7925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag"
7934 || test ! -s conftest.err'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 ac_cv_lib_svld_dlopen=yes
7947else
7948 echo "$as_me: failed program was:" >&5
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7951ac_cv_lib_svld_dlopen=no
7952fi
7953rm -f conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
7955LIBS=$ac_check_lib_save_LIBS
7956fi
7957echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7958echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7959if test $ac_cv_lib_svld_dlopen = yes; then
7960
7961cat >>confdefs.h <<\_ACEOF
7962#define HAVE_LIBDL 1
7963_ACEOF
7964
7965 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7966else
7967 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7968echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7969if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971else
7972 ac_check_lib_save_LIBS=$LIBS
7973LIBS="-ldld $LIBS"
7974cat >conftest.$ac_ext <<_ACEOF
7975/* confdefs.h. */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h. */
7980
7981/* Override any gcc2 internal prototype to avoid an error. */
7982#ifdef __cplusplus
7983extern "C"
7984#endif
7985/* We use char because int might match the return type of a gcc2
7986 builtin and then its argument prototype would still apply. */
7987char dld_link ();
7988int
7989main ()
7990{
7991dld_link ();
7992 ;
7993 return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext conftest$ac_exeext
7997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>conftest.er1
7999 ac_status=$?
8000 grep -v '^ *+' conftest.er1 >conftest.err
8001 rm -f conftest.er1
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag"
8006 || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_lib_dld_dld_link=yes
8019else
8020 echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023ac_cv_lib_dld_dld_link=no
8024fi
8025rm -f conftest.err conftest.$ac_objext \
8026 conftest$ac_exeext conftest.$ac_ext
8027LIBS=$ac_check_lib_save_LIBS
8028fi
8029echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8030echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8031if test $ac_cv_lib_dld_dld_link = yes; then
8032
8033cat >>confdefs.h <<\_ACEOF
8034#define HAVE_DLD 1
8035_ACEOF
8036
8037 LIBADD_DL="$LIBADD_DL -ldld"
8038else
8039 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8040echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8041if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043else
8044 cat >conftest.$ac_ext <<_ACEOF
8045/* confdefs.h. */
8046_ACEOF
8047cat confdefs.h >>conftest.$ac_ext
8048cat >>conftest.$ac_ext <<_ACEOF
8049/* end confdefs.h. */
8050/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8052#define _dyld_func_lookup innocuous__dyld_func_lookup
8053
8054/* System header to define __stub macros and hopefully few prototypes,
8055 which can conflict with char _dyld_func_lookup (); below.
8056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8057 <limits.h> exists even on freestanding compilers. */
8058
8059#ifdef __STDC__
8060# include <limits.h>
8061#else
8062# include <assert.h>
8063#endif
8064
8065#undef _dyld_func_lookup
8066
8067/* Override any gcc2 internal prototype to avoid an error. */
8068#ifdef __cplusplus
8069extern "C"
8070{
8071#endif
8072/* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074char _dyld_func_lookup ();
8075/* The GNU C library defines this for functions which it implements
8076 to always fail with ENOSYS. Some functions are actually named
8077 something starting with __ and the normal name is an alias. */
8078#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8079choke me
8080#else
8081char (*f) () = _dyld_func_lookup;
8082#endif
8083#ifdef __cplusplus
8084}
8085#endif
8086
8087int
8088main ()
8089{
8090return f != _dyld_func_lookup;
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext conftest$ac_exeext
8096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097 (eval $ac_link) 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag"
8105 || test ! -s conftest.err'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 (eval $ac_try) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 ac_cv_func__dyld_func_lookup=yes
8118else
8119 echo "$as_me: failed program was:" >&5
8120sed 's/^/| /' conftest.$ac_ext >&5
8121
8122ac_cv_func__dyld_func_lookup=no
8123fi
8124rm -f conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126fi
8127echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8128echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8129if test $ac_cv_func__dyld_func_lookup = yes; then
8130
8131cat >>confdefs.h <<\_ACEOF
8132#define HAVE_DYLD 1
8133_ACEOF
8134
8135fi
8136
8137
8138fi
8139
8140
8141fi
8142
8143
8144fi
8145rm -f conftest.err conftest.$ac_objext \
8146 conftest$ac_exeext conftest.$ac_ext
8147
8148fi
8149
8150
8151fi
8152
8153
8154fi
8155
8156
8157if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8158then
8159 lt_save_LIBS="$LIBS"
8160 LIBS="$LIBS $LIBADD_DL"
8161
8162for ac_func in dlerror
8163do
8164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8165echo "$as_me:$LINENO: checking for $ac_func" >&5
8166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8167if eval "test \"\${$as_ac_var+set}\" = set"; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170 cat >conftest.$ac_ext <<_ACEOF
8171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h. */
8176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8178#define $ac_func innocuous_$ac_func
8179
8180/* System header to define __stub macros and hopefully few prototypes,
8181 which can conflict with char $ac_func (); below.
8182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8183 <limits.h> exists even on freestanding compilers. */
8184
8185#ifdef __STDC__
8186# include <limits.h>
8187#else
8188# include <assert.h>
8189#endif
8190
8191#undef $ac_func
8192
8193/* Override any gcc2 internal prototype to avoid an error. */
8194#ifdef __cplusplus
8195extern "C"
8196{
8197#endif
8198/* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8200char $ac_func ();
8201/* The GNU C library defines this for functions which it implements
8202 to always fail with ENOSYS. Some functions are actually named
8203 something starting with __ and the normal name is an alias. */
8204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8205choke me
8206#else
8207char (*f) () = $ac_func;
8208#endif
8209#ifdef __cplusplus
8210}
8211#endif
8212
8213int
8214main ()
8215{
8216return f != $ac_func;
8217 ;
8218 return 0;
8219}
8220_ACEOF
8221rm -f conftest.$ac_objext conftest$ac_exeext
8222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 eval "$as_ac_var=yes"
8244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248eval "$as_ac_var=no"
8249fi
8250rm -f conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252fi
8253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8255if test `eval echo '${'$as_ac_var'}'` = yes; then
8256 cat >>confdefs.h <<_ACEOF
8257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8258_ACEOF
8259
8260fi
8261done
8262
8263 LIBS="$lt_save_LIBS"
8264fi
8265ac_ext=c
8266ac_cpp='$CPP $CPPFLAGS'
8267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271
8272
8273echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8274echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8275if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277else
8278 ac_cv_sys_symbol_underscore=no
8279 cat > conftest.$ac_ext <<EOF
8280void nm_test_func(){}
8281int main(){nm_test_func;return 0;}
8282EOF
8283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284 (eval $ac_compile) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; then
8288 # Now try to grab the symbols.
8289 ac_nlist=conftest.nm
8290 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8291 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && test -s "$ac_nlist"; then
8295 # See whether the symbols have a leading underscore.
8296 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8297 ac_cv_sys_symbol_underscore=yes
8298 else
8299 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8300 :
8301 else
8302 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8303 fi
8304 fi
8305 else
8306 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8307 fi
8308 else
8309 echo "configure: failed program was:" >&5
8310 cat conftest.c >&5
8311 fi
8312 rm -rf conftest*
8313
8314fi
8315echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8316echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8317
8318
8319if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8320 if test x"$libltdl_cv_func_dlopen" = xyes ||
8321 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8322 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8323echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8324if test "${libltdl_cv_need_uscore+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327 libltdl_cv_need_uscore=unknown
8328 save_LIBS="$LIBS"
8329 LIBS="$LIBS $LIBADD_DL"
8330 if test "$cross_compiling" = yes; then :
8331 libltdl_cv_need_uscore=cross
8332else
8333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8334 lt_status=$lt_dlunknown
8335 cat > conftest.$ac_ext <<EOF
Reid Spencerbe130282005-07-14 05:19:12 +00008336#line 8336 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008337#include "confdefs.h"
8338
8339#if HAVE_DLFCN_H
8340#include <dlfcn.h>
8341#endif
8342
8343#include <stdio.h>
8344
8345#ifdef RTLD_GLOBAL
8346# define LT_DLGLOBAL RTLD_GLOBAL
8347#else
8348# ifdef DL_GLOBAL
8349# define LT_DLGLOBAL DL_GLOBAL
8350# else
8351# define LT_DLGLOBAL 0
8352# endif
8353#endif
8354
8355/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8356 find out it does not work in some platform. */
8357#ifndef LT_DLLAZY_OR_NOW
8358# ifdef RTLD_LAZY
8359# define LT_DLLAZY_OR_NOW RTLD_LAZY
8360# else
8361# ifdef DL_LAZY
8362# define LT_DLLAZY_OR_NOW DL_LAZY
8363# else
8364# ifdef RTLD_NOW
8365# define LT_DLLAZY_OR_NOW RTLD_NOW
8366# else
8367# ifdef DL_NOW
8368# define LT_DLLAZY_OR_NOW DL_NOW
8369# else
8370# define LT_DLLAZY_OR_NOW 0
8371# endif
8372# endif
8373# endif
8374# endif
8375#endif
8376
8377#ifdef __cplusplus
8378extern "C" void exit (int);
8379#endif
8380
8381void fnord() { int i=42;}
8382int main ()
8383{
8384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8385 int status = $lt_dlunknown;
8386
8387 if (self)
8388 {
8389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8390 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8391 /* dlclose (self); */
8392 }
8393
8394 exit (status);
8395}
8396EOF
8397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8402 (./conftest; exit; ) 2>/dev/null
8403 lt_status=$?
8404 case x$lt_status in
8405 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8406 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8407 x$lt_unknown|x*) ;;
8408 esac
8409 else :
8410 # compilation failed
8411
8412 fi
8413fi
8414rm -fr conftest*
8415
8416 LIBS="$save_LIBS"
8417
8418fi
8419echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8420echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8421 fi
8422fi
8423
8424if test x"$libltdl_cv_need_uscore" = xyes; then
8425
8426cat >>confdefs.h <<\_ACEOF
8427#define NEED_USCORE 1
8428_ACEOF
8429
8430fi
8431
8432
8433echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8434echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8435if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438 # PORTME does your system automatically load deplibs for dlopen?
8439 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8440 # For now, we just catch OSes we know something about -- in the
8441 # future, we'll try test this programmatically.
8442 libltdl_cv_sys_dlopen_deplibs=unknown
8443 case "$host_os" in
8444 aix3*|aix4.1.*|aix4.2.*)
8445 # Unknown whether this is true for these versions of AIX, but
8446 # we want this `case' here to explicitly catch those versions.
8447 libltdl_cv_sys_dlopen_deplibs=unknown
8448 ;;
8449 aix[45]*)
8450 libltdl_cv_sys_dlopen_deplibs=yes
8451 ;;
8452 darwin*)
8453 # Assuming the user has installed a libdl from somewhere, this is true
8454 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8455 libltdl_cv_sys_dlopen_deplibs=yes
8456 ;;
8457 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8458 # GNU and its variants, using gnu ld.so (Glibc)
8459 libltdl_cv_sys_dlopen_deplibs=yes
8460 ;;
8461 hpux10*|hpux11*)
8462 libltdl_cv_sys_dlopen_deplibs=yes
8463 ;;
8464 irix[12345]*|irix6.[01]*)
8465 # Catch all versions of IRIX before 6.2, and indicate that we don't
8466 # know how it worked for any of those versions.
8467 libltdl_cv_sys_dlopen_deplibs=unknown
8468 ;;
8469 irix*)
8470 # The case above catches anything before 6.2, and it's known that
8471 # at 6.2 and later dlopen does load deplibs.
8472 libltdl_cv_sys_dlopen_deplibs=yes
8473 ;;
8474 netbsd*)
8475 libltdl_cv_sys_dlopen_deplibs=yes
8476 ;;
8477 openbsd*)
8478 libltdl_cv_sys_dlopen_deplibs=yes
8479 ;;
8480 osf[1234]*)
8481 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8482 # it did *not* use an RPATH in a shared library to find objects the
8483 # library depends on, so we explictly say `no'.
8484 libltdl_cv_sys_dlopen_deplibs=no
8485 ;;
8486 osf5.0|osf5.0a|osf5.1)
8487 # dlopen *does* load deplibs and with the right loader patch applied
8488 # it even uses RPATH in a shared library to search for shared objects
8489 # that the library depends on, but there's no easy way to know if that
8490 # patch is installed. Since this is the case, all we can really
8491 # say is unknown -- it depends on the patch being installed. If
8492 # it is, this changes to `yes'. Without it, it would be `no'.
8493 libltdl_cv_sys_dlopen_deplibs=unknown
8494 ;;
8495 osf*)
8496 # the two cases above should catch all versions of osf <= 5.1. Read
8497 # the comments above for what we know about them.
8498 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8499 # is used to find them so we can finally say `yes'.
8500 libltdl_cv_sys_dlopen_deplibs=yes
8501 ;;
8502 solaris*)
8503 libltdl_cv_sys_dlopen_deplibs=yes
8504 ;;
8505 esac
8506
8507fi
8508echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8509echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8510if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8511
8512cat >>confdefs.h <<\_ACEOF
8513#define LTDL_DLOPEN_DEPLIBS 1
8514_ACEOF
8515
8516fi
8517
8518
8519for ac_header in argz.h
8520do
8521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8522if eval "test \"\${$as_ac_Header+set}\" = set"; then
8523 echo "$as_me:$LINENO: checking for $ac_header" >&5
8524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8525if eval "test \"\${$as_ac_Header+set}\" = set"; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8527fi
8528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8530else
8531 # Is the header compilable?
8532echo "$as_me:$LINENO: checking $ac_header usability" >&5
8533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8534cat >conftest.$ac_ext <<_ACEOF
8535/* confdefs.h. */
8536_ACEOF
8537cat confdefs.h >>conftest.$ac_ext
8538cat >>conftest.$ac_ext <<_ACEOF
8539/* end confdefs.h. */
8540$ac_includes_default
8541#include <$ac_header>
8542_ACEOF
8543rm -f conftest.$ac_objext
8544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_c_werror_flag"
8553 || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest.$ac_objext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_header_compiler=yes
8566else
8567 echo "$as_me: failed program was:" >&5
8568sed 's/^/| /' conftest.$ac_ext >&5
8569
8570ac_header_compiler=no
8571fi
8572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8574echo "${ECHO_T}$ac_header_compiler" >&6
8575
8576# Is the header present?
8577echo "$as_me:$LINENO: checking $ac_header presence" >&5
8578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8579cat >conftest.$ac_ext <<_ACEOF
8580/* confdefs.h. */
8581_ACEOF
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
8584/* end confdefs.h. */
8585#include <$ac_header>
8586_ACEOF
8587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } >/dev/null; then
8595 if test -s conftest.err; then
8596 ac_cpp_err=$ac_c_preproc_warn_flag
8597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8598 else
8599 ac_cpp_err=
8600 fi
8601else
8602 ac_cpp_err=yes
8603fi
8604if test -z "$ac_cpp_err"; then
8605 ac_header_preproc=yes
8606else
8607 echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ac_header_preproc=no
8611fi
8612rm -f conftest.err conftest.$ac_ext
8613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8614echo "${ECHO_T}$ac_header_preproc" >&6
8615
8616# So? What about this header?
8617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8618 yes:no: )
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8623 ac_header_preproc=yes
8624 ;;
8625 no:yes:* )
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8638 (
8639 cat <<\_ASBOX
8640## ----------------------------------- ##
8641## Report this to llvmbugs@cs.uiuc.edu ##
8642## ----------------------------------- ##
8643_ASBOX
8644 ) |
8645 sed "s/^/$as_me: WARNING: /" >&2
8646 ;;
8647esac
8648echo "$as_me:$LINENO: checking for $ac_header" >&5
8649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8650if eval "test \"\${$as_ac_Header+set}\" = set"; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 eval "$as_ac_Header=\$ac_header_preproc"
8654fi
8655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8657
8658fi
8659if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8662_ACEOF
8663
8664fi
8665
8666done
8667
8668
8669echo "$as_me:$LINENO: checking for error_t" >&5
8670echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8671if test "${ac_cv_type_error_t+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680#if HAVE_ARGZ_H
8681# include <argz.h>
8682#endif
8683
8684int
8685main ()
8686{
8687if ((error_t *) 0)
8688 return 0;
8689if (sizeof (error_t))
8690 return 0;
8691 ;
8692 return 0;
8693}
8694_ACEOF
8695rm -f conftest.$ac_objext
8696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697 (eval $ac_compile) 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_type_error_t=yes
8718else
8719 echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722ac_cv_type_error_t=no
8723fi
8724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8725fi
8726echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8727echo "${ECHO_T}$ac_cv_type_error_t" >&6
8728if test $ac_cv_type_error_t = yes; then
8729
8730cat >>confdefs.h <<_ACEOF
8731#define HAVE_ERROR_T 1
8732_ACEOF
8733
8734
8735else
8736
8737cat >>confdefs.h <<\_ACEOF
8738#define error_t int
8739_ACEOF
8740
8741fi
8742
8743
8744
8745
8746
8747
8748
8749for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8750do
8751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8752echo "$as_me:$LINENO: checking for $ac_func" >&5
8753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8754if eval "test \"\${$as_ac_var+set}\" = set"; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756else
8757 cat >conftest.$ac_ext <<_ACEOF
8758/* confdefs.h. */
8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
8763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8765#define $ac_func innocuous_$ac_func
8766
8767/* System header to define __stub macros and hopefully few prototypes,
8768 which can conflict with char $ac_func (); below.
8769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8770 <limits.h> exists even on freestanding compilers. */
8771
8772#ifdef __STDC__
8773# include <limits.h>
8774#else
8775# include <assert.h>
8776#endif
8777
8778#undef $ac_func
8779
8780/* Override any gcc2 internal prototype to avoid an error. */
8781#ifdef __cplusplus
8782extern "C"
8783{
8784#endif
8785/* We use char because int might match the return type of a gcc2
8786 builtin and then its argument prototype would still apply. */
8787char $ac_func ();
8788/* The GNU C library defines this for functions which it implements
8789 to always fail with ENOSYS. Some functions are actually named
8790 something starting with __ and the normal name is an alias. */
8791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8792choke me
8793#else
8794char (*f) () = $ac_func;
8795#endif
8796#ifdef __cplusplus
8797}
8798#endif
8799
8800int
8801main ()
8802{
8803return f != $ac_func;
8804 ;
8805 return 0;
8806}
8807_ACEOF
8808rm -f conftest.$ac_objext conftest$ac_exeext
8809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810 (eval $ac_link) 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -z "$ac_c_werror_flag"
8818 || test ! -s conftest.err'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 (eval $ac_try) 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; } &&
8824 { ac_try='test -s conftest$ac_exeext'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 eval "$as_ac_var=yes"
8831else
8832 echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
8834
8835eval "$as_ac_var=no"
8836fi
8837rm -f conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839fi
8840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8842if test `eval echo '${'$as_ac_var'}'` = yes; then
8843 cat >>confdefs.h <<_ACEOF
8844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8845_ACEOF
8846
8847fi
8848done
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8878 stdio.h unistd.h
8879do
8880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8881if eval "test \"\${$as_ac_Header+set}\" = set"; then
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886fi
8887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8889else
8890 # Is the header compilable?
8891echo "$as_me:$LINENO: checking $ac_header usability" >&5
8892echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8893cat >conftest.$ac_ext <<_ACEOF
8894/* confdefs.h. */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
8898/* end confdefs.h. */
8899$ac_includes_default
8900#include <$ac_header>
8901_ACEOF
8902rm -f conftest.$ac_objext
8903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904 (eval $ac_compile) 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest.$ac_objext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_header_compiler=yes
8925else
8926 echo "$as_me: failed program was:" >&5
8927sed 's/^/| /' conftest.$ac_ext >&5
8928
8929ac_header_compiler=no
8930fi
8931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8933echo "${ECHO_T}$ac_header_compiler" >&6
8934
8935# Is the header present?
8936echo "$as_me:$LINENO: checking $ac_header presence" >&5
8937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8938cat >conftest.$ac_ext <<_ACEOF
8939/* confdefs.h. */
8940_ACEOF
8941cat confdefs.h >>conftest.$ac_ext
8942cat >>conftest.$ac_ext <<_ACEOF
8943/* end confdefs.h. */
8944#include <$ac_header>
8945_ACEOF
8946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } >/dev/null; then
8954 if test -s conftest.err; then
8955 ac_cpp_err=$ac_c_preproc_warn_flag
8956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8957 else
8958 ac_cpp_err=
8959 fi
8960else
8961 ac_cpp_err=yes
8962fi
8963if test -z "$ac_cpp_err"; then
8964 ac_header_preproc=yes
8965else
8966 echo "$as_me: failed program was:" >&5
8967sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 ac_header_preproc=no
8970fi
8971rm -f conftest.err conftest.$ac_ext
8972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8973echo "${ECHO_T}$ac_header_preproc" >&6
8974
8975# So? What about this header?
8976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8977 yes:no: )
8978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8981echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8982 ac_header_preproc=yes
8983 ;;
8984 no:yes:* )
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8990echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8992echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8996echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8997 (
8998 cat <<\_ASBOX
8999## ----------------------------------- ##
9000## Report this to llvmbugs@cs.uiuc.edu ##
9001## ----------------------------------- ##
9002_ASBOX
9003 ) |
9004 sed "s/^/$as_me: WARNING: /" >&2
9005 ;;
9006esac
9007echo "$as_me:$LINENO: checking for $ac_header" >&5
9008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9009if eval "test \"\${$as_ac_Header+set}\" = set"; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
9012 eval "$as_ac_Header=\$ac_header_preproc"
9013fi
9014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9016
9017fi
9018if test `eval echo '${'$as_ac_Header'}'` = yes; then
9019 cat >>confdefs.h <<_ACEOF
9020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9021_ACEOF
9022
9023fi
9024
9025done
9026
9027
9028
9029
9030
9031for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9032do
9033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035 echo "$as_me:$LINENO: checking for $ac_header" >&5
9036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9037if eval "test \"\${$as_ac_Header+set}\" = set"; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039fi
9040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9042else
9043 # Is the header compilable?
9044echo "$as_me:$LINENO: checking $ac_header usability" >&5
9045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9046cat >conftest.$ac_ext <<_ACEOF
9047/* confdefs.h. */
9048_ACEOF
9049cat confdefs.h >>conftest.$ac_ext
9050cat >>conftest.$ac_ext <<_ACEOF
9051/* end confdefs.h. */
9052$ac_includes_default
9053#include <$ac_header>
9054_ACEOF
9055rm -f conftest.$ac_objext
9056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 (eval $ac_try) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_header_compiler=yes
9078else
9079 echo "$as_me: failed program was:" >&5
9080sed 's/^/| /' conftest.$ac_ext >&5
9081
9082ac_header_compiler=no
9083fi
9084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9086echo "${ECHO_T}$ac_header_compiler" >&6
9087
9088# Is the header present?
9089echo "$as_me:$LINENO: checking $ac_header presence" >&5
9090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9091cat >conftest.$ac_ext <<_ACEOF
9092/* confdefs.h. */
9093_ACEOF
9094cat confdefs.h >>conftest.$ac_ext
9095cat >>conftest.$ac_ext <<_ACEOF
9096/* end confdefs.h. */
9097#include <$ac_header>
9098_ACEOF
9099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev/null; then
9107 if test -s conftest.err; then
9108 ac_cpp_err=$ac_c_preproc_warn_flag
9109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9110 else
9111 ac_cpp_err=
9112 fi
9113else
9114 ac_cpp_err=yes
9115fi
9116if test -z "$ac_cpp_err"; then
9117 ac_header_preproc=yes
9118else
9119 echo "$as_me: failed program was:" >&5
9120sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_header_preproc=no
9123fi
9124rm -f conftest.err conftest.$ac_ext
9125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9126echo "${ECHO_T}$ac_header_preproc" >&6
9127
9128# So? What about this header?
9129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9130 yes:no: )
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9135 ac_header_preproc=yes
9136 ;;
9137 no:yes:* )
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9141echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9145echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9150 (
9151 cat <<\_ASBOX
9152## ----------------------------------- ##
9153## Report this to llvmbugs@cs.uiuc.edu ##
9154## ----------------------------------- ##
9155_ASBOX
9156 ) |
9157 sed "s/^/$as_me: WARNING: /" >&2
9158 ;;
9159esac
9160echo "$as_me:$LINENO: checking for $ac_header" >&5
9161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9162if eval "test \"\${$as_ac_Header+set}\" = set"; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164else
9165 eval "$as_ac_Header=\$ac_header_preproc"
9166fi
9167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9169
9170fi
9171if test `eval echo '${'$as_ac_Header'}'` = yes; then
9172 cat >>confdefs.h <<_ACEOF
9173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174_ACEOF
9175
9176fi
9177
9178done
9179
9180
9181
9182for ac_header in string.h strings.h
9183do
9184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186 echo "$as_me:$LINENO: checking for $ac_header" >&5
9187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9188if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190fi
9191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9193else
9194 # Is the header compilable?
9195echo "$as_me:$LINENO: checking $ac_header usability" >&5
9196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9197cat >conftest.$ac_ext <<_ACEOF
9198/* confdefs.h. */
9199_ACEOF
9200cat confdefs.h >>conftest.$ac_ext
9201cat >>conftest.$ac_ext <<_ACEOF
9202/* end confdefs.h. */
9203$ac_includes_default
9204#include <$ac_header>
9205_ACEOF
9206rm -f conftest.$ac_objext
9207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9208 (eval $ac_compile) 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -z "$ac_c_werror_flag"
9216 || test ! -s conftest.err'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 (eval $ac_try) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; } &&
9222 { ac_try='test -s conftest.$ac_objext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 (eval $ac_try) 2>&5
9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228 ac_header_compiler=yes
9229else
9230 echo "$as_me: failed program was:" >&5
9231sed 's/^/| /' conftest.$ac_ext >&5
9232
9233ac_header_compiler=no
9234fi
9235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9237echo "${ECHO_T}$ac_header_compiler" >&6
9238
9239# Is the header present?
9240echo "$as_me:$LINENO: checking $ac_header presence" >&5
9241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9242cat >conftest.$ac_ext <<_ACEOF
9243/* confdefs.h. */
9244_ACEOF
9245cat confdefs.h >>conftest.$ac_ext
9246cat >>conftest.$ac_ext <<_ACEOF
9247/* end confdefs.h. */
9248#include <$ac_header>
9249_ACEOF
9250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } >/dev/null; then
9258 if test -s conftest.err; then
9259 ac_cpp_err=$ac_c_preproc_warn_flag
9260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9261 else
9262 ac_cpp_err=
9263 fi
9264else
9265 ac_cpp_err=yes
9266fi
9267if test -z "$ac_cpp_err"; then
9268 ac_header_preproc=yes
9269else
9270 echo "$as_me: failed program was:" >&5
9271sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 ac_header_preproc=no
9274fi
9275rm -f conftest.err conftest.$ac_ext
9276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277echo "${ECHO_T}$ac_header_preproc" >&6
9278
9279# So? What about this header?
9280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9281 yes:no: )
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9283echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9285echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9286 ac_header_preproc=yes
9287 ;;
9288 no:yes:* )
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9290echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9292echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9294echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9296echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9300echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9301 (
9302 cat <<\_ASBOX
9303## ----------------------------------- ##
9304## Report this to llvmbugs@cs.uiuc.edu ##
9305## ----------------------------------- ##
9306_ASBOX
9307 ) |
9308 sed "s/^/$as_me: WARNING: /" >&2
9309 ;;
9310esac
9311echo "$as_me:$LINENO: checking for $ac_header" >&5
9312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9313if eval "test \"\${$as_ac_Header+set}\" = set"; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9315else
9316 eval "$as_ac_Header=\$ac_header_preproc"
9317fi
9318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9320
9321fi
9322if test `eval echo '${'$as_ac_Header'}'` = yes; then
9323 cat >>confdefs.h <<_ACEOF
9324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9325_ACEOF
9326 break
9327fi
9328
9329done
9330
9331
9332
9333
9334for ac_func in strchr index
9335do
9336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9337echo "$as_me:$LINENO: checking for $ac_func" >&5
9338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9339if eval "test \"\${$as_ac_var+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342 cat >conftest.$ac_ext <<_ACEOF
9343/* confdefs.h. */
9344_ACEOF
9345cat confdefs.h >>conftest.$ac_ext
9346cat >>conftest.$ac_ext <<_ACEOF
9347/* end confdefs.h. */
9348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9350#define $ac_func innocuous_$ac_func
9351
9352/* System header to define __stub macros and hopefully few prototypes,
9353 which can conflict with char $ac_func (); below.
9354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355 <limits.h> exists even on freestanding compilers. */
9356
9357#ifdef __STDC__
9358# include <limits.h>
9359#else
9360# include <assert.h>
9361#endif
9362
9363#undef $ac_func
9364
9365/* Override any gcc2 internal prototype to avoid an error. */
9366#ifdef __cplusplus
9367extern "C"
9368{
9369#endif
9370/* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
9372char $ac_func ();
9373/* The GNU C library defines this for functions which it implements
9374 to always fail with ENOSYS. Some functions are actually named
9375 something starting with __ and the normal name is an alias. */
9376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9377choke me
9378#else
9379char (*f) () = $ac_func;
9380#endif
9381#ifdef __cplusplus
9382}
9383#endif
9384
9385int
9386main ()
9387{
9388return f != $ac_func;
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -z "$ac_c_werror_flag"
9403 || test ! -s conftest.err'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; } &&
9409 { ac_try='test -s conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 (eval $ac_try) 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 eval "$as_ac_var=yes"
9416else
9417 echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
9420eval "$as_ac_var=no"
9421fi
9422rm -f conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
9424fi
9425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9427if test `eval echo '${'$as_ac_var'}'` = yes; then
9428 cat >>confdefs.h <<_ACEOF
9429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9430_ACEOF
9431 break
9432fi
9433done
9434
9435
9436
9437for ac_func in strrchr rindex
9438do
9439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440echo "$as_me:$LINENO: checking for $ac_func" >&5
9441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442if eval "test \"\${$as_ac_var+set}\" = set"; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444else
9445 cat >conftest.$ac_ext <<_ACEOF
9446/* confdefs.h. */
9447_ACEOF
9448cat confdefs.h >>conftest.$ac_ext
9449cat >>conftest.$ac_ext <<_ACEOF
9450/* end confdefs.h. */
9451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453#define $ac_func innocuous_$ac_func
9454
9455/* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char $ac_func (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9459
9460#ifdef __STDC__
9461# include <limits.h>
9462#else
9463# include <assert.h>
9464#endif
9465
9466#undef $ac_func
9467
9468/* Override any gcc2 internal prototype to avoid an error. */
9469#ifdef __cplusplus
9470extern "C"
9471{
9472#endif
9473/* We use char because int might match the return type of a gcc2
9474 builtin and then its argument prototype would still apply. */
9475char $ac_func ();
9476/* The GNU C library defines this for functions which it implements
9477 to always fail with ENOSYS. Some functions are actually named
9478 something starting with __ and the normal name is an alias. */
9479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9480choke me
9481#else
9482char (*f) () = $ac_func;
9483#endif
9484#ifdef __cplusplus
9485}
9486#endif
9487
9488int
9489main ()
9490{
9491return f != $ac_func;
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496rm -f conftest.$ac_objext conftest$ac_exeext
9497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 eval "$as_ac_var=yes"
9519else
9520 echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
9523eval "$as_ac_var=no"
9524fi
9525rm -f conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527fi
9528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530if test `eval echo '${'$as_ac_var'}'` = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9533_ACEOF
9534 break
9535fi
9536done
9537
9538
9539
9540for ac_func in memcpy bcopy
9541do
9542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9543echo "$as_me:$LINENO: checking for $ac_func" >&5
9544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9545if eval "test \"\${$as_ac_var+set}\" = set"; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548 cat >conftest.$ac_ext <<_ACEOF
9549/* confdefs.h. */
9550_ACEOF
9551cat confdefs.h >>conftest.$ac_ext
9552cat >>conftest.$ac_ext <<_ACEOF
9553/* end confdefs.h. */
9554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9556#define $ac_func innocuous_$ac_func
9557
9558/* System header to define __stub macros and hopefully few prototypes,
9559 which can conflict with char $ac_func (); below.
9560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9561 <limits.h> exists even on freestanding compilers. */
9562
9563#ifdef __STDC__
9564# include <limits.h>
9565#else
9566# include <assert.h>
9567#endif
9568
9569#undef $ac_func
9570
9571/* Override any gcc2 internal prototype to avoid an error. */
9572#ifdef __cplusplus
9573extern "C"
9574{
9575#endif
9576/* We use char because int might match the return type of a gcc2
9577 builtin and then its argument prototype would still apply. */
9578char $ac_func ();
9579/* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9583choke me
9584#else
9585char (*f) () = $ac_func;
9586#endif
9587#ifdef __cplusplus
9588}
9589#endif
9590
9591int
9592main ()
9593{
9594return f != $ac_func;
9595 ;
9596 return 0;
9597}
9598_ACEOF
9599rm -f conftest.$ac_objext conftest$ac_exeext
9600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest$ac_exeext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 eval "$as_ac_var=yes"
9622else
9623 echo "$as_me: failed program was:" >&5
9624sed 's/^/| /' conftest.$ac_ext >&5
9625
9626eval "$as_ac_var=no"
9627fi
9628rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630fi
9631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9633if test `eval echo '${'$as_ac_var'}'` = yes; then
9634 cat >>confdefs.h <<_ACEOF
9635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9636_ACEOF
9637 break
9638fi
9639done
9640
9641
9642
9643for ac_func in memmove strcmp
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
9746
9747for ac_func in closedir opendir readdir
9748do
9749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9750echo "$as_me:$LINENO: checking for $ac_func" >&5
9751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9752if eval "test \"\${$as_ac_var+set}\" = set"; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754else
9755 cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
9761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9763#define $ac_func innocuous_$ac_func
9764
9765/* System header to define __stub macros and hopefully few prototypes,
9766 which can conflict with char $ac_func (); below.
9767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9768 <limits.h> exists even on freestanding compilers. */
9769
9770#ifdef __STDC__
9771# include <limits.h>
9772#else
9773# include <assert.h>
9774#endif
9775
9776#undef $ac_func
9777
9778/* Override any gcc2 internal prototype to avoid an error. */
9779#ifdef __cplusplus
9780extern "C"
9781{
9782#endif
9783/* We use char because int might match the return type of a gcc2
9784 builtin and then its argument prototype would still apply. */
9785char $ac_func ();
9786/* The GNU C library defines this for functions which it implements
9787 to always fail with ENOSYS. Some functions are actually named
9788 something starting with __ and the normal name is an alias. */
9789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9790choke me
9791#else
9792char (*f) () = $ac_func;
9793#endif
9794#ifdef __cplusplus
9795}
9796#endif
9797
9798int
9799main ()
9800{
9801return f != $ac_func;
9802 ;
9803 return 0;
9804}
9805_ACEOF
9806rm -f conftest.$ac_objext conftest$ac_exeext
9807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9808 (eval $ac_link) 2>conftest.er1
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -z "$ac_c_werror_flag"
9816 || test ! -s conftest.err'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; } &&
9822 { ac_try='test -s conftest$ac_exeext'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9828 eval "$as_ac_var=yes"
9829else
9830 echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
9832
9833eval "$as_ac_var=no"
9834fi
9835rm -f conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
9837fi
9838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9839echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9840if test `eval echo '${'$as_ac_var'}'` = yes; then
9841 cat >>confdefs.h <<_ACEOF
9842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9843_ACEOF
9844
9845fi
9846done
9847
9848
9849# Check whether --enable-shared or --disable-shared was given.
9850if test "${enable_shared+set}" = set; then
9851 enableval="$enable_shared"
9852 p=${PACKAGE-default}
9853 case $enableval in
9854 yes) enable_shared=yes ;;
9855 no) enable_shared=no ;;
9856 *)
9857 enable_shared=no
9858 # Look at the argument we got. We use all the common list separators.
9859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9860 for pkg in $enableval; do
9861 IFS="$lt_save_ifs"
9862 if test "X$pkg" = "X$p"; then
9863 enable_shared=yes
9864 fi
9865 done
9866 IFS="$lt_save_ifs"
9867 ;;
9868 esac
9869else
9870 enable_shared=yes
9871fi;
9872
9873# Check whether --enable-static or --disable-static was given.
9874if test "${enable_static+set}" = set; then
9875 enableval="$enable_static"
9876 p=${PACKAGE-default}
9877 case $enableval in
9878 yes) enable_static=yes ;;
9879 no) enable_static=no ;;
9880 *)
9881 enable_static=no
9882 # Look at the argument we got. We use all the common list separators.
9883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9884 for pkg in $enableval; do
9885 IFS="$lt_save_ifs"
9886 if test "X$pkg" = "X$p"; then
9887 enable_static=yes
9888 fi
9889 done
9890 IFS="$lt_save_ifs"
9891 ;;
9892 esac
9893else
9894 enable_static=yes
9895fi;
9896
9897# Check whether --enable-fast-install or --disable-fast-install was given.
9898if test "${enable_fast_install+set}" = set; then
9899 enableval="$enable_fast_install"
9900 p=${PACKAGE-default}
9901 case $enableval in
9902 yes) enable_fast_install=yes ;;
9903 no) enable_fast_install=no ;;
9904 *)
9905 enable_fast_install=no
9906 # Look at the argument we got. We use all the common list separators.
9907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9908 for pkg in $enableval; do
9909 IFS="$lt_save_ifs"
9910 if test "X$pkg" = "X$p"; then
9911 enable_fast_install=yes
9912 fi
9913 done
9914 IFS="$lt_save_ifs"
9915 ;;
9916 esac
9917else
9918 enable_fast_install=yes
9919fi;
9920
9921echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9922echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9923if test "${lt_cv_path_SED+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926 # Loop through the user's path and test for sed and gsed.
9927# Then use that list of sed's as ones to test for truncation.
9928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929for as_dir in $PATH
9930do
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for lt_ac_prog in sed gsed; do
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9936 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9937 fi
9938 done
9939 done
9940done
9941lt_ac_max=0
9942lt_ac_count=0
9943# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9944# along with /bin/sed that truncates output.
9945for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9946 test ! -f $lt_ac_sed && break
9947 cat /dev/null > conftest.in
9948 lt_ac_count=0
9949 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9950 # Check for GNU sed and select it if it is found.
9951 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9952 lt_cv_path_SED=$lt_ac_sed
9953 break
9954 fi
9955 while true; do
9956 cat conftest.in conftest.in >conftest.tmp
9957 mv conftest.tmp conftest.in
9958 cp conftest.in conftest.nl
9959 echo >>conftest.nl
9960 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9961 cmp -s conftest.out conftest.nl || break
9962 # 10000 chars as input seems more than enough
9963 test $lt_ac_count -gt 10 && break
9964 lt_ac_count=`expr $lt_ac_count + 1`
9965 if test $lt_ac_count -gt $lt_ac_max; then
9966 lt_ac_max=$lt_ac_count
9967 lt_cv_path_SED=$lt_ac_sed
9968 fi
9969 done
9970done
9971
9972fi
9973
9974SED=$lt_cv_path_SED
9975echo "$as_me:$LINENO: result: $SED" >&5
9976echo "${ECHO_T}$SED" >&6
9977
9978
9979# Check whether --with-gnu-ld or --without-gnu-ld was given.
9980if test "${with_gnu_ld+set}" = set; then
9981 withval="$with_gnu_ld"
9982 test "$withval" = no || with_gnu_ld=yes
9983else
9984 with_gnu_ld=no
9985fi;
9986ac_prog=ld
9987if test "$GCC" = yes; then
9988 # Check if gcc -print-prog-name=ld gives a path.
9989 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9990echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9991 case $host in
9992 *-*-mingw*)
9993 # gcc leaves a trailing carriage return which upsets mingw
9994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9995 *)
9996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9997 esac
9998 case $ac_prog in
9999 # Accept absolute paths.
10000 [\\/]* | ?:[\\/]*)
10001 re_direlt='/[^/][^/]*/\.\./'
10002 # Canonicalize the pathname of ld
10003 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10004 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10005 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10006 done
10007 test -z "$LD" && LD="$ac_prog"
10008 ;;
10009 "")
10010 # If it fails, then pretend we aren't using GCC.
10011 ac_prog=ld
10012 ;;
10013 *)
10014 # If it is relative, then search for the first ld in PATH.
10015 with_gnu_ld=unknown
10016 ;;
10017 esac
10018elif test "$with_gnu_ld" = yes; then
10019 echo "$as_me:$LINENO: checking for GNU ld" >&5
10020echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10021else
10022 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10023echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10024fi
10025if test "${lt_cv_path_LD+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028 if test -z "$LD"; then
10029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10030 for ac_dir in $PATH; do
10031 IFS="$lt_save_ifs"
10032 test -z "$ac_dir" && ac_dir=.
10033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10034 lt_cv_path_LD="$ac_dir/$ac_prog"
10035 # Check to see if the program is GNU ld. I'd rather use --version,
10036 # but apparently some GNU ld's only accept -v.
10037 # Break only if it was the GNU/non-GNU ld that we prefer.
10038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10039 *GNU* | *'with BFD'*)
10040 test "$with_gnu_ld" != no && break
10041 ;;
10042 *)
10043 test "$with_gnu_ld" != yes && break
10044 ;;
10045 esac
10046 fi
10047 done
10048 IFS="$lt_save_ifs"
10049else
10050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10051fi
10052fi
10053
10054LD="$lt_cv_path_LD"
10055if test -n "$LD"; then
10056 echo "$as_me:$LINENO: result: $LD" >&5
10057echo "${ECHO_T}$LD" >&6
10058else
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061fi
10062test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10063echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10064 { (exit 1); exit 1; }; }
10065echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10066echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10067if test "${lt_cv_prog_gnu_ld+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069else
10070 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10071case `$LD -v 2>&1 </dev/null` in
10072*GNU* | *'with BFD'*)
10073 lt_cv_prog_gnu_ld=yes
10074 ;;
10075*)
10076 lt_cv_prog_gnu_ld=no
10077 ;;
10078esac
10079fi
10080echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10081echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10082with_gnu_ld=$lt_cv_prog_gnu_ld
10083
10084
10085echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10086echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10087if test "${lt_cv_ld_reload_flag+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090 lt_cv_ld_reload_flag='-r'
10091fi
10092echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10093echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10094reload_flag=$lt_cv_ld_reload_flag
10095case $reload_flag in
10096"" | " "*) ;;
10097*) reload_flag=" $reload_flag" ;;
10098esac
10099reload_cmds='$LD$reload_flag -o $output$reload_objs'
10100case $host_os in
10101 darwin*)
10102 if test "$GCC" = yes; then
10103 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10104 else
10105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10106 fi
10107 ;;
10108esac
10109
10110echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10111echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10112if test "${lt_cv_deplibs_check_method+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114else
10115 lt_cv_file_magic_cmd='$MAGIC_CMD'
10116lt_cv_file_magic_test_file=
10117lt_cv_deplibs_check_method='unknown'
10118# Need to set the preceding variable on all platforms that support
10119# interlibrary dependencies.
10120# 'none' -- dependencies not supported.
10121# `unknown' -- same as none, but documents that we really don't know.
10122# 'pass_all' -- all dependencies passed with no checks.
10123# 'test_compile' -- check by making test program.
10124# 'file_magic [[regex]]' -- check by looking for files in library path
10125# which responds to the $file_magic_cmd with a given extended regex.
10126# If you have `file' or equivalent on your system and you're not sure
10127# whether `pass_all' will *always* work, you probably want this one.
10128
10129case $host_os in
10130aix4* | aix5*)
10131 lt_cv_deplibs_check_method=pass_all
10132 ;;
10133
10134beos*)
10135 lt_cv_deplibs_check_method=pass_all
10136 ;;
10137
10138bsdi[45]*)
10139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10140 lt_cv_file_magic_cmd='/usr/bin/file -L'
10141 lt_cv_file_magic_test_file=/shlib/libc.so
10142 ;;
10143
10144cygwin*)
10145 # func_win32_libid is a shell function defined in ltmain.sh
10146 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10147 lt_cv_file_magic_cmd='func_win32_libid'
10148 ;;
10149
10150mingw* | pw32*)
10151 # Base MSYS/MinGW do not provide the 'file' command needed by
10152 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10153 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10154 lt_cv_file_magic_cmd='$OBJDUMP -f'
10155 ;;
10156
10157darwin* | rhapsody*)
10158 lt_cv_deplibs_check_method=pass_all
10159 ;;
10160
10161freebsd* | kfreebsd*-gnu)
10162 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10163 case $host_cpu in
10164 i*86 )
10165 # Not sure whether the presence of OpenBSD here was a mistake.
10166 # Let's accept both of them until this is cleared up.
10167 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10168 lt_cv_file_magic_cmd=/usr/bin/file
10169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10170 ;;
10171 esac
10172 else
10173 lt_cv_deplibs_check_method=pass_all
10174 fi
10175 ;;
10176
10177gnu*)
10178 lt_cv_deplibs_check_method=pass_all
10179 ;;
10180
10181hpux10.20* | hpux11*)
10182 lt_cv_file_magic_cmd=/usr/bin/file
10183 case "$host_cpu" in
10184 ia64*)
10185 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10186 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10187 ;;
10188 hppa*64*)
10189 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]'
10190 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10191 ;;
10192 *)
10193 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10194 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10195 ;;
10196 esac
10197 ;;
10198
10199irix5* | irix6* | nonstopux*)
10200 case $LD in
10201 *-32|*"-32 ") libmagic=32-bit;;
10202 *-n32|*"-n32 ") libmagic=N32;;
10203 *-64|*"-64 ") libmagic=64-bit;;
10204 *) libmagic=never-match;;
10205 esac
10206 lt_cv_deplibs_check_method=pass_all
10207 ;;
10208
10209# This must be Linux ELF.
10210linux*)
10211 lt_cv_deplibs_check_method=pass_all
10212 ;;
10213
10214netbsd*)
10215 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10217 else
10218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10219 fi
10220 ;;
10221
10222newos6*)
10223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10224 lt_cv_file_magic_cmd=/usr/bin/file
10225 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10226 ;;
10227
10228nto-qnx*)
10229 lt_cv_deplibs_check_method=unknown
10230 ;;
10231
10232openbsd*)
10233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10235 else
10236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10237 fi
10238 ;;
10239
10240osf3* | osf4* | osf5*)
10241 lt_cv_deplibs_check_method=pass_all
10242 ;;
10243
10244sco3.2v5*)
10245 lt_cv_deplibs_check_method=pass_all
10246 ;;
10247
10248solaris*)
10249 lt_cv_deplibs_check_method=pass_all
10250 ;;
10251
10252sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10253 case $host_vendor in
10254 motorola)
10255 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]'
10256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10257 ;;
10258 ncr)
10259 lt_cv_deplibs_check_method=pass_all
10260 ;;
10261 sequent)
10262 lt_cv_file_magic_cmd='/bin/file'
10263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10264 ;;
10265 sni)
10266 lt_cv_file_magic_cmd='/bin/file'
10267 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10268 lt_cv_file_magic_test_file=/lib/libc.so
10269 ;;
10270 siemens)
10271 lt_cv_deplibs_check_method=pass_all
10272 ;;
10273 esac
10274 ;;
10275
10276sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10277 lt_cv_deplibs_check_method=pass_all
10278 ;;
10279esac
10280
10281fi
10282echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10283echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10284file_magic_cmd=$lt_cv_file_magic_cmd
10285deplibs_check_method=$lt_cv_deplibs_check_method
10286test -z "$deplibs_check_method" && deplibs_check_method=unknown
10287
10288
10289
10290# If no C compiler was specified, use CC.
10291LTCC=${LTCC-"$CC"}
10292
10293# Allow CC to be a program name with arguments.
10294compiler=$CC
10295
10296# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10297if test "${enable_libtool_lock+set}" = set; then
10298 enableval="$enable_libtool_lock"
10299
10300fi;
10301test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10302
10303# Some flags need to be propagated to the compiler or linker for good
10304# libtool support.
10305case $host in
10306ia64-*-hpux*)
10307 # Find out which ABI we are using.
10308 echo 'int i;' > conftest.$ac_ext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10310 (eval $ac_compile) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; then
10314 case `/usr/bin/file conftest.$ac_objext` in
10315 *ELF-32*)
10316 HPUX_IA64_MODE="32"
10317 ;;
10318 *ELF-64*)
10319 HPUX_IA64_MODE="64"
10320 ;;
10321 esac
10322 fi
10323 rm -rf conftest*
10324 ;;
10325*-*-irix6*)
10326 # Find out which ABI we are using.
Reid Spencerbe130282005-07-14 05:19:12 +000010327 echo '#line 10327 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; then
10333 if test "$lt_cv_prog_gnu_ld" = yes; then
10334 case `/usr/bin/file conftest.$ac_objext` in
10335 *32-bit*)
10336 LD="${LD-ld} -melf32bsmip"
10337 ;;
10338 *N32*)
10339 LD="${LD-ld} -melf32bmipn32"
10340 ;;
10341 *64-bit*)
10342 LD="${LD-ld} -melf64bmip"
10343 ;;
10344 esac
10345 else
10346 case `/usr/bin/file conftest.$ac_objext` in
10347 *32-bit*)
10348 LD="${LD-ld} -32"
10349 ;;
10350 *N32*)
10351 LD="${LD-ld} -n32"
10352 ;;
10353 *64-bit*)
10354 LD="${LD-ld} -64"
10355 ;;
10356 esac
10357 fi
10358 fi
10359 rm -rf conftest*
10360 ;;
10361
10362x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10363 # Find out which ABI we are using.
10364 echo 'int i;' > conftest.$ac_ext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; then
10370 case "`/usr/bin/file conftest.o`" in
10371 *32-bit*)
10372 case $host in
10373 x86_64-*linux*)
10374 LD="${LD-ld} -m elf_i386"
10375 ;;
10376 ppc64-*linux*|powerpc64-*linux*)
10377 LD="${LD-ld} -m elf32ppclinux"
10378 ;;
10379 s390x-*linux*)
10380 LD="${LD-ld} -m elf_s390"
10381 ;;
10382 sparc64-*linux*)
10383 LD="${LD-ld} -m elf32_sparc"
10384 ;;
10385 esac
10386 ;;
10387 *64-bit*)
10388 case $host in
10389 x86_64-*linux*)
10390 LD="${LD-ld} -m elf_x86_64"
10391 ;;
10392 ppc*-*linux*|powerpc*-*linux*)
10393 LD="${LD-ld} -m elf64ppc"
10394 ;;
10395 s390*-*linux*)
10396 LD="${LD-ld} -m elf64_s390"
10397 ;;
10398 sparc*-*linux*)
10399 LD="${LD-ld} -m elf64_sparc"
10400 ;;
10401 esac
10402 ;;
10403 esac
10404 fi
10405 rm -rf conftest*
10406 ;;
10407
10408*-*-sco3.2v5*)
10409 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10410 SAVE_CFLAGS="$CFLAGS"
10411 CFLAGS="$CFLAGS -belf"
10412 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10413echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10414if test "${lt_cv_cc_needs_belf+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416else
10417 ac_ext=c
10418ac_cpp='$CPP $CPPFLAGS'
10419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10421ac_compiler_gnu=$ac_cv_c_compiler_gnu
10422
10423 cat >conftest.$ac_ext <<_ACEOF
10424/* confdefs.h. */
10425_ACEOF
10426cat confdefs.h >>conftest.$ac_ext
10427cat >>conftest.$ac_ext <<_ACEOF
10428/* end confdefs.h. */
10429
10430_ACEOF
10431rm -f conftest.$ac_objext conftest$ac_exeext
10432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag"
10441 || test ! -s conftest.err'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 lt_cv_cc_needs_belf=yes
10454else
10455 echo "$as_me: failed program was:" >&5
10456sed 's/^/| /' conftest.$ac_ext >&5
10457
10458lt_cv_cc_needs_belf=no
10459fi
10460rm -f conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 ac_ext=c
10463ac_cpp='$CPP $CPPFLAGS'
10464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10466ac_compiler_gnu=$ac_cv_c_compiler_gnu
10467
10468fi
10469echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10470echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10471 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10472 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10473 CFLAGS="$SAVE_CFLAGS"
10474 fi
10475 ;;
10476
10477esac
10478
10479need_locks="$enable_libtool_lock"
10480
10481
Reid Spencer2706f8c2004-09-19 23:53:36 +000010482
10483
10484if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10485 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10486 (test "X$CXX" != "Xg++"))) ; then
10487 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010488ac_cpp='$CXXCPP $CPPFLAGS'
10489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10492echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10493echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10494if test -z "$CXXCPP"; then
10495 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497else
John Criswell47fdd832003-07-14 16:52:07 +000010498 # Double quotes because CXXCPP needs to be expanded
10499 for CXXCPP in "$CXX -E" "/lib/cpp"
10500 do
10501 ac_preproc_ok=false
10502for ac_cxx_preproc_warn_flag in '' yes
10503do
10504 # Use a header file that comes with gcc, so configuring glibc
10505 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10507 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010508 # On the NeXT, cc -E runs the code through the compiler's parser,
10509 # not just through cpp. "Syntax error" is here to catch this case.
10510 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010511/* confdefs.h. */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h. */
10516#ifdef __STDC__
10517# include <limits.h>
10518#else
10519# include <assert.h>
10520#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010521 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010522_ACEOF
10523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10525 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010526 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } >/dev/null; then
10531 if test -s conftest.err; then
10532 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010534 else
John Criswell47fdd832003-07-14 16:52:07 +000010535 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010536 fi
John Criswell47fdd832003-07-14 16:52:07 +000010537else
10538 ac_cpp_err=yes
10539fi
10540if test -z "$ac_cpp_err"; then
10541 :
10542else
10543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010544sed 's/^/| /' conftest.$ac_ext >&5
10545
John Criswell47fdd832003-07-14 16:52:07 +000010546 # Broken: fails on valid input.
10547continue
10548fi
10549rm -f conftest.err conftest.$ac_ext
10550
10551 # OK, works on sane cases. Now check whether non-existent headers
10552 # can be detected and how.
10553 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010559#include <ac_nonexistent.h>
10560_ACEOF
10561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10563 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010564 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } >/dev/null; then
10569 if test -s conftest.err; then
10570 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010572 else
10573 ac_cpp_err=
10574 fi
10575else
10576 ac_cpp_err=yes
10577fi
10578if test -z "$ac_cpp_err"; then
10579 # Broken: success on invalid input.
10580continue
10581else
10582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010583sed 's/^/| /' conftest.$ac_ext >&5
10584
John Criswell47fdd832003-07-14 16:52:07 +000010585 # Passes both tests.
10586ac_preproc_ok=:
10587break
10588fi
10589rm -f conftest.err conftest.$ac_ext
10590
10591done
10592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10593rm -f conftest.err conftest.$ac_ext
10594if $ac_preproc_ok; then
10595 break
John Criswell7a73b802003-06-30 21:59:07 +000010596fi
10597
John Criswell47fdd832003-07-14 16:52:07 +000010598 done
10599 ac_cv_prog_CXXCPP=$CXXCPP
10600
10601fi
10602 CXXCPP=$ac_cv_prog_CXXCPP
10603else
10604 ac_cv_prog_CXXCPP=$CXXCPP
10605fi
10606echo "$as_me:$LINENO: result: $CXXCPP" >&5
10607echo "${ECHO_T}$CXXCPP" >&6
10608ac_preproc_ok=false
10609for ac_cxx_preproc_warn_flag in '' yes
10610do
10611 # Use a header file that comes with gcc, so configuring glibc
10612 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10614 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010615 # On the NeXT, cc -E runs the code through the compiler's parser,
10616 # not just through cpp. "Syntax error" is here to catch this case.
10617 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010618/* confdefs.h. */
10619_ACEOF
10620cat confdefs.h >>conftest.$ac_ext
10621cat >>conftest.$ac_ext <<_ACEOF
10622/* end confdefs.h. */
10623#ifdef __STDC__
10624# include <limits.h>
10625#else
10626# include <assert.h>
10627#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010628 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010629_ACEOF
10630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10632 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010633 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } >/dev/null; then
10638 if test -s conftest.err; then
10639 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010640 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010641 else
10642 ac_cpp_err=
10643 fi
10644else
10645 ac_cpp_err=yes
10646fi
10647if test -z "$ac_cpp_err"; then
10648 :
10649else
10650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010651sed 's/^/| /' conftest.$ac_ext >&5
10652
John Criswell47fdd832003-07-14 16:52:07 +000010653 # Broken: fails on valid input.
10654continue
10655fi
10656rm -f conftest.err conftest.$ac_ext
10657
10658 # OK, works on sane cases. Now check whether non-existent headers
10659 # can be detected and how.
10660 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
10665/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010666#include <ac_nonexistent.h>
10667_ACEOF
10668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10670 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010671 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } >/dev/null; then
10676 if test -s conftest.err; then
10677 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010678 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010679 else
10680 ac_cpp_err=
10681 fi
10682else
10683 ac_cpp_err=yes
10684fi
10685if test -z "$ac_cpp_err"; then
10686 # Broken: success on invalid input.
10687continue
10688else
10689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010690sed 's/^/| /' conftest.$ac_ext >&5
10691
John Criswell47fdd832003-07-14 16:52:07 +000010692 # Passes both tests.
10693ac_preproc_ok=:
10694break
10695fi
10696rm -f conftest.err conftest.$ac_ext
10697
10698done
10699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10700rm -f conftest.err conftest.$ac_ext
10701if $ac_preproc_ok; then
10702 :
10703else
John Criswell0c38eaf2003-09-10 15:17:25 +000010704 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10705See \`config.log' for more details." >&5
10706echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10707See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010708 { (exit 1); exit 1; }; }
10709fi
10710
10711ac_ext=cc
10712ac_cpp='$CXXCPP $CPPFLAGS'
10713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10716
Reid Spencer2706f8c2004-09-19 23:53:36 +000010717fi
10718
John Criswell47fdd832003-07-14 16:52:07 +000010719
10720ac_ext=f
10721ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10722ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10723ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10724if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010725 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 +000010726 do
10727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10728set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10729echo "$as_me:$LINENO: checking for $ac_word" >&5
10730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10731if test "${ac_cv_prog_F77+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734 if test -n "$F77"; then
10735 ac_cv_prog_F77="$F77" # Let the user override the test.
10736else
10737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738for as_dir in $PATH
10739do
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 break 2
10747 fi
10748done
10749done
10750
10751fi
10752fi
10753F77=$ac_cv_prog_F77
10754if test -n "$F77"; then
10755 echo "$as_me:$LINENO: result: $F77" >&5
10756echo "${ECHO_T}$F77" >&6
10757else
10758 echo "$as_me:$LINENO: result: no" >&5
10759echo "${ECHO_T}no" >&6
10760fi
10761
10762 test -n "$F77" && break
10763 done
10764fi
10765if test -z "$F77"; then
10766 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010767 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 +000010768do
10769 # Extract the first word of "$ac_prog", so it can be a program name with args.
10770set dummy $ac_prog; ac_word=$2
10771echo "$as_me:$LINENO: checking for $ac_word" >&5
10772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775else
10776 if test -n "$ac_ct_F77"; then
10777 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10778else
10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786 ac_cv_prog_ac_ct_F77="$ac_prog"
10787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10789 fi
10790done
10791done
10792
10793fi
10794fi
10795ac_ct_F77=$ac_cv_prog_ac_ct_F77
10796if test -n "$ac_ct_F77"; then
10797 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10798echo "${ECHO_T}$ac_ct_F77" >&6
10799else
10800 echo "$as_me:$LINENO: result: no" >&5
10801echo "${ECHO_T}no" >&6
10802fi
10803
10804 test -n "$ac_ct_F77" && break
10805done
10806
10807 F77=$ac_ct_F77
10808fi
10809
10810
10811# Provide some information about the compiler.
Reid Spencerbe130282005-07-14 05:19:12 +000010812echo "$as_me:10812:" \
John Criswell47fdd832003-07-14 16:52:07 +000010813 "checking for Fortran 77 compiler version" >&5
10814ac_compiler=`set X $ac_compile; echo $2`
10815{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10816 (eval $ac_compiler --version </dev/null >&5) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }
10820{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10821 (eval $ac_compiler -v </dev/null >&5) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }
10825{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10826 (eval $ac_compiler -V </dev/null >&5) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010830rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010831
10832# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010833# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010834ac_save_ext=$ac_ext
10835ac_ext=F
10836echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10837echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10838if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 cat >conftest.$ac_ext <<_ACEOF
10842 program main
10843#ifndef __GNUC__
10844 choke me
10845#endif
10846
10847 end
10848_ACEOF
10849rm -f conftest.$ac_objext
10850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010851 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010852 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010858 { ac_try='test -z "$ac_f77_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_compiler_gnu=yes
10872else
10873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010874sed 's/^/| /' conftest.$ac_ext >&5
10875
John Criswell47fdd832003-07-14 16:52:07 +000010876ac_compiler_gnu=no
10877fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010879ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10880
10881fi
10882echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10883echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10884ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010885ac_test_FFLAGS=${FFLAGS+set}
10886ac_save_FFLAGS=$FFLAGS
10887FFLAGS=
10888echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10889echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10890if test "${ac_cv_prog_f77_g+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10892else
10893 FFLAGS=-g
10894cat >conftest.$ac_ext <<_ACEOF
10895 program main
10896
10897 end
10898_ACEOF
10899rm -f conftest.$ac_objext
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010901 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010902 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010908 { ac_try='test -z "$ac_f77_werror_flag"
10909 || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_prog_f77_g=yes
10922else
10923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010924sed 's/^/| /' conftest.$ac_ext >&5
10925
John Criswell47fdd832003-07-14 16:52:07 +000010926ac_cv_prog_f77_g=no
10927fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010929
10930fi
10931echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10932echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10933if test "$ac_test_FFLAGS" = set; then
10934 FFLAGS=$ac_save_FFLAGS
10935elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010936 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010937 FFLAGS="-g -O2"
10938 else
10939 FFLAGS="-g"
10940 fi
10941else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010942 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010943 FFLAGS="-O2"
10944 else
10945 FFLAGS=
10946 fi
10947fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010948
10949G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010950ac_ext=c
10951ac_cpp='$CPP $CPPFLAGS'
10952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954ac_compiler_gnu=$ac_cv_c_compiler_gnu
10955
10956
10957
10958# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10959
10960# find the maximum length of command line arguments
10961echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10962echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10963if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010967 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010968
10969 case $build_os in
10970 msdosdjgpp*)
10971 # On DJGPP, this test can blow up pretty badly due to problems in libc
10972 # (any single argument exceeding 2000 bytes causes a buffer overrun
10973 # during glob expansion). Even if it were fixed, the result of this
10974 # check would be larger than it should be.
10975 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10976 ;;
10977
10978 gnu*)
10979 # Under GNU Hurd, this test is not required because there is
10980 # no limit to the length of command line arguments.
10981 # Libtool will interpret -1 as no limit whatsoever
10982 lt_cv_sys_max_cmd_len=-1;
10983 ;;
10984
10985 cygwin* | mingw*)
10986 # On Win9x/ME, this test blows up -- it succeeds, but takes
10987 # about 5 minutes as the teststring grows exponentially.
10988 # Worse, since 9x/ME are not pre-emptively multitasking,
10989 # you end up with a "frozen" computer, even though with patience
10990 # the test eventually succeeds (with a max line length of 256k).
10991 # Instead, let's just punt: use the minimum linelength reported by
10992 # all of the supported platforms: 8192 (on NT/2K/XP).
10993 lt_cv_sys_max_cmd_len=8192;
10994 ;;
10995
Reid Spencer2706f8c2004-09-19 23:53:36 +000010996 amigaos*)
10997 # On AmigaOS with pdksh, this test takes hours, literally.
10998 # So we just punt and use a minimum line length of 8192.
10999 lt_cv_sys_max_cmd_len=8192;
11000 ;;
11001
11002 netbsd* | freebsd* | openbsd* | darwin* )
11003 # This has been around since 386BSD, at least. Likely further.
11004 if test -x /sbin/sysctl; then
11005 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11006 elif test -x /usr/sbin/sysctl; then
11007 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11008 else
11009 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11010 fi
11011 # And add a safety zone
11012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11013 ;;
11014
John Criswell47fdd832003-07-14 16:52:07 +000011015 *)
11016 # If test is not a shell built-in, we'll probably end up computing a
11017 # maximum length that is only half of the actual maximum length, but
11018 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011019 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11020 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11021 = "XX$teststring") >/dev/null 2>&1 &&
11022 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011023 lt_cv_sys_max_cmd_len=$new_result &&
11024 test $i != 17 # 1/2 MB should be enough
11025 do
11026 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011027 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011028 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011029 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011030 # Add a significant safety factor because C++ compilers can tack on massive
11031 # amounts of additional arguments before passing them to the linker.
11032 # It appears as though 1/2 is a usable value.
11033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11034 ;;
11035 esac
11036
11037fi
11038
11039if test -n $lt_cv_sys_max_cmd_len ; then
11040 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11041echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11042else
11043 echo "$as_me:$LINENO: result: none" >&5
11044echo "${ECHO_T}none" >&6
11045fi
11046
11047
11048
11049
11050# Check for command to grab the raw symbol name followed by C symbol from nm.
11051echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11052echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11053if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055else
11056
11057# These are sane defaults that work on at least a few old systems.
11058# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11059
11060# Character class describing NM global symbol codes.
11061symcode='[BCDEGRST]'
11062
11063# Regexp to match symbols that can be accessed directly from C.
11064sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11065
11066# Transform the above into a raw symbol and a C symbol.
11067symxfrm='\1 \2\3 \3'
11068
11069# Transform an extracted symbol line into a proper C declaration
11070lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11071
11072# Transform an extracted symbol line into symbol name and symbol address
11073lt_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'"
11074
11075# Define system-specific variables.
11076case $host_os in
11077aix*)
11078 symcode='[BCDT]'
11079 ;;
11080cygwin* | mingw* | pw32*)
11081 symcode='[ABCDGISTW]'
11082 ;;
11083hpux*) # Its linker distinguishes data from code symbols
11084 if test "$host_cpu" = ia64; then
11085 symcode='[ABCDEGRST]'
11086 fi
11087 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11088 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'"
11089 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011090linux*)
11091 if test "$host_cpu" = ia64; then
11092 symcode='[ABCDGIRSTW]'
11093 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11094 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'"
11095 fi
11096 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011097irix* | nonstopux*)
11098 symcode='[BCDEGRST]'
11099 ;;
11100osf*)
11101 symcode='[BCDEGQRST]'
11102 ;;
11103solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011104 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011105 ;;
11106sysv4)
11107 symcode='[DFNSTU]'
11108 ;;
11109esac
11110
11111# Handle CRLF in mingw tool chain
11112opt_cr=
11113case $build_os in
11114mingw*)
11115 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11116 ;;
11117esac
11118
11119# If we're using GNU nm, then use its standard symbol codes.
11120case `$NM -V 2>&1` in
11121*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011122 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011123esac
11124
11125# Try without a prefix undercore, then with it.
11126for ac_symprfx in "" "_"; do
11127
11128 # Write the raw and C identifiers.
11129 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11130
11131 # Check to see that the pipe works correctly.
11132 pipe_works=no
11133
11134 rm -f conftest*
11135 cat > conftest.$ac_ext <<EOF
11136#ifdef __cplusplus
11137extern "C" {
11138#endif
11139char nm_test_var;
11140void nm_test_func(){}
11141#ifdef __cplusplus
11142}
11143#endif
11144int main(){nm_test_var='a';nm_test_func();return(0);}
11145EOF
11146
11147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148 (eval $ac_compile) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; then
11152 # Now try to grab the symbols.
11153 nlist=conftest.nm
11154 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11155 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && test -s "$nlist"; then
11159 # Try sorting and uniquifying the output.
11160 if sort "$nlist" | uniq > "$nlist"T; then
11161 mv -f "$nlist"T "$nlist"
11162 else
11163 rm -f "$nlist"T
11164 fi
11165
11166 # Make sure that we snagged all the symbols we need.
11167 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11168 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11169 cat <<EOF > conftest.$ac_ext
11170#ifdef __cplusplus
11171extern "C" {
11172#endif
11173
11174EOF
11175 # Now generate the symbol file.
11176 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11177
11178 cat <<EOF >> conftest.$ac_ext
11179#if defined (__STDC__) && __STDC__
11180# define lt_ptr_t void *
11181#else
11182# define lt_ptr_t char *
11183# define const
11184#endif
11185
11186/* The mapping between symbol names and symbols. */
11187const struct {
11188 const char *name;
11189 lt_ptr_t address;
11190}
11191lt_preloaded_symbols[] =
11192{
11193EOF
11194 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11195 cat <<\EOF >> conftest.$ac_ext
11196 {0, (lt_ptr_t) 0}
11197};
11198
11199#ifdef __cplusplus
11200}
11201#endif
11202EOF
11203 # Now try linking the two files.
11204 mv conftest.$ac_objext conftstm.$ac_objext
11205 lt_save_LIBS="$LIBS"
11206 lt_save_CFLAGS="$CFLAGS"
11207 LIBS="conftstm.$ac_objext"
11208 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11214 pipe_works=yes
11215 fi
11216 LIBS="$lt_save_LIBS"
11217 CFLAGS="$lt_save_CFLAGS"
11218 else
11219 echo "cannot find nm_test_func in $nlist" >&5
11220 fi
11221 else
11222 echo "cannot find nm_test_var in $nlist" >&5
11223 fi
11224 else
11225 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11226 fi
11227 else
11228 echo "$progname: failed program was:" >&5
11229 cat conftest.$ac_ext >&5
11230 fi
11231 rm -f conftest* conftst*
11232
11233 # Do not use the global_symbol_pipe unless it works.
11234 if test "$pipe_works" = yes; then
11235 break
11236 else
11237 lt_cv_sys_global_symbol_pipe=
11238 fi
11239done
11240
11241fi
11242
11243if test -z "$lt_cv_sys_global_symbol_pipe"; then
11244 lt_cv_sys_global_symbol_to_cdecl=
11245fi
11246if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11247 echo "$as_me:$LINENO: result: failed" >&5
11248echo "${ECHO_T}failed" >&6
11249else
11250 echo "$as_me:$LINENO: result: ok" >&5
11251echo "${ECHO_T}ok" >&6
11252fi
11253
11254echo "$as_me:$LINENO: checking for objdir" >&5
11255echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11256if test "${lt_cv_objdir+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258else
11259 rm -f .libs 2>/dev/null
11260mkdir .libs 2>/dev/null
11261if test -d .libs; then
11262 lt_cv_objdir=.libs
11263else
11264 # MS-DOS does not allow filenames that begin with a dot.
11265 lt_cv_objdir=_libs
11266fi
11267rmdir .libs 2>/dev/null
11268fi
11269echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11270echo "${ECHO_T}$lt_cv_objdir" >&6
11271objdir=$lt_cv_objdir
11272
11273
11274
11275
11276
11277case $host_os in
11278aix3*)
11279 # AIX sometimes has problems with the GCC collect2 program. For some
11280 # reason, if we set the COLLECT_NAMES environment variable, the problems
11281 # vanish in a puff of smoke.
11282 if test "X${COLLECT_NAMES+set}" != Xset; then
11283 COLLECT_NAMES=
11284 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011285 fi
11286 ;;
11287esac
11288
John Criswell47fdd832003-07-14 16:52:07 +000011289# Sed substitution that helps us do robust quoting. It backslashifies
11290# metacharacters that are still active within double-quoted strings.
11291Xsed='sed -e s/^X//'
11292sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11293
11294# Same as above, but do not quote variable references.
11295double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11296
11297# Sed substitution to delay expansion of an escaped shell variable in a
11298# double_quote_subst'ed string.
11299delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11300
11301# Sed substitution to avoid accidental globbing in evaled expressions
11302no_glob_subst='s/\*/\\\*/g'
11303
11304# Constants:
11305rm="rm -f"
11306
11307# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011308default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011309can_build_shared=yes
11310
11311# All known linkers require a `.a' archive for static linking (except M$VC,
11312# which needs '.lib').
11313libext=a
11314ltmain="$ac_aux_dir/ltmain.sh"
11315ofile="$default_ofile"
11316with_gnu_ld="$lt_cv_prog_gnu_ld"
11317
11318if test -n "$ac_tool_prefix"; then
11319 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11320set dummy ${ac_tool_prefix}ar; ac_word=$2
11321echo "$as_me:$LINENO: checking for $ac_word" >&5
11322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11323if test "${ac_cv_prog_AR+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325else
11326 if test -n "$AR"; then
11327 ac_cv_prog_AR="$AR" # Let the user override the test.
11328else
11329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330for as_dir in $PATH
11331do
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11336 ac_cv_prog_AR="${ac_tool_prefix}ar"
11337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11339 fi
11340done
11341done
11342
11343fi
11344fi
11345AR=$ac_cv_prog_AR
11346if test -n "$AR"; then
11347 echo "$as_me:$LINENO: result: $AR" >&5
11348echo "${ECHO_T}$AR" >&6
11349else
11350 echo "$as_me:$LINENO: result: no" >&5
11351echo "${ECHO_T}no" >&6
11352fi
11353
11354fi
11355if test -z "$ac_cv_prog_AR"; then
11356 ac_ct_AR=$AR
11357 # Extract the first word of "ar", so it can be a program name with args.
11358set dummy ar; ac_word=$2
11359echo "$as_me:$LINENO: checking for $ac_word" >&5
11360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11361if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363else
11364 if test -n "$ac_ct_AR"; then
11365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11366else
11367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368for as_dir in $PATH
11369do
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
11373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11374 ac_cv_prog_ac_ct_AR="ar"
11375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 break 2
11377 fi
11378done
11379done
11380
11381 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11382fi
11383fi
11384ac_ct_AR=$ac_cv_prog_ac_ct_AR
11385if test -n "$ac_ct_AR"; then
11386 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11387echo "${ECHO_T}$ac_ct_AR" >&6
11388else
11389 echo "$as_me:$LINENO: result: no" >&5
11390echo "${ECHO_T}no" >&6
11391fi
11392
11393 AR=$ac_ct_AR
11394else
11395 AR="$ac_cv_prog_AR"
11396fi
11397
John Criswell7a73b802003-06-30 21:59:07 +000011398if test -n "$ac_tool_prefix"; then
11399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11400set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11401echo "$as_me:$LINENO: checking for $ac_word" >&5
11402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11403if test "${ac_cv_prog_RANLIB+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405else
11406 if test -n "$RANLIB"; then
11407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11408else
11409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410for as_dir in $PATH
11411do
11412 IFS=$as_save_IFS
11413 test -z "$as_dir" && as_dir=.
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11419 fi
11420done
11421done
11422
11423fi
11424fi
11425RANLIB=$ac_cv_prog_RANLIB
11426if test -n "$RANLIB"; then
11427 echo "$as_me:$LINENO: result: $RANLIB" >&5
11428echo "${ECHO_T}$RANLIB" >&6
11429else
11430 echo "$as_me:$LINENO: result: no" >&5
11431echo "${ECHO_T}no" >&6
11432fi
11433
11434fi
11435if test -z "$ac_cv_prog_RANLIB"; then
11436 ac_ct_RANLIB=$RANLIB
11437 # Extract the first word of "ranlib", so it can be a program name with args.
11438set dummy ranlib; ac_word=$2
11439echo "$as_me:$LINENO: checking for $ac_word" >&5
11440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11441if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 if test -n "$ac_ct_RANLIB"; then
11445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11446else
11447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448for as_dir in $PATH
11449do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454 ac_cv_prog_ac_ct_RANLIB="ranlib"
11455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11457 fi
11458done
11459done
11460
11461 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11462fi
11463fi
11464ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11465if test -n "$ac_ct_RANLIB"; then
11466 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11467echo "${ECHO_T}$ac_ct_RANLIB" >&6
11468else
11469 echo "$as_me:$LINENO: result: no" >&5
11470echo "${ECHO_T}no" >&6
11471fi
11472
11473 RANLIB=$ac_ct_RANLIB
11474else
11475 RANLIB="$ac_cv_prog_RANLIB"
11476fi
11477
11478if test -n "$ac_tool_prefix"; then
11479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11480set dummy ${ac_tool_prefix}strip; ac_word=$2
11481echo "$as_me:$LINENO: checking for $ac_word" >&5
11482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11483if test "${ac_cv_prog_STRIP+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11485else
11486 if test -n "$STRIP"; then
11487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11488else
11489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $PATH
11491do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 break 2
11499 fi
11500done
11501done
11502
11503fi
11504fi
11505STRIP=$ac_cv_prog_STRIP
11506if test -n "$STRIP"; then
11507 echo "$as_me:$LINENO: result: $STRIP" >&5
11508echo "${ECHO_T}$STRIP" >&6
11509else
11510 echo "$as_me:$LINENO: result: no" >&5
11511echo "${ECHO_T}no" >&6
11512fi
11513
11514fi
11515if test -z "$ac_cv_prog_STRIP"; then
11516 ac_ct_STRIP=$STRIP
11517 # Extract the first word of "strip", so it can be a program name with args.
11518set dummy strip; ac_word=$2
11519echo "$as_me:$LINENO: checking for $ac_word" >&5
11520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11521if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523else
11524 if test -n "$ac_ct_STRIP"; then
11525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11526else
11527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11534 ac_cv_prog_ac_ct_STRIP="strip"
11535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 break 2
11537 fi
11538done
11539done
11540
11541 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11542fi
11543fi
11544ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11545if test -n "$ac_ct_STRIP"; then
11546 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11547echo "${ECHO_T}$ac_ct_STRIP" >&6
11548else
11549 echo "$as_me:$LINENO: result: no" >&5
11550echo "${ECHO_T}no" >&6
11551fi
11552
11553 STRIP=$ac_ct_STRIP
11554else
11555 STRIP="$ac_cv_prog_STRIP"
11556fi
11557
11558
John Criswell7a73b802003-06-30 21:59:07 +000011559old_CC="$CC"
11560old_CFLAGS="$CFLAGS"
11561
11562# Set sane defaults for various variables
11563test -z "$AR" && AR=ar
11564test -z "$AR_FLAGS" && AR_FLAGS=cru
11565test -z "$AS" && AS=as
11566test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011567test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011568test -z "$DLLTOOL" && DLLTOOL=dlltool
11569test -z "$LD" && LD=ld
11570test -z "$LN_S" && LN_S="ln -s"
11571test -z "$MAGIC_CMD" && MAGIC_CMD=file
11572test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011573test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011574test -z "$OBJDUMP" && OBJDUMP=objdump
11575test -z "$RANLIB" && RANLIB=:
11576test -z "$STRIP" && STRIP=:
11577test -z "$ac_objext" && ac_objext=o
11578
John Criswell7a73b802003-06-30 21:59:07 +000011579# Determine commands to create old-style static archives.
11580old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11581old_postinstall_cmds='chmod 644 $oldlib'
11582old_postuninstall_cmds=
11583
11584if test -n "$RANLIB"; then
11585 case $host_os in
11586 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011587 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011588 ;;
11589 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011590 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011591 ;;
11592 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011593 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011594fi
11595
Reid Spencer2706f8c2004-09-19 23:53:36 +000011596cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11597
John Criswell47fdd832003-07-14 16:52:07 +000011598# Only perform the check for file, if the check method requires it
11599case $deplibs_check_method in
11600file_magic*)
11601 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11602 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11603echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11604if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011606else
John Criswell47fdd832003-07-14 16:52:07 +000011607 case $MAGIC_CMD in
11608[\\/*] | ?:[\\/]*)
11609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11610 ;;
11611*)
11612 lt_save_MAGIC_CMD="$MAGIC_CMD"
11613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11615 for ac_dir in $ac_dummy; do
11616 IFS="$lt_save_ifs"
11617 test -z "$ac_dir" && ac_dir=.
11618 if test -f $ac_dir/${ac_tool_prefix}file; then
11619 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11620 if test -n "$file_magic_test_file"; then
11621 case $deplibs_check_method in
11622 "file_magic "*)
11623 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11626 $EGREP "$file_magic_regex" > /dev/null; then
11627 :
11628 else
11629 cat <<EOF 1>&2
11630
11631*** Warning: the command libtool uses to detect shared libraries,
11632*** $file_magic_cmd, produces output that libtool cannot recognize.
11633*** The result is that libtool may fail to recognize shared libraries
11634*** as such. This will affect the creation of libtool libraries that
11635*** depend on shared libraries, but programs linked with such libtool
11636*** libraries will work regardless of this problem. Nevertheless, you
11637*** may want to report the problem to your system manager and/or to
11638*** bug-libtool@gnu.org
11639
11640EOF
11641 fi ;;
11642 esac
11643 fi
11644 break
11645 fi
11646 done
11647 IFS="$lt_save_ifs"
11648 MAGIC_CMD="$lt_save_MAGIC_CMD"
11649 ;;
11650esac
John Criswell7a73b802003-06-30 21:59:07 +000011651fi
John Criswell7a73b802003-06-30 21:59:07 +000011652
John Criswell47fdd832003-07-14 16:52:07 +000011653MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11654if test -n "$MAGIC_CMD"; then
11655 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11656echo "${ECHO_T}$MAGIC_CMD" >&6
11657else
11658 echo "$as_me:$LINENO: result: no" >&5
11659echo "${ECHO_T}no" >&6
11660fi
John Criswell7a73b802003-06-30 21:59:07 +000011661
John Criswell47fdd832003-07-14 16:52:07 +000011662if test -z "$lt_cv_path_MAGIC_CMD"; then
11663 if test -n "$ac_tool_prefix"; then
11664 echo "$as_me:$LINENO: checking for file" >&5
11665echo $ECHO_N "checking for file... $ECHO_C" >&6
11666if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668else
11669 case $MAGIC_CMD in
11670[\\/*] | ?:[\\/]*)
11671 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11672 ;;
11673*)
11674 lt_save_MAGIC_CMD="$MAGIC_CMD"
11675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11676 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11677 for ac_dir in $ac_dummy; do
11678 IFS="$lt_save_ifs"
11679 test -z "$ac_dir" && ac_dir=.
11680 if test -f $ac_dir/file; then
11681 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11682 if test -n "$file_magic_test_file"; then
11683 case $deplibs_check_method in
11684 "file_magic "*)
11685 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11688 $EGREP "$file_magic_regex" > /dev/null; then
11689 :
11690 else
11691 cat <<EOF 1>&2
11692
11693*** Warning: the command libtool uses to detect shared libraries,
11694*** $file_magic_cmd, produces output that libtool cannot recognize.
11695*** The result is that libtool may fail to recognize shared libraries
11696*** as such. This will affect the creation of libtool libraries that
11697*** depend on shared libraries, but programs linked with such libtool
11698*** libraries will work regardless of this problem. Nevertheless, you
11699*** may want to report the problem to your system manager and/or to
11700*** bug-libtool@gnu.org
11701
11702EOF
11703 fi ;;
11704 esac
11705 fi
11706 break
11707 fi
11708 done
11709 IFS="$lt_save_ifs"
11710 MAGIC_CMD="$lt_save_MAGIC_CMD"
11711 ;;
11712esac
11713fi
11714
11715MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11716if test -n "$MAGIC_CMD"; then
11717 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11718echo "${ECHO_T}$MAGIC_CMD" >&6
11719else
11720 echo "$as_me:$LINENO: result: no" >&5
11721echo "${ECHO_T}no" >&6
11722fi
11723
11724 else
11725 MAGIC_CMD=:
11726 fi
11727fi
11728
11729 fi
11730 ;;
11731esac
11732
Reid Spencer17795972004-11-18 09:47:37 +000011733enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011734enable_win32_dll=no
11735
11736# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11737if test "${enable_libtool_lock+set}" = set; then
11738 enableval="$enable_libtool_lock"
11739
11740fi;
11741test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11742
John Criswell7a73b802003-06-30 21:59:07 +000011743
11744# Check whether --with-pic or --without-pic was given.
11745if test "${with_pic+set}" = set; then
11746 withval="$with_pic"
11747 pic_mode="$withval"
11748else
11749 pic_mode=default
11750fi;
11751test -z "$pic_mode" && pic_mode=default
11752
John Criswell47fdd832003-07-14 16:52:07 +000011753# Use C for the default configuration in the libtool script
11754tagname=
11755lt_save_CC="$CC"
11756ac_ext=c
11757ac_cpp='$CPP $CPPFLAGS'
11758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760ac_compiler_gnu=$ac_cv_c_compiler_gnu
11761
11762
11763# Source file extension for C test sources.
11764ac_ext=c
11765
11766# Object file extension for compiled C test sources.
11767objext=o
11768objext=$objext
11769
11770# Code to be used in simple compile tests
11771lt_simple_compile_test_code="int some_variable = 0;\n"
11772
11773# Code to be used in simple link tests
11774lt_simple_link_test_code='int main(){return(0);}\n'
11775
11776
11777# If no C compiler was specified, use CC.
11778LTCC=${LTCC-"$CC"}
11779
11780# Allow CC to be a program name with arguments.
11781compiler=$CC
11782
11783
11784#
11785# Check for any special shared library compilation flags.
11786#
11787lt_prog_cc_shlib=
11788if test "$GCC" = no; then
11789 case $host_os in
11790 sco3.2v5*)
11791 lt_prog_cc_shlib='-belf'
11792 ;;
11793 esac
11794fi
11795if test -n "$lt_prog_cc_shlib"; then
11796 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11797echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11798 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11799 else
11800 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11801echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11802 lt_cv_prog_cc_can_build_shared=no
11803 fi
11804fi
11805
11806
11807#
11808# Check to make sure the static flag actually works.
11809#
11810echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11811echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11812if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814else
John Criswell47fdd832003-07-14 16:52:07 +000011815 lt_prog_compiler_static_works=no
11816 save_LDFLAGS="$LDFLAGS"
11817 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11818 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11820 # The compiler can only warn and ignore the option if not recognized
11821 # So say no if there are warnings
11822 if test -s conftest.err; then
11823 # Append any errors to the config.log.
11824 cat conftest.err 1>&5
11825 else
11826 lt_prog_compiler_static_works=yes
11827 fi
11828 fi
11829 $rm conftest*
11830 LDFLAGS="$save_LDFLAGS"
11831
11832fi
11833echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11834echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11835
11836if test x"$lt_prog_compiler_static_works" = xyes; then
11837 :
11838else
11839 lt_prog_compiler_static=
11840fi
11841
11842
11843
John Criswell47fdd832003-07-14 16:52:07 +000011844
11845lt_prog_compiler_no_builtin_flag=
11846
11847if test "$GCC" = yes; then
11848 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11849
Reid Spencer2706f8c2004-09-19 23:53:36 +000011850
11851echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011852echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11853if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855else
11856 lt_cv_prog_compiler_rtti_exceptions=no
11857 ac_outfile=conftest.$ac_objext
11858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11859 lt_compiler_flag="-fno-rtti -fno-exceptions"
11860 # Insert the option either (1) after the last *FLAGS variable, or
11861 # (2) before a word containing "conftest.", or (3) at the end.
11862 # Note that $ac_compile itself does not contain backslashes and begins
11863 # with a dollar sign (not a hyphen), so the echo should work correctly.
11864 # The option is referenced via a variable to avoid confusing sed.
11865 lt_compile=`echo "$ac_compile" | $SED \
11866 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11868 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000011869 (eval echo "\"\$as_me:11869: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011870 (eval "$lt_compile" 2>conftest.err)
11871 ac_status=$?
11872 cat conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000011873 echo "$as_me:11873: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011874 if (exit $ac_status) && test -s "$ac_outfile"; then
11875 # The compiler can only warn and ignore the option if not recognized
11876 # So say no if there are warnings
11877 if test ! -s conftest.err; then
11878 lt_cv_prog_compiler_rtti_exceptions=yes
11879 fi
11880 fi
11881 $rm conftest*
11882
11883fi
11884echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11885echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11886
11887if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11888 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11889else
11890 :
11891fi
11892
11893fi
11894
11895lt_prog_compiler_wl=
11896lt_prog_compiler_pic=
11897lt_prog_compiler_static=
11898
11899echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11900echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011901
11902 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011903 lt_prog_compiler_wl='-Wl,'
11904 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011905
11906 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011907 aix*)
11908 # All AIX code is PIC.
11909 if test "$host_cpu" = ia64; then
11910 # AIX 5 now supports IA64 processor
11911 lt_prog_compiler_static='-Bstatic'
11912 fi
John Criswell7a73b802003-06-30 21:59:07 +000011913 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011914
John Criswell7a73b802003-06-30 21:59:07 +000011915 amigaos*)
11916 # FIXME: we need at least 68020 code to build shared libraries, but
11917 # adding the `-m68020' flag to GCC prevents building anything better,
11918 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011919 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011920 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011921
11922 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011923 # PIC is the default for these OSes.
11924 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011925
11926 mingw* | pw32* | os2*)
11927 # This hack is so that the source file can tell whether it is being
11928 # built for inclusion in a dll (and should export symbols for example).
11929 lt_prog_compiler_pic='-DDLL_EXPORT'
11930 ;;
11931
John Criswell7a73b802003-06-30 21:59:07 +000011932 darwin* | rhapsody*)
11933 # PIC is the default on this platform
11934 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011935 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011936 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011937
11938 msdosdjgpp*)
11939 # Just because we use GCC doesn't mean we suddenly get shared libraries
11940 # on systems that don't support them.
11941 lt_prog_compiler_can_build_shared=no
11942 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011943 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011944
John Criswell7a73b802003-06-30 21:59:07 +000011945 sysv4*MP*)
11946 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011947 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011948 fi
11949 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011950
11951 hpux*)
11952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11953 # not for PA HP-UX.
11954 case "$host_cpu" in
11955 hppa*64*|ia64*)
11956 # +Z the default
11957 ;;
11958 *)
11959 lt_prog_compiler_pic='-fPIC'
11960 ;;
11961 esac
11962 ;;
11963
John Criswell7a73b802003-06-30 21:59:07 +000011964 *)
John Criswell47fdd832003-07-14 16:52:07 +000011965 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011966 ;;
11967 esac
11968 else
John Criswell47fdd832003-07-14 16:52:07 +000011969 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011970 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011971 aix*)
11972 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011973 if test "$host_cpu" = ia64; then
11974 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011975 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011976 else
John Criswell47fdd832003-07-14 16:52:07 +000011977 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011978 fi
11979 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011980 darwin*)
11981 # PIC is the default on this platform
11982 # Common symbols not allowed in MH_DYLIB files
11983 case "$cc_basename" in
11984 xlc*)
11985 lt_prog_compiler_pic='-qnocommon'
11986 lt_prog_compiler_wl='-Wl,'
11987 ;;
11988 esac
11989 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011990
John Criswell47fdd832003-07-14 16:52:07 +000011991 mingw* | pw32* | os2*)
11992 # This hack is so that the source file can tell whether it is being
11993 # built for inclusion in a dll (and should export symbols for example).
11994 lt_prog_compiler_pic='-DDLL_EXPORT'
11995 ;;
11996
John Criswell7a73b802003-06-30 21:59:07 +000011997 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011998 lt_prog_compiler_wl='-Wl,'
11999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12000 # not for PA HP-UX.
12001 case "$host_cpu" in
12002 hppa*64*|ia64*)
12003 # +Z the default
12004 ;;
12005 *)
12006 lt_prog_compiler_pic='+Z'
12007 ;;
12008 esac
12009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12010 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012011 ;;
12012
John Criswell47fdd832003-07-14 16:52:07 +000012013 irix5* | irix6* | nonstopux*)
12014 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012015 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012016 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012017 ;;
12018
12019 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012020 lt_prog_compiler_pic='-KPIC'
12021 lt_prog_compiler_static='-Bstatic'
12022 ;;
12023
12024 linux*)
12025 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012026 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012027 lt_prog_compiler_wl='-Wl,'
12028 lt_prog_compiler_pic='-KPIC'
12029 lt_prog_compiler_static='-static'
12030 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012031 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012032 lt_prog_compiler_wl='-Wl,'
12033 # All Alpha code is PIC.
12034 lt_prog_compiler_static='-non_shared'
12035 ;;
12036 esac
John Criswell7a73b802003-06-30 21:59:07 +000012037 ;;
12038
12039 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012040 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012041 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012042 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012043 ;;
12044
12045 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012046 lt_prog_compiler_pic='-Kpic'
12047 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012048 ;;
12049
12050 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012051 lt_prog_compiler_wl='-Wl,'
12052 lt_prog_compiler_pic='-KPIC'
12053 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012054 ;;
12055
12056 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012057 lt_prog_compiler_wl='-Qoption ld '
12058 lt_prog_compiler_pic='-PIC'
12059 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012060 ;;
12061
12062 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012063 lt_prog_compiler_wl='-Wl,'
12064 lt_prog_compiler_pic='-KPIC'
12065 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012066 ;;
12067
12068 sysv4*MP*)
12069 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012070 lt_prog_compiler_pic='-Kconform_pic'
12071 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012072 fi
12073 ;;
12074
John Criswell47fdd832003-07-14 16:52:07 +000012075 uts4*)
12076 lt_prog_compiler_pic='-pic'
12077 lt_prog_compiler_static='-Bstatic'
12078 ;;
12079
John Criswell7a73b802003-06-30 21:59:07 +000012080 *)
John Criswell47fdd832003-07-14 16:52:07 +000012081 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012082 ;;
12083 esac
12084 fi
12085
John Criswell47fdd832003-07-14 16:52:07 +000012086echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12087echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012088
John Criswell47fdd832003-07-14 16:52:07 +000012089#
12090# Check to make sure the PIC flag actually works.
12091#
12092if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012093
12094echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012095echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12096if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098else
John Criswell47fdd832003-07-14 16:52:07 +000012099 lt_prog_compiler_pic_works=no
12100 ac_outfile=conftest.$ac_objext
12101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12102 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12103 # Insert the option either (1) after the last *FLAGS variable, or
12104 # (2) before a word containing "conftest.", or (3) at the end.
12105 # Note that $ac_compile itself does not contain backslashes and begins
12106 # with a dollar sign (not a hyphen), so the echo should work correctly.
12107 # The option is referenced via a variable to avoid confusing sed.
12108 lt_compile=`echo "$ac_compile" | $SED \
12109 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12111 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000012112 (eval echo "\"\$as_me:12112: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012113 (eval "$lt_compile" 2>conftest.err)
12114 ac_status=$?
12115 cat conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000012116 echo "$as_me:12116: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012117 if (exit $ac_status) && test -s "$ac_outfile"; then
12118 # The compiler can only warn and ignore the option if not recognized
12119 # So say no if there are warnings
12120 if test ! -s conftest.err; then
12121 lt_prog_compiler_pic_works=yes
12122 fi
12123 fi
12124 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012125
John Criswell47fdd832003-07-14 16:52:07 +000012126fi
12127echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12128echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012129
John Criswell47fdd832003-07-14 16:52:07 +000012130if test x"$lt_prog_compiler_pic_works" = xyes; then
12131 case $lt_prog_compiler_pic in
12132 "" | " "*) ;;
12133 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12134 esac
John Criswell7a73b802003-06-30 21:59:07 +000012135else
John Criswell47fdd832003-07-14 16:52:07 +000012136 lt_prog_compiler_pic=
12137 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012138fi
12139
John Criswell7a73b802003-06-30 21:59:07 +000012140fi
John Criswell47fdd832003-07-14 16:52:07 +000012141case "$host_os" in
12142 # For platforms which do not support PIC, -DPIC is meaningless:
12143 *djgpp*)
12144 lt_prog_compiler_pic=
12145 ;;
12146 *)
12147 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12148 ;;
12149esac
John Criswell7a73b802003-06-30 21:59:07 +000012150
John Criswell7a73b802003-06-30 21:59:07 +000012151echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12152echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012153if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
John Criswell47fdd832003-07-14 16:52:07 +000012156 lt_cv_prog_compiler_c_o=no
12157 $rm -r conftest 2>/dev/null
12158 mkdir conftest
12159 cd conftest
12160 mkdir out
12161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012162
John Criswell47fdd832003-07-14 16:52:07 +000012163 lt_compiler_flag="-o out/conftest2.$ac_objext"
12164 # Insert the option either (1) after the last *FLAGS variable, or
12165 # (2) before a word containing "conftest.", or (3) at the end.
12166 # Note that $ac_compile itself does not contain backslashes and begins
12167 # with a dollar sign (not a hyphen), so the echo should work correctly.
12168 lt_compile=`echo "$ac_compile" | $SED \
12169 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12171 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000012172 (eval echo "\"\$as_me:12172: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012173 (eval "$lt_compile" 2>out/conftest.err)
12174 ac_status=$?
12175 cat out/conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000012176 echo "$as_me:12176: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12178 then
12179 # The compiler can only warn and ignore the option if not recognized
12180 # So say no if there are warnings
12181 if test ! -s out/conftest.err; then
12182 lt_cv_prog_compiler_c_o=yes
12183 fi
12184 fi
12185 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012186 $rm conftest*
12187 # SGI C++ compiler will create directory out/ii_files/ for
12188 # template instantiation
12189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12190 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012191 cd ..
12192 rmdir conftest
12193 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012194
12195fi
John Criswell47fdd832003-07-14 16:52:07 +000012196echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12197echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012198
John Criswell7a73b802003-06-30 21:59:07 +000012199
John Criswell7a73b802003-06-30 21:59:07 +000012200hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012201if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012202 # do not overwrite the value of need_locks provided by the user
12203 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12204echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12205 hard_links=yes
12206 $rm conftest*
12207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12208 touch conftest.a
12209 ln conftest.a conftest.b 2>&5 || hard_links=no
12210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12211 echo "$as_me:$LINENO: result: $hard_links" >&5
12212echo "${ECHO_T}$hard_links" >&6
12213 if test "$hard_links" = no; then
12214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12215echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12216 need_locks=warn
12217 fi
12218else
12219 need_locks=no
12220fi
John Criswell7a73b802003-06-30 21:59:07 +000012221
John Criswell47fdd832003-07-14 16:52:07 +000012222echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12223echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12224
12225 runpath_var=
12226 allow_undefined_flag=
12227 enable_shared_with_static_runtimes=no
12228 archive_cmds=
12229 archive_expsym_cmds=
12230 old_archive_From_new_cmds=
12231 old_archive_from_expsyms_cmds=
12232 export_dynamic_flag_spec=
12233 whole_archive_flag_spec=
12234 thread_safe_flag_spec=
12235 hardcode_libdir_flag_spec=
12236 hardcode_libdir_flag_spec_ld=
12237 hardcode_libdir_separator=
12238 hardcode_direct=no
12239 hardcode_minus_L=no
12240 hardcode_shlibpath_var=unsupported
12241 link_all_deplibs=unknown
12242 hardcode_automatic=no
12243 module_cmds=
12244 module_expsym_cmds=
12245 always_export_symbols=no
12246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12247 # include_expsyms should be a list of space-separated symbols to be *always*
12248 # included in the symbol list
12249 include_expsyms=
12250 # exclude_expsyms can be an extended regexp of symbols to exclude
12251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12253 # as well as any symbol that contains `d'.
12254 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12256 # platforms (ab)use it in PIC code, but their linkers get confused if
12257 # the symbol is explicitly referenced. Since portable code cannot
12258 # rely on this symbol name, it's probably fine to never include it in
12259 # preloaded symbol tables.
12260 extract_expsyms_cmds=
12261
12262 case $host_os in
12263 cygwin* | mingw* | pw32*)
12264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12265 # When not using gcc, we currently assume that we are using
12266 # Microsoft Visual C++.
12267 if test "$GCC" != yes; then
12268 with_gnu_ld=no
12269 fi
12270 ;;
12271 openbsd*)
12272 with_gnu_ld=no
12273 ;;
12274 esac
12275
12276 ld_shlibs=yes
12277 if test "$with_gnu_ld" = yes; then
12278 # If archive_cmds runs LD, not CC, wlarc should be empty
12279 wlarc='${wl}'
12280
12281 # See if GNU ld supports shared libraries.
12282 case $host_os in
12283 aix3* | aix4* | aix5*)
12284 # On AIX/PPC, the GNU linker is very broken
12285 if test "$host_cpu" != ia64; then
12286 ld_shlibs=no
12287 cat <<EOF 1>&2
12288
12289*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12290*** to be unable to reliably create shared libraries on AIX.
12291*** Therefore, libtool is disabling shared libraries support. If you
12292*** really care for shared libraries, you may want to modify your PATH
12293*** so that a non-GNU linker is found, and then restart.
12294
12295EOF
12296 fi
12297 ;;
12298
12299 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012300 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 +000012301 hardcode_libdir_flag_spec='-L$libdir'
12302 hardcode_minus_L=yes
12303
12304 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12305 # that the semantics of dynamic libraries on AmigaOS, at least up
12306 # to version 4, is to share data among multiple programs linked
12307 # with the same dynamic library. Since this doesn't match the
12308 # behavior of shared libraries on other platforms, we can't use
12309 # them.
12310 ld_shlibs=no
12311 ;;
12312
12313 beos*)
12314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12315 allow_undefined_flag=unsupported
12316 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12317 # support --undefined. This deserves some investigation. FIXME
12318 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12319 else
12320 ld_shlibs=no
12321 fi
12322 ;;
12323
12324 cygwin* | mingw* | pw32*)
12325 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12326 # as there is no search path for DLLs.
12327 hardcode_libdir_flag_spec='-L$libdir'
12328 allow_undefined_flag=unsupported
12329 always_export_symbols=no
12330 enable_shared_with_static_runtimes=yes
12331 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12332
12333 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12335 # If the export-symbols file already is a .def file (1st line
12336 # is EXPORTS), use it as is; otherwise, prepend...
12337 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12338 cp $export_symbols $output_objdir/$soname.def;
12339 else
12340 echo EXPORTS > $output_objdir/$soname.def;
12341 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012342 fi~
12343 $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 +000012344 else
12345 ld_shlibs=no
12346 fi
12347 ;;
12348
12349 netbsd*)
12350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12351 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12352 wlarc=
12353 else
12354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12356 fi
12357 ;;
12358
12359 solaris* | sysv5*)
12360 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12361 ld_shlibs=no
12362 cat <<EOF 1>&2
12363
12364*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12365*** create shared libraries on Solaris systems. Therefore, libtool
12366*** is disabling shared libraries support. We urge you to upgrade GNU
12367*** binutils to release 2.9.1 or newer. Another option is to modify
12368*** your PATH or compiler configuration so that the native linker is
12369*** used, and then restart.
12370
12371EOF
12372 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12375 else
12376 ld_shlibs=no
12377 fi
12378 ;;
12379
12380 sunos4*)
12381 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12382 wlarc=
12383 hardcode_direct=yes
12384 hardcode_shlibpath_var=no
12385 ;;
12386
Reid Spencer2706f8c2004-09-19 23:53:36 +000012387 linux*)
12388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12389 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12390 archive_cmds="$tmp_archive_cmds"
12391 supports_anon_versioning=no
12392 case `$LD -v 2>/dev/null` in
12393 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12394 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12395 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12396 *\ 2.11.*) ;; # other 2.11 versions
12397 *) supports_anon_versioning=yes ;;
12398 esac
12399 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012400 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12401cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12402$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012403 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12404 else
12405 archive_expsym_cmds="$tmp_archive_cmds"
12406 fi
12407 else
12408 ld_shlibs=no
12409 fi
12410 ;;
12411
John Criswell47fdd832003-07-14 16:52:07 +000012412 *)
12413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12416 else
12417 ld_shlibs=no
12418 fi
12419 ;;
12420 esac
12421
12422 if test "$ld_shlibs" = yes; then
12423 runpath_var=LD_RUN_PATH
12424 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12425 export_dynamic_flag_spec='${wl}--export-dynamic'
12426 # ancient GNU ld didn't support --whole-archive et. al.
12427 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12429 else
12430 whole_archive_flag_spec=
12431 fi
12432 fi
12433 else
12434 # PORTME fill in a description of your system's linker (not GNU ld)
12435 case $host_os in
12436 aix3*)
12437 allow_undefined_flag=unsupported
12438 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012439 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 +000012440 # Note: this linker hardcodes the directories in LIBPATH if there
12441 # are no directories specified by -L.
12442 hardcode_minus_L=yes
12443 if test "$GCC" = yes && test -z "$link_static_flag"; then
12444 # Neither direct hardcoding nor static linking is supported with a
12445 # broken collect2.
12446 hardcode_direct=unsupported
12447 fi
12448 ;;
12449
12450 aix4* | aix5*)
12451 if test "$host_cpu" = ia64; then
12452 # On IA64, the linker does run time linking by default, so we don't
12453 # have to do anything special.
12454 aix_use_runtimelinking=no
12455 exp_sym_flag='-Bexport'
12456 no_entry_flag=""
12457 else
12458 # If we're using GNU nm, then we don't want the "-C" option.
12459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12460 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12461 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'
12462 else
12463 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'
12464 fi
12465 aix_use_runtimelinking=no
12466
12467 # Test if we are trying to use run time linking or normal
12468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12469 # need to do runtime linking.
12470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12471 for ld_flag in $LDFLAGS; do
12472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12473 aix_use_runtimelinking=yes
12474 break
12475 fi
12476 done
12477 esac
12478
12479 exp_sym_flag='-bexport'
12480 no_entry_flag='-bnoentry'
12481 fi
12482
12483 # When large executables or shared objects are built, AIX ld can
12484 # have problems creating the table of contents. If linking a library
12485 # or program results in "error TOC overflow" add -mminimal-toc to
12486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12488
12489 archive_cmds=''
12490 hardcode_direct=yes
12491 hardcode_libdir_separator=':'
12492 link_all_deplibs=yes
12493
12494 if test "$GCC" = yes; then
12495 case $host_os in aix4.012|aix4.012.*)
12496 # We only want to do this on AIX 4.2 and lower, the check
12497 # below for broken collect2 doesn't work under 4.3+
12498 collect2name=`${CC} -print-prog-name=collect2`
12499 if test -f "$collect2name" && \
12500 strings "$collect2name" | grep resolve_lib_name >/dev/null
12501 then
12502 # We have reworked collect2
12503 hardcode_direct=yes
12504 else
12505 # We have old collect2
12506 hardcode_direct=unsupported
12507 # It fails to find uninstalled libraries when the uninstalled
12508 # path is not listed in the libpath. Setting hardcode_minus_L
12509 # to unsupported forces relinking
12510 hardcode_minus_L=yes
12511 hardcode_libdir_flag_spec='-L$libdir'
12512 hardcode_libdir_separator=
12513 fi
12514 esac
12515 shared_flag='-shared'
12516 else
12517 # not using gcc
12518 if test "$host_cpu" = ia64; then
12519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12520 # chokes on -Wl,-G. The following line is correct:
12521 shared_flag='-G'
12522 else
12523 if test "$aix_use_runtimelinking" = yes; then
12524 shared_flag='${wl}-G'
12525 else
12526 shared_flag='${wl}-bM:SRE'
12527 fi
12528 fi
12529 fi
12530
12531 # It seems that -bexpall does not export symbols beginning with
12532 # underscore (_), so it is better to generate a list of symbols to export.
12533 always_export_symbols=yes
12534 if test "$aix_use_runtimelinking" = yes; then
12535 # Warning - without using the other runtime loading flags (-brtl),
12536 # -berok will link without error, but may produce a broken library.
12537 allow_undefined_flag='-berok'
12538 # Determine the default libpath from the value encoded in an empty executable.
12539 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012540/* confdefs.h. */
12541_ACEOF
12542cat confdefs.h >>conftest.$ac_ext
12543cat >>conftest.$ac_ext <<_ACEOF
12544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012545
John Criswell7a73b802003-06-30 21:59:07 +000012546int
12547main ()
12548{
John Criswell47fdd832003-07-14 16:52:07 +000012549
John Criswell7a73b802003-06-30 21:59:07 +000012550 ;
12551 return 0;
12552}
12553_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012554rm -f conftest.$ac_objext conftest$ac_exeext
12555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012556 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012563 { ac_try='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012576
John Criswell47fdd832003-07-14 16:52:07 +000012577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12578}'`
12579# Check for a 64-bit object if we didn't find anything.
12580if 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; }
12581}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012582else
12583 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012584sed 's/^/| /' conftest.$ac_ext >&5
12585
John Criswell7a73b802003-06-30 21:59:07 +000012586fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012587rm -f conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012590
John Criswell47fdd832003-07-14 16:52:07 +000012591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12592 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"
12593 else
12594 if test "$host_cpu" = ia64; then
12595 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12596 allow_undefined_flag="-z nodefs"
12597 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"
12598 else
12599 # Determine the default libpath from the value encoded in an empty executable.
12600 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012601/* confdefs.h. */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012606
John Criswell47fdd832003-07-14 16:52:07 +000012607int
12608main ()
12609{
John Criswell7a73b802003-06-30 21:59:07 +000012610
John Criswell47fdd832003-07-14 16:52:07 +000012611 ;
12612 return 0;
12613}
12614_ACEOF
12615rm -f conftest.$ac_objext conftest$ac_exeext
12616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012617 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012637
John Criswell47fdd832003-07-14 16:52:07 +000012638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12639}'`
12640# Check for a 64-bit object if we didn't find anything.
12641if 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; }
12642}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012643else
John Criswell47fdd832003-07-14 16:52:07 +000012644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012645sed 's/^/| /' conftest.$ac_ext >&5
12646
John Criswell47fdd832003-07-14 16:52:07 +000012647fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012648rm -f conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012651
John Criswell47fdd832003-07-14 16:52:07 +000012652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12653 # Warning - without using the other run time loading flags,
12654 # -berok will link without error, but may produce a broken library.
12655 no_undefined_flag=' ${wl}-bernotok'
12656 allow_undefined_flag=' ${wl}-berok'
12657 # -bexpall does not export symbols beginning with underscore (_)
12658 always_export_symbols=yes
12659 # Exported symbols can be pulled into shared objects from archives
12660 whole_archive_flag_spec=' '
12661 archive_cmds_need_lc=yes
12662 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012663 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 +000012664 fi
12665 fi
John Criswell7a73b802003-06-30 21:59:07 +000012666 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012667
12668 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012669 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 +000012670 hardcode_libdir_flag_spec='-L$libdir'
12671 hardcode_minus_L=yes
12672 # see comment about different semantics on the GNU ld section
12673 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012674 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012675
Reid Spencer2706f8c2004-09-19 23:53:36 +000012676 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012677 export_dynamic_flag_spec=-rdynamic
12678 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012679
John Criswell47fdd832003-07-14 16:52:07 +000012680 cygwin* | mingw* | pw32*)
12681 # When not using gcc, we currently assume that we are using
12682 # Microsoft Visual C++.
12683 # hardcode_libdir_flag_spec is actually meaningless, as there is
12684 # no search path for DLLs.
12685 hardcode_libdir_flag_spec=' '
12686 allow_undefined_flag=unsupported
12687 # Tell ltmain to make .lib files, not .a files.
12688 libext=lib
12689 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012690 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012691 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012692 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012693 # The linker will automatically build a .lib file if we build a DLL.
12694 old_archive_From_new_cmds='true'
12695 # FIXME: Should let the user specify the lib program.
12696 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12697 fix_srcfile_path='`cygpath -w "$srcfile"`'
12698 enable_shared_with_static_runtimes=yes
12699 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012700
John Criswell47fdd832003-07-14 16:52:07 +000012701 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012702 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012703 rhapsody* | darwin1.[012])
12704 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12705 ;;
12706 *) # Darwin 1.3 on
12707 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12708 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12709 else
12710 case ${MACOSX_DEPLOYMENT_TARGET} in
12711 10.[012])
12712 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12713 ;;
12714 10.*)
12715 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12716 ;;
12717 esac
12718 fi
12719 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012720 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012721 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012722 hardcode_direct=no
12723 hardcode_automatic=yes
12724 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012725 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012726 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012727 if test "$GCC" = yes ; then
12728 output_verbose_link_cmd='echo'
12729 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12730 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12731 # 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 +000012732 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}'
12733 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 +000012734 else
12735 case "$cc_basename" in
12736 xlc*)
12737 output_verbose_link_cmd='echo'
12738 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12739 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12740 # 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 +000012741 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}'
12742 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 +000012743 ;;
12744 *)
12745 ld_shlibs=no
12746 ;;
12747 esac
John Criswell7a73b802003-06-30 21:59:07 +000012748 fi
John Criswell47fdd832003-07-14 16:52:07 +000012749 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012750
John Criswell47fdd832003-07-14 16:52:07 +000012751 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012753 hardcode_libdir_flag_spec='-L$libdir'
12754 hardcode_shlibpath_var=no
12755 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012756
John Criswell47fdd832003-07-14 16:52:07 +000012757 freebsd1*)
12758 ld_shlibs=no
12759 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012760
John Criswell47fdd832003-07-14 16:52:07 +000012761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12762 # support. Future versions do this automatically, but an explicit c++rt0.o
12763 # does not break anything, and helps significantly (at the cost of a little
12764 # extra space).
12765 freebsd2.2*)
12766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12767 hardcode_libdir_flag_spec='-R$libdir'
12768 hardcode_direct=yes
12769 hardcode_shlibpath_var=no
12770 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012771
John Criswell47fdd832003-07-14 16:52:07 +000012772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12773 freebsd2*)
12774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12775 hardcode_direct=yes
12776 hardcode_minus_L=yes
12777 hardcode_shlibpath_var=no
12778 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012779
John Criswell47fdd832003-07-14 16:52:07 +000012780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012781 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012782 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12783 hardcode_libdir_flag_spec='-R$libdir'
12784 hardcode_direct=yes
12785 hardcode_shlibpath_var=no
12786 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012787
John Criswell47fdd832003-07-14 16:52:07 +000012788 hpux9*)
12789 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012790 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 +000012791 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012792 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 +000012793 fi
12794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12795 hardcode_libdir_separator=:
12796 hardcode_direct=yes
12797
12798 # hardcode_minus_L: Not really in the search PATH,
12799 # but as the default location of the library.
12800 hardcode_minus_L=yes
12801 export_dynamic_flag_spec='${wl}-E'
12802 ;;
12803
12804 hpux10* | hpux11*)
12805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12806 case "$host_cpu" in
12807 hppa*64*|ia64*)
12808 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12809 ;;
12810 *)
12811 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12812 ;;
12813 esac
12814 else
12815 case "$host_cpu" in
12816 hppa*64*|ia64*)
12817 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12818 ;;
12819 *)
12820 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12821 ;;
12822 esac
12823 fi
12824 if test "$with_gnu_ld" = no; then
12825 case "$host_cpu" in
12826 hppa*64*)
12827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12828 hardcode_libdir_flag_spec_ld='+b $libdir'
12829 hardcode_libdir_separator=:
12830 hardcode_direct=no
12831 hardcode_shlibpath_var=no
12832 ;;
12833 ia64*)
12834 hardcode_libdir_flag_spec='-L$libdir'
12835 hardcode_direct=no
12836 hardcode_shlibpath_var=no
12837
12838 # hardcode_minus_L: Not really in the search PATH,
12839 # but as the default location of the library.
12840 hardcode_minus_L=yes
12841 ;;
12842 *)
12843 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12844 hardcode_libdir_separator=:
12845 hardcode_direct=yes
12846 export_dynamic_flag_spec='${wl}-E'
12847
12848 # hardcode_minus_L: Not really in the search PATH,
12849 # but as the default location of the library.
12850 hardcode_minus_L=yes
12851 ;;
12852 esac
12853 fi
12854 ;;
12855
12856 irix5* | irix6* | nonstopux*)
12857 if test "$GCC" = yes; then
12858 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'
12859 else
12860 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'
12861 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12862 fi
12863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12864 hardcode_libdir_separator=:
12865 link_all_deplibs=yes
12866 ;;
12867
12868 netbsd*)
12869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12871 else
12872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12873 fi
12874 hardcode_libdir_flag_spec='-R$libdir'
12875 hardcode_direct=yes
12876 hardcode_shlibpath_var=no
12877 ;;
12878
12879 newsos6)
12880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12881 hardcode_direct=yes
12882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12883 hardcode_libdir_separator=:
12884 hardcode_shlibpath_var=no
12885 ;;
12886
12887 openbsd*)
12888 hardcode_direct=yes
12889 hardcode_shlibpath_var=no
12890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012892 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 +000012893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12894 export_dynamic_flag_spec='${wl}-E'
12895 else
12896 case $host_os in
12897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12899 hardcode_libdir_flag_spec='-R$libdir'
12900 ;;
12901 *)
12902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12904 ;;
12905 esac
12906 fi
12907 ;;
12908
12909 os2*)
12910 hardcode_libdir_flag_spec='-L$libdir'
12911 hardcode_minus_L=yes
12912 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012913 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 +000012914 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12915 ;;
12916
12917 osf3*)
12918 if test "$GCC" = yes; then
12919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12920 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'
12921 else
12922 allow_undefined_flag=' -expect_unresolved \*'
12923 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'
12924 fi
12925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926 hardcode_libdir_separator=:
12927 ;;
12928
12929 osf4* | osf5*) # as osf3* with the addition of -msym flag
12930 if test "$GCC" = yes; then
12931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12932 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'
12933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12934 else
12935 allow_undefined_flag=' -expect_unresolved \*'
12936 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 +000012937 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12938 $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'
12939
John Criswell47fdd832003-07-14 16:52:07 +000012940 # Both c and cxx compiler support -rpath directly
12941 hardcode_libdir_flag_spec='-rpath $libdir'
12942 fi
12943 hardcode_libdir_separator=:
12944 ;;
12945
12946 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012949 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012950 runpath_var=LD_RUN_PATH
12951 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012952 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012953
John Criswell47fdd832003-07-14 16:52:07 +000012954 solaris*)
12955 no_undefined_flag=' -z text'
12956 if test "$GCC" = yes; then
12957 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012958 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12959 $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 +000012960 else
12961 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012962 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12963 $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 +000012964 fi
12965 hardcode_libdir_flag_spec='-R$libdir'
12966 hardcode_shlibpath_var=no
12967 case $host_os in
12968 solaris2.[0-5] | solaris2.[0-5].*) ;;
12969 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12970 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12971 esac
12972 link_all_deplibs=yes
12973 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012974
John Criswell47fdd832003-07-14 16:52:07 +000012975 sunos4*)
12976 if test "x$host_vendor" = xsequent; then
12977 # Use $CC to link under sequent, because it throws in some extra .o
12978 # files that make .init and .fini sections work.
12979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12980 else
12981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12982 fi
12983 hardcode_libdir_flag_spec='-L$libdir'
12984 hardcode_direct=yes
12985 hardcode_minus_L=yes
12986 hardcode_shlibpath_var=no
12987 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012988
John Criswell47fdd832003-07-14 16:52:07 +000012989 sysv4)
12990 case $host_vendor in
12991 sni)
12992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12993 hardcode_direct=yes # is this really true???
12994 ;;
12995 siemens)
12996 ## LD is ld it makes a PLAMLIB
12997 ## CC just makes a GrossModule.
12998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12999 reload_cmds='$CC -r -o $output$reload_objs'
13000 hardcode_direct=no
13001 ;;
13002 motorola)
13003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13005 ;;
13006 esac
13007 runpath_var='LD_RUN_PATH'
13008 hardcode_shlibpath_var=no
13009 ;;
13010
13011 sysv4.3*)
13012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13013 hardcode_shlibpath_var=no
13014 export_dynamic_flag_spec='-Bexport'
13015 ;;
13016
13017 sysv4*MP*)
13018 if test -d /usr/nec; then
13019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13020 hardcode_shlibpath_var=no
13021 runpath_var=LD_RUN_PATH
13022 hardcode_runpath_var=yes
13023 ld_shlibs=yes
13024 fi
13025 ;;
13026
13027 sysv4.2uw2*)
13028 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13029 hardcode_direct=yes
13030 hardcode_minus_L=no
13031 hardcode_shlibpath_var=no
13032 hardcode_runpath_var=yes
13033 runpath_var=LD_RUN_PATH
13034 ;;
13035
13036 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13037 no_undefined_flag='${wl}-z ${wl}text'
13038 if test "$GCC" = yes; then
13039 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13040 else
13041 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13042 fi
13043 runpath_var='LD_RUN_PATH'
13044 hardcode_shlibpath_var=no
13045 ;;
13046
13047 sysv5*)
13048 no_undefined_flag=' -z text'
13049 # $CC -shared without GNU ld will not create a library from C++
13050 # object files and a static libstdc++, better avoid it by now
13051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013052 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13053 $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 +000013054 hardcode_libdir_flag_spec=
13055 hardcode_shlibpath_var=no
13056 runpath_var='LD_RUN_PATH'
13057 ;;
13058
13059 uts4*)
13060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13061 hardcode_libdir_flag_spec='-L$libdir'
13062 hardcode_shlibpath_var=no
13063 ;;
13064
13065 *)
13066 ld_shlibs=no
13067 ;;
13068 esac
13069 fi
13070
John Criswell7a73b802003-06-30 21:59:07 +000013071echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13072echo "${ECHO_T}$ld_shlibs" >&6
13073test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013074
John Criswell47fdd832003-07-14 16:52:07 +000013075variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13076if test "$GCC" = yes; then
13077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13078fi
13079
13080#
13081# Do we need to explicitly link libc?
13082#
13083case "x$archive_cmds_need_lc" in
13084x|xyes)
13085 # Assume -lc should be added
13086 archive_cmds_need_lc=yes
13087
13088 if test "$enable_shared" = yes && test "$GCC" = yes; then
13089 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013090 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013091 # FIXME: we may have to deal with multi-command sequences.
13092 ;;
13093 '$CC '*)
13094 # Test whether the compiler implicitly links with -lc since on some
13095 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13096 # to ld, don't add -lc before -lgcc.
13097 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13098echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13099 $rm conftest*
13100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13101
13102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103 (eval $ac_compile) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } 2>conftest.err; then
13107 soname=conftest
13108 lib=conftest
13109 libobjs=conftest.$ac_objext
13110 deplibs=
13111 wl=$lt_prog_compiler_wl
13112 compiler_flags=-v
13113 linker_flags=-v
13114 verstring=
13115 output_objdir=.
13116 libname=conftest
13117 lt_save_allow_undefined_flag=$allow_undefined_flag
13118 allow_undefined_flag=
13119 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13120 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }
13124 then
13125 archive_cmds_need_lc=no
13126 else
13127 archive_cmds_need_lc=yes
13128 fi
13129 allow_undefined_flag=$lt_save_allow_undefined_flag
13130 else
13131 cat conftest.err 1>&5
13132 fi
13133 $rm conftest*
13134 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13135echo "${ECHO_T}$archive_cmds_need_lc" >&6
13136 ;;
13137 esac
13138 fi
13139 ;;
13140esac
13141
John Criswell7a73b802003-06-30 21:59:07 +000013142echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13143echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13144library_names_spec=
13145libname_spec='lib$name'
13146soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013147shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013148postinstall_cmds=
13149postuninstall_cmds=
13150finish_cmds=
13151finish_eval=
13152shlibpath_var=
13153shlibpath_overrides_runpath=unknown
13154version_type=none
13155dynamic_linker="$host_os ld.so"
13156sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013157if test "$GCC" = yes; then
13158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13159 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13160 # if the path contains ";" then we assume it to be the separator
13161 # otherwise default to the standard path separator (i.e. ":") - it is
13162 # assumed that no part of a normal pathname contains ";" but that should
13163 # okay in the real world where ";" in dirpaths is itself problematic.
13164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13165 else
13166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13167 fi
13168else
13169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13170fi
13171need_lib_prefix=unknown
13172hardcode_into_libs=no
13173
13174# when you set need_version to no, make sure it does not cause -set_version
13175# flags to be left without arguments
13176need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013177
13178case $host_os in
13179aix3*)
13180 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013182 shlibpath_var=LIBPATH
13183
John Criswell47fdd832003-07-14 16:52:07 +000013184 # AIX 3 has no versioning support, so we append a major version to the name.
13185 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013186 ;;
13187
13188aix4* | aix5*)
13189 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013190 need_lib_prefix=no
13191 need_version=no
13192 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013193 if test "$host_cpu" = ia64; then
13194 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013196 shlibpath_var=LD_LIBRARY_PATH
13197 else
13198 # With GCC up to 2.95.x, collect2 would create an import file
13199 # for dependence libraries. The import file would start with
13200 # the line `#! .'. This would cause the generated library to
13201 # depend on `.', always an invalid library. This was fixed in
13202 # development snapshots of GCC prior to 3.0.
13203 case $host_os in
13204 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13206 echo ' yes '
13207 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13208 :
13209 else
13210 can_build_shared=no
13211 fi
13212 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013213 esac
John Criswell47fdd832003-07-14 16:52:07 +000013214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13215 # soname into executable. Probably we can add versioning support to
13216 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013217 if test "$aix_use_runtimelinking" = yes; then
13218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13219 # instead of lib<name>.a to let people know that these are not
13220 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013222 else
13223 # We preserve .a as extension for shared libraries through AIX4.2
13224 # and later when we are not doing run time linking.
13225 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013226 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013227 fi
13228 shlibpath_var=LIBPATH
13229 fi
13230 ;;
13231
13232amigaos*)
13233 library_names_spec='$libname.ixlibrary $libname.a'
13234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013235 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 +000013236 ;;
13237
13238beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013239 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013240 dynamic_linker="$host_os ld.so"
13241 shlibpath_var=LIBRARY_PATH
13242 ;;
13243
Reid Spencer2706f8c2004-09-19 23:53:36 +000013244bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013245 version_type=linux
13246 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013249 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13252 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013253 # the default ld.so.conf also contains /usr/contrib/lib and
13254 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13255 # libtool to hard-code these into programs
13256 ;;
13257
13258cygwin* | mingw* | pw32*)
13259 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013260 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013261 need_version=no
13262 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013263
John Criswell7a73b802003-06-30 21:59:07 +000013264 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013265 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013266 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013268 postinstall_cmds='base_file=`basename \${file}`~
13269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13270 dldir=$destdir/`dirname \$dlpath`~
13271 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013272 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13274 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013275 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013276 shlibpath_overrides_runpath=yes
13277
13278 case $host_os in
13279 cygwin*)
13280 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13281 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 +000013282 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013283 ;;
13284 mingw*)
13285 # MinGW DLLs use traditional 'lib' prefix
13286 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13287 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13288 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13289 # It is most probably a Windows format PATH printed by
13290 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13291 # path with ; separators, and with drive letters. We can handle the
13292 # drive letters (cygwin fileutils understands them), so leave them,
13293 # especially as we might pass files found there to a mingw objdump,
13294 # which wouldn't understand a cygwinified path. Ahh.
13295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13296 else
13297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13298 fi
13299 ;;
13300 pw32*)
13301 # pw32 DLLs use 'pw' prefix rather than 'lib'
13302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13303 ;;
13304 esac
John Criswell7a73b802003-06-30 21:59:07 +000013305 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013306
John Criswell7a73b802003-06-30 21:59:07 +000013307 *)
John Criswell47fdd832003-07-14 16:52:07 +000013308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013309 ;;
13310 esac
13311 dynamic_linker='Win32 ld.exe'
13312 # FIXME: first we should search . and the directory the executable is in
13313 shlibpath_var=PATH
13314 ;;
13315
13316darwin* | rhapsody*)
13317 dynamic_linker="$host_os dyld"
13318 version_type=darwin
13319 need_lib_prefix=no
13320 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013321 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013322 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013323 shlibpath_overrides_runpath=yes
13324 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013325 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013326 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013327 if test "$GCC" = yes; then
13328 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"`
13329 else
13330 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013331 fi
13332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13333 ;;
13334
13335dgux*)
13336 version_type=linux
13337 need_lib_prefix=no
13338 need_version=no
13339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13340 soname_spec='${libname}${release}${shared_ext}$major'
13341 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013342 ;;
13343
13344freebsd1*)
13345 dynamic_linker=no
13346 ;;
13347
Reid Spencer2706f8c2004-09-19 23:53:36 +000013348kfreebsd*-gnu)
13349 version_type=linux
13350 need_lib_prefix=no
13351 need_version=no
13352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13353 soname_spec='${libname}${release}${shared_ext}$major'
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=no
13356 hardcode_into_libs=yes
13357 dynamic_linker='GNU ld.so'
13358 ;;
13359
John Criswell7a73b802003-06-30 21:59:07 +000013360freebsd*)
13361 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13362 version_type=freebsd-$objformat
13363 case $version_type in
13364 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013366 need_version=no
13367 need_lib_prefix=no
13368 ;;
13369 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013371 need_version=yes
13372 ;;
13373 esac
13374 shlibpath_var=LD_LIBRARY_PATH
13375 case $host_os in
13376 freebsd2*)
13377 shlibpath_overrides_runpath=yes
13378 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013379 freebsd3.01* | freebsdelf3.01*)
13380 shlibpath_overrides_runpath=yes
13381 hardcode_into_libs=yes
13382 ;;
13383 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013384 shlibpath_overrides_runpath=no
13385 hardcode_into_libs=yes
13386 ;;
13387 esac
13388 ;;
13389
13390gnu*)
13391 version_type=linux
13392 need_lib_prefix=no
13393 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13395 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013396 shlibpath_var=LD_LIBRARY_PATH
13397 hardcode_into_libs=yes
13398 ;;
13399
13400hpux9* | hpux10* | hpux11*)
13401 # Give a soname corresponding to the major version so that dld.sl refuses to
13402 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013403 version_type=sunos
13404 need_lib_prefix=no
13405 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013406 case "$host_cpu" in
13407 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013408 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013409 hardcode_into_libs=yes
13410 dynamic_linker="$host_os dld.so"
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 if test "X$HPUX_IA64_MODE" = X32; then
13416 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13417 else
13418 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13419 fi
13420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13421 ;;
13422 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013423 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013424 hardcode_into_libs=yes
13425 dynamic_linker="$host_os dld.sl"
13426 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429 soname_spec='${libname}${release}${shared_ext}$major'
13430 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13432 ;;
13433 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013434 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013435 dynamic_linker="$host_os dld.sl"
13436 shlibpath_var=SHLIB_PATH
13437 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 ;;
13441 esac
John Criswell7a73b802003-06-30 21:59:07 +000013442 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13443 postinstall_cmds='chmod 555 $lib'
13444 ;;
13445
John Criswell47fdd832003-07-14 16:52:07 +000013446irix5* | irix6* | nonstopux*)
13447 case $host_os in
13448 nonstopux*) version_type=nonstopux ;;
13449 *)
13450 if test "$lt_cv_prog_gnu_ld" = yes; then
13451 version_type=linux
13452 else
13453 version_type=irix
13454 fi ;;
13455 esac
John Criswell7a73b802003-06-30 21:59:07 +000013456 need_lib_prefix=no
13457 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013458 soname_spec='${libname}${release}${shared_ext}$major'
13459 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 +000013460 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013461 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013462 libsuff= shlibsuff=
13463 ;;
13464 *)
13465 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013466 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13467 libsuff= shlibsuff= libmagic=32-bit;;
13468 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13469 libsuff=32 shlibsuff=N32 libmagic=N32;;
13470 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13471 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013472 *) libsuff= shlibsuff= libmagic=never-match;;
13473 esac
13474 ;;
13475 esac
13476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13477 shlibpath_overrides_runpath=no
13478 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13479 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013480 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013481 ;;
13482
13483# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013484linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013485 dynamic_linker=no
13486 ;;
13487
13488# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013489linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013490 version_type=linux
13491 need_lib_prefix=no
13492 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=no
13498 # This implies no fast_install, which is unacceptable.
13499 # Some rework will be needed to allow for fast_install
13500 # before this can be enabled.
13501 hardcode_into_libs=yes
13502
Reid Spencer2706f8c2004-09-19 23:53:36 +000013503 # Append ld.so.conf contents to the search path
13504 if test -f /etc/ld.so.conf; then
13505 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13506 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13507 fi
13508
John Criswell7a73b802003-06-30 21:59:07 +000013509 # We used to test for /lib/ld.so.1 and disable shared libraries on
13510 # powerpc, because MkLinux only supported shared libraries with the
13511 # GNU dynamic linker. Since this was broken with cross compilers,
13512 # most powerpc-linux boxes support dynamic linking these days and
13513 # people can always --disable-shared, the test was removed, and we
13514 # assume the GNU/Linux dynamic linker is in use.
13515 dynamic_linker='GNU/Linux ld.so'
13516 ;;
13517
Reid Spencer2706f8c2004-09-19 23:53:36 +000013518knetbsd*-gnu)
13519 version_type=linux
13520 need_lib_prefix=no
13521 need_version=no
13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13523 soname_spec='${libname}${release}${shared_ext}$major'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 shlibpath_overrides_runpath=no
13526 hardcode_into_libs=yes
13527 dynamic_linker='GNU ld.so'
13528 ;;
13529
John Criswell7a73b802003-06-30 21:59:07 +000013530netbsd*)
13531 version_type=sunos
13532 need_lib_prefix=no
13533 need_version=no
13534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13537 dynamic_linker='NetBSD (a.out) ld.so'
13538 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013540 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013541 dynamic_linker='NetBSD ld.elf_so'
13542 fi
13543 shlibpath_var=LD_LIBRARY_PATH
13544 shlibpath_overrides_runpath=yes
13545 hardcode_into_libs=yes
13546 ;;
13547
13548newsos6)
13549 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 shlibpath_overrides_runpath=yes
13553 ;;
13554
Reid Spencer2706f8c2004-09-19 23:53:36 +000013555nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013556 version_type=linux
13557 need_lib_prefix=no
13558 need_version=no
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013561 shlibpath_var=LD_LIBRARY_PATH
13562 shlibpath_overrides_runpath=yes
13563 ;;
13564
13565openbsd*)
13566 version_type=sunos
13567 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013568 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13571 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013572 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 +000013573 case $host_os in
13574 openbsd2.[89] | openbsd2.[89].*)
13575 shlibpath_overrides_runpath=no
13576 ;;
13577 *)
13578 shlibpath_overrides_runpath=yes
13579 ;;
13580 esac
John Criswell7a73b802003-06-30 21:59:07 +000013581 else
13582 shlibpath_overrides_runpath=yes
13583 fi
John Criswell7a73b802003-06-30 21:59:07 +000013584 ;;
13585
13586os2*)
13587 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013588 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013589 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013590 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013591 dynamic_linker='OS/2 ld.exe'
13592 shlibpath_var=LIBPATH
13593 ;;
13594
13595osf3* | osf4* | osf5*)
13596 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013597 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013598 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013599 soname_spec='${libname}${release}${shared_ext}$major'
13600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013601 shlibpath_var=LD_LIBRARY_PATH
13602 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13603 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13604 ;;
13605
13606sco3.2v5*)
13607 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013608 soname_spec='${libname}${release}${shared_ext}$major'
13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013610 shlibpath_var=LD_LIBRARY_PATH
13611 ;;
13612
13613solaris*)
13614 version_type=linux
13615 need_lib_prefix=no
13616 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13618 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013619 shlibpath_var=LD_LIBRARY_PATH
13620 shlibpath_overrides_runpath=yes
13621 hardcode_into_libs=yes
13622 # ldd complains unless libraries are executable
13623 postinstall_cmds='chmod +x $lib'
13624 ;;
13625
13626sunos4*)
13627 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 shlibpath_overrides_runpath=yes
13632 if test "$with_gnu_ld" = yes; then
13633 need_lib_prefix=no
13634 fi
13635 need_version=yes
13636 ;;
13637
13638sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13639 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013642 shlibpath_var=LD_LIBRARY_PATH
13643 case $host_vendor in
13644 sni)
13645 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013646 need_lib_prefix=no
13647 export_dynamic_flag_spec='${wl}-Blargedynsym'
13648 runpath_var=LD_RUN_PATH
13649 ;;
13650 siemens)
13651 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013652 ;;
13653 motorola)
13654 need_lib_prefix=no
13655 need_version=no
13656 shlibpath_overrides_runpath=no
13657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13658 ;;
13659 esac
13660 ;;
13661
John Criswell7a73b802003-06-30 21:59:07 +000013662sysv4*MP*)
13663 if test -d /usr/nec ;then
13664 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13666 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013667 shlibpath_var=LD_LIBRARY_PATH
13668 fi
13669 ;;
13670
John Criswell47fdd832003-07-14 16:52:07 +000013671uts4*)
13672 version_type=linux
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674 soname_spec='${libname}${release}${shared_ext}$major'
13675 shlibpath_var=LD_LIBRARY_PATH
13676 ;;
13677
John Criswell7a73b802003-06-30 21:59:07 +000013678*)
13679 dynamic_linker=no
13680 ;;
13681esac
13682echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13683echo "${ECHO_T}$dynamic_linker" >&6
13684test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013685
Reid Spencer2706f8c2004-09-19 23:53:36 +000013686echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13687echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13688hardcode_action=
13689if test -n "$hardcode_libdir_flag_spec" || \
13690 test -n "$runpath_var" || \
13691 test "X$hardcode_automatic" = "Xyes" ; then
13692
13693 # We can hardcode non-existant directories.
13694 if test "$hardcode_direct" != no &&
13695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13696 # have to relink, otherwise we might link with an installed library
13697 # when we should be linking with a yet-to-be-installed one
13698 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13699 test "$hardcode_minus_L" != no; then
13700 # Linking always hardcodes the temporary library directory.
13701 hardcode_action=relink
13702 else
13703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13704 hardcode_action=immediate
13705 fi
13706else
13707 # We cannot hardcode anything, or else we can only hardcode existing
13708 # directories.
13709 hardcode_action=unsupported
13710fi
13711echo "$as_me:$LINENO: result: $hardcode_action" >&5
13712echo "${ECHO_T}$hardcode_action" >&6
13713
13714if test "$hardcode_action" = relink; then
13715 # Fast installation is not supported
13716 enable_fast_install=no
13717elif test "$shlibpath_overrides_runpath" = yes ||
13718 test "$enable_shared" = no; then
13719 # Fast installation is not necessary
13720 enable_fast_install=needless
13721fi
13722
13723striplib=
13724old_striplib=
13725echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13726echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13727if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13728 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13729 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13730 echo "$as_me:$LINENO: result: yes" >&5
13731echo "${ECHO_T}yes" >&6
13732else
13733# FIXME - insert some real tests, host_os isn't really good enough
13734 case $host_os in
13735 darwin*)
13736 if test -n "$STRIP" ; then
13737 striplib="$STRIP -x"
13738 echo "$as_me:$LINENO: result: yes" >&5
13739echo "${ECHO_T}yes" >&6
13740 else
13741 echo "$as_me:$LINENO: result: no" >&5
13742echo "${ECHO_T}no" >&6
13743fi
13744 ;;
13745 *)
13746 echo "$as_me:$LINENO: result: no" >&5
13747echo "${ECHO_T}no" >&6
13748 ;;
13749 esac
13750fi
13751
John Criswell7a73b802003-06-30 21:59:07 +000013752if test "x$enable_dlopen" != xyes; then
13753 enable_dlopen=unknown
13754 enable_dlopen_self=unknown
13755 enable_dlopen_self_static=unknown
13756else
13757 lt_cv_dlopen=no
13758 lt_cv_dlopen_libs=
13759
13760 case $host_os in
13761 beos*)
13762 lt_cv_dlopen="load_add_on"
13763 lt_cv_dlopen_libs=
13764 lt_cv_dlopen_self=yes
13765 ;;
13766
John Criswell47fdd832003-07-14 16:52:07 +000013767 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013768 lt_cv_dlopen="LoadLibrary"
13769 lt_cv_dlopen_libs=
13770 ;;
13771
John Criswell47fdd832003-07-14 16:52:07 +000013772 cygwin*)
13773 lt_cv_dlopen="dlopen"
13774 lt_cv_dlopen_libs=
13775 ;;
13776
13777 darwin*)
13778 # if libdl is installed we need to link against it
13779 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13780echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13781if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783else
13784 ac_check_lib_save_LIBS=$LIBS
13785LIBS="-ldl $LIBS"
13786cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013787/* confdefs.h. */
13788_ACEOF
13789cat confdefs.h >>conftest.$ac_ext
13790cat >>conftest.$ac_ext <<_ACEOF
13791/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013792
13793/* Override any gcc2 internal prototype to avoid an error. */
13794#ifdef __cplusplus
13795extern "C"
13796#endif
13797/* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13799char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013800int
13801main ()
13802{
13803dlopen ();
13804 ;
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 Criswell47fdd832003-07-14 16:52: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 Criswell47fdd832003-07-14 16:52: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 Criswell47fdd832003-07-14 16:52: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_lib_dl_dlopen=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 Criswell47fdd832003-07-14 16:52:07 +000013835ac_cv_lib_dl_dlopen=no
13836fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013837rm -f conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013839LIBS=$ac_check_lib_save_LIBS
13840fi
13841echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13842echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13843if test $ac_cv_lib_dl_dlopen = yes; then
13844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13845else
13846
13847 lt_cv_dlopen="dyld"
13848 lt_cv_dlopen_libs=
13849 lt_cv_dlopen_self=yes
13850
13851fi
13852
13853 ;;
13854
John Criswell7a73b802003-06-30 21:59:07 +000013855 *)
13856 echo "$as_me:$LINENO: checking for shl_load" >&5
13857echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13858if test "${ac_cv_func_shl_load+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860else
13861 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013867/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13869#define shl_load innocuous_shl_load
13870
John Criswell7a73b802003-06-30 21:59:07 +000013871/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013872 which can conflict with char shl_load (); below.
13873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013875
John Criswell0c38eaf2003-09-10 15:17:25 +000013876#ifdef __STDC__
13877# include <limits.h>
13878#else
13879# include <assert.h>
13880#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013881
13882#undef shl_load
13883
John Criswell7a73b802003-06-30 21:59:07 +000013884/* Override any gcc2 internal prototype to avoid an error. */
13885#ifdef __cplusplus
13886extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013887{
John Criswell7a73b802003-06-30 21:59:07 +000013888#endif
13889/* We use char because int might match the return type of a gcc2
13890 builtin and then its argument prototype would still apply. */
13891char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013892/* The GNU C library defines this for functions which it implements
13893 to always fail with ENOSYS. Some functions are actually named
13894 something starting with __ and the normal name is an alias. */
13895#if defined (__stub_shl_load) || defined (__stub___shl_load)
13896choke me
13897#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013898char (*f) () = shl_load;
13899#endif
13900#ifdef __cplusplus
13901}
John Criswell7a73b802003-06-30 21:59:07 +000013902#endif
13903
John Criswell0c38eaf2003-09-10 15:17:25 +000013904int
13905main ()
13906{
13907return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013908 ;
13909 return 0;
13910}
13911_ACEOF
13912rm -f conftest.$ac_objext conftest$ac_exeext
13913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013914 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013915 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013916 grep -v '^ *+' conftest.er1 >conftest.err
13917 rm -f conftest.er1
13918 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013921 { ac_try='test -z "$ac_c_werror_flag"
13922 || test ! -s conftest.err'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; } &&
13928 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_func_shl_load=yes
13935else
13936 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013937sed 's/^/| /' conftest.$ac_ext >&5
13938
John Criswell7a73b802003-06-30 21:59:07 +000013939ac_cv_func_shl_load=no
13940fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013941rm -f conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013943fi
13944echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13945echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13946if test $ac_cv_func_shl_load = yes; then
13947 lt_cv_dlopen="shl_load"
13948else
13949 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13950echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13951if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954 ac_check_lib_save_LIBS=$LIBS
13955LIBS="-ldld $LIBS"
13956cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013957/* confdefs.h. */
13958_ACEOF
13959cat confdefs.h >>conftest.$ac_ext
13960cat >>conftest.$ac_ext <<_ACEOF
13961/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013962
13963/* Override any gcc2 internal prototype to avoid an error. */
13964#ifdef __cplusplus
13965extern "C"
13966#endif
13967/* We use char because int might match the return type of a gcc2
13968 builtin and then its argument prototype would still apply. */
13969char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013970int
13971main ()
13972{
13973shl_load ();
13974 ;
13975 return 0;
13976}
13977_ACEOF
13978rm -f conftest.$ac_objext conftest$ac_exeext
13979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013980 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013987 { ac_try='test -z "$ac_c_werror_flag"
13988 || test ! -s conftest.err'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; } &&
13994 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_lib_dld_shl_load=yes
14001else
14002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014003sed 's/^/| /' conftest.$ac_ext >&5
14004
John Criswell7a73b802003-06-30 21:59:07 +000014005ac_cv_lib_dld_shl_load=no
14006fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014007rm -f conftest.err conftest.$ac_objext \
14008 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014009LIBS=$ac_check_lib_save_LIBS
14010fi
14011echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14012echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14013if test $ac_cv_lib_dld_shl_load = yes; then
14014 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14015else
14016 echo "$as_me:$LINENO: checking for dlopen" >&5
14017echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14018if test "${ac_cv_func_dlopen+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020else
14021 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014022/* confdefs.h. */
14023_ACEOF
14024cat confdefs.h >>conftest.$ac_ext
14025cat >>conftest.$ac_ext <<_ACEOF
14026/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014027/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14029#define dlopen innocuous_dlopen
14030
John Criswell7a73b802003-06-30 21:59:07 +000014031/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014032 which can conflict with char dlopen (); below.
14033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14034 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014035
John Criswell0c38eaf2003-09-10 15:17:25 +000014036#ifdef __STDC__
14037# include <limits.h>
14038#else
14039# include <assert.h>
14040#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014041
14042#undef dlopen
14043
John Criswell7a73b802003-06-30 21:59:07 +000014044/* Override any gcc2 internal prototype to avoid an error. */
14045#ifdef __cplusplus
14046extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014047{
John Criswell7a73b802003-06-30 21:59:07 +000014048#endif
14049/* We use char because int might match the return type of a gcc2
14050 builtin and then its argument prototype would still apply. */
14051char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014052/* The GNU C library defines this for functions which it implements
14053 to always fail with ENOSYS. Some functions are actually named
14054 something starting with __ and the normal name is an alias. */
14055#if defined (__stub_dlopen) || defined (__stub___dlopen)
14056choke me
14057#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014058char (*f) () = dlopen;
14059#endif
14060#ifdef __cplusplus
14061}
John Criswell7a73b802003-06-30 21:59:07 +000014062#endif
14063
John Criswell0c38eaf2003-09-10 15:17:25 +000014064int
14065main ()
14066{
14067return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014068 ;
14069 return 0;
14070}
14071_ACEOF
14072rm -f conftest.$ac_objext conftest$ac_exeext
14073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014074 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014075 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014081 { ac_try='test -z "$ac_c_werror_flag"
14082 || test ! -s conftest.err'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 ac_cv_func_dlopen=yes
14095else
14096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014097sed 's/^/| /' conftest.$ac_ext >&5
14098
John Criswell7a73b802003-06-30 21:59:07 +000014099ac_cv_func_dlopen=no
14100fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014101rm -f conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014103fi
14104echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14105echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14106if test $ac_cv_func_dlopen = yes; then
14107 lt_cv_dlopen="dlopen"
14108else
14109 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14110echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14111if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113else
14114 ac_check_lib_save_LIBS=$LIBS
14115LIBS="-ldl $LIBS"
14116cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
14121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014122
14123/* Override any gcc2 internal prototype to avoid an error. */
14124#ifdef __cplusplus
14125extern "C"
14126#endif
14127/* We use char because int might match the return type of a gcc2
14128 builtin and then its argument prototype would still apply. */
14129char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014130int
14131main ()
14132{
14133dlopen ();
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext conftest$ac_exeext
14139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014140 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014141 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014147 { ac_try='test -z "$ac_c_werror_flag"
14148 || test ! -s conftest.err'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; } &&
14154 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14160 ac_cv_lib_dl_dlopen=yes
14161else
14162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014163sed 's/^/| /' conftest.$ac_ext >&5
14164
John Criswell7a73b802003-06-30 21:59:07 +000014165ac_cv_lib_dl_dlopen=no
14166fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014167rm -f conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014169LIBS=$ac_check_lib_save_LIBS
14170fi
14171echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14172echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14173if test $ac_cv_lib_dl_dlopen = yes; then
14174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14175else
14176 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14177echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14178if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180else
14181 ac_check_lib_save_LIBS=$LIBS
14182LIBS="-lsvld $LIBS"
14183cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014184/* confdefs.h. */
14185_ACEOF
14186cat confdefs.h >>conftest.$ac_ext
14187cat >>conftest.$ac_ext <<_ACEOF
14188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014189
14190/* Override any gcc2 internal prototype to avoid an error. */
14191#ifdef __cplusplus
14192extern "C"
14193#endif
14194/* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14196char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014197int
14198main ()
14199{
14200dlopen ();
14201 ;
14202 return 0;
14203}
14204_ACEOF
14205rm -f conftest.$ac_objext conftest$ac_exeext
14206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014207 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014208 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_lib_svld_dlopen=yes
14228else
14229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014230sed 's/^/| /' conftest.$ac_ext >&5
14231
John Criswell7a73b802003-06-30 21:59:07 +000014232ac_cv_lib_svld_dlopen=no
14233fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014234rm -f conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014236LIBS=$ac_check_lib_save_LIBS
14237fi
14238echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14239echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14240if test $ac_cv_lib_svld_dlopen = yes; then
14241 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14242else
14243 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14244echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14245if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248 ac_check_lib_save_LIBS=$LIBS
14249LIBS="-ldld $LIBS"
14250cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014256
14257/* Override any gcc2 internal prototype to avoid an error. */
14258#ifdef __cplusplus
14259extern "C"
14260#endif
14261/* We use char because int might match the return type of a gcc2
14262 builtin and then its argument prototype would still apply. */
14263char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014264int
14265main ()
14266{
14267dld_link ();
14268 ;
14269 return 0;
14270}
14271_ACEOF
14272rm -f conftest.$ac_objext conftest$ac_exeext
14273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014274 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014275 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014281 { ac_try='test -z "$ac_c_werror_flag"
14282 || test ! -s conftest.err'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_cv_lib_dld_dld_link=yes
14295else
14296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014297sed 's/^/| /' conftest.$ac_ext >&5
14298
John Criswell7a73b802003-06-30 21:59:07 +000014299ac_cv_lib_dld_dld_link=no
14300fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014301rm -f conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014303LIBS=$ac_check_lib_save_LIBS
14304fi
14305echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14306echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14307if test $ac_cv_lib_dld_dld_link = yes; then
14308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14309fi
14310
14311
14312fi
14313
14314
14315fi
14316
14317
14318fi
14319
14320
14321fi
14322
14323
14324fi
14325
14326 ;;
14327 esac
14328
14329 if test "x$lt_cv_dlopen" != xno; then
14330 enable_dlopen=yes
14331 else
14332 enable_dlopen=no
14333 fi
14334
14335 case $lt_cv_dlopen in
14336 dlopen)
14337 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014339
14340 save_LDFLAGS="$LDFLAGS"
14341 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14342
14343 save_LIBS="$LIBS"
14344 LIBS="$lt_cv_dlopen_libs $LIBS"
14345
14346 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14347echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14348if test "${lt_cv_dlopen_self+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350else
14351 if test "$cross_compiling" = yes; then :
14352 lt_cv_dlopen_self=cross
14353else
John Criswell47fdd832003-07-14 16:52:07 +000014354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014355 lt_status=$lt_dlunknown
14356 cat > conftest.$ac_ext <<EOF
Reid Spencerbe130282005-07-14 05:19:12 +000014357#line 14357 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014358#include "confdefs.h"
14359
14360#if HAVE_DLFCN_H
14361#include <dlfcn.h>
14362#endif
14363
14364#include <stdio.h>
14365
14366#ifdef RTLD_GLOBAL
14367# define LT_DLGLOBAL RTLD_GLOBAL
14368#else
14369# ifdef DL_GLOBAL
14370# define LT_DLGLOBAL DL_GLOBAL
14371# else
14372# define LT_DLGLOBAL 0
14373# endif
14374#endif
14375
14376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14377 find out it does not work in some platform. */
14378#ifndef LT_DLLAZY_OR_NOW
14379# ifdef RTLD_LAZY
14380# define LT_DLLAZY_OR_NOW RTLD_LAZY
14381# else
14382# ifdef DL_LAZY
14383# define LT_DLLAZY_OR_NOW DL_LAZY
14384# else
14385# ifdef RTLD_NOW
14386# define LT_DLLAZY_OR_NOW RTLD_NOW
14387# else
14388# ifdef DL_NOW
14389# define LT_DLLAZY_OR_NOW DL_NOW
14390# else
14391# define LT_DLLAZY_OR_NOW 0
14392# endif
14393# endif
14394# endif
14395# endif
14396#endif
14397
14398#ifdef __cplusplus
14399extern "C" void exit (int);
14400#endif
14401
14402void fnord() { int i=42;}
14403int main ()
14404{
14405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14406 int status = $lt_dlunknown;
14407
14408 if (self)
14409 {
14410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14412 /* dlclose (self); */
14413 }
14414
14415 exit (status);
14416}
14417EOF
14418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419 (eval $ac_link) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14423 (./conftest; exit; ) 2>/dev/null
14424 lt_status=$?
14425 case x$lt_status in
14426 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14427 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14428 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14429 esac
14430 else :
14431 # compilation failed
14432 lt_cv_dlopen_self=no
14433 fi
14434fi
14435rm -fr conftest*
14436
14437
14438fi
14439echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14440echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14441
14442 if test "x$lt_cv_dlopen_self" = xyes; then
14443 LDFLAGS="$LDFLAGS $link_static_flag"
14444 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14445echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14446if test "${lt_cv_dlopen_self_static+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448else
14449 if test "$cross_compiling" = yes; then :
14450 lt_cv_dlopen_self_static=cross
14451else
John Criswell47fdd832003-07-14 16:52:07 +000014452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014453 lt_status=$lt_dlunknown
14454 cat > conftest.$ac_ext <<EOF
Reid Spencerbe130282005-07-14 05:19:12 +000014455#line 14455 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014456#include "confdefs.h"
14457
14458#if HAVE_DLFCN_H
14459#include <dlfcn.h>
14460#endif
14461
14462#include <stdio.h>
14463
14464#ifdef RTLD_GLOBAL
14465# define LT_DLGLOBAL RTLD_GLOBAL
14466#else
14467# ifdef DL_GLOBAL
14468# define LT_DLGLOBAL DL_GLOBAL
14469# else
14470# define LT_DLGLOBAL 0
14471# endif
14472#endif
14473
14474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14475 find out it does not work in some platform. */
14476#ifndef LT_DLLAZY_OR_NOW
14477# ifdef RTLD_LAZY
14478# define LT_DLLAZY_OR_NOW RTLD_LAZY
14479# else
14480# ifdef DL_LAZY
14481# define LT_DLLAZY_OR_NOW DL_LAZY
14482# else
14483# ifdef RTLD_NOW
14484# define LT_DLLAZY_OR_NOW RTLD_NOW
14485# else
14486# ifdef DL_NOW
14487# define LT_DLLAZY_OR_NOW DL_NOW
14488# else
14489# define LT_DLLAZY_OR_NOW 0
14490# endif
14491# endif
14492# endif
14493# endif
14494#endif
14495
14496#ifdef __cplusplus
14497extern "C" void exit (int);
14498#endif
14499
14500void fnord() { int i=42;}
14501int main ()
14502{
14503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14504 int status = $lt_dlunknown;
14505
14506 if (self)
14507 {
14508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14509 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14510 /* dlclose (self); */
14511 }
14512
14513 exit (status);
14514}
14515EOF
14516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517 (eval $ac_link) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14521 (./conftest; exit; ) 2>/dev/null
14522 lt_status=$?
14523 case x$lt_status in
14524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14526 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14527 esac
14528 else :
14529 # compilation failed
14530 lt_cv_dlopen_self_static=no
14531 fi
14532fi
14533rm -fr conftest*
14534
14535
14536fi
14537echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14538echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14539 fi
14540
14541 CPPFLAGS="$save_CPPFLAGS"
14542 LDFLAGS="$save_LDFLAGS"
14543 LIBS="$save_LIBS"
14544 ;;
14545 esac
14546
14547 case $lt_cv_dlopen_self in
14548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14549 *) enable_dlopen_self=unknown ;;
14550 esac
14551
14552 case $lt_cv_dlopen_self_static in
14553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14554 *) enable_dlopen_self_static=unknown ;;
14555 esac
14556fi
14557
14558
John Criswell47fdd832003-07-14 16:52:07 +000014559# Report which librarie types wil actually be built
14560echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14561echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14562echo "$as_me:$LINENO: result: $can_build_shared" >&5
14563echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014564
John Criswell47fdd832003-07-14 16:52:07 +000014565echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14566echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14567test "$can_build_shared" = "no" && enable_shared=no
14568
14569# On AIX, shared libraries and static libraries use the same namespace, and
14570# are all built from PIC.
14571case "$host_os" in
14572aix3*)
14573 test "$enable_shared" = yes && enable_static=no
14574 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014575 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014576 postinstall_cmds='$RANLIB $lib'
14577 fi
14578 ;;
14579
Reid Spencer2706f8c2004-09-19 23:53:36 +000014580aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014581 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14582 test "$enable_shared" = yes && enable_static=no
14583 fi
John Criswell7a73b802003-06-30 21:59:07 +000014584 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014585esac
14586echo "$as_me:$LINENO: result: $enable_shared" >&5
14587echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014588
John Criswell47fdd832003-07-14 16:52:07 +000014589echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14590echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14591# Make sure either enable_shared or enable_static is yes.
14592test "$enable_shared" = yes || enable_static=yes
14593echo "$as_me:$LINENO: result: $enable_static" >&5
14594echo "${ECHO_T}$enable_static" >&6
14595
14596# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014597# libtool distribution, otherwise you forgot to ship ltmain.sh
14598# with your package, and you will get complaints that there are
14599# no rules to generate ltmain.sh.
14600if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014601 # See if we are running on zsh, and set the options which allow our commands through
14602 # without removal of \ escapes.
14603 if test -n "${ZSH_VERSION+set}" ; then
14604 setopt NO_GLOB_SUBST
14605 fi
John Criswell7a73b802003-06-30 21:59:07 +000014606 # Now quote all the things that may contain metacharacters while being
14607 # careful not to overquote the AC_SUBSTed values. We take copies of the
14608 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014609 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14610 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014611 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14612 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14613 deplibs_check_method reload_flag reload_cmds need_locks \
14614 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14615 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014616 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014617 old_postinstall_cmds old_postuninstall_cmds \
14618 compiler \
14619 CC \
14620 LD \
14621 lt_prog_compiler_wl \
14622 lt_prog_compiler_pic \
14623 lt_prog_compiler_static \
14624 lt_prog_compiler_no_builtin_flag \
14625 export_dynamic_flag_spec \
14626 thread_safe_flag_spec \
14627 whole_archive_flag_spec \
14628 enable_shared_with_static_runtimes \
14629 old_archive_cmds \
14630 old_archive_from_new_cmds \
14631 predep_objects \
14632 postdep_objects \
14633 predeps \
14634 postdeps \
14635 compiler_lib_search_path \
14636 archive_cmds \
14637 archive_expsym_cmds \
14638 postinstall_cmds \
14639 postuninstall_cmds \
14640 old_archive_from_expsyms_cmds \
14641 allow_undefined_flag \
14642 no_undefined_flag \
14643 export_symbols_cmds \
14644 hardcode_libdir_flag_spec \
14645 hardcode_libdir_flag_spec_ld \
14646 hardcode_libdir_separator \
14647 hardcode_automatic \
14648 module_cmds \
14649 module_expsym_cmds \
14650 lt_cv_prog_compiler_c_o \
14651 exclude_expsyms \
14652 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014653
14654 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014655 old_archive_cmds | \
14656 old_archive_from_new_cmds | \
14657 archive_cmds | \
14658 archive_expsym_cmds | \
14659 module_cmds | \
14660 module_expsym_cmds | \
14661 old_archive_from_expsyms_cmds | \
14662 export_symbols_cmds | \
14663 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014664 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014665 old_postinstall_cmds | old_postuninstall_cmds | \
14666 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014667 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014668 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 +000014669 ;;
14670 *)
14671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14672 ;;
14673 esac
14674 done
14675
John Criswell47fdd832003-07-14 16:52:07 +000014676 case $lt_echo in
14677 *'\$0 --fallback-echo"')
14678 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14679 ;;
14680 esac
14681
14682cfgfile="${ofile}T"
14683 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14684 $rm -f "$cfgfile"
14685 { echo "$as_me:$LINENO: creating $ofile" >&5
14686echo "$as_me: creating $ofile" >&6;}
14687
14688 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014689#! $SHELL
14690
John Criswell47fdd832003-07-14 16:52:07 +000014691# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014692# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14693# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14694#
John Criswell47fdd832003-07-14 16:52:07 +000014695# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14696# Free Software Foundation, Inc.
14697#
14698# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014699# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14700#
14701# This program is free software; you can redistribute it and/or modify
14702# it under the terms of the GNU General Public License as published by
14703# the Free Software Foundation; either version 2 of the License, or
14704# (at your option) any later version.
14705#
14706# This program is distributed in the hope that it will be useful, but
14707# WITHOUT ANY WARRANTY; without even the implied warranty of
14708# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14709# General Public License for more details.
14710#
14711# You should have received a copy of the GNU General Public License
14712# along with this program; if not, write to the Free Software
14713# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14714#
14715# As a special exception to the GNU General Public License, if you
14716# distribute this file as part of a program that contains a
14717# configuration script generated by Autoconf, you may include it under
14718# the same distribution terms that you use for the rest of that program.
14719
John Criswell47fdd832003-07-14 16:52:07 +000014720# A sed program that does not truncate output.
14721SED=$lt_SED
14722
John Criswell7a73b802003-06-30 21:59:07 +000014723# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014724Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014725
14726# The HP-UX ksh and POSIX shell print the target directory to stdout
14727# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014728(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014729
John Criswell47fdd832003-07-14 16:52:07 +000014730# The names of the tagged configurations supported by this script.
14731available_tags=
14732
John Criswell7a73b802003-06-30 21:59:07 +000014733# ### BEGIN LIBTOOL CONFIG
14734
14735# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14736
14737# Shell to use when invoking shell scripts.
14738SHELL=$lt_SHELL
14739
14740# Whether or not to build shared libraries.
14741build_libtool_libs=$enable_shared
14742
14743# Whether or not to build static libraries.
14744build_old_libs=$enable_static
14745
14746# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014747build_libtool_need_lc=$archive_cmds_need_lc
14748
14749# Whether or not to disallow shared libs when runtime libs are static
14750allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014751
14752# Whether or not to optimize for fast installation.
14753fast_install=$enable_fast_install
14754
14755# The host system.
14756host_alias=$host_alias
14757host=$host
14758
14759# An echo program that does not interpret backslashes.
14760echo=$lt_echo
14761
14762# The archiver.
14763AR=$lt_AR
14764AR_FLAGS=$lt_AR_FLAGS
14765
John Criswell47fdd832003-07-14 16:52:07 +000014766# A C compiler.
14767LTCC=$lt_LTCC
14768
14769# A language-specific compiler.
14770CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014771
14772# Is the compiler the GNU C compiler?
14773with_gcc=$GCC
14774
John Criswell47fdd832003-07-14 16:52:07 +000014775# An ERE matcher.
14776EGREP=$lt_EGREP
14777
John Criswell7a73b802003-06-30 21:59:07 +000014778# The linker used to build libraries.
14779LD=$lt_LD
14780
14781# Whether we need hard or soft links.
14782LN_S=$lt_LN_S
14783
14784# A BSD-compatible nm program.
14785NM=$lt_NM
14786
14787# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014788STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014789
14790# Used to examine libraries when file_magic_cmd begins "file"
14791MAGIC_CMD=$MAGIC_CMD
14792
14793# Used on cygwin: DLL creation program.
14794DLLTOOL="$DLLTOOL"
14795
14796# Used on cygwin: object dumper.
14797OBJDUMP="$OBJDUMP"
14798
14799# Used on cygwin: assembler.
14800AS="$AS"
14801
14802# The name of the directory that contains temporary libtool files.
14803objdir=$objdir
14804
14805# How to create reloadable object files.
14806reload_flag=$lt_reload_flag
14807reload_cmds=$lt_reload_cmds
14808
14809# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014810wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014811
14812# Object file suffix (normally "o").
14813objext="$ac_objext"
14814
14815# Old archive suffix (normally "a").
14816libext="$libext"
14817
John Criswell47fdd832003-07-14 16:52:07 +000014818# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014819shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014820
John Criswell7a73b802003-06-30 21:59:07 +000014821# Executable file suffix (normally "").
14822exeext="$exeext"
14823
14824# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014825pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014826pic_mode=$pic_mode
14827
John Criswell47fdd832003-07-14 16:52:07 +000014828# What is the maximum length of a command?
14829max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014830
John Criswell47fdd832003-07-14 16:52:07 +000014831# Does compiler simultaneously support -c and -o options?
14832compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014833
14834# Must we lock files when doing compilation ?
14835need_locks=$lt_need_locks
14836
14837# Do we need the lib prefix for modules?
14838need_lib_prefix=$need_lib_prefix
14839
14840# Do we need a version for libraries?
14841need_version=$need_version
14842
14843# Whether dlopen is supported.
14844dlopen_support=$enable_dlopen
14845
14846# Whether dlopen of programs is supported.
14847dlopen_self=$enable_dlopen_self
14848
14849# Whether dlopen of statically linked programs is supported.
14850dlopen_self_static=$enable_dlopen_self_static
14851
14852# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014853link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014854
14855# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014856no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014857
14858# Compiler flag to allow reflexive dlopens.
14859export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14860
14861# Compiler flag to generate shared objects directly from archives.
14862whole_archive_flag_spec=$lt_whole_archive_flag_spec
14863
14864# Compiler flag to generate thread-safe objects.
14865thread_safe_flag_spec=$lt_thread_safe_flag_spec
14866
14867# Library versioning type.
14868version_type=$version_type
14869
14870# Format of library name prefix.
14871libname_spec=$lt_libname_spec
14872
14873# List of archive names. First name is the real one, the rest are links.
14874# The last name is the one that the linker finds with -lNAME.
14875library_names_spec=$lt_library_names_spec
14876
14877# The coded name of the library, if different from the real name.
14878soname_spec=$lt_soname_spec
14879
14880# Commands used to build and install an old-style archive.
14881RANLIB=$lt_RANLIB
14882old_archive_cmds=$lt_old_archive_cmds
14883old_postinstall_cmds=$lt_old_postinstall_cmds
14884old_postuninstall_cmds=$lt_old_postuninstall_cmds
14885
14886# Create an old-style archive from a shared archive.
14887old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14888
14889# Create a temporary old-style archive to link instead of a shared archive.
14890old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14891
14892# Commands used to build and install a shared archive.
14893archive_cmds=$lt_archive_cmds
14894archive_expsym_cmds=$lt_archive_expsym_cmds
14895postinstall_cmds=$lt_postinstall_cmds
14896postuninstall_cmds=$lt_postuninstall_cmds
14897
John Criswell47fdd832003-07-14 16:52:07 +000014898# Commands used to build a loadable module (assumed same as above if empty)
14899module_cmds=$lt_module_cmds
14900module_expsym_cmds=$lt_module_expsym_cmds
14901
John Criswell7a73b802003-06-30 21:59:07 +000014902# Commands to strip libraries.
14903old_striplib=$lt_old_striplib
14904striplib=$lt_striplib
14905
John Criswell47fdd832003-07-14 16:52:07 +000014906# Dependencies to place before the objects being linked to create a
14907# shared library.
14908predep_objects=$lt_predep_objects
14909
14910# Dependencies to place after the objects being linked to create a
14911# shared library.
14912postdep_objects=$lt_postdep_objects
14913
14914# Dependencies to place before the objects being linked to create a
14915# shared library.
14916predeps=$lt_predeps
14917
14918# Dependencies to place after the objects being linked to create a
14919# shared library.
14920postdeps=$lt_postdeps
14921
14922# The library search path used internally by the compiler when linking
14923# a shared library.
14924compiler_lib_search_path=$lt_compiler_lib_search_path
14925
John Criswell7a73b802003-06-30 21:59:07 +000014926# Method to check whether dependent libraries are shared objects.
14927deplibs_check_method=$lt_deplibs_check_method
14928
14929# Command to use when deplibs_check_method == file_magic.
14930file_magic_cmd=$lt_file_magic_cmd
14931
14932# Flag that allows shared libraries with undefined symbols to be built.
14933allow_undefined_flag=$lt_allow_undefined_flag
14934
14935# Flag that forces no undefined symbols.
14936no_undefined_flag=$lt_no_undefined_flag
14937
14938# Commands used to finish a libtool library installation in a directory.
14939finish_cmds=$lt_finish_cmds
14940
14941# Same as above, but a single script fragment to be evaled but not shown.
14942finish_eval=$lt_finish_eval
14943
14944# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014945global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014946
14947# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014948global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014949
14950# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014951global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014952
14953# This is the shared library runtime path variable.
14954runpath_var=$runpath_var
14955
14956# This is the shared library path variable.
14957shlibpath_var=$shlibpath_var
14958
14959# Is shlibpath searched before the hard-coded library search path?
14960shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14961
14962# How to hardcode a shared library path into an executable.
14963hardcode_action=$hardcode_action
14964
14965# Whether we should hardcode library paths into libraries.
14966hardcode_into_libs=$hardcode_into_libs
14967
14968# Flag to hardcode \$libdir into a binary during linking.
14969# This must work even if \$libdir does not exist.
14970hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14971
John Criswell47fdd832003-07-14 16:52:07 +000014972# If ld is used when linking, flag to hardcode \$libdir into
14973# a binary during linking. This must work even if \$libdir does
14974# not exist.
14975hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14976
John Criswell7a73b802003-06-30 21:59:07 +000014977# Whether we need a single -rpath flag with a separated argument.
14978hardcode_libdir_separator=$lt_hardcode_libdir_separator
14979
John Criswell47fdd832003-07-14 16:52:07 +000014980# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014981# resulting binary.
14982hardcode_direct=$hardcode_direct
14983
14984# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14985# resulting binary.
14986hardcode_minus_L=$hardcode_minus_L
14987
14988# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14989# the resulting binary.
14990hardcode_shlibpath_var=$hardcode_shlibpath_var
14991
John Criswell47fdd832003-07-14 16:52:07 +000014992# Set to yes if building a shared library automatically hardcodes DIR into the library
14993# and all subsequent libraries and executables linked against it.
14994hardcode_automatic=$hardcode_automatic
14995
John Criswell7a73b802003-06-30 21:59:07 +000014996# Variables whose values should be saved in libtool wrapper scripts and
14997# restored at relink time.
14998variables_saved_for_relink="$variables_saved_for_relink"
14999
15000# Whether libtool must link a program against all its dependency libraries.
15001link_all_deplibs=$link_all_deplibs
15002
15003# Compile-time system search path for libraries
15004sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15005
15006# Run-time system search path for libraries
15007sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15008
15009# Fix the shell variable \$srcfile for the compiler.
15010fix_srcfile_path="$fix_srcfile_path"
15011
15012# Set to yes if exported symbols are required.
15013always_export_symbols=$always_export_symbols
15014
15015# The commands to list exported symbols.
15016export_symbols_cmds=$lt_export_symbols_cmds
15017
15018# The commands to extract the exported symbol list from a shared archive.
15019extract_expsyms_cmds=$lt_extract_expsyms_cmds
15020
15021# Symbols that should not be listed in the preloaded symbols.
15022exclude_expsyms=$lt_exclude_expsyms
15023
15024# Symbols that must always be exported.
15025include_expsyms=$lt_include_expsyms
15026
15027# ### END LIBTOOL CONFIG
15028
15029__EOF__
15030
John Criswell47fdd832003-07-14 16:52:07 +000015031
John Criswell7a73b802003-06-30 21:59:07 +000015032 case $host_os in
15033 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015034 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015035
15036# AIX sometimes has problems with the GCC collect2 program. For some
15037# reason, if we set the COLLECT_NAMES environment variable, the problems
15038# vanish in a puff of smoke.
15039if test "X${COLLECT_NAMES+set}" != Xset; then
15040 COLLECT_NAMES=
15041 export COLLECT_NAMES
15042fi
15043EOF
15044 ;;
15045 esac
15046
John Criswell7a73b802003-06-30 21:59:07 +000015047 # We use sed instead of cat because bash on DJGPP gets confused if
15048 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15049 # text mode, it properly converts lines to CR/LF. This bash problem
15050 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015051 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015052
John Criswell47fdd832003-07-14 16:52:07 +000015053 mv -f "$cfgfile" "$ofile" || \
15054 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015055 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015056
15057else
15058 # If there is no Makefile yet, we rely on a make rule to execute
15059 # `config.status --recheck' to rerun these tests and create the
15060 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015061 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15062 if test -f "$ltmain_in"; then
15063 test -f Makefile && make "$ltmain"
15064 fi
John Criswell7a73b802003-06-30 21:59:07 +000015065fi
John Criswell7a73b802003-06-30 21:59:07 +000015066
15067
John Criswell47fdd832003-07-14 16:52:07 +000015068ac_ext=c
15069ac_cpp='$CPP $CPPFLAGS'
15070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15072ac_compiler_gnu=$ac_cv_c_compiler_gnu
15073
15074CC="$lt_save_CC"
15075
15076
15077# Check whether --with-tags or --without-tags was given.
15078if test "${with_tags+set}" = set; then
15079 withval="$with_tags"
15080 tagnames="$withval"
15081fi;
15082
15083if test -f "$ltmain" && test -n "$tagnames"; then
15084 if test ! -f "${ofile}"; then
15085 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15086echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15087 fi
15088
15089 if test -z "$LTCC"; then
15090 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15091 if test -z "$LTCC"; then
15092 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15093echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15094 else
15095 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15096echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15097 fi
15098 fi
15099
15100 # Extract list of available tagged configurations in $ofile.
15101 # Note that this assumes the entire list is on one line.
15102 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15103
15104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15105 for tagname in $tagnames; do
15106 IFS="$lt_save_ifs"
15107 # Check whether tagname contains only valid characters
15108 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15109 "") ;;
15110 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15111echo "$as_me: error: invalid tag name: $tagname" >&2;}
15112 { (exit 1); exit 1; }; }
15113 ;;
15114 esac
15115
15116 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15117 then
15118 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15119echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15120 { (exit 1); exit 1; }; }
15121 fi
15122
15123 # Update the list of available tags.
15124 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015125 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015126
15127 case $tagname in
15128 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015129 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15130 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15131 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015132 ac_ext=cc
15133ac_cpp='$CXXCPP $CPPFLAGS'
15134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15137
15138
15139
15140
15141archive_cmds_need_lc_CXX=no
15142allow_undefined_flag_CXX=
15143always_export_symbols_CXX=no
15144archive_expsym_cmds_CXX=
15145export_dynamic_flag_spec_CXX=
15146hardcode_direct_CXX=no
15147hardcode_libdir_flag_spec_CXX=
15148hardcode_libdir_flag_spec_ld_CXX=
15149hardcode_libdir_separator_CXX=
15150hardcode_minus_L_CXX=no
15151hardcode_automatic_CXX=no
15152module_cmds_CXX=
15153module_expsym_cmds_CXX=
15154link_all_deplibs_CXX=unknown
15155old_archive_cmds_CXX=$old_archive_cmds
15156no_undefined_flag_CXX=
15157whole_archive_flag_spec_CXX=
15158enable_shared_with_static_runtimes_CXX=no
15159
15160# Dependencies to place before and after the object being linked:
15161predep_objects_CXX=
15162postdep_objects_CXX=
15163predeps_CXX=
15164postdeps_CXX=
15165compiler_lib_search_path_CXX=
15166
15167# Source file extension for C++ test sources.
15168ac_ext=cc
15169
15170# Object file extension for compiled C++ test sources.
15171objext=o
15172objext_CXX=$objext
15173
15174# Code to be used in simple compile tests
15175lt_simple_compile_test_code="int some_variable = 0;\n"
15176
15177# Code to be used in simple link tests
15178lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15179
15180# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15181
15182# If no C compiler was specified, use CC.
15183LTCC=${LTCC-"$CC"}
15184
15185# Allow CC to be a program name with arguments.
15186compiler=$CC
15187
15188
15189# Allow CC to be a program name with arguments.
15190lt_save_CC=$CC
15191lt_save_LD=$LD
15192lt_save_GCC=$GCC
15193GCC=$GXX
15194lt_save_with_gnu_ld=$with_gnu_ld
15195lt_save_path_LD=$lt_cv_path_LD
15196if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15197 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15198else
15199 unset lt_cv_prog_gnu_ld
15200fi
15201if test -n "${lt_cv_path_LDCXX+set}"; then
15202 lt_cv_path_LD=$lt_cv_path_LDCXX
15203else
15204 unset lt_cv_path_LD
15205fi
15206test -z "${LDCXX+set}" || LD=$LDCXX
15207CC=${CXX-"c++"}
15208compiler=$CC
15209compiler_CXX=$CC
15210cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15211
15212# We don't want -fno-exception wen compiling C++ code, so set the
15213# no_builtin_flag separately
15214if test "$GXX" = yes; then
15215 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15216else
15217 lt_prog_compiler_no_builtin_flag_CXX=
15218fi
15219
15220if test "$GXX" = yes; then
15221 # Set up default GNU C++ configuration
15222
15223
15224# Check whether --with-gnu-ld or --without-gnu-ld was given.
15225if test "${with_gnu_ld+set}" = set; then
15226 withval="$with_gnu_ld"
15227 test "$withval" = no || with_gnu_ld=yes
15228else
15229 with_gnu_ld=no
15230fi;
15231ac_prog=ld
15232if test "$GCC" = yes; then
15233 # Check if gcc -print-prog-name=ld gives a path.
15234 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15235echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15236 case $host in
15237 *-*-mingw*)
15238 # gcc leaves a trailing carriage return which upsets mingw
15239 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15240 *)
15241 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15242 esac
15243 case $ac_prog in
15244 # Accept absolute paths.
15245 [\\/]* | ?:[\\/]*)
15246 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015247 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015248 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15249 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15250 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15251 done
15252 test -z "$LD" && LD="$ac_prog"
15253 ;;
15254 "")
15255 # If it fails, then pretend we aren't using GCC.
15256 ac_prog=ld
15257 ;;
15258 *)
15259 # If it is relative, then search for the first ld in PATH.
15260 with_gnu_ld=unknown
15261 ;;
15262 esac
15263elif test "$with_gnu_ld" = yes; then
15264 echo "$as_me:$LINENO: checking for GNU ld" >&5
15265echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15266else
15267 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15268echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15269fi
15270if test "${lt_cv_path_LD+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272else
15273 if test -z "$LD"; then
15274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15275 for ac_dir in $PATH; do
15276 IFS="$lt_save_ifs"
15277 test -z "$ac_dir" && ac_dir=.
15278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15279 lt_cv_path_LD="$ac_dir/$ac_prog"
15280 # Check to see if the program is GNU ld. I'd rather use --version,
15281 # but apparently some GNU ld's only accept -v.
15282 # Break only if it was the GNU/non-GNU ld that we prefer.
15283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15284 *GNU* | *'with BFD'*)
15285 test "$with_gnu_ld" != no && break
15286 ;;
15287 *)
15288 test "$with_gnu_ld" != yes && break
15289 ;;
15290 esac
15291 fi
15292 done
15293 IFS="$lt_save_ifs"
15294else
15295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15296fi
15297fi
15298
15299LD="$lt_cv_path_LD"
15300if test -n "$LD"; then
15301 echo "$as_me:$LINENO: result: $LD" >&5
15302echo "${ECHO_T}$LD" >&6
15303else
15304 echo "$as_me:$LINENO: result: no" >&5
15305echo "${ECHO_T}no" >&6
15306fi
15307test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15308echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15309 { (exit 1); exit 1; }; }
15310echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15311echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15312if test "${lt_cv_prog_gnu_ld+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15314else
15315 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015316case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015317*GNU* | *'with BFD'*)
15318 lt_cv_prog_gnu_ld=yes
15319 ;;
15320*)
15321 lt_cv_prog_gnu_ld=no
15322 ;;
15323esac
15324fi
15325echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15326echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15327with_gnu_ld=$lt_cv_prog_gnu_ld
15328
15329
15330
15331 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15332 # archiving commands below assume that GNU ld is being used.
15333 if test "$with_gnu_ld" = yes; then
15334 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335 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'
15336
15337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15339
15340 # If archive_cmds runs LD, not CC, wlarc should be empty
15341 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15342 # investigate it a little bit more. (MM)
15343 wlarc='${wl}'
15344
15345 # ancient GNU ld didn't support --whole-archive et. al.
15346 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15347 grep 'no-whole-archive' > /dev/null; then
15348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15349 else
15350 whole_archive_flag_spec_CXX=
15351 fi
15352 else
15353 with_gnu_ld=no
15354 wlarc=
15355
15356 # A generic and very simple default shared library creation
15357 # command for GNU C++ for the case where it uses the native
15358 # linker, instead of GNU ld. If possible, this setting should
15359 # overridden to take advantage of the native linker features on
15360 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015361 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015362 fi
15363
15364 # Commands to make compiler produce verbose output that lists
15365 # what "hidden" libraries, object files and flags are used when
15366 # linking a shared library.
15367 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15368
15369else
15370 GXX=no
15371 with_gnu_ld=no
15372 wlarc=
15373fi
15374
15375# PORTME: fill in a description of your system's C++ link characteristics
15376echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15377echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15378ld_shlibs_CXX=yes
15379case $host_os in
15380 aix3*)
15381 # FIXME: insert proper C++ library support
15382 ld_shlibs_CXX=no
15383 ;;
15384 aix4* | aix5*)
15385 if test "$host_cpu" = ia64; then
15386 # On IA64, the linker does run time linking by default, so we don't
15387 # have to do anything special.
15388 aix_use_runtimelinking=no
15389 exp_sym_flag='-Bexport'
15390 no_entry_flag=""
15391 else
15392 aix_use_runtimelinking=no
15393
15394 # Test if we are trying to use run time linking or normal
15395 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15396 # need to do runtime linking.
15397 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15398 for ld_flag in $LDFLAGS; do
15399 case $ld_flag in
15400 *-brtl*)
15401 aix_use_runtimelinking=yes
15402 break
15403 ;;
15404 esac
15405 done
15406 esac
15407
15408 exp_sym_flag='-bexport'
15409 no_entry_flag='-bnoentry'
15410 fi
15411
15412 # When large executables or shared objects are built, AIX ld can
15413 # have problems creating the table of contents. If linking a library
15414 # or program results in "error TOC overflow" add -mminimal-toc to
15415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15417
15418 archive_cmds_CXX=''
15419 hardcode_direct_CXX=yes
15420 hardcode_libdir_separator_CXX=':'
15421 link_all_deplibs_CXX=yes
15422
15423 if test "$GXX" = yes; then
15424 case $host_os in aix4.012|aix4.012.*)
15425 # We only want to do this on AIX 4.2 and lower, the check
15426 # below for broken collect2 doesn't work under 4.3+
15427 collect2name=`${CC} -print-prog-name=collect2`
15428 if test -f "$collect2name" && \
15429 strings "$collect2name" | grep resolve_lib_name >/dev/null
15430 then
15431 # We have reworked collect2
15432 hardcode_direct_CXX=yes
15433 else
15434 # We have old collect2
15435 hardcode_direct_CXX=unsupported
15436 # It fails to find uninstalled libraries when the uninstalled
15437 # path is not listed in the libpath. Setting hardcode_minus_L
15438 # to unsupported forces relinking
15439 hardcode_minus_L_CXX=yes
15440 hardcode_libdir_flag_spec_CXX='-L$libdir'
15441 hardcode_libdir_separator_CXX=
15442 fi
15443 esac
15444 shared_flag='-shared'
15445 else
15446 # not using gcc
15447 if test "$host_cpu" = ia64; then
15448 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15449 # chokes on -Wl,-G. The following line is correct:
15450 shared_flag='-G'
15451 else
15452 if test "$aix_use_runtimelinking" = yes; then
15453 shared_flag='${wl}-G'
15454 else
15455 shared_flag='${wl}-bM:SRE'
15456 fi
15457 fi
15458 fi
15459
15460 # It seems that -bexpall does not export symbols beginning with
15461 # underscore (_), so it is better to generate a list of symbols to export.
15462 always_export_symbols_CXX=yes
15463 if test "$aix_use_runtimelinking" = yes; then
15464 # Warning - without using the other runtime loading flags (-brtl),
15465 # -berok will link without error, but may produce a broken library.
15466 allow_undefined_flag_CXX='-berok'
15467 # Determine the default libpath from the value encoded in an empty executable.
15468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015469/* confdefs.h. */
15470_ACEOF
15471cat confdefs.h >>conftest.$ac_ext
15472cat >>conftest.$ac_ext <<_ACEOF
15473/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015474
John Criswell47fdd832003-07-14 16:52:07 +000015475int
15476main ()
15477{
15478
15479 ;
15480 return 0;
15481}
15482_ACEOF
15483rm -f conftest.$ac_objext conftest$ac_exeext
15484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015485 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015486 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015487 grep -v '^ *+' conftest.er1 >conftest.err
15488 rm -f conftest.er1
15489 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015492 { ac_try='test -z "$ac_cxx_werror_flag"
15493 || test ! -s conftest.err'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505
15506aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15507}'`
15508# Check for a 64-bit object if we didn't find anything.
15509if 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; }
15510}'`; fi
15511else
15512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015513sed 's/^/| /' conftest.$ac_ext >&5
15514
John Criswell47fdd832003-07-14 16:52:07 +000015515fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015516rm -f conftest.err conftest.$ac_objext \
15517 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015518if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15519
15520 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15521
15522 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"
15523 else
15524 if test "$host_cpu" = ia64; then
15525 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15526 allow_undefined_flag_CXX="-z nodefs"
15527 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"
15528 else
15529 # Determine the default libpath from the value encoded in an empty executable.
15530 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015531/* confdefs.h. */
15532_ACEOF
15533cat confdefs.h >>conftest.$ac_ext
15534cat >>conftest.$ac_ext <<_ACEOF
15535/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015536
John Criswell47fdd832003-07-14 16:52:07 +000015537int
15538main ()
15539{
15540
15541 ;
15542 return 0;
15543}
15544_ACEOF
15545rm -f conftest.$ac_objext conftest$ac_exeext
15546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015547 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015554 { ac_try='test -z "$ac_cxx_werror_flag"
15555 || test ! -s conftest.err'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; } &&
15561 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567
15568aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15569}'`
15570# Check for a 64-bit object if we didn't find anything.
15571if 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; }
15572}'`; fi
15573else
15574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015575sed 's/^/| /' conftest.$ac_ext >&5
15576
John Criswell47fdd832003-07-14 16:52:07 +000015577fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015578rm -f conftest.err conftest.$ac_objext \
15579 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15581
15582 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15583 # Warning - without using the other run time loading flags,
15584 # -berok will link without error, but may produce a broken library.
15585 no_undefined_flag_CXX=' ${wl}-bernotok'
15586 allow_undefined_flag_CXX=' ${wl}-berok'
15587 # -bexpall does not export symbols beginning with underscore (_)
15588 always_export_symbols_CXX=yes
15589 # Exported symbols can be pulled into shared objects from archives
15590 whole_archive_flag_spec_CXX=' '
15591 archive_cmds_need_lc_CXX=yes
15592 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015593 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 +000015594 fi
15595 fi
15596 ;;
15597 chorus*)
15598 case $cc_basename in
15599 *)
15600 # FIXME: insert proper C++ library support
15601 ld_shlibs_CXX=no
15602 ;;
15603 esac
15604 ;;
15605
Reid Spencer2706f8c2004-09-19 23:53:36 +000015606
John Criswell47fdd832003-07-14 16:52:07 +000015607 cygwin* | mingw* | pw32*)
15608 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15609 # as there is no search path for DLLs.
15610 hardcode_libdir_flag_spec_CXX='-L$libdir'
15611 allow_undefined_flag_CXX=unsupported
15612 always_export_symbols_CXX=no
15613 enable_shared_with_static_runtimes_CXX=yes
15614
15615 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15616 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'
15617 # If the export-symbols file already is a .def file (1st line
15618 # is EXPORTS), use it as is; otherwise, prepend...
15619 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15620 cp $export_symbols $output_objdir/$soname.def;
15621 else
15622 echo EXPORTS > $output_objdir/$soname.def;
15623 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015624 fi~
15625 $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 +000015626 else
15627 ld_shlibs_CXX=no
15628 fi
15629 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015630 darwin* | rhapsody*)
15631 case "$host_os" in
15632 rhapsody* | darwin1.[012])
15633 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15634 ;;
15635 *) # Darwin 1.3 on
15636 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15637 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15638 else
15639 case ${MACOSX_DEPLOYMENT_TARGET} in
15640 10.[012])
15641 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15642 ;;
15643 10.*)
15644 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15645 ;;
15646 esac
15647 fi
15648 ;;
15649 esac
15650 archive_cmds_need_lc_CXX=no
15651 hardcode_direct_CXX=no
15652 hardcode_automatic_CXX=yes
15653 hardcode_shlibpath_var_CXX=unsupported
15654 whole_archive_flag_spec_CXX=''
15655 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015656
Reid Spencer2706f8c2004-09-19 23:53:36 +000015657 if test "$GXX" = yes ; then
15658 lt_int_apple_cc_single_mod=no
15659 output_verbose_link_cmd='echo'
15660 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15661 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015662 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015663 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015664 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 +000015665 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015666 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 +000015667 fi
15668 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15670 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015671 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 +000015672 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015673 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 +000015674 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015675 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 +000015676 else
15677 case "$cc_basename" in
15678 xlc*)
15679 output_verbose_link_cmd='echo'
15680 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'
15681 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15682 # 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 +000015683 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}'
15684 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 +000015685 ;;
15686 *)
15687 ld_shlibs_CXX=no
15688 ;;
15689 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015690 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015691 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015692
15693 dgux*)
15694 case $cc_basename in
15695 ec++)
15696 # FIXME: insert proper C++ library support
15697 ld_shlibs_CXX=no
15698 ;;
15699 ghcx)
15700 # Green Hills C++ Compiler
15701 # FIXME: insert proper C++ library support
15702 ld_shlibs_CXX=no
15703 ;;
15704 *)
15705 # FIXME: insert proper C++ library support
15706 ld_shlibs_CXX=no
15707 ;;
15708 esac
15709 ;;
15710 freebsd12*)
15711 # C++ shared libraries reported to be fairly broken before switch to ELF
15712 ld_shlibs_CXX=no
15713 ;;
15714 freebsd-elf*)
15715 archive_cmds_need_lc_CXX=no
15716 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015717 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015718 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15719 # conventions
15720 ld_shlibs_CXX=yes
15721 ;;
15722 gnu*)
15723 ;;
15724 hpux9*)
15725 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15726 hardcode_libdir_separator_CXX=:
15727 export_dynamic_flag_spec_CXX='${wl}-E'
15728 hardcode_direct_CXX=yes
15729 hardcode_minus_L_CXX=yes # Not in the search PATH,
15730 # but as the default
15731 # location of the library.
15732
15733 case $cc_basename in
15734 CC)
15735 # FIXME: insert proper C++ library support
15736 ld_shlibs_CXX=no
15737 ;;
15738 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015739 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 +000015740 # Commands to make compiler produce verbose output that lists
15741 # what "hidden" libraries, object files and flags are used when
15742 # linking a shared library.
15743 #
15744 # There doesn't appear to be a way to prevent this compiler from
15745 # explicitly linking system object files so we need to strip them
15746 # from the output so that they don't get included in the library
15747 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015748 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 +000015749 ;;
15750 *)
15751 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015752 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 +000015753 else
15754 # FIXME: insert proper C++ library support
15755 ld_shlibs_CXX=no
15756 fi
15757 ;;
15758 esac
15759 ;;
15760 hpux10*|hpux11*)
15761 if test $with_gnu_ld = no; then
15762 case "$host_cpu" in
15763 hppa*64*)
15764 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15765 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15766 hardcode_libdir_separator_CXX=:
15767 ;;
15768 ia64*)
15769 hardcode_libdir_flag_spec_CXX='-L$libdir'
15770 ;;
15771 *)
15772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15773 hardcode_libdir_separator_CXX=:
15774 export_dynamic_flag_spec_CXX='${wl}-E'
15775 ;;
15776 esac
15777 fi
15778 case "$host_cpu" in
15779 hppa*64*)
15780 hardcode_direct_CXX=no
15781 hardcode_shlibpath_var_CXX=no
15782 ;;
15783 ia64*)
15784 hardcode_direct_CXX=no
15785 hardcode_shlibpath_var_CXX=no
15786 hardcode_minus_L_CXX=yes # Not in the search PATH,
15787 # but as the default
15788 # location of the library.
15789 ;;
15790 *)
15791 hardcode_direct_CXX=yes
15792 hardcode_minus_L_CXX=yes # Not in the search PATH,
15793 # but as the default
15794 # location of the library.
15795 ;;
15796 esac
15797
15798 case $cc_basename in
15799 CC)
15800 # FIXME: insert proper C++ library support
15801 ld_shlibs_CXX=no
15802 ;;
15803 aCC)
15804 case "$host_cpu" in
15805 hppa*64*|ia64*)
15806 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15807 ;;
15808 *)
15809 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15810 ;;
15811 esac
15812 # Commands to make compiler produce verbose output that lists
15813 # what "hidden" libraries, object files and flags are used when
15814 # linking a shared library.
15815 #
15816 # There doesn't appear to be a way to prevent this compiler from
15817 # explicitly linking system object files so we need to strip them
15818 # from the output so that they don't get included in the library
15819 # dependencies.
15820 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'
15821 ;;
15822 *)
15823 if test "$GXX" = yes; then
15824 if test $with_gnu_ld = no; then
15825 case "$host_cpu" in
15826 ia64*|hppa*64*)
15827 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15828 ;;
15829 *)
15830 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'
15831 ;;
15832 esac
15833 fi
15834 else
15835 # FIXME: insert proper C++ library support
15836 ld_shlibs_CXX=no
15837 fi
15838 ;;
15839 esac
15840 ;;
15841 irix5* | irix6*)
15842 case $cc_basename in
15843 CC)
15844 # SGI C++
15845 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'
15846
15847 # Archives containing C++ object files must be created using
15848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15849 # necessary to make sure instantiated templates are included
15850 # in the archive.
15851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15852 ;;
15853 *)
15854 if test "$GXX" = yes; then
15855 if test "$with_gnu_ld" = no; then
15856 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'
15857 else
15858 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'
15859 fi
15860 fi
15861 link_all_deplibs_CXX=yes
15862 ;;
15863 esac
15864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15865 hardcode_libdir_separator_CXX=:
15866 ;;
15867 linux*)
15868 case $cc_basename in
15869 KCC)
15870 # Kuck and Associates, Inc. (KAI) C++ Compiler
15871
15872 # KCC will only create a shared library if the output file
15873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15874 # to its proper name (with version) after linking.
15875 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'
15876 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'
15877 # Commands to make compiler produce verbose output that lists
15878 # what "hidden" libraries, object files and flags are used when
15879 # linking a shared library.
15880 #
15881 # There doesn't appear to be a way to prevent this compiler from
15882 # explicitly linking system object files so we need to strip them
15883 # from the output so that they don't get included in the library
15884 # dependencies.
15885 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'
15886
15887 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15889
15890 # Archives containing C++ object files must be created using
15891 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15893 ;;
15894 icpc)
15895 # Intel C++
15896 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015897 # version 8.0 and above of icpc choke on multiply defined symbols
15898 # if we add $predep_objects and $postdep_objects, however 7.1 and
15899 # earlier do not add the objects themselves.
15900 case `$CC -V 2>&1` in
15901 *"Version 7."*)
15902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15903 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'
15904 ;;
15905 *) # Version 8.0 or newer
15906 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15907 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15908 ;;
15909 esac
John Criswell47fdd832003-07-14 16:52:07 +000015910 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15912 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15914 ;;
15915 cxx)
15916 # Compaq C++
15917 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918 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'
15919
15920 runpath_var=LD_RUN_PATH
15921 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15922 hardcode_libdir_separator_CXX=:
15923
15924 # Commands to make compiler produce verbose output that lists
15925 # what "hidden" libraries, object files and flags are used when
15926 # linking a shared library.
15927 #
15928 # There doesn't appear to be a way to prevent this compiler from
15929 # explicitly linking system object files so we need to strip them
15930 # from the output so that they don't get included in the library
15931 # dependencies.
15932 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'
15933 ;;
15934 esac
15935 ;;
15936 lynxos*)
15937 # FIXME: insert proper C++ library support
15938 ld_shlibs_CXX=no
15939 ;;
15940 m88k*)
15941 # FIXME: insert proper C++ library support
15942 ld_shlibs_CXX=no
15943 ;;
15944 mvs*)
15945 case $cc_basename in
15946 cxx)
15947 # FIXME: insert proper C++ library support
15948 ld_shlibs_CXX=no
15949 ;;
15950 *)
15951 # FIXME: insert proper C++ library support
15952 ld_shlibs_CXX=no
15953 ;;
15954 esac
15955 ;;
15956 netbsd*)
15957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15958 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15959 wlarc=
15960 hardcode_libdir_flag_spec_CXX='-R$libdir'
15961 hardcode_direct_CXX=yes
15962 hardcode_shlibpath_var_CXX=no
15963 fi
15964 # Workaround some broken pre-1.5 toolchains
15965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15966 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015967 openbsd2*)
15968 # C++ shared libraries are fairly broken
15969 ld_shlibs_CXX=no
15970 ;;
15971 openbsd*)
15972 hardcode_direct_CXX=yes
15973 hardcode_shlibpath_var_CXX=no
15974 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15977 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15978 export_dynamic_flag_spec_CXX='${wl}-E'
15979 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15980 fi
15981 output_verbose_link_cmd='echo'
15982 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015983 osf3*)
15984 case $cc_basename in
15985 KCC)
15986 # Kuck and Associates, Inc. (KAI) C++ Compiler
15987
15988 # KCC will only create a shared library if the output file
15989 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15990 # to its proper name (with version) after linking.
15991 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'
15992
15993 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15994 hardcode_libdir_separator_CXX=:
15995
15996 # Archives containing C++ object files must be created using
15997 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15998 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15999
16000 ;;
16001 RCC)
16002 # Rational C++ 2.4.1
16003 # FIXME: insert proper C++ library support
16004 ld_shlibs_CXX=no
16005 ;;
16006 cxx)
16007 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16008 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'
16009
16010 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16011 hardcode_libdir_separator_CXX=:
16012
16013 # Commands to make compiler produce verbose output that lists
16014 # what "hidden" libraries, object files and flags are used when
16015 # linking a shared library.
16016 #
16017 # There doesn't appear to be a way to prevent this compiler from
16018 # explicitly linking system object files so we need to strip them
16019 # from the output so that they don't get included in the library
16020 # dependencies.
16021 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'
16022 ;;
16023 *)
16024 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16025 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16026 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'
16027
16028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16029 hardcode_libdir_separator_CXX=:
16030
16031 # Commands to make compiler produce verbose output that lists
16032 # what "hidden" libraries, object files and flags are used when
16033 # linking a shared library.
16034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16035
16036 else
16037 # FIXME: insert proper C++ library support
16038 ld_shlibs_CXX=no
16039 fi
16040 ;;
16041 esac
16042 ;;
16043 osf4* | osf5*)
16044 case $cc_basename in
16045 KCC)
16046 # Kuck and Associates, Inc. (KAI) C++ Compiler
16047
16048 # KCC will only create a shared library if the output file
16049 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16050 # to its proper name (with version) after linking.
16051 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'
16052
16053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16054 hardcode_libdir_separator_CXX=:
16055
16056 # Archives containing C++ object files must be created using
16057 # the KAI C++ compiler.
16058 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16059 ;;
16060 RCC)
16061 # Rational C++ 2.4.1
16062 # FIXME: insert proper C++ library support
16063 ld_shlibs_CXX=no
16064 ;;
16065 cxx)
16066 allow_undefined_flag_CXX=' -expect_unresolved \*'
16067 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 +000016068 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16069 echo "-hidden">> $lib.exp~
16070 $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~
16071 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016072
16073 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16074 hardcode_libdir_separator_CXX=:
16075
16076 # Commands to make compiler produce verbose output that lists
16077 # what "hidden" libraries, object files and flags are used when
16078 # linking a shared library.
16079 #
16080 # There doesn't appear to be a way to prevent this compiler from
16081 # explicitly linking system object files so we need to strip them
16082 # from the output so that they don't get included in the library
16083 # dependencies.
16084 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'
16085 ;;
16086 *)
16087 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16088 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16089 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'
16090
16091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16092 hardcode_libdir_separator_CXX=:
16093
16094 # Commands to make compiler produce verbose output that lists
16095 # what "hidden" libraries, object files and flags are used when
16096 # linking a shared library.
16097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16098
16099 else
16100 # FIXME: insert proper C++ library support
16101 ld_shlibs_CXX=no
16102 fi
16103 ;;
16104 esac
16105 ;;
16106 psos*)
16107 # FIXME: insert proper C++ library support
16108 ld_shlibs_CXX=no
16109 ;;
16110 sco*)
16111 archive_cmds_need_lc_CXX=no
16112 case $cc_basename in
16113 CC)
16114 # FIXME: insert proper C++ library support
16115 ld_shlibs_CXX=no
16116 ;;
16117 *)
16118 # FIXME: insert proper C++ library support
16119 ld_shlibs_CXX=no
16120 ;;
16121 esac
16122 ;;
16123 sunos4*)
16124 case $cc_basename in
16125 CC)
16126 # Sun C++ 4.x
16127 # FIXME: insert proper C++ library support
16128 ld_shlibs_CXX=no
16129 ;;
16130 lcc)
16131 # Lucid
16132 # FIXME: insert proper C++ library support
16133 ld_shlibs_CXX=no
16134 ;;
16135 *)
16136 # FIXME: insert proper C++ library support
16137 ld_shlibs_CXX=no
16138 ;;
16139 esac
16140 ;;
16141 solaris*)
16142 case $cc_basename in
16143 CC)
16144 # Sun C++ 4.2, 5.x and Centerline C++
16145 no_undefined_flag_CXX=' -zdefs'
16146 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 +000016147 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16148 $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 +000016149
16150 hardcode_libdir_flag_spec_CXX='-R$libdir'
16151 hardcode_shlibpath_var_CXX=no
16152 case $host_os in
16153 solaris2.0-5 | solaris2.0-5.*) ;;
16154 *)
16155 # The C++ compiler is used as linker so we must use $wl
16156 # flag to pass the commands to the underlying system
16157 # linker.
16158 # Supported since Solaris 2.6 (maybe 2.5.1?)
16159 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16160 ;;
16161 esac
16162 link_all_deplibs_CXX=yes
16163
16164 # Commands to make compiler produce verbose output that lists
16165 # what "hidden" libraries, object files and flags are used when
16166 # linking a shared library.
16167 #
16168 # There doesn't appear to be a way to prevent this compiler from
16169 # explicitly linking system object files so we need to strip them
16170 # from the output so that they don't get included in the library
16171 # dependencies.
16172 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'
16173
16174 # Archives containing C++ object files must be created using
16175 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16176 # necessary to make sure instantiated templates are included
16177 # in the archive.
16178 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16179 ;;
16180 gcx)
16181 # Green Hills C++ Compiler
16182 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16183
16184 # The C++ compiler must be used to create the archive.
16185 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16186 ;;
16187 *)
16188 # GNU C++ compiler with Solaris linker
16189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16190 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16191 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016192 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 +000016193 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16194 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16195
John Criswell47fdd832003-07-14 16:52:07 +000016196 # Commands to make compiler produce verbose output that lists
16197 # what "hidden" libraries, object files and flags are used when
16198 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016199 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016200 else
16201 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16202 # platform.
16203 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 +000016204 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16205 $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 +000016206
16207 # Commands to make compiler produce verbose output that lists
16208 # what "hidden" libraries, object files and flags are used when
16209 # linking a shared library.
16210 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16211 fi
16212
16213 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16214 fi
16215 ;;
16216 esac
16217 ;;
16218 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16219 archive_cmds_need_lc_CXX=no
16220 ;;
16221 tandem*)
16222 case $cc_basename in
16223 NCC)
16224 # NonStop-UX NCC 3.20
16225 # FIXME: insert proper C++ library support
16226 ld_shlibs_CXX=no
16227 ;;
16228 *)
16229 # FIXME: insert proper C++ library support
16230 ld_shlibs_CXX=no
16231 ;;
16232 esac
16233 ;;
16234 vxworks*)
16235 # FIXME: insert proper C++ library support
16236 ld_shlibs_CXX=no
16237 ;;
16238 *)
16239 # FIXME: insert proper C++ library support
16240 ld_shlibs_CXX=no
16241 ;;
16242esac
16243echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16244echo "${ECHO_T}$ld_shlibs_CXX" >&6
16245test "$ld_shlibs_CXX" = no && can_build_shared=no
16246
16247GCC_CXX="$GXX"
16248LD_CXX="$LD"
16249
John Criswell47fdd832003-07-14 16:52:07 +000016250
16251cat > conftest.$ac_ext <<EOF
16252class Foo
16253{
16254public:
16255 Foo (void) { a = 0; }
16256private:
16257 int a;
16258};
16259EOF
16260
16261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; then
16266 # Parse the compiler output and extract the necessary
16267 # objects, libraries and library flags.
16268
16269 # Sentinel used to keep track of whether or not we are before
16270 # the conftest object file.
16271 pre_test_object_deps_done=no
16272
16273 # The `*' in the case matches for architectures that use `case' in
16274 # $output_verbose_cmd can trigger glob expansion during the loop
16275 # eval without this substitution.
16276 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16277
16278 for p in `eval $output_verbose_link_cmd`; do
16279 case $p in
16280
16281 -L* | -R* | -l*)
16282 # Some compilers place space between "-{L,R}" and the path.
16283 # Remove the space.
16284 if test $p = "-L" \
16285 || test $p = "-R"; then
16286 prev=$p
16287 continue
16288 else
16289 prev=
16290 fi
16291
16292 if test "$pre_test_object_deps_done" = no; then
16293 case $p in
16294 -L* | -R*)
16295 # Internal compiler library paths should come after those
16296 # provided the user. The postdeps already come after the
16297 # user supplied libs so there is no need to process them.
16298 if test -z "$compiler_lib_search_path_CXX"; then
16299 compiler_lib_search_path_CXX="${prev}${p}"
16300 else
16301 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16302 fi
16303 ;;
16304 # The "-l" case would never come before the object being
16305 # linked, so don't bother handling this case.
16306 esac
16307 else
16308 if test -z "$postdeps_CXX"; then
16309 postdeps_CXX="${prev}${p}"
16310 else
16311 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16312 fi
16313 fi
16314 ;;
16315
16316 *.$objext)
16317 # This assumes that the test object file only shows up
16318 # once in the compiler output.
16319 if test "$p" = "conftest.$objext"; then
16320 pre_test_object_deps_done=yes
16321 continue
16322 fi
16323
16324 if test "$pre_test_object_deps_done" = no; then
16325 if test -z "$predep_objects_CXX"; then
16326 predep_objects_CXX="$p"
16327 else
16328 predep_objects_CXX="$predep_objects_CXX $p"
16329 fi
16330 else
16331 if test -z "$postdep_objects_CXX"; then
16332 postdep_objects_CXX="$p"
16333 else
16334 postdep_objects_CXX="$postdep_objects_CXX $p"
16335 fi
16336 fi
16337 ;;
16338
16339 *) ;; # Ignore the rest.
16340
16341 esac
16342 done
16343
16344 # Clean up.
16345 rm -f a.out a.exe
16346else
16347 echo "libtool.m4: error: problem compiling CXX test program"
16348fi
16349
16350$rm -f confest.$objext
16351
16352case " $postdeps_CXX " in
16353*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16354esac
16355
16356lt_prog_compiler_wl_CXX=
16357lt_prog_compiler_pic_CXX=
16358lt_prog_compiler_static_CXX=
16359
16360echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16361echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16362
16363 # C++ specific cases for pic, static, wl, etc.
16364 if test "$GXX" = yes; then
16365 lt_prog_compiler_wl_CXX='-Wl,'
16366 lt_prog_compiler_static_CXX='-static'
16367
16368 case $host_os in
16369 aix*)
16370 # All AIX code is PIC.
16371 if test "$host_cpu" = ia64; then
16372 # AIX 5 now supports IA64 processor
16373 lt_prog_compiler_static_CXX='-Bstatic'
16374 fi
16375 ;;
16376 amigaos*)
16377 # FIXME: we need at least 68020 code to build shared libraries, but
16378 # adding the `-m68020' flag to GCC prevents building anything better,
16379 # like `-m68040'.
16380 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16381 ;;
16382 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16383 # PIC is the default for these OSes.
16384 ;;
16385 mingw* | os2* | pw32*)
16386 # This hack is so that the source file can tell whether it is being
16387 # built for inclusion in a dll (and should export symbols for example).
16388 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16389 ;;
16390 darwin* | rhapsody*)
16391 # PIC is the default on this platform
16392 # Common symbols not allowed in MH_DYLIB files
16393 lt_prog_compiler_pic_CXX='-fno-common'
16394 ;;
16395 *djgpp*)
16396 # DJGPP does not support shared libraries at all
16397 lt_prog_compiler_pic_CXX=
16398 ;;
16399 sysv4*MP*)
16400 if test -d /usr/nec; then
16401 lt_prog_compiler_pic_CXX=-Kconform_pic
16402 fi
16403 ;;
16404 hpux*)
16405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16406 # not for PA HP-UX.
16407 case "$host_cpu" in
16408 hppa*64*|ia64*)
16409 ;;
16410 *)
16411 lt_prog_compiler_pic_CXX='-fPIC'
16412 ;;
16413 esac
16414 ;;
16415 *)
16416 lt_prog_compiler_pic_CXX='-fPIC'
16417 ;;
16418 esac
16419 else
16420 case $host_os in
16421 aix4* | aix5*)
16422 # All AIX code is PIC.
16423 if test "$host_cpu" = ia64; then
16424 # AIX 5 now supports IA64 processor
16425 lt_prog_compiler_static_CXX='-Bstatic'
16426 else
16427 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16428 fi
16429 ;;
16430 chorus*)
16431 case $cc_basename in
16432 cxch68)
16433 # Green Hills C++ Compiler
16434 # _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"
16435 ;;
16436 esac
16437 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016438 darwin*)
16439 # PIC is the default on this platform
16440 # Common symbols not allowed in MH_DYLIB files
16441 case "$cc_basename" in
16442 xlc*)
16443 lt_prog_compiler_pic_CXX='-qnocommon'
16444 lt_prog_compiler_wl_CXX='-Wl,'
16445 ;;
16446 esac
16447 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016448 dgux*)
16449 case $cc_basename in
16450 ec++)
16451 lt_prog_compiler_pic_CXX='-KPIC'
16452 ;;
16453 ghcx)
16454 # Green Hills C++ Compiler
16455 lt_prog_compiler_pic_CXX='-pic'
16456 ;;
16457 *)
16458 ;;
16459 esac
16460 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016461 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016462 # FreeBSD uses GNU C++
16463 ;;
16464 hpux9* | hpux10* | hpux11*)
16465 case $cc_basename in
16466 CC)
16467 lt_prog_compiler_wl_CXX='-Wl,'
16468 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16469 if test "$host_cpu" != ia64; then
16470 lt_prog_compiler_pic_CXX='+Z'
16471 fi
16472 ;;
16473 aCC)
16474 lt_prog_compiler_wl_CXX='-Wl,'
16475 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16476 case "$host_cpu" in
16477 hppa*64*|ia64*)
16478 # +Z the default
16479 ;;
16480 *)
16481 lt_prog_compiler_pic_CXX='+Z'
16482 ;;
16483 esac
16484 ;;
16485 *)
16486 ;;
16487 esac
16488 ;;
16489 irix5* | irix6* | nonstopux*)
16490 case $cc_basename in
16491 CC)
16492 lt_prog_compiler_wl_CXX='-Wl,'
16493 lt_prog_compiler_static_CXX='-non_shared'
16494 # CC pic flag -KPIC is the default.
16495 ;;
16496 *)
16497 ;;
16498 esac
16499 ;;
16500 linux*)
16501 case $cc_basename in
16502 KCC)
16503 # KAI C++ Compiler
16504 lt_prog_compiler_wl_CXX='--backend -Wl,'
16505 lt_prog_compiler_pic_CXX='-fPIC'
16506 ;;
16507 icpc)
16508 # Intel C++
16509 lt_prog_compiler_wl_CXX='-Wl,'
16510 lt_prog_compiler_pic_CXX='-KPIC'
16511 lt_prog_compiler_static_CXX='-static'
16512 ;;
16513 cxx)
16514 # Compaq C++
16515 # Make sure the PIC flag is empty. It appears that all Alpha
16516 # Linux and Compaq Tru64 Unix objects are PIC.
16517 lt_prog_compiler_pic_CXX=
16518 lt_prog_compiler_static_CXX='-non_shared'
16519 ;;
16520 *)
16521 ;;
16522 esac
16523 ;;
16524 lynxos*)
16525 ;;
16526 m88k*)
16527 ;;
16528 mvs*)
16529 case $cc_basename in
16530 cxx)
16531 lt_prog_compiler_pic_CXX='-W c,exportall'
16532 ;;
16533 *)
16534 ;;
16535 esac
16536 ;;
16537 netbsd*)
16538 ;;
16539 osf3* | osf4* | osf5*)
16540 case $cc_basename in
16541 KCC)
16542 lt_prog_compiler_wl_CXX='--backend -Wl,'
16543 ;;
16544 RCC)
16545 # Rational C++ 2.4.1
16546 lt_prog_compiler_pic_CXX='-pic'
16547 ;;
16548 cxx)
16549 # Digital/Compaq C++
16550 lt_prog_compiler_wl_CXX='-Wl,'
16551 # Make sure the PIC flag is empty. It appears that all Alpha
16552 # Linux and Compaq Tru64 Unix objects are PIC.
16553 lt_prog_compiler_pic_CXX=
16554 lt_prog_compiler_static_CXX='-non_shared'
16555 ;;
16556 *)
16557 ;;
16558 esac
16559 ;;
16560 psos*)
16561 ;;
16562 sco*)
16563 case $cc_basename in
16564 CC)
16565 lt_prog_compiler_pic_CXX='-fPIC'
16566 ;;
16567 *)
16568 ;;
16569 esac
16570 ;;
16571 solaris*)
16572 case $cc_basename in
16573 CC)
16574 # Sun C++ 4.2, 5.x and Centerline C++
16575 lt_prog_compiler_pic_CXX='-KPIC'
16576 lt_prog_compiler_static_CXX='-Bstatic'
16577 lt_prog_compiler_wl_CXX='-Qoption ld '
16578 ;;
16579 gcx)
16580 # Green Hills C++ Compiler
16581 lt_prog_compiler_pic_CXX='-PIC'
16582 ;;
16583 *)
16584 ;;
16585 esac
16586 ;;
16587 sunos4*)
16588 case $cc_basename in
16589 CC)
16590 # Sun C++ 4.x
16591 lt_prog_compiler_pic_CXX='-pic'
16592 lt_prog_compiler_static_CXX='-Bstatic'
16593 ;;
16594 lcc)
16595 # Lucid
16596 lt_prog_compiler_pic_CXX='-pic'
16597 ;;
16598 *)
16599 ;;
16600 esac
16601 ;;
16602 tandem*)
16603 case $cc_basename in
16604 NCC)
16605 # NonStop-UX NCC 3.20
16606 lt_prog_compiler_pic_CXX='-KPIC'
16607 ;;
16608 *)
16609 ;;
16610 esac
16611 ;;
16612 unixware*)
16613 ;;
16614 vxworks*)
16615 ;;
16616 *)
16617 lt_prog_compiler_can_build_shared_CXX=no
16618 ;;
16619 esac
16620 fi
16621
16622echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16623echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16624
16625#
16626# Check to make sure the PIC flag actually works.
16627#
16628if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016629
16630echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016631echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16632if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634else
16635 lt_prog_compiler_pic_works_CXX=no
16636 ac_outfile=conftest.$ac_objext
16637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16638 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16639 # Insert the option either (1) after the last *FLAGS variable, or
16640 # (2) before a word containing "conftest.", or (3) at the end.
16641 # Note that $ac_compile itself does not contain backslashes and begins
16642 # with a dollar sign (not a hyphen), so the echo should work correctly.
16643 # The option is referenced via a variable to avoid confusing sed.
16644 lt_compile=`echo "$ac_compile" | $SED \
16645 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16647 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000016648 (eval echo "\"\$as_me:16648: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016649 (eval "$lt_compile" 2>conftest.err)
16650 ac_status=$?
16651 cat conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000016652 echo "$as_me:16652: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016653 if (exit $ac_status) && test -s "$ac_outfile"; then
16654 # The compiler can only warn and ignore the option if not recognized
16655 # So say no if there are warnings
16656 if test ! -s conftest.err; then
16657 lt_prog_compiler_pic_works_CXX=yes
16658 fi
16659 fi
16660 $rm conftest*
16661
16662fi
16663echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16664echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16665
16666if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16667 case $lt_prog_compiler_pic_CXX in
16668 "" | " "*) ;;
16669 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16670 esac
16671else
16672 lt_prog_compiler_pic_CXX=
16673 lt_prog_compiler_can_build_shared_CXX=no
16674fi
16675
16676fi
16677case "$host_os" in
16678 # For platforms which do not support PIC, -DPIC is meaningless:
16679 *djgpp*)
16680 lt_prog_compiler_pic_CXX=
16681 ;;
16682 *)
16683 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16684 ;;
16685esac
16686
16687echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16688echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16689if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691else
16692 lt_cv_prog_compiler_c_o_CXX=no
16693 $rm -r conftest 2>/dev/null
16694 mkdir conftest
16695 cd conftest
16696 mkdir out
16697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16698
John Criswell47fdd832003-07-14 16:52:07 +000016699 lt_compiler_flag="-o out/conftest2.$ac_objext"
16700 # Insert the option either (1) after the last *FLAGS variable, or
16701 # (2) before a word containing "conftest.", or (3) at the end.
16702 # Note that $ac_compile itself does not contain backslashes and begins
16703 # with a dollar sign (not a hyphen), so the echo should work correctly.
16704 lt_compile=`echo "$ac_compile" | $SED \
16705 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16707 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000016708 (eval echo "\"\$as_me:16708: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016709 (eval "$lt_compile" 2>out/conftest.err)
16710 ac_status=$?
16711 cat out/conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000016712 echo "$as_me:16712: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16714 then
16715 # The compiler can only warn and ignore the option if not recognized
16716 # So say no if there are warnings
16717 if test ! -s out/conftest.err; then
16718 lt_cv_prog_compiler_c_o_CXX=yes
16719 fi
16720 fi
16721 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016722 $rm conftest*
16723 # SGI C++ compiler will create directory out/ii_files/ for
16724 # template instantiation
16725 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16726 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016727 cd ..
16728 rmdir conftest
16729 $rm conftest*
16730
16731fi
16732echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16733echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16734
16735
16736hard_links="nottested"
16737if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16738 # do not overwrite the value of need_locks provided by the user
16739 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16740echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16741 hard_links=yes
16742 $rm conftest*
16743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16744 touch conftest.a
16745 ln conftest.a conftest.b 2>&5 || hard_links=no
16746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16747 echo "$as_me:$LINENO: result: $hard_links" >&5
16748echo "${ECHO_T}$hard_links" >&6
16749 if test "$hard_links" = no; then
16750 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16751echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16752 need_locks=warn
16753 fi
16754else
16755 need_locks=no
16756fi
16757
16758echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16759echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16760
16761 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16762 case $host_os in
16763 aix4* | aix5*)
16764 # If we're using GNU nm, then we don't want the "-C" option.
16765 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16766 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16767 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'
16768 else
16769 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'
16770 fi
16771 ;;
16772 pw32*)
16773 export_symbols_cmds_CXX="$ltdll_cmds"
16774 ;;
16775 cygwin* | mingw*)
16776 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16777 ;;
16778 *)
16779 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16780 ;;
16781 esac
16782
16783echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16784echo "${ECHO_T}$ld_shlibs_CXX" >&6
16785test "$ld_shlibs_CXX" = no && can_build_shared=no
16786
16787variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16788if test "$GCC" = yes; then
16789 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16790fi
16791
16792#
16793# Do we need to explicitly link libc?
16794#
16795case "x$archive_cmds_need_lc_CXX" in
16796x|xyes)
16797 # Assume -lc should be added
16798 archive_cmds_need_lc_CXX=yes
16799
16800 if test "$enable_shared" = yes && test "$GCC" = yes; then
16801 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016802 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016803 # FIXME: we may have to deal with multi-command sequences.
16804 ;;
16805 '$CC '*)
16806 # Test whether the compiler implicitly links with -lc since on some
16807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16808 # to ld, don't add -lc before -lgcc.
16809 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16810echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16811 $rm conftest*
16812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16813
16814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815 (eval $ac_compile) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } 2>conftest.err; then
16819 soname=conftest
16820 lib=conftest
16821 libobjs=conftest.$ac_objext
16822 deplibs=
16823 wl=$lt_prog_compiler_wl_CXX
16824 compiler_flags=-v
16825 linker_flags=-v
16826 verstring=
16827 output_objdir=.
16828 libname=conftest
16829 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16830 allow_undefined_flag_CXX=
16831 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16832 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }
16836 then
16837 archive_cmds_need_lc_CXX=no
16838 else
16839 archive_cmds_need_lc_CXX=yes
16840 fi
16841 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16842 else
16843 cat conftest.err 1>&5
16844 fi
16845 $rm conftest*
16846 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16847echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16848 ;;
16849 esac
16850 fi
16851 ;;
16852esac
16853
John Criswell47fdd832003-07-14 16:52:07 +000016854echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16855echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16856library_names_spec=
16857libname_spec='lib$name'
16858soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016859shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016860postinstall_cmds=
16861postuninstall_cmds=
16862finish_cmds=
16863finish_eval=
16864shlibpath_var=
16865shlibpath_overrides_runpath=unknown
16866version_type=none
16867dynamic_linker="$host_os ld.so"
16868sys_lib_dlsearch_path_spec="/lib /usr/lib"
16869if test "$GCC" = yes; then
16870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16871 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16872 # if the path contains ";" then we assume it to be the separator
16873 # otherwise default to the standard path separator (i.e. ":") - it is
16874 # assumed that no part of a normal pathname contains ";" but that should
16875 # okay in the real world where ";" in dirpaths is itself problematic.
16876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16877 else
16878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16879 fi
16880else
16881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16882fi
16883need_lib_prefix=unknown
16884hardcode_into_libs=no
16885
16886# when you set need_version to no, make sure it does not cause -set_version
16887# flags to be left without arguments
16888need_version=unknown
16889
16890case $host_os in
16891aix3*)
16892 version_type=linux
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16894 shlibpath_var=LIBPATH
16895
16896 # AIX 3 has no versioning support, so we append a major version to the name.
16897 soname_spec='${libname}${release}${shared_ext}$major'
16898 ;;
16899
16900aix4* | aix5*)
16901 version_type=linux
16902 need_lib_prefix=no
16903 need_version=no
16904 hardcode_into_libs=yes
16905 if test "$host_cpu" = ia64; then
16906 # AIX 5 supports IA64
16907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 else
16910 # With GCC up to 2.95.x, collect2 would create an import file
16911 # for dependence libraries. The import file would start with
16912 # the line `#! .'. This would cause the generated library to
16913 # depend on `.', always an invalid library. This was fixed in
16914 # development snapshots of GCC prior to 3.0.
16915 case $host_os in
16916 aix4 | aix4.[01] | aix4.[01].*)
16917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16918 echo ' yes '
16919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16920 :
16921 else
16922 can_build_shared=no
16923 fi
16924 ;;
16925 esac
16926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16927 # soname into executable. Probably we can add versioning support to
16928 # collect2, so additional links can be useful in future.
16929 if test "$aix_use_runtimelinking" = yes; then
16930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16931 # instead of lib<name>.a to let people know that these are not
16932 # typical AIX shared libraries.
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16934 else
16935 # We preserve .a as extension for shared libraries through AIX4.2
16936 # and later when we are not doing run time linking.
16937 library_names_spec='${libname}${release}.a $libname.a'
16938 soname_spec='${libname}${release}${shared_ext}$major'
16939 fi
16940 shlibpath_var=LIBPATH
16941 fi
16942 ;;
16943
16944amigaos*)
16945 library_names_spec='$libname.ixlibrary $libname.a'
16946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016947 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 +000016948 ;;
16949
16950beos*)
16951 library_names_spec='${libname}${shared_ext}'
16952 dynamic_linker="$host_os ld.so"
16953 shlibpath_var=LIBRARY_PATH
16954 ;;
16955
Reid Spencer2706f8c2004-09-19 23:53:36 +000016956bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016957 version_type=linux
16958 need_version=no
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16965 # the default ld.so.conf also contains /usr/contrib/lib and
16966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16967 # libtool to hard-code these into programs
16968 ;;
16969
16970cygwin* | mingw* | pw32*)
16971 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016972 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016973 need_version=no
16974 need_lib_prefix=no
16975
16976 case $GCC,$host_os in
16977 yes,cygwin* | yes,mingw* | yes,pw32*)
16978 library_names_spec='$libname.dll.a'
16979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016980 postinstall_cmds='base_file=`basename \${file}`~
16981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16982 dldir=$destdir/`dirname \$dlpath`~
16983 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016984 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16986 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016987 $rm \$dlpath'
16988 shlibpath_overrides_runpath=yes
16989
16990 case $host_os in
16991 cygwin*)
16992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16993 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 +000016994 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016995 ;;
16996 mingw*)
16997 # MinGW DLLs use traditional 'lib' prefix
16998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17000 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17001 # It is most probably a Windows format PATH printed by
17002 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17003 # path with ; separators, and with drive letters. We can handle the
17004 # drive letters (cygwin fileutils understands them), so leave them,
17005 # especially as we might pass files found there to a mingw objdump,
17006 # which wouldn't understand a cygwinified path. Ahh.
17007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17008 else
17009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17010 fi
17011 ;;
17012 pw32*)
17013 # pw32 DLLs use 'pw' prefix rather than 'lib'
17014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17015 ;;
17016 esac
17017 ;;
17018
17019 *)
17020 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17021 ;;
17022 esac
17023 dynamic_linker='Win32 ld.exe'
17024 # FIXME: first we should search . and the directory the executable is in
17025 shlibpath_var=PATH
17026 ;;
17027
17028darwin* | rhapsody*)
17029 dynamic_linker="$host_os dyld"
17030 version_type=darwin
17031 need_lib_prefix=no
17032 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017033 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017034 soname_spec='${libname}${release}${major}$shared_ext'
17035 shlibpath_overrides_runpath=yes
17036 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017037 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017038 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017039 if test "$GCC" = yes; then
17040 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"`
17041 else
17042 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017043 fi
17044 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17045 ;;
17046
17047dgux*)
17048 version_type=linux
17049 need_lib_prefix=no
17050 need_version=no
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 ;;
17055
17056freebsd1*)
17057 dynamic_linker=no
17058 ;;
17059
Reid Spencer2706f8c2004-09-19 23:53:36 +000017060kfreebsd*-gnu)
17061 version_type=linux
17062 need_lib_prefix=no
17063 need_version=no
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=no
17068 hardcode_into_libs=yes
17069 dynamic_linker='GNU ld.so'
17070 ;;
17071
John Criswell47fdd832003-07-14 16:52:07 +000017072freebsd*)
17073 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17074 version_type=freebsd-$objformat
17075 case $version_type in
17076 freebsd-elf*)
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17078 need_version=no
17079 need_lib_prefix=no
17080 ;;
17081 freebsd-*)
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17083 need_version=yes
17084 ;;
17085 esac
17086 shlibpath_var=LD_LIBRARY_PATH
17087 case $host_os in
17088 freebsd2*)
17089 shlibpath_overrides_runpath=yes
17090 ;;
17091 freebsd3.01* | freebsdelf3.01*)
17092 shlibpath_overrides_runpath=yes
17093 hardcode_into_libs=yes
17094 ;;
17095 *) # from 3.2 on
17096 shlibpath_overrides_runpath=no
17097 hardcode_into_libs=yes
17098 ;;
17099 esac
17100 ;;
17101
17102gnu*)
17103 version_type=linux
17104 need_lib_prefix=no
17105 need_version=no
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 hardcode_into_libs=yes
17110 ;;
17111
17112hpux9* | hpux10* | hpux11*)
17113 # Give a soname corresponding to the major version so that dld.sl refuses to
17114 # link against other versions.
17115 version_type=sunos
17116 need_lib_prefix=no
17117 need_version=no
17118 case "$host_cpu" in
17119 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017120 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017121 hardcode_into_libs=yes
17122 dynamic_linker="$host_os dld.so"
17123 shlibpath_var=LD_LIBRARY_PATH
17124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 if test "X$HPUX_IA64_MODE" = X32; then
17128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17129 else
17130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17131 fi
17132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17133 ;;
17134 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017135 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017136 hardcode_into_libs=yes
17137 dynamic_linker="$host_os dld.sl"
17138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17144 ;;
17145 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017146 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017147 dynamic_linker="$host_os dld.sl"
17148 shlibpath_var=SHLIB_PATH
17149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 ;;
17153 esac
17154 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17155 postinstall_cmds='chmod 555 $lib'
17156 ;;
17157
17158irix5* | irix6* | nonstopux*)
17159 case $host_os in
17160 nonstopux*) version_type=nonstopux ;;
17161 *)
17162 if test "$lt_cv_prog_gnu_ld" = yes; then
17163 version_type=linux
17164 else
17165 version_type=irix
17166 fi ;;
17167 esac
17168 need_lib_prefix=no
17169 need_version=no
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17172 case $host_os in
17173 irix5* | nonstopux*)
17174 libsuff= shlibsuff=
17175 ;;
17176 *)
17177 case $LD in # libtool.m4 will add one of these switches to LD
17178 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17179 libsuff= shlibsuff= libmagic=32-bit;;
17180 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17181 libsuff=32 shlibsuff=N32 libmagic=N32;;
17182 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17183 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17184 *) libsuff= shlibsuff= libmagic=never-match;;
17185 esac
17186 ;;
17187 esac
17188 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17189 shlibpath_overrides_runpath=no
17190 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17191 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17192 hardcode_into_libs=yes
17193 ;;
17194
17195# No shared lib support for Linux oldld, aout, or coff.
17196linux*oldld* | linux*aout* | linux*coff*)
17197 dynamic_linker=no
17198 ;;
17199
17200# This must be Linux ELF.
17201linux*)
17202 version_type=linux
17203 need_lib_prefix=no
17204 need_version=no
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 shlibpath_overrides_runpath=no
17210 # This implies no fast_install, which is unacceptable.
17211 # Some rework will be needed to allow for fast_install
17212 # before this can be enabled.
17213 hardcode_into_libs=yes
17214
Reid Spencer2706f8c2004-09-19 23:53:36 +000017215 # Append ld.so.conf contents to the search path
17216 if test -f /etc/ld.so.conf; then
17217 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17219 fi
17220
John Criswell47fdd832003-07-14 16:52:07 +000017221 # We used to test for /lib/ld.so.1 and disable shared libraries on
17222 # powerpc, because MkLinux only supported shared libraries with the
17223 # GNU dynamic linker. Since this was broken with cross compilers,
17224 # most powerpc-linux boxes support dynamic linking these days and
17225 # people can always --disable-shared, the test was removed, and we
17226 # assume the GNU/Linux dynamic linker is in use.
17227 dynamic_linker='GNU/Linux ld.so'
17228 ;;
17229
Reid Spencer2706f8c2004-09-19 23:53:36 +000017230knetbsd*-gnu)
17231 version_type=linux
17232 need_lib_prefix=no
17233 need_version=no
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=no
17238 hardcode_into_libs=yes
17239 dynamic_linker='GNU ld.so'
17240 ;;
17241
John Criswell47fdd832003-07-14 16:52:07 +000017242netbsd*)
17243 version_type=sunos
17244 need_lib_prefix=no
17245 need_version=no
17246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17249 dynamic_linker='NetBSD (a.out) ld.so'
17250 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017252 soname_spec='${libname}${release}${shared_ext}$major'
17253 dynamic_linker='NetBSD ld.elf_so'
17254 fi
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=yes
17257 hardcode_into_libs=yes
17258 ;;
17259
17260newsos6)
17261 version_type=linux
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17265 ;;
17266
Reid Spencer2706f8c2004-09-19 23:53:36 +000017267nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017268 version_type=linux
17269 need_lib_prefix=no
17270 need_version=no
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 shlibpath_overrides_runpath=yes
17275 ;;
17276
17277openbsd*)
17278 version_type=sunos
17279 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017280 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17285 case $host_os in
17286 openbsd2.[89] | openbsd2.[89].*)
17287 shlibpath_overrides_runpath=no
17288 ;;
17289 *)
17290 shlibpath_overrides_runpath=yes
17291 ;;
17292 esac
17293 else
17294 shlibpath_overrides_runpath=yes
17295 fi
17296 ;;
17297
17298os2*)
17299 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017300 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017301 need_lib_prefix=no
17302 library_names_spec='$libname${shared_ext} $libname.a'
17303 dynamic_linker='OS/2 ld.exe'
17304 shlibpath_var=LIBPATH
17305 ;;
17306
17307osf3* | osf4* | osf5*)
17308 version_type=osf
17309 need_lib_prefix=no
17310 need_version=no
17311 soname_spec='${libname}${release}${shared_ext}$major'
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17315 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17316 ;;
17317
17318sco3.2v5*)
17319 version_type=osf
17320 soname_spec='${libname}${release}${shared_ext}$major'
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 ;;
17324
17325solaris*)
17326 version_type=linux
17327 need_lib_prefix=no
17328 need_version=no
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 shlibpath_overrides_runpath=yes
17333 hardcode_into_libs=yes
17334 # ldd complains unless libraries are executable
17335 postinstall_cmds='chmod +x $lib'
17336 ;;
17337
17338sunos4*)
17339 version_type=sunos
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=yes
17344 if test "$with_gnu_ld" = yes; then
17345 need_lib_prefix=no
17346 fi
17347 need_version=yes
17348 ;;
17349
17350sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17351 version_type=linux
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 case $host_vendor in
17356 sni)
17357 shlibpath_overrides_runpath=no
17358 need_lib_prefix=no
17359 export_dynamic_flag_spec='${wl}-Blargedynsym'
17360 runpath_var=LD_RUN_PATH
17361 ;;
17362 siemens)
17363 need_lib_prefix=no
17364 ;;
17365 motorola)
17366 need_lib_prefix=no
17367 need_version=no
17368 shlibpath_overrides_runpath=no
17369 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17370 ;;
17371 esac
17372 ;;
17373
17374sysv4*MP*)
17375 if test -d /usr/nec ;then
17376 version_type=linux
17377 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17378 soname_spec='$libname${shared_ext}.$major'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 fi
17381 ;;
17382
17383uts4*)
17384 version_type=linux
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 shlibpath_var=LD_LIBRARY_PATH
17388 ;;
17389
17390*)
17391 dynamic_linker=no
17392 ;;
17393esac
17394echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17395echo "${ECHO_T}$dynamic_linker" >&6
17396test "$dynamic_linker" = no && can_build_shared=no
17397
Reid Spencer2706f8c2004-09-19 23:53:36 +000017398echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17399echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17400hardcode_action_CXX=
17401if test -n "$hardcode_libdir_flag_spec_CXX" || \
17402 test -n "$runpath_var_CXX" || \
17403 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17404
17405 # We can hardcode non-existant directories.
17406 if test "$hardcode_direct_CXX" != no &&
17407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17408 # have to relink, otherwise we might link with an installed library
17409 # when we should be linking with a yet-to-be-installed one
17410 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17411 test "$hardcode_minus_L_CXX" != no; then
17412 # Linking always hardcodes the temporary library directory.
17413 hardcode_action_CXX=relink
17414 else
17415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17416 hardcode_action_CXX=immediate
17417 fi
17418else
17419 # We cannot hardcode anything, or else we can only hardcode existing
17420 # directories.
17421 hardcode_action_CXX=unsupported
17422fi
17423echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17424echo "${ECHO_T}$hardcode_action_CXX" >&6
17425
17426if test "$hardcode_action_CXX" = relink; then
17427 # Fast installation is not supported
17428 enable_fast_install=no
17429elif test "$shlibpath_overrides_runpath" = yes ||
17430 test "$enable_shared" = no; then
17431 # Fast installation is not necessary
17432 enable_fast_install=needless
17433fi
17434
17435striplib=
17436old_striplib=
17437echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17438echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17439if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17440 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17441 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17442 echo "$as_me:$LINENO: result: yes" >&5
17443echo "${ECHO_T}yes" >&6
17444else
17445# FIXME - insert some real tests, host_os isn't really good enough
17446 case $host_os in
17447 darwin*)
17448 if test -n "$STRIP" ; then
17449 striplib="$STRIP -x"
17450 echo "$as_me:$LINENO: result: yes" >&5
17451echo "${ECHO_T}yes" >&6
17452 else
17453 echo "$as_me:$LINENO: result: no" >&5
17454echo "${ECHO_T}no" >&6
17455fi
17456 ;;
17457 *)
17458 echo "$as_me:$LINENO: result: no" >&5
17459echo "${ECHO_T}no" >&6
17460 ;;
17461 esac
17462fi
17463
John Criswell47fdd832003-07-14 16:52:07 +000017464if test "x$enable_dlopen" != xyes; then
17465 enable_dlopen=unknown
17466 enable_dlopen_self=unknown
17467 enable_dlopen_self_static=unknown
17468else
17469 lt_cv_dlopen=no
17470 lt_cv_dlopen_libs=
17471
17472 case $host_os in
17473 beos*)
17474 lt_cv_dlopen="load_add_on"
17475 lt_cv_dlopen_libs=
17476 lt_cv_dlopen_self=yes
17477 ;;
17478
17479 mingw* | pw32*)
17480 lt_cv_dlopen="LoadLibrary"
17481 lt_cv_dlopen_libs=
17482 ;;
17483
17484 cygwin*)
17485 lt_cv_dlopen="dlopen"
17486 lt_cv_dlopen_libs=
17487 ;;
17488
17489 darwin*)
17490 # if libdl is installed we need to link against it
17491 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17492echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17493if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495else
17496 ac_check_lib_save_LIBS=$LIBS
17497LIBS="-ldl $LIBS"
17498cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017504
17505/* Override any gcc2 internal prototype to avoid an error. */
17506#ifdef __cplusplus
17507extern "C"
17508#endif
17509/* We use char because int might match the return type of a gcc2
17510 builtin and then its argument prototype would still apply. */
17511char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017512int
17513main ()
17514{
17515dlopen ();
17516 ;
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_lib_dl_dlopen=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_lib_dl_dlopen=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 +000017551LIBS=$ac_check_lib_save_LIBS
17552fi
17553echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17554echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17555if test $ac_cv_lib_dl_dlopen = yes; then
17556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17557else
17558
17559 lt_cv_dlopen="dyld"
17560 lt_cv_dlopen_libs=
17561 lt_cv_dlopen_self=yes
17562
17563fi
17564
17565 ;;
17566
17567 *)
17568 echo "$as_me:$LINENO: checking for shl_load" >&5
17569echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17570if test "${ac_cv_func_shl_load+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572else
17573 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017574/* confdefs.h. */
17575_ACEOF
17576cat confdefs.h >>conftest.$ac_ext
17577cat >>conftest.$ac_ext <<_ACEOF
17578/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017579/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17581#define shl_load innocuous_shl_load
17582
John Criswell47fdd832003-07-14 16:52:07 +000017583/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017584 which can conflict with char shl_load (); below.
17585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017587
John Criswell0c38eaf2003-09-10 15:17:25 +000017588#ifdef __STDC__
17589# include <limits.h>
17590#else
17591# include <assert.h>
17592#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017593
17594#undef shl_load
17595
John Criswell47fdd832003-07-14 16:52:07 +000017596/* Override any gcc2 internal prototype to avoid an error. */
17597#ifdef __cplusplus
17598extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017599{
John Criswell47fdd832003-07-14 16:52:07 +000017600#endif
17601/* We use char because int might match the return type of a gcc2
17602 builtin and then its argument prototype would still apply. */
17603char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017604/* The GNU C library defines this for functions which it implements
17605 to always fail with ENOSYS. Some functions are actually named
17606 something starting with __ and the normal name is an alias. */
17607#if defined (__stub_shl_load) || defined (__stub___shl_load)
17608choke me
17609#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017610char (*f) () = shl_load;
17611#endif
17612#ifdef __cplusplus
17613}
John Criswell47fdd832003-07-14 16:52:07 +000017614#endif
17615
John Criswell0c38eaf2003-09-10 15:17:25 +000017616int
17617main ()
17618{
17619return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017620 ;
17621 return 0;
17622}
17623_ACEOF
17624rm -f conftest.$ac_objext conftest$ac_exeext
17625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017626 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017627 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017633 { ac_try='test -z "$ac_cxx_werror_flag"
17634 || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_func_shl_load=yes
17647else
17648 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017649sed 's/^/| /' conftest.$ac_ext >&5
17650
John Criswell47fdd832003-07-14 16:52:07 +000017651ac_cv_func_shl_load=no
17652fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017653rm -f conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017655fi
17656echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17657echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17658if test $ac_cv_func_shl_load = yes; then
17659 lt_cv_dlopen="shl_load"
17660else
17661 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17662echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17663if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665else
17666 ac_check_lib_save_LIBS=$LIBS
17667LIBS="-ldld $LIBS"
17668cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017669/* confdefs.h. */
17670_ACEOF
17671cat confdefs.h >>conftest.$ac_ext
17672cat >>conftest.$ac_ext <<_ACEOF
17673/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017674
17675/* Override any gcc2 internal prototype to avoid an error. */
17676#ifdef __cplusplus
17677extern "C"
17678#endif
17679/* We use char because int might match the return type of a gcc2
17680 builtin and then its argument prototype would still apply. */
17681char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017682int
17683main ()
17684{
17685shl_load ();
17686 ;
17687 return 0;
17688}
17689_ACEOF
17690rm -f conftest.$ac_objext conftest$ac_exeext
17691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017692 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017693 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017699 { ac_try='test -z "$ac_cxx_werror_flag"
17700 || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_lib_dld_shl_load=yes
17713else
17714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017715sed 's/^/| /' conftest.$ac_ext >&5
17716
John Criswell47fdd832003-07-14 16:52:07 +000017717ac_cv_lib_dld_shl_load=no
17718fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017719rm -f conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017721LIBS=$ac_check_lib_save_LIBS
17722fi
17723echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17724echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17725if test $ac_cv_lib_dld_shl_load = yes; then
17726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17727else
17728 echo "$as_me:$LINENO: checking for dlopen" >&5
17729echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17730if test "${ac_cv_func_dlopen+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17732else
17733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017734/* confdefs.h. */
17735_ACEOF
17736cat confdefs.h >>conftest.$ac_ext
17737cat >>conftest.$ac_ext <<_ACEOF
17738/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017739/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17741#define dlopen innocuous_dlopen
17742
John Criswell47fdd832003-07-14 16:52:07 +000017743/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017744 which can conflict with char dlopen (); below.
17745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17746 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017747
John Criswell0c38eaf2003-09-10 15:17:25 +000017748#ifdef __STDC__
17749# include <limits.h>
17750#else
17751# include <assert.h>
17752#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017753
17754#undef dlopen
17755
John Criswell47fdd832003-07-14 16:52:07 +000017756/* Override any gcc2 internal prototype to avoid an error. */
17757#ifdef __cplusplus
17758extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017759{
John Criswell47fdd832003-07-14 16:52:07 +000017760#endif
17761/* We use char because int might match the return type of a gcc2
17762 builtin and then its argument prototype would still apply. */
17763char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017764/* The GNU C library defines this for functions which it implements
17765 to always fail with ENOSYS. Some functions are actually named
17766 something starting with __ and the normal name is an alias. */
17767#if defined (__stub_dlopen) || defined (__stub___dlopen)
17768choke me
17769#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017770char (*f) () = dlopen;
17771#endif
17772#ifdef __cplusplus
17773}
John Criswell47fdd832003-07-14 16:52:07 +000017774#endif
17775
John Criswell0c38eaf2003-09-10 15:17:25 +000017776int
17777main ()
17778{
17779return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017780 ;
17781 return 0;
17782}
17783_ACEOF
17784rm -f conftest.$ac_objext conftest$ac_exeext
17785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017786 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017793 { ac_try='test -z "$ac_cxx_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_func_dlopen=yes
17807else
17808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017809sed 's/^/| /' conftest.$ac_ext >&5
17810
John Criswell47fdd832003-07-14 16:52:07 +000017811ac_cv_func_dlopen=no
17812fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017813rm -f conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017815fi
17816echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17817echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17818if test $ac_cv_func_dlopen = yes; then
17819 lt_cv_dlopen="dlopen"
17820else
17821 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17822echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17823if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825else
17826 ac_check_lib_save_LIBS=$LIBS
17827LIBS="-ldl $LIBS"
17828cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017829/* confdefs.h. */
17830_ACEOF
17831cat confdefs.h >>conftest.$ac_ext
17832cat >>conftest.$ac_ext <<_ACEOF
17833/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017834
17835/* Override any gcc2 internal prototype to avoid an error. */
17836#ifdef __cplusplus
17837extern "C"
17838#endif
17839/* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017842int
17843main ()
17844{
17845dlopen ();
17846 ;
17847 return 0;
17848}
17849_ACEOF
17850rm -f conftest.$ac_objext conftest$ac_exeext
17851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017852 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017853 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017854 grep -v '^ *+' conftest.er1 >conftest.err
17855 rm -f conftest.er1
17856 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017859 { ac_try='test -z "$ac_cxx_werror_flag"
17860 || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 ac_cv_lib_dl_dlopen=yes
17873else
17874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017875sed 's/^/| /' conftest.$ac_ext >&5
17876
John Criswell47fdd832003-07-14 16:52:07 +000017877ac_cv_lib_dl_dlopen=no
17878fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017879rm -f conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017881LIBS=$ac_check_lib_save_LIBS
17882fi
17883echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17884echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17885if test $ac_cv_lib_dl_dlopen = yes; then
17886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17887else
17888 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17889echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17890if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892else
17893 ac_check_lib_save_LIBS=$LIBS
17894LIBS="-lsvld $LIBS"
17895cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017896/* confdefs.h. */
17897_ACEOF
17898cat confdefs.h >>conftest.$ac_ext
17899cat >>conftest.$ac_ext <<_ACEOF
17900/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017901
17902/* Override any gcc2 internal prototype to avoid an error. */
17903#ifdef __cplusplus
17904extern "C"
17905#endif
17906/* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17908char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017909int
17910main ()
17911{
17912dlopen ();
17913 ;
17914 return 0;
17915}
17916_ACEOF
17917rm -f conftest.$ac_objext conftest$ac_exeext
17918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017919 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017920 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017926 { ac_try='test -z "$ac_cxx_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_cv_lib_svld_dlopen=yes
17940else
17941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017942sed 's/^/| /' conftest.$ac_ext >&5
17943
John Criswell47fdd832003-07-14 16:52:07 +000017944ac_cv_lib_svld_dlopen=no
17945fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017946rm -f conftest.err conftest.$ac_objext \
17947 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017948LIBS=$ac_check_lib_save_LIBS
17949fi
17950echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17951echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17952if test $ac_cv_lib_svld_dlopen = yes; then
17953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17954else
17955 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17956echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17957if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17959else
17960 ac_check_lib_save_LIBS=$LIBS
17961LIBS="-ldld $LIBS"
17962cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017968
17969/* Override any gcc2 internal prototype to avoid an error. */
17970#ifdef __cplusplus
17971extern "C"
17972#endif
17973/* We use char because int might match the return type of a gcc2
17974 builtin and then its argument prototype would still apply. */
17975char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017976int
17977main ()
17978{
17979dld_link ();
17980 ;
17981 return 0;
17982}
17983_ACEOF
17984rm -f conftest.$ac_objext conftest$ac_exeext
17985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017986 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017993 { ac_try='test -z "$ac_cxx_werror_flag"
17994 || test ! -s conftest.err'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_lib_dld_dld_link=yes
18007else
18008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018009sed 's/^/| /' conftest.$ac_ext >&5
18010
John Criswell47fdd832003-07-14 16:52:07 +000018011ac_cv_lib_dld_dld_link=no
18012fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018013rm -f conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018015LIBS=$ac_check_lib_save_LIBS
18016fi
18017echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18018echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18019if test $ac_cv_lib_dld_dld_link = yes; then
18020 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18021fi
18022
18023
18024fi
18025
18026
18027fi
18028
18029
18030fi
18031
18032
18033fi
18034
18035
18036fi
18037
18038 ;;
18039 esac
18040
18041 if test "x$lt_cv_dlopen" != xno; then
18042 enable_dlopen=yes
18043 else
18044 enable_dlopen=no
18045 fi
18046
18047 case $lt_cv_dlopen in
18048 dlopen)
18049 save_CPPFLAGS="$CPPFLAGS"
18050 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18051
18052 save_LDFLAGS="$LDFLAGS"
18053 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18054
18055 save_LIBS="$LIBS"
18056 LIBS="$lt_cv_dlopen_libs $LIBS"
18057
18058 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18059echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18060if test "${lt_cv_dlopen_self+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18062else
18063 if test "$cross_compiling" = yes; then :
18064 lt_cv_dlopen_self=cross
18065else
18066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067 lt_status=$lt_dlunknown
18068 cat > conftest.$ac_ext <<EOF
Reid Spencerbe130282005-07-14 05:19:12 +000018069#line 18069 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018070#include "confdefs.h"
18071
18072#if HAVE_DLFCN_H
18073#include <dlfcn.h>
18074#endif
18075
18076#include <stdio.h>
18077
18078#ifdef RTLD_GLOBAL
18079# define LT_DLGLOBAL RTLD_GLOBAL
18080#else
18081# ifdef DL_GLOBAL
18082# define LT_DLGLOBAL DL_GLOBAL
18083# else
18084# define LT_DLGLOBAL 0
18085# endif
18086#endif
18087
18088/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089 find out it does not work in some platform. */
18090#ifndef LT_DLLAZY_OR_NOW
18091# ifdef RTLD_LAZY
18092# define LT_DLLAZY_OR_NOW RTLD_LAZY
18093# else
18094# ifdef DL_LAZY
18095# define LT_DLLAZY_OR_NOW DL_LAZY
18096# else
18097# ifdef RTLD_NOW
18098# define LT_DLLAZY_OR_NOW RTLD_NOW
18099# else
18100# ifdef DL_NOW
18101# define LT_DLLAZY_OR_NOW DL_NOW
18102# else
18103# define LT_DLLAZY_OR_NOW 0
18104# endif
18105# endif
18106# endif
18107# endif
18108#endif
18109
18110#ifdef __cplusplus
18111extern "C" void exit (int);
18112#endif
18113
18114void fnord() { int i=42;}
18115int main ()
18116{
18117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118 int status = $lt_dlunknown;
18119
18120 if (self)
18121 {
18122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124 /* dlclose (self); */
18125 }
18126
18127 exit (status);
18128}
18129EOF
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135 (./conftest; exit; ) 2>/dev/null
18136 lt_status=$?
18137 case x$lt_status in
18138 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18139 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18140 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18141 esac
18142 else :
18143 # compilation failed
18144 lt_cv_dlopen_self=no
18145 fi
18146fi
18147rm -fr conftest*
18148
18149
18150fi
18151echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18152echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18153
18154 if test "x$lt_cv_dlopen_self" = xyes; then
18155 LDFLAGS="$LDFLAGS $link_static_flag"
18156 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18157echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18158if test "${lt_cv_dlopen_self_static+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18160else
18161 if test "$cross_compiling" = yes; then :
18162 lt_cv_dlopen_self_static=cross
18163else
18164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18165 lt_status=$lt_dlunknown
18166 cat > conftest.$ac_ext <<EOF
Reid Spencerbe130282005-07-14 05:19:12 +000018167#line 18167 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018168#include "confdefs.h"
18169
18170#if HAVE_DLFCN_H
18171#include <dlfcn.h>
18172#endif
18173
18174#include <stdio.h>
18175
18176#ifdef RTLD_GLOBAL
18177# define LT_DLGLOBAL RTLD_GLOBAL
18178#else
18179# ifdef DL_GLOBAL
18180# define LT_DLGLOBAL DL_GLOBAL
18181# else
18182# define LT_DLGLOBAL 0
18183# endif
18184#endif
18185
18186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18187 find out it does not work in some platform. */
18188#ifndef LT_DLLAZY_OR_NOW
18189# ifdef RTLD_LAZY
18190# define LT_DLLAZY_OR_NOW RTLD_LAZY
18191# else
18192# ifdef DL_LAZY
18193# define LT_DLLAZY_OR_NOW DL_LAZY
18194# else
18195# ifdef RTLD_NOW
18196# define LT_DLLAZY_OR_NOW RTLD_NOW
18197# else
18198# ifdef DL_NOW
18199# define LT_DLLAZY_OR_NOW DL_NOW
18200# else
18201# define LT_DLLAZY_OR_NOW 0
18202# endif
18203# endif
18204# endif
18205# endif
18206#endif
18207
18208#ifdef __cplusplus
18209extern "C" void exit (int);
18210#endif
18211
18212void fnord() { int i=42;}
18213int main ()
18214{
18215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18216 int status = $lt_dlunknown;
18217
18218 if (self)
18219 {
18220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18222 /* dlclose (self); */
18223 }
18224
18225 exit (status);
18226}
18227EOF
18228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18229 (eval $ac_link) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18233 (./conftest; exit; ) 2>/dev/null
18234 lt_status=$?
18235 case x$lt_status in
18236 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18237 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18238 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18239 esac
18240 else :
18241 # compilation failed
18242 lt_cv_dlopen_self_static=no
18243 fi
18244fi
18245rm -fr conftest*
18246
18247
18248fi
18249echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18250echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18251 fi
18252
18253 CPPFLAGS="$save_CPPFLAGS"
18254 LDFLAGS="$save_LDFLAGS"
18255 LIBS="$save_LIBS"
18256 ;;
18257 esac
18258
18259 case $lt_cv_dlopen_self in
18260 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18261 *) enable_dlopen_self=unknown ;;
18262 esac
18263
18264 case $lt_cv_dlopen_self_static in
18265 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18266 *) enable_dlopen_self_static=unknown ;;
18267 esac
18268fi
18269
18270
18271# The else clause should only fire when bootstrapping the
18272# libtool distribution, otherwise you forgot to ship ltmain.sh
18273# with your package, and you will get complaints that there are
18274# no rules to generate ltmain.sh.
18275if test -f "$ltmain"; then
18276 # See if we are running on zsh, and set the options which allow our commands through
18277 # without removal of \ escapes.
18278 if test -n "${ZSH_VERSION+set}" ; then
18279 setopt NO_GLOB_SUBST
18280 fi
18281 # Now quote all the things that may contain metacharacters while being
18282 # careful not to overquote the AC_SUBSTed values. We take copies of the
18283 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18285 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18288 deplibs_check_method reload_flag reload_cmds need_locks \
18289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18290 lt_cv_sys_global_symbol_to_c_name_address \
18291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18292 old_postinstall_cmds old_postuninstall_cmds \
18293 compiler_CXX \
18294 CC_CXX \
18295 LD_CXX \
18296 lt_prog_compiler_wl_CXX \
18297 lt_prog_compiler_pic_CXX \
18298 lt_prog_compiler_static_CXX \
18299 lt_prog_compiler_no_builtin_flag_CXX \
18300 export_dynamic_flag_spec_CXX \
18301 thread_safe_flag_spec_CXX \
18302 whole_archive_flag_spec_CXX \
18303 enable_shared_with_static_runtimes_CXX \
18304 old_archive_cmds_CXX \
18305 old_archive_from_new_cmds_CXX \
18306 predep_objects_CXX \
18307 postdep_objects_CXX \
18308 predeps_CXX \
18309 postdeps_CXX \
18310 compiler_lib_search_path_CXX \
18311 archive_cmds_CXX \
18312 archive_expsym_cmds_CXX \
18313 postinstall_cmds_CXX \
18314 postuninstall_cmds_CXX \
18315 old_archive_from_expsyms_cmds_CXX \
18316 allow_undefined_flag_CXX \
18317 no_undefined_flag_CXX \
18318 export_symbols_cmds_CXX \
18319 hardcode_libdir_flag_spec_CXX \
18320 hardcode_libdir_flag_spec_ld_CXX \
18321 hardcode_libdir_separator_CXX \
18322 hardcode_automatic_CXX \
18323 module_cmds_CXX \
18324 module_expsym_cmds_CXX \
18325 lt_cv_prog_compiler_c_o_CXX \
18326 exclude_expsyms_CXX \
18327 include_expsyms_CXX; do
18328
18329 case $var in
18330 old_archive_cmds_CXX | \
18331 old_archive_from_new_cmds_CXX | \
18332 archive_cmds_CXX | \
18333 archive_expsym_cmds_CXX | \
18334 module_cmds_CXX | \
18335 module_expsym_cmds_CXX | \
18336 old_archive_from_expsyms_cmds_CXX | \
18337 export_symbols_cmds_CXX | \
18338 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18339 postinstall_cmds | postuninstall_cmds | \
18340 old_postinstall_cmds | old_postuninstall_cmds | \
18341 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18342 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018343 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 +000018344 ;;
18345 *)
18346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18347 ;;
18348 esac
18349 done
18350
18351 case $lt_echo in
18352 *'\$0 --fallback-echo"')
18353 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18354 ;;
18355 esac
18356
18357cfgfile="$ofile"
18358
18359 cat <<__EOF__ >> "$cfgfile"
18360# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18361
18362# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18363
18364# Shell to use when invoking shell scripts.
18365SHELL=$lt_SHELL
18366
18367# Whether or not to build shared libraries.
18368build_libtool_libs=$enable_shared
18369
18370# Whether or not to build static libraries.
18371build_old_libs=$enable_static
18372
18373# Whether or not to add -lc for building shared libraries.
18374build_libtool_need_lc=$archive_cmds_need_lc_CXX
18375
18376# Whether or not to disallow shared libs when runtime libs are static
18377allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18378
18379# Whether or not to optimize for fast installation.
18380fast_install=$enable_fast_install
18381
18382# The host system.
18383host_alias=$host_alias
18384host=$host
18385
18386# An echo program that does not interpret backslashes.
18387echo=$lt_echo
18388
18389# The archiver.
18390AR=$lt_AR
18391AR_FLAGS=$lt_AR_FLAGS
18392
18393# A C compiler.
18394LTCC=$lt_LTCC
18395
18396# A language-specific compiler.
18397CC=$lt_compiler_CXX
18398
18399# Is the compiler the GNU C compiler?
18400with_gcc=$GCC_CXX
18401
18402# An ERE matcher.
18403EGREP=$lt_EGREP
18404
18405# The linker used to build libraries.
18406LD=$lt_LD_CXX
18407
18408# Whether we need hard or soft links.
18409LN_S=$lt_LN_S
18410
18411# A BSD-compatible nm program.
18412NM=$lt_NM
18413
18414# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018415STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018416
18417# Used to examine libraries when file_magic_cmd begins "file"
18418MAGIC_CMD=$MAGIC_CMD
18419
18420# Used on cygwin: DLL creation program.
18421DLLTOOL="$DLLTOOL"
18422
18423# Used on cygwin: object dumper.
18424OBJDUMP="$OBJDUMP"
18425
18426# Used on cygwin: assembler.
18427AS="$AS"
18428
18429# The name of the directory that contains temporary libtool files.
18430objdir=$objdir
18431
18432# How to create reloadable object files.
18433reload_flag=$lt_reload_flag
18434reload_cmds=$lt_reload_cmds
18435
18436# How to pass a linker flag through the compiler.
18437wl=$lt_lt_prog_compiler_wl_CXX
18438
18439# Object file suffix (normally "o").
18440objext="$ac_objext"
18441
18442# Old archive suffix (normally "a").
18443libext="$libext"
18444
18445# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018446shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018447
18448# Executable file suffix (normally "").
18449exeext="$exeext"
18450
18451# Additional compiler flags for building library objects.
18452pic_flag=$lt_lt_prog_compiler_pic_CXX
18453pic_mode=$pic_mode
18454
18455# What is the maximum length of a command?
18456max_cmd_len=$lt_cv_sys_max_cmd_len
18457
18458# Does compiler simultaneously support -c and -o options?
18459compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18460
18461# Must we lock files when doing compilation ?
18462need_locks=$lt_need_locks
18463
18464# Do we need the lib prefix for modules?
18465need_lib_prefix=$need_lib_prefix
18466
18467# Do we need a version for libraries?
18468need_version=$need_version
18469
18470# Whether dlopen is supported.
18471dlopen_support=$enable_dlopen
18472
18473# Whether dlopen of programs is supported.
18474dlopen_self=$enable_dlopen_self
18475
18476# Whether dlopen of statically linked programs is supported.
18477dlopen_self_static=$enable_dlopen_self_static
18478
18479# Compiler flag to prevent dynamic linking.
18480link_static_flag=$lt_lt_prog_compiler_static_CXX
18481
18482# Compiler flag to turn off builtin functions.
18483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18484
18485# Compiler flag to allow reflexive dlopens.
18486export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18487
18488# Compiler flag to generate shared objects directly from archives.
18489whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18490
18491# Compiler flag to generate thread-safe objects.
18492thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18493
18494# Library versioning type.
18495version_type=$version_type
18496
18497# Format of library name prefix.
18498libname_spec=$lt_libname_spec
18499
18500# List of archive names. First name is the real one, the rest are links.
18501# The last name is the one that the linker finds with -lNAME.
18502library_names_spec=$lt_library_names_spec
18503
18504# The coded name of the library, if different from the real name.
18505soname_spec=$lt_soname_spec
18506
18507# Commands used to build and install an old-style archive.
18508RANLIB=$lt_RANLIB
18509old_archive_cmds=$lt_old_archive_cmds_CXX
18510old_postinstall_cmds=$lt_old_postinstall_cmds
18511old_postuninstall_cmds=$lt_old_postuninstall_cmds
18512
18513# Create an old-style archive from a shared archive.
18514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18515
18516# Create a temporary old-style archive to link instead of a shared archive.
18517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18518
18519# Commands used to build and install a shared archive.
18520archive_cmds=$lt_archive_cmds_CXX
18521archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18522postinstall_cmds=$lt_postinstall_cmds
18523postuninstall_cmds=$lt_postuninstall_cmds
18524
18525# Commands used to build a loadable module (assumed same as above if empty)
18526module_cmds=$lt_module_cmds_CXX
18527module_expsym_cmds=$lt_module_expsym_cmds_CXX
18528
18529# Commands to strip libraries.
18530old_striplib=$lt_old_striplib
18531striplib=$lt_striplib
18532
18533# Dependencies to place before the objects being linked to create a
18534# shared library.
18535predep_objects=$lt_predep_objects_CXX
18536
18537# Dependencies to place after the objects being linked to create a
18538# shared library.
18539postdep_objects=$lt_postdep_objects_CXX
18540
18541# Dependencies to place before the objects being linked to create a
18542# shared library.
18543predeps=$lt_predeps_CXX
18544
18545# Dependencies to place after the objects being linked to create a
18546# shared library.
18547postdeps=$lt_postdeps_CXX
18548
18549# The library search path used internally by the compiler when linking
18550# a shared library.
18551compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18552
18553# Method to check whether dependent libraries are shared objects.
18554deplibs_check_method=$lt_deplibs_check_method
18555
18556# Command to use when deplibs_check_method == file_magic.
18557file_magic_cmd=$lt_file_magic_cmd
18558
18559# Flag that allows shared libraries with undefined symbols to be built.
18560allow_undefined_flag=$lt_allow_undefined_flag_CXX
18561
18562# Flag that forces no undefined symbols.
18563no_undefined_flag=$lt_no_undefined_flag_CXX
18564
18565# Commands used to finish a libtool library installation in a directory.
18566finish_cmds=$lt_finish_cmds
18567
18568# Same as above, but a single script fragment to be evaled but not shown.
18569finish_eval=$lt_finish_eval
18570
18571# Take the output of nm and produce a listing of raw symbols and C names.
18572global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18573
18574# Transform the output of nm in a proper C declaration
18575global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18576
18577# Transform the output of nm in a C name address pair
18578global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18579
18580# This is the shared library runtime path variable.
18581runpath_var=$runpath_var
18582
18583# This is the shared library path variable.
18584shlibpath_var=$shlibpath_var
18585
18586# Is shlibpath searched before the hard-coded library search path?
18587shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18588
18589# How to hardcode a shared library path into an executable.
18590hardcode_action=$hardcode_action_CXX
18591
18592# Whether we should hardcode library paths into libraries.
18593hardcode_into_libs=$hardcode_into_libs
18594
18595# Flag to hardcode \$libdir into a binary during linking.
18596# This must work even if \$libdir does not exist.
18597hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18598
18599# If ld is used when linking, flag to hardcode \$libdir into
18600# a binary during linking. This must work even if \$libdir does
18601# not exist.
18602hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18603
18604# Whether we need a single -rpath flag with a separated argument.
18605hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18606
18607# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18608# resulting binary.
18609hardcode_direct=$hardcode_direct_CXX
18610
18611# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18612# resulting binary.
18613hardcode_minus_L=$hardcode_minus_L_CXX
18614
18615# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18616# the resulting binary.
18617hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18618
18619# Set to yes if building a shared library automatically hardcodes DIR into the library
18620# and all subsequent libraries and executables linked against it.
18621hardcode_automatic=$hardcode_automatic_CXX
18622
18623# Variables whose values should be saved in libtool wrapper scripts and
18624# restored at relink time.
18625variables_saved_for_relink="$variables_saved_for_relink"
18626
18627# Whether libtool must link a program against all its dependency libraries.
18628link_all_deplibs=$link_all_deplibs_CXX
18629
18630# Compile-time system search path for libraries
18631sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18632
18633# Run-time system search path for libraries
18634sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18635
18636# Fix the shell variable \$srcfile for the compiler.
18637fix_srcfile_path="$fix_srcfile_path_CXX"
18638
18639# Set to yes if exported symbols are required.
18640always_export_symbols=$always_export_symbols_CXX
18641
18642# The commands to list exported symbols.
18643export_symbols_cmds=$lt_export_symbols_cmds_CXX
18644
18645# The commands to extract the exported symbol list from a shared archive.
18646extract_expsyms_cmds=$lt_extract_expsyms_cmds
18647
18648# Symbols that should not be listed in the preloaded symbols.
18649exclude_expsyms=$lt_exclude_expsyms_CXX
18650
18651# Symbols that must always be exported.
18652include_expsyms=$lt_include_expsyms_CXX
18653
18654# ### END LIBTOOL TAG CONFIG: $tagname
18655
18656__EOF__
18657
18658
18659else
18660 # If there is no Makefile yet, we rely on a make rule to execute
18661 # `config.status --recheck' to rerun these tests and create the
18662 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018663 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18664 if test -f "$ltmain_in"; then
18665 test -f Makefile && make "$ltmain"
18666 fi
John Criswell47fdd832003-07-14 16:52:07 +000018667fi
18668
18669
18670ac_ext=c
18671ac_cpp='$CPP $CPPFLAGS'
18672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675
18676CC=$lt_save_CC
18677LDCXX=$LD
18678LD=$lt_save_LD
18679GCC=$lt_save_GCC
18680with_gnu_ldcxx=$with_gnu_ld
18681with_gnu_ld=$lt_save_with_gnu_ld
18682lt_cv_path_LDCXX=$lt_cv_path_LD
18683lt_cv_path_LD=$lt_save_path_LD
18684lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18685lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18686
18687 else
18688 tagname=""
18689 fi
18690 ;;
18691
18692 F77)
18693 if test -n "$F77" && test "X$F77" != "Xno"; then
18694
18695ac_ext=f
18696ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18697ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18698ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18699
18700
18701archive_cmds_need_lc_F77=no
18702allow_undefined_flag_F77=
18703always_export_symbols_F77=no
18704archive_expsym_cmds_F77=
18705export_dynamic_flag_spec_F77=
18706hardcode_direct_F77=no
18707hardcode_libdir_flag_spec_F77=
18708hardcode_libdir_flag_spec_ld_F77=
18709hardcode_libdir_separator_F77=
18710hardcode_minus_L_F77=no
18711hardcode_automatic_F77=no
18712module_cmds_F77=
18713module_expsym_cmds_F77=
18714link_all_deplibs_F77=unknown
18715old_archive_cmds_F77=$old_archive_cmds
18716no_undefined_flag_F77=
18717whole_archive_flag_spec_F77=
18718enable_shared_with_static_runtimes_F77=no
18719
18720# Source file extension for f77 test sources.
18721ac_ext=f
18722
18723# Object file extension for compiled f77 test sources.
18724objext=o
18725objext_F77=$objext
18726
18727# Code to be used in simple compile tests
18728lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18729
18730# Code to be used in simple link tests
18731lt_simple_link_test_code=" program t\n end\n"
18732
18733# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18734
18735# If no C compiler was specified, use CC.
18736LTCC=${LTCC-"$CC"}
18737
18738# Allow CC to be a program name with arguments.
18739compiler=$CC
18740
18741
18742# Allow CC to be a program name with arguments.
18743lt_save_CC="$CC"
18744CC=${F77-"f77"}
18745compiler=$CC
18746compiler_F77=$CC
18747cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18748
18749echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18750echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18751echo "$as_me:$LINENO: result: $can_build_shared" >&5
18752echo "${ECHO_T}$can_build_shared" >&6
18753
18754echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18755echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18756test "$can_build_shared" = "no" && enable_shared=no
18757
18758# On AIX, shared libraries and static libraries use the same namespace, and
18759# are all built from PIC.
18760case "$host_os" in
18761aix3*)
18762 test "$enable_shared" = yes && enable_static=no
18763 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018764 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018765 postinstall_cmds='$RANLIB $lib'
18766 fi
18767 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018768aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018769 test "$enable_shared" = yes && enable_static=no
18770 ;;
18771esac
18772echo "$as_me:$LINENO: result: $enable_shared" >&5
18773echo "${ECHO_T}$enable_shared" >&6
18774
18775echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18776echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18777# Make sure either enable_shared or enable_static is yes.
18778test "$enable_shared" = yes || enable_static=yes
18779echo "$as_me:$LINENO: result: $enable_static" >&5
18780echo "${ECHO_T}$enable_static" >&6
18781
18782test "$ld_shlibs_F77" = no && can_build_shared=no
18783
18784GCC_F77="$G77"
18785LD_F77="$LD"
18786
18787lt_prog_compiler_wl_F77=
18788lt_prog_compiler_pic_F77=
18789lt_prog_compiler_static_F77=
18790
18791echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18792echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18793
18794 if test "$GCC" = yes; then
18795 lt_prog_compiler_wl_F77='-Wl,'
18796 lt_prog_compiler_static_F77='-static'
18797
18798 case $host_os in
18799 aix*)
18800 # All AIX code is PIC.
18801 if test "$host_cpu" = ia64; then
18802 # AIX 5 now supports IA64 processor
18803 lt_prog_compiler_static_F77='-Bstatic'
18804 fi
18805 ;;
18806
18807 amigaos*)
18808 # FIXME: we need at least 68020 code to build shared libraries, but
18809 # adding the `-m68020' flag to GCC prevents building anything better,
18810 # like `-m68040'.
18811 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18812 ;;
18813
18814 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18815 # PIC is the default for these OSes.
18816 ;;
18817
18818 mingw* | pw32* | os2*)
18819 # This hack is so that the source file can tell whether it is being
18820 # built for inclusion in a dll (and should export symbols for example).
18821 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18822 ;;
18823
18824 darwin* | rhapsody*)
18825 # PIC is the default on this platform
18826 # Common symbols not allowed in MH_DYLIB files
18827 lt_prog_compiler_pic_F77='-fno-common'
18828 ;;
18829
18830 msdosdjgpp*)
18831 # Just because we use GCC doesn't mean we suddenly get shared libraries
18832 # on systems that don't support them.
18833 lt_prog_compiler_can_build_shared_F77=no
18834 enable_shared=no
18835 ;;
18836
18837 sysv4*MP*)
18838 if test -d /usr/nec; then
18839 lt_prog_compiler_pic_F77=-Kconform_pic
18840 fi
18841 ;;
18842
18843 hpux*)
18844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18845 # not for PA HP-UX.
18846 case "$host_cpu" in
18847 hppa*64*|ia64*)
18848 # +Z the default
18849 ;;
18850 *)
18851 lt_prog_compiler_pic_F77='-fPIC'
18852 ;;
18853 esac
18854 ;;
18855
18856 *)
18857 lt_prog_compiler_pic_F77='-fPIC'
18858 ;;
18859 esac
18860 else
18861 # PORTME Check for flag to pass linker flags through the system compiler.
18862 case $host_os in
18863 aix*)
18864 lt_prog_compiler_wl_F77='-Wl,'
18865 if test "$host_cpu" = ia64; then
18866 # AIX 5 now supports IA64 processor
18867 lt_prog_compiler_static_F77='-Bstatic'
18868 else
18869 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18870 fi
18871 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018872 darwin*)
18873 # PIC is the default on this platform
18874 # Common symbols not allowed in MH_DYLIB files
18875 case "$cc_basename" in
18876 xlc*)
18877 lt_prog_compiler_pic_F77='-qnocommon'
18878 lt_prog_compiler_wl_F77='-Wl,'
18879 ;;
18880 esac
18881 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018882
18883 mingw* | pw32* | os2*)
18884 # This hack is so that the source file can tell whether it is being
18885 # built for inclusion in a dll (and should export symbols for example).
18886 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18887 ;;
18888
18889 hpux9* | hpux10* | hpux11*)
18890 lt_prog_compiler_wl_F77='-Wl,'
18891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18892 # not for PA HP-UX.
18893 case "$host_cpu" in
18894 hppa*64*|ia64*)
18895 # +Z the default
18896 ;;
18897 *)
18898 lt_prog_compiler_pic_F77='+Z'
18899 ;;
18900 esac
18901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18902 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18903 ;;
18904
18905 irix5* | irix6* | nonstopux*)
18906 lt_prog_compiler_wl_F77='-Wl,'
18907 # PIC (with -KPIC) is the default.
18908 lt_prog_compiler_static_F77='-non_shared'
18909 ;;
18910
18911 newsos6)
18912 lt_prog_compiler_pic_F77='-KPIC'
18913 lt_prog_compiler_static_F77='-Bstatic'
18914 ;;
18915
18916 linux*)
18917 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018918 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018919 lt_prog_compiler_wl_F77='-Wl,'
18920 lt_prog_compiler_pic_F77='-KPIC'
18921 lt_prog_compiler_static_F77='-static'
18922 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018923 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018924 lt_prog_compiler_wl_F77='-Wl,'
18925 # All Alpha code is PIC.
18926 lt_prog_compiler_static_F77='-non_shared'
18927 ;;
18928 esac
18929 ;;
18930
18931 osf3* | osf4* | osf5*)
18932 lt_prog_compiler_wl_F77='-Wl,'
18933 # All OSF/1 code is PIC.
18934 lt_prog_compiler_static_F77='-non_shared'
18935 ;;
18936
18937 sco3.2v5*)
18938 lt_prog_compiler_pic_F77='-Kpic'
18939 lt_prog_compiler_static_F77='-dn'
18940 ;;
18941
18942 solaris*)
18943 lt_prog_compiler_wl_F77='-Wl,'
18944 lt_prog_compiler_pic_F77='-KPIC'
18945 lt_prog_compiler_static_F77='-Bstatic'
18946 ;;
18947
18948 sunos4*)
18949 lt_prog_compiler_wl_F77='-Qoption ld '
18950 lt_prog_compiler_pic_F77='-PIC'
18951 lt_prog_compiler_static_F77='-Bstatic'
18952 ;;
18953
18954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18955 lt_prog_compiler_wl_F77='-Wl,'
18956 lt_prog_compiler_pic_F77='-KPIC'
18957 lt_prog_compiler_static_F77='-Bstatic'
18958 ;;
18959
18960 sysv4*MP*)
18961 if test -d /usr/nec ;then
18962 lt_prog_compiler_pic_F77='-Kconform_pic'
18963 lt_prog_compiler_static_F77='-Bstatic'
18964 fi
18965 ;;
18966
18967 uts4*)
18968 lt_prog_compiler_pic_F77='-pic'
18969 lt_prog_compiler_static_F77='-Bstatic'
18970 ;;
18971
18972 *)
18973 lt_prog_compiler_can_build_shared_F77=no
18974 ;;
18975 esac
18976 fi
18977
18978echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18979echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18980
18981#
18982# Check to make sure the PIC flag actually works.
18983#
18984if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018985
18986echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018987echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18988if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990else
18991 lt_prog_compiler_pic_works_F77=no
18992 ac_outfile=conftest.$ac_objext
18993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18994 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18995 # Insert the option either (1) after the last *FLAGS variable, or
18996 # (2) before a word containing "conftest.", or (3) at the end.
18997 # Note that $ac_compile itself does not contain backslashes and begins
18998 # with a dollar sign (not a hyphen), so the echo should work correctly.
18999 # The option is referenced via a variable to avoid confusing sed.
19000 lt_compile=`echo "$ac_compile" | $SED \
19001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19003 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000019004 (eval echo "\"\$as_me:19004: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019005 (eval "$lt_compile" 2>conftest.err)
19006 ac_status=$?
19007 cat conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000019008 echo "$as_me:19008: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019009 if (exit $ac_status) && test -s "$ac_outfile"; then
19010 # The compiler can only warn and ignore the option if not recognized
19011 # So say no if there are warnings
19012 if test ! -s conftest.err; then
19013 lt_prog_compiler_pic_works_F77=yes
19014 fi
19015 fi
19016 $rm conftest*
19017
19018fi
19019echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19020echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19021
19022if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19023 case $lt_prog_compiler_pic_F77 in
19024 "" | " "*) ;;
19025 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19026 esac
19027else
19028 lt_prog_compiler_pic_F77=
19029 lt_prog_compiler_can_build_shared_F77=no
19030fi
19031
19032fi
19033case "$host_os" in
19034 # For platforms which do not support PIC, -DPIC is meaningless:
19035 *djgpp*)
19036 lt_prog_compiler_pic_F77=
19037 ;;
19038 *)
19039 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19040 ;;
19041esac
19042
19043echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19044echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19045if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047else
19048 lt_cv_prog_compiler_c_o_F77=no
19049 $rm -r conftest 2>/dev/null
19050 mkdir conftest
19051 cd conftest
19052 mkdir out
19053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19054
John Criswell47fdd832003-07-14 16:52:07 +000019055 lt_compiler_flag="-o out/conftest2.$ac_objext"
19056 # Insert the option either (1) after the last *FLAGS variable, or
19057 # (2) before a word containing "conftest.", or (3) at the end.
19058 # Note that $ac_compile itself does not contain backslashes and begins
19059 # with a dollar sign (not a hyphen), so the echo should work correctly.
19060 lt_compile=`echo "$ac_compile" | $SED \
19061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19063 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000019064 (eval echo "\"\$as_me:19064: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019065 (eval "$lt_compile" 2>out/conftest.err)
19066 ac_status=$?
19067 cat out/conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000019068 echo "$as_me:19068: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19070 then
19071 # The compiler can only warn and ignore the option if not recognized
19072 # So say no if there are warnings
19073 if test ! -s out/conftest.err; then
19074 lt_cv_prog_compiler_c_o_F77=yes
19075 fi
19076 fi
19077 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019078 $rm conftest*
19079 # SGI C++ compiler will create directory out/ii_files/ for
19080 # template instantiation
19081 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19082 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019083 cd ..
19084 rmdir conftest
19085 $rm conftest*
19086
19087fi
19088echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19089echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19090
19091
19092hard_links="nottested"
19093if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19094 # do not overwrite the value of need_locks provided by the user
19095 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19096echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19097 hard_links=yes
19098 $rm conftest*
19099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19100 touch conftest.a
19101 ln conftest.a conftest.b 2>&5 || hard_links=no
19102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19103 echo "$as_me:$LINENO: result: $hard_links" >&5
19104echo "${ECHO_T}$hard_links" >&6
19105 if test "$hard_links" = no; then
19106 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19107echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19108 need_locks=warn
19109 fi
19110else
19111 need_locks=no
19112fi
19113
19114echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19115echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19116
19117 runpath_var=
19118 allow_undefined_flag_F77=
19119 enable_shared_with_static_runtimes_F77=no
19120 archive_cmds_F77=
19121 archive_expsym_cmds_F77=
19122 old_archive_From_new_cmds_F77=
19123 old_archive_from_expsyms_cmds_F77=
19124 export_dynamic_flag_spec_F77=
19125 whole_archive_flag_spec_F77=
19126 thread_safe_flag_spec_F77=
19127 hardcode_libdir_flag_spec_F77=
19128 hardcode_libdir_flag_spec_ld_F77=
19129 hardcode_libdir_separator_F77=
19130 hardcode_direct_F77=no
19131 hardcode_minus_L_F77=no
19132 hardcode_shlibpath_var_F77=unsupported
19133 link_all_deplibs_F77=unknown
19134 hardcode_automatic_F77=no
19135 module_cmds_F77=
19136 module_expsym_cmds_F77=
19137 always_export_symbols_F77=no
19138 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19139 # include_expsyms should be a list of space-separated symbols to be *always*
19140 # included in the symbol list
19141 include_expsyms_F77=
19142 # exclude_expsyms can be an extended regexp of symbols to exclude
19143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19145 # as well as any symbol that contains `d'.
19146 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19148 # platforms (ab)use it in PIC code, but their linkers get confused if
19149 # the symbol is explicitly referenced. Since portable code cannot
19150 # rely on this symbol name, it's probably fine to never include it in
19151 # preloaded symbol tables.
19152 extract_expsyms_cmds=
19153
19154 case $host_os in
19155 cygwin* | mingw* | pw32*)
19156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19157 # When not using gcc, we currently assume that we are using
19158 # Microsoft Visual C++.
19159 if test "$GCC" != yes; then
19160 with_gnu_ld=no
19161 fi
19162 ;;
19163 openbsd*)
19164 with_gnu_ld=no
19165 ;;
19166 esac
19167
19168 ld_shlibs_F77=yes
19169 if test "$with_gnu_ld" = yes; then
19170 # If archive_cmds runs LD, not CC, wlarc should be empty
19171 wlarc='${wl}'
19172
19173 # See if GNU ld supports shared libraries.
19174 case $host_os in
19175 aix3* | aix4* | aix5*)
19176 # On AIX/PPC, the GNU linker is very broken
19177 if test "$host_cpu" != ia64; then
19178 ld_shlibs_F77=no
19179 cat <<EOF 1>&2
19180
19181*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19182*** to be unable to reliably create shared libraries on AIX.
19183*** Therefore, libtool is disabling shared libraries support. If you
19184*** really care for shared libraries, you may want to modify your PATH
19185*** so that a non-GNU linker is found, and then restart.
19186
19187EOF
19188 fi
19189 ;;
19190
19191 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019192 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 +000019193 hardcode_libdir_flag_spec_F77='-L$libdir'
19194 hardcode_minus_L_F77=yes
19195
19196 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19197 # that the semantics of dynamic libraries on AmigaOS, at least up
19198 # to version 4, is to share data among multiple programs linked
19199 # with the same dynamic library. Since this doesn't match the
19200 # behavior of shared libraries on other platforms, we can't use
19201 # them.
19202 ld_shlibs_F77=no
19203 ;;
19204
19205 beos*)
19206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19207 allow_undefined_flag_F77=unsupported
19208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19209 # support --undefined. This deserves some investigation. FIXME
19210 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19211 else
19212 ld_shlibs_F77=no
19213 fi
19214 ;;
19215
19216 cygwin* | mingw* | pw32*)
19217 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19218 # as there is no search path for DLLs.
19219 hardcode_libdir_flag_spec_F77='-L$libdir'
19220 allow_undefined_flag_F77=unsupported
19221 always_export_symbols_F77=no
19222 enable_shared_with_static_runtimes_F77=yes
19223 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19224
19225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19226 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19227 # If the export-symbols file already is a .def file (1st line
19228 # is EXPORTS), use it as is; otherwise, prepend...
19229 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19230 cp $export_symbols $output_objdir/$soname.def;
19231 else
19232 echo EXPORTS > $output_objdir/$soname.def;
19233 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019234 fi~
19235 $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 +000019236 else
19237 ld_shlibs=no
19238 fi
19239 ;;
19240
19241 netbsd*)
19242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19243 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19244 wlarc=
19245 else
19246 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19247 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19248 fi
19249 ;;
19250
19251 solaris* | sysv5*)
19252 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19253 ld_shlibs_F77=no
19254 cat <<EOF 1>&2
19255
19256*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19257*** create shared libraries on Solaris systems. Therefore, libtool
19258*** is disabling shared libraries support. We urge you to upgrade GNU
19259*** binutils to release 2.9.1 or newer. Another option is to modify
19260*** your PATH or compiler configuration so that the native linker is
19261*** used, and then restart.
19262
19263EOF
19264 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19266 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19267 else
19268 ld_shlibs_F77=no
19269 fi
19270 ;;
19271
19272 sunos4*)
19273 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19274 wlarc=
19275 hardcode_direct_F77=yes
19276 hardcode_shlibpath_var_F77=no
19277 ;;
19278
Reid Spencer2706f8c2004-09-19 23:53:36 +000019279 linux*)
19280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19281 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19282 archive_cmds_F77="$tmp_archive_cmds"
19283 supports_anon_versioning=no
19284 case `$LD -v 2>/dev/null` in
19285 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19286 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19287 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19288 *\ 2.11.*) ;; # other 2.11 versions
19289 *) supports_anon_versioning=yes ;;
19290 esac
19291 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019292 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19293cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19294$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019295 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19296 else
19297 archive_expsym_cmds_F77="$tmp_archive_cmds"
19298 fi
19299 else
19300 ld_shlibs_F77=no
19301 fi
19302 ;;
19303
John Criswell47fdd832003-07-14 16:52:07 +000019304 *)
19305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19306 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19307 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19308 else
19309 ld_shlibs_F77=no
19310 fi
19311 ;;
19312 esac
19313
19314 if test "$ld_shlibs_F77" = yes; then
19315 runpath_var=LD_RUN_PATH
19316 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19317 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19318 # ancient GNU ld didn't support --whole-archive et. al.
19319 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19320 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19321 else
19322 whole_archive_flag_spec_F77=
19323 fi
19324 fi
19325 else
19326 # PORTME fill in a description of your system's linker (not GNU ld)
19327 case $host_os in
19328 aix3*)
19329 allow_undefined_flag_F77=unsupported
19330 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019331 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 +000019332 # Note: this linker hardcodes the directories in LIBPATH if there
19333 # are no directories specified by -L.
19334 hardcode_minus_L_F77=yes
19335 if test "$GCC" = yes && test -z "$link_static_flag"; then
19336 # Neither direct hardcoding nor static linking is supported with a
19337 # broken collect2.
19338 hardcode_direct_F77=unsupported
19339 fi
19340 ;;
19341
19342 aix4* | aix5*)
19343 if test "$host_cpu" = ia64; then
19344 # On IA64, the linker does run time linking by default, so we don't
19345 # have to do anything special.
19346 aix_use_runtimelinking=no
19347 exp_sym_flag='-Bexport'
19348 no_entry_flag=""
19349 else
19350 # If we're using GNU nm, then we don't want the "-C" option.
19351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19353 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'
19354 else
19355 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'
19356 fi
19357 aix_use_runtimelinking=no
19358
19359 # Test if we are trying to use run time linking or normal
19360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19361 # need to do runtime linking.
19362 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19363 for ld_flag in $LDFLAGS; do
19364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19365 aix_use_runtimelinking=yes
19366 break
19367 fi
19368 done
19369 esac
19370
19371 exp_sym_flag='-bexport'
19372 no_entry_flag='-bnoentry'
19373 fi
19374
19375 # When large executables or shared objects are built, AIX ld can
19376 # have problems creating the table of contents. If linking a library
19377 # or program results in "error TOC overflow" add -mminimal-toc to
19378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19380
19381 archive_cmds_F77=''
19382 hardcode_direct_F77=yes
19383 hardcode_libdir_separator_F77=':'
19384 link_all_deplibs_F77=yes
19385
19386 if test "$GCC" = yes; then
19387 case $host_os in aix4.012|aix4.012.*)
19388 # We only want to do this on AIX 4.2 and lower, the check
19389 # below for broken collect2 doesn't work under 4.3+
19390 collect2name=`${CC} -print-prog-name=collect2`
19391 if test -f "$collect2name" && \
19392 strings "$collect2name" | grep resolve_lib_name >/dev/null
19393 then
19394 # We have reworked collect2
19395 hardcode_direct_F77=yes
19396 else
19397 # We have old collect2
19398 hardcode_direct_F77=unsupported
19399 # It fails to find uninstalled libraries when the uninstalled
19400 # path is not listed in the libpath. Setting hardcode_minus_L
19401 # to unsupported forces relinking
19402 hardcode_minus_L_F77=yes
19403 hardcode_libdir_flag_spec_F77='-L$libdir'
19404 hardcode_libdir_separator_F77=
19405 fi
19406 esac
19407 shared_flag='-shared'
19408 else
19409 # not using gcc
19410 if test "$host_cpu" = ia64; then
19411 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19412 # chokes on -Wl,-G. The following line is correct:
19413 shared_flag='-G'
19414 else
19415 if test "$aix_use_runtimelinking" = yes; then
19416 shared_flag='${wl}-G'
19417 else
19418 shared_flag='${wl}-bM:SRE'
19419 fi
19420 fi
19421 fi
19422
19423 # It seems that -bexpall does not export symbols beginning with
19424 # underscore (_), so it is better to generate a list of symbols to export.
19425 always_export_symbols_F77=yes
19426 if test "$aix_use_runtimelinking" = yes; then
19427 # Warning - without using the other runtime loading flags (-brtl),
19428 # -berok will link without error, but may produce a broken library.
19429 allow_undefined_flag_F77='-berok'
19430 # Determine the default libpath from the value encoded in an empty executable.
19431 cat >conftest.$ac_ext <<_ACEOF
19432 program main
19433
19434 end
19435_ACEOF
19436rm -f conftest.$ac_objext conftest$ac_exeext
19437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019438 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019439 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019445 { ac_try='test -z "$ac_f77_werror_flag"
19446 || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458
19459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19460}'`
19461# Check for a 64-bit object if we didn't find anything.
19462if 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; }
19463}'`; fi
19464else
19465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019466sed 's/^/| /' conftest.$ac_ext >&5
19467
John Criswell47fdd832003-07-14 16:52:07 +000019468fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019469rm -f conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19472
19473 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19474 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"
19475 else
19476 if test "$host_cpu" = ia64; then
19477 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19478 allow_undefined_flag_F77="-z nodefs"
19479 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"
19480 else
19481 # Determine the default libpath from the value encoded in an empty executable.
19482 cat >conftest.$ac_ext <<_ACEOF
19483 program main
19484
19485 end
19486_ACEOF
19487rm -f conftest.$ac_objext conftest$ac_exeext
19488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019489 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019490 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019496 { ac_try='test -z "$ac_f77_werror_flag"
19497 || test ! -s conftest.err'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509
19510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19511}'`
19512# Check for a 64-bit object if we didn't find anything.
19513if 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; }
19514}'`; fi
19515else
19516 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019517sed 's/^/| /' conftest.$ac_ext >&5
19518
John Criswell47fdd832003-07-14 16:52:07 +000019519fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019520rm -f conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19523
19524 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19525 # Warning - without using the other run time loading flags,
19526 # -berok will link without error, but may produce a broken library.
19527 no_undefined_flag_F77=' ${wl}-bernotok'
19528 allow_undefined_flag_F77=' ${wl}-berok'
19529 # -bexpall does not export symbols beginning with underscore (_)
19530 always_export_symbols_F77=yes
19531 # Exported symbols can be pulled into shared objects from archives
19532 whole_archive_flag_spec_F77=' '
19533 archive_cmds_need_lc_F77=yes
19534 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019535 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 +000019536 fi
19537 fi
19538 ;;
19539
19540 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019541 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 +000019542 hardcode_libdir_flag_spec_F77='-L$libdir'
19543 hardcode_minus_L_F77=yes
19544 # see comment about different semantics on the GNU ld section
19545 ld_shlibs_F77=no
19546 ;;
19547
Reid Spencer2706f8c2004-09-19 23:53:36 +000019548 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019549 export_dynamic_flag_spec_F77=-rdynamic
19550 ;;
19551
19552 cygwin* | mingw* | pw32*)
19553 # When not using gcc, we currently assume that we are using
19554 # Microsoft Visual C++.
19555 # hardcode_libdir_flag_spec is actually meaningless, as there is
19556 # no search path for DLLs.
19557 hardcode_libdir_flag_spec_F77=' '
19558 allow_undefined_flag_F77=unsupported
19559 # Tell ltmain to make .lib files, not .a files.
19560 libext=lib
19561 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019562 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019563 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019564 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 +000019565 # The linker will automatically build a .lib file if we build a DLL.
19566 old_archive_From_new_cmds_F77='true'
19567 # FIXME: Should let the user specify the lib program.
19568 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19569 fix_srcfile_path='`cygpath -w "$srcfile"`'
19570 enable_shared_with_static_runtimes_F77=yes
19571 ;;
19572
19573 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019574 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019575 rhapsody* | darwin1.[012])
19576 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19577 ;;
19578 *) # Darwin 1.3 on
19579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19580 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19581 else
19582 case ${MACOSX_DEPLOYMENT_TARGET} in
19583 10.[012])
19584 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19585 ;;
19586 10.*)
19587 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19588 ;;
19589 esac
19590 fi
19591 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019592 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019593 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019594 hardcode_direct_F77=no
19595 hardcode_automatic_F77=yes
19596 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019597 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019598 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019599 if test "$GCC" = yes ; then
19600 output_verbose_link_cmd='echo'
19601 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19602 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19603 # 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 +000019604 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}'
19605 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 +000019606 else
19607 case "$cc_basename" in
19608 xlc*)
19609 output_verbose_link_cmd='echo'
19610 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19611 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19612 # 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 +000019613 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}'
19614 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 +000019615 ;;
19616 *)
19617 ld_shlibs_F77=no
19618 ;;
19619 esac
John Criswell47fdd832003-07-14 16:52:07 +000019620 fi
19621 ;;
19622
19623 dgux*)
19624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19625 hardcode_libdir_flag_spec_F77='-L$libdir'
19626 hardcode_shlibpath_var_F77=no
19627 ;;
19628
19629 freebsd1*)
19630 ld_shlibs_F77=no
19631 ;;
19632
19633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19634 # support. Future versions do this automatically, but an explicit c++rt0.o
19635 # does not break anything, and helps significantly (at the cost of a little
19636 # extra space).
19637 freebsd2.2*)
19638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19639 hardcode_libdir_flag_spec_F77='-R$libdir'
19640 hardcode_direct_F77=yes
19641 hardcode_shlibpath_var_F77=no
19642 ;;
19643
19644 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19645 freebsd2*)
19646 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19647 hardcode_direct_F77=yes
19648 hardcode_minus_L_F77=yes
19649 hardcode_shlibpath_var_F77=no
19650 ;;
19651
19652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019653 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019654 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19655 hardcode_libdir_flag_spec_F77='-R$libdir'
19656 hardcode_direct_F77=yes
19657 hardcode_shlibpath_var_F77=no
19658 ;;
19659
19660 hpux9*)
19661 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019662 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 +000019663 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019664 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 +000019665 fi
19666 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19667 hardcode_libdir_separator_F77=:
19668 hardcode_direct_F77=yes
19669
19670 # hardcode_minus_L: Not really in the search PATH,
19671 # but as the default location of the library.
19672 hardcode_minus_L_F77=yes
19673 export_dynamic_flag_spec_F77='${wl}-E'
19674 ;;
19675
19676 hpux10* | hpux11*)
19677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19678 case "$host_cpu" in
19679 hppa*64*|ia64*)
19680 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681 ;;
19682 *)
19683 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19684 ;;
19685 esac
19686 else
19687 case "$host_cpu" in
19688 hppa*64*|ia64*)
19689 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19690 ;;
19691 *)
19692 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19693 ;;
19694 esac
19695 fi
19696 if test "$with_gnu_ld" = no; then
19697 case "$host_cpu" in
19698 hppa*64*)
19699 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19700 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19701 hardcode_libdir_separator_F77=:
19702 hardcode_direct_F77=no
19703 hardcode_shlibpath_var_F77=no
19704 ;;
19705 ia64*)
19706 hardcode_libdir_flag_spec_F77='-L$libdir'
19707 hardcode_direct_F77=no
19708 hardcode_shlibpath_var_F77=no
19709
19710 # hardcode_minus_L: Not really in the search PATH,
19711 # but as the default location of the library.
19712 hardcode_minus_L_F77=yes
19713 ;;
19714 *)
19715 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19716 hardcode_libdir_separator_F77=:
19717 hardcode_direct_F77=yes
19718 export_dynamic_flag_spec_F77='${wl}-E'
19719
19720 # hardcode_minus_L: Not really in the search PATH,
19721 # but as the default location of the library.
19722 hardcode_minus_L_F77=yes
19723 ;;
19724 esac
19725 fi
19726 ;;
19727
19728 irix5* | irix6* | nonstopux*)
19729 if test "$GCC" = yes; then
19730 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'
19731 else
19732 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'
19733 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19734 fi
19735 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19736 hardcode_libdir_separator_F77=:
19737 link_all_deplibs_F77=yes
19738 ;;
19739
19740 netbsd*)
19741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19742 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19743 else
19744 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19745 fi
19746 hardcode_libdir_flag_spec_F77='-R$libdir'
19747 hardcode_direct_F77=yes
19748 hardcode_shlibpath_var_F77=no
19749 ;;
19750
19751 newsos6)
19752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19753 hardcode_direct_F77=yes
19754 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19755 hardcode_libdir_separator_F77=:
19756 hardcode_shlibpath_var_F77=no
19757 ;;
19758
19759 openbsd*)
19760 hardcode_direct_F77=yes
19761 hardcode_shlibpath_var_F77=no
19762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19763 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019764 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 +000019765 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19766 export_dynamic_flag_spec_F77='${wl}-E'
19767 else
19768 case $host_os in
19769 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19770 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19771 hardcode_libdir_flag_spec_F77='-R$libdir'
19772 ;;
19773 *)
19774 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19775 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19776 ;;
19777 esac
19778 fi
19779 ;;
19780
19781 os2*)
19782 hardcode_libdir_flag_spec_F77='-L$libdir'
19783 hardcode_minus_L_F77=yes
19784 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019785 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 +000019786 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19787 ;;
19788
19789 osf3*)
19790 if test "$GCC" = yes; then
19791 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19792 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'
19793 else
19794 allow_undefined_flag_F77=' -expect_unresolved \*'
19795 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'
19796 fi
19797 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19798 hardcode_libdir_separator_F77=:
19799 ;;
19800
19801 osf4* | osf5*) # as osf3* with the addition of -msym flag
19802 if test "$GCC" = yes; then
19803 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19804 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'
19805 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19806 else
19807 allow_undefined_flag_F77=' -expect_unresolved \*'
19808 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 +000019809 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~
19810 $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'
19811
John Criswell47fdd832003-07-14 16:52:07 +000019812 # Both c and cxx compiler support -rpath directly
19813 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19814 fi
19815 hardcode_libdir_separator_F77=:
19816 ;;
19817
19818 sco3.2v5*)
19819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19820 hardcode_shlibpath_var_F77=no
19821 export_dynamic_flag_spec_F77='${wl}-Bexport'
19822 runpath_var=LD_RUN_PATH
19823 hardcode_runpath_var=yes
19824 ;;
19825
19826 solaris*)
19827 no_undefined_flag_F77=' -z text'
19828 if test "$GCC" = yes; then
19829 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019830 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19831 $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 +000019832 else
19833 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019834 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19835 $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 +000019836 fi
19837 hardcode_libdir_flag_spec_F77='-R$libdir'
19838 hardcode_shlibpath_var_F77=no
19839 case $host_os in
19840 solaris2.[0-5] | solaris2.[0-5].*) ;;
19841 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19842 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19843 esac
19844 link_all_deplibs_F77=yes
19845 ;;
19846
19847 sunos4*)
19848 if test "x$host_vendor" = xsequent; then
19849 # Use $CC to link under sequent, because it throws in some extra .o
19850 # files that make .init and .fini sections work.
19851 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19852 else
19853 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19854 fi
19855 hardcode_libdir_flag_spec_F77='-L$libdir'
19856 hardcode_direct_F77=yes
19857 hardcode_minus_L_F77=yes
19858 hardcode_shlibpath_var_F77=no
19859 ;;
19860
19861 sysv4)
19862 case $host_vendor in
19863 sni)
19864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19865 hardcode_direct_F77=yes # is this really true???
19866 ;;
19867 siemens)
19868 ## LD is ld it makes a PLAMLIB
19869 ## CC just makes a GrossModule.
19870 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19871 reload_cmds_F77='$CC -r -o $output$reload_objs'
19872 hardcode_direct_F77=no
19873 ;;
19874 motorola)
19875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19876 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19877 ;;
19878 esac
19879 runpath_var='LD_RUN_PATH'
19880 hardcode_shlibpath_var_F77=no
19881 ;;
19882
19883 sysv4.3*)
19884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19885 hardcode_shlibpath_var_F77=no
19886 export_dynamic_flag_spec_F77='-Bexport'
19887 ;;
19888
19889 sysv4*MP*)
19890 if test -d /usr/nec; then
19891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19892 hardcode_shlibpath_var_F77=no
19893 runpath_var=LD_RUN_PATH
19894 hardcode_runpath_var=yes
19895 ld_shlibs_F77=yes
19896 fi
19897 ;;
19898
19899 sysv4.2uw2*)
19900 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19901 hardcode_direct_F77=yes
19902 hardcode_minus_L_F77=no
19903 hardcode_shlibpath_var_F77=no
19904 hardcode_runpath_var=yes
19905 runpath_var=LD_RUN_PATH
19906 ;;
19907
19908 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19909 no_undefined_flag_F77='${wl}-z ${wl}text'
19910 if test "$GCC" = yes; then
19911 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19912 else
19913 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19914 fi
19915 runpath_var='LD_RUN_PATH'
19916 hardcode_shlibpath_var_F77=no
19917 ;;
19918
19919 sysv5*)
19920 no_undefined_flag_F77=' -z text'
19921 # $CC -shared without GNU ld will not create a library from C++
19922 # object files and a static libstdc++, better avoid it by now
19923 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019924 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19925 $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 +000019926 hardcode_libdir_flag_spec_F77=
19927 hardcode_shlibpath_var_F77=no
19928 runpath_var='LD_RUN_PATH'
19929 ;;
19930
19931 uts4*)
19932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19933 hardcode_libdir_flag_spec_F77='-L$libdir'
19934 hardcode_shlibpath_var_F77=no
19935 ;;
19936
19937 *)
19938 ld_shlibs_F77=no
19939 ;;
19940 esac
19941 fi
19942
19943echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19944echo "${ECHO_T}$ld_shlibs_F77" >&6
19945test "$ld_shlibs_F77" = no && can_build_shared=no
19946
19947variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19948if test "$GCC" = yes; then
19949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19950fi
19951
19952#
19953# Do we need to explicitly link libc?
19954#
19955case "x$archive_cmds_need_lc_F77" in
19956x|xyes)
19957 # Assume -lc should be added
19958 archive_cmds_need_lc_F77=yes
19959
19960 if test "$enable_shared" = yes && test "$GCC" = yes; then
19961 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019962 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019963 # FIXME: we may have to deal with multi-command sequences.
19964 ;;
19965 '$CC '*)
19966 # Test whether the compiler implicitly links with -lc since on some
19967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19968 # to ld, don't add -lc before -lgcc.
19969 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19970echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19971 $rm conftest*
19972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19973
19974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975 (eval $ac_compile) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } 2>conftest.err; then
19979 soname=conftest
19980 lib=conftest
19981 libobjs=conftest.$ac_objext
19982 deplibs=
19983 wl=$lt_prog_compiler_wl_F77
19984 compiler_flags=-v
19985 linker_flags=-v
19986 verstring=
19987 output_objdir=.
19988 libname=conftest
19989 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19990 allow_undefined_flag_F77=
19991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19992 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }
19996 then
19997 archive_cmds_need_lc_F77=no
19998 else
19999 archive_cmds_need_lc_F77=yes
20000 fi
20001 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20002 else
20003 cat conftest.err 1>&5
20004 fi
20005 $rm conftest*
20006 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20007echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20008 ;;
20009 esac
20010 fi
20011 ;;
20012esac
20013
John Criswell47fdd832003-07-14 16:52:07 +000020014echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20015echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20016library_names_spec=
20017libname_spec='lib$name'
20018soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020019shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020020postinstall_cmds=
20021postuninstall_cmds=
20022finish_cmds=
20023finish_eval=
20024shlibpath_var=
20025shlibpath_overrides_runpath=unknown
20026version_type=none
20027dynamic_linker="$host_os ld.so"
20028sys_lib_dlsearch_path_spec="/lib /usr/lib"
20029if test "$GCC" = yes; then
20030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20032 # if the path contains ";" then we assume it to be the separator
20033 # otherwise default to the standard path separator (i.e. ":") - it is
20034 # assumed that no part of a normal pathname contains ";" but that should
20035 # okay in the real world where ";" in dirpaths is itself problematic.
20036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20037 else
20038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20039 fi
20040else
20041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20042fi
20043need_lib_prefix=unknown
20044hardcode_into_libs=no
20045
20046# when you set need_version to no, make sure it does not cause -set_version
20047# flags to be left without arguments
20048need_version=unknown
20049
20050case $host_os in
20051aix3*)
20052 version_type=linux
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20054 shlibpath_var=LIBPATH
20055
20056 # AIX 3 has no versioning support, so we append a major version to the name.
20057 soname_spec='${libname}${release}${shared_ext}$major'
20058 ;;
20059
20060aix4* | aix5*)
20061 version_type=linux
20062 need_lib_prefix=no
20063 need_version=no
20064 hardcode_into_libs=yes
20065 if test "$host_cpu" = ia64; then
20066 # AIX 5 supports IA64
20067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20068 shlibpath_var=LD_LIBRARY_PATH
20069 else
20070 # With GCC up to 2.95.x, collect2 would create an import file
20071 # for dependence libraries. The import file would start with
20072 # the line `#! .'. This would cause the generated library to
20073 # depend on `.', always an invalid library. This was fixed in
20074 # development snapshots of GCC prior to 3.0.
20075 case $host_os in
20076 aix4 | aix4.[01] | aix4.[01].*)
20077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20078 echo ' yes '
20079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20080 :
20081 else
20082 can_build_shared=no
20083 fi
20084 ;;
20085 esac
20086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20087 # soname into executable. Probably we can add versioning support to
20088 # collect2, so additional links can be useful in future.
20089 if test "$aix_use_runtimelinking" = yes; then
20090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20091 # instead of lib<name>.a to let people know that these are not
20092 # typical AIX shared libraries.
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20094 else
20095 # We preserve .a as extension for shared libraries through AIX4.2
20096 # and later when we are not doing run time linking.
20097 library_names_spec='${libname}${release}.a $libname.a'
20098 soname_spec='${libname}${release}${shared_ext}$major'
20099 fi
20100 shlibpath_var=LIBPATH
20101 fi
20102 ;;
20103
20104amigaos*)
20105 library_names_spec='$libname.ixlibrary $libname.a'
20106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020107 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 +000020108 ;;
20109
20110beos*)
20111 library_names_spec='${libname}${shared_ext}'
20112 dynamic_linker="$host_os ld.so"
20113 shlibpath_var=LIBRARY_PATH
20114 ;;
20115
Reid Spencer2706f8c2004-09-19 23:53:36 +000020116bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020117 version_type=linux
20118 need_version=no
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20125 # the default ld.so.conf also contains /usr/contrib/lib and
20126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20127 # libtool to hard-code these into programs
20128 ;;
20129
20130cygwin* | mingw* | pw32*)
20131 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020132 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020133 need_version=no
20134 need_lib_prefix=no
20135
20136 case $GCC,$host_os in
20137 yes,cygwin* | yes,mingw* | yes,pw32*)
20138 library_names_spec='$libname.dll.a'
20139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020140 postinstall_cmds='base_file=`basename \${file}`~
20141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20142 dldir=$destdir/`dirname \$dlpath`~
20143 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020144 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20146 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020147 $rm \$dlpath'
20148 shlibpath_overrides_runpath=yes
20149
20150 case $host_os in
20151 cygwin*)
20152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20153 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 +000020154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020155 ;;
20156 mingw*)
20157 # MinGW DLLs use traditional 'lib' prefix
20158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20161 # It is most probably a Windows format PATH printed by
20162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20163 # path with ; separators, and with drive letters. We can handle the
20164 # drive letters (cygwin fileutils understands them), so leave them,
20165 # especially as we might pass files found there to a mingw objdump,
20166 # which wouldn't understand a cygwinified path. Ahh.
20167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20168 else
20169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20170 fi
20171 ;;
20172 pw32*)
20173 # pw32 DLLs use 'pw' prefix rather than 'lib'
20174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20175 ;;
20176 esac
20177 ;;
20178
20179 *)
20180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20181 ;;
20182 esac
20183 dynamic_linker='Win32 ld.exe'
20184 # FIXME: first we should search . and the directory the executable is in
20185 shlibpath_var=PATH
20186 ;;
20187
20188darwin* | rhapsody*)
20189 dynamic_linker="$host_os dyld"
20190 version_type=darwin
20191 need_lib_prefix=no
20192 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020194 soname_spec='${libname}${release}${major}$shared_ext'
20195 shlibpath_overrides_runpath=yes
20196 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020197 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020199 if test "$GCC" = yes; then
20200 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"`
20201 else
20202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020203 fi
20204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20205 ;;
20206
20207dgux*)
20208 version_type=linux
20209 need_lib_prefix=no
20210 need_version=no
20211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20212 soname_spec='${libname}${release}${shared_ext}$major'
20213 shlibpath_var=LD_LIBRARY_PATH
20214 ;;
20215
20216freebsd1*)
20217 dynamic_linker=no
20218 ;;
20219
Reid Spencer2706f8c2004-09-19 23:53:36 +000020220kfreebsd*-gnu)
20221 version_type=linux
20222 need_lib_prefix=no
20223 need_version=no
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20225 soname_spec='${libname}${release}${shared_ext}$major'
20226 shlibpath_var=LD_LIBRARY_PATH
20227 shlibpath_overrides_runpath=no
20228 hardcode_into_libs=yes
20229 dynamic_linker='GNU ld.so'
20230 ;;
20231
John Criswell47fdd832003-07-14 16:52:07 +000020232freebsd*)
20233 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20234 version_type=freebsd-$objformat
20235 case $version_type in
20236 freebsd-elf*)
20237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20238 need_version=no
20239 need_lib_prefix=no
20240 ;;
20241 freebsd-*)
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20243 need_version=yes
20244 ;;
20245 esac
20246 shlibpath_var=LD_LIBRARY_PATH
20247 case $host_os in
20248 freebsd2*)
20249 shlibpath_overrides_runpath=yes
20250 ;;
20251 freebsd3.01* | freebsdelf3.01*)
20252 shlibpath_overrides_runpath=yes
20253 hardcode_into_libs=yes
20254 ;;
20255 *) # from 3.2 on
20256 shlibpath_overrides_runpath=no
20257 hardcode_into_libs=yes
20258 ;;
20259 esac
20260 ;;
20261
20262gnu*)
20263 version_type=linux
20264 need_lib_prefix=no
20265 need_version=no
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 shlibpath_var=LD_LIBRARY_PATH
20269 hardcode_into_libs=yes
20270 ;;
20271
20272hpux9* | hpux10* | hpux11*)
20273 # Give a soname corresponding to the major version so that dld.sl refuses to
20274 # link against other versions.
20275 version_type=sunos
20276 need_lib_prefix=no
20277 need_version=no
20278 case "$host_cpu" in
20279 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020280 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020281 hardcode_into_libs=yes
20282 dynamic_linker="$host_os dld.so"
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 if test "X$HPUX_IA64_MODE" = X32; then
20288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20289 else
20290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20291 fi
20292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20293 ;;
20294 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020295 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020296 hardcode_into_libs=yes
20297 dynamic_linker="$host_os dld.sl"
20298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20304 ;;
20305 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020306 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020307 dynamic_linker="$host_os dld.sl"
20308 shlibpath_var=SHLIB_PATH
20309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311 soname_spec='${libname}${release}${shared_ext}$major'
20312 ;;
20313 esac
20314 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20315 postinstall_cmds='chmod 555 $lib'
20316 ;;
20317
20318irix5* | irix6* | nonstopux*)
20319 case $host_os in
20320 nonstopux*) version_type=nonstopux ;;
20321 *)
20322 if test "$lt_cv_prog_gnu_ld" = yes; then
20323 version_type=linux
20324 else
20325 version_type=irix
20326 fi ;;
20327 esac
20328 need_lib_prefix=no
20329 need_version=no
20330 soname_spec='${libname}${release}${shared_ext}$major'
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20332 case $host_os in
20333 irix5* | nonstopux*)
20334 libsuff= shlibsuff=
20335 ;;
20336 *)
20337 case $LD in # libtool.m4 will add one of these switches to LD
20338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20339 libsuff= shlibsuff= libmagic=32-bit;;
20340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20341 libsuff=32 shlibsuff=N32 libmagic=N32;;
20342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20344 *) libsuff= shlibsuff= libmagic=never-match;;
20345 esac
20346 ;;
20347 esac
20348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20349 shlibpath_overrides_runpath=no
20350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20352 hardcode_into_libs=yes
20353 ;;
20354
20355# No shared lib support for Linux oldld, aout, or coff.
20356linux*oldld* | linux*aout* | linux*coff*)
20357 dynamic_linker=no
20358 ;;
20359
20360# This must be Linux ELF.
20361linux*)
20362 version_type=linux
20363 need_lib_prefix=no
20364 need_version=no
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 soname_spec='${libname}${release}${shared_ext}$major'
20367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20368 shlibpath_var=LD_LIBRARY_PATH
20369 shlibpath_overrides_runpath=no
20370 # This implies no fast_install, which is unacceptable.
20371 # Some rework will be needed to allow for fast_install
20372 # before this can be enabled.
20373 hardcode_into_libs=yes
20374
Reid Spencer2706f8c2004-09-19 23:53:36 +000020375 # Append ld.so.conf contents to the search path
20376 if test -f /etc/ld.so.conf; then
20377 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20379 fi
20380
John Criswell47fdd832003-07-14 16:52:07 +000020381 # We used to test for /lib/ld.so.1 and disable shared libraries on
20382 # powerpc, because MkLinux only supported shared libraries with the
20383 # GNU dynamic linker. Since this was broken with cross compilers,
20384 # most powerpc-linux boxes support dynamic linking these days and
20385 # people can always --disable-shared, the test was removed, and we
20386 # assume the GNU/Linux dynamic linker is in use.
20387 dynamic_linker='GNU/Linux ld.so'
20388 ;;
20389
Reid Spencer2706f8c2004-09-19 23:53:36 +000020390knetbsd*-gnu)
20391 version_type=linux
20392 need_lib_prefix=no
20393 need_version=no
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 shlibpath_var=LD_LIBRARY_PATH
20397 shlibpath_overrides_runpath=no
20398 hardcode_into_libs=yes
20399 dynamic_linker='GNU ld.so'
20400 ;;
20401
John Criswell47fdd832003-07-14 16:52:07 +000020402netbsd*)
20403 version_type=sunos
20404 need_lib_prefix=no
20405 need_version=no
20406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20409 dynamic_linker='NetBSD (a.out) ld.so'
20410 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020412 soname_spec='${libname}${release}${shared_ext}$major'
20413 dynamic_linker='NetBSD ld.elf_so'
20414 fi
20415 shlibpath_var=LD_LIBRARY_PATH
20416 shlibpath_overrides_runpath=yes
20417 hardcode_into_libs=yes
20418 ;;
20419
20420newsos6)
20421 version_type=linux
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 shlibpath_overrides_runpath=yes
20425 ;;
20426
Reid Spencer2706f8c2004-09-19 23:53:36 +000020427nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020428 version_type=linux
20429 need_lib_prefix=no
20430 need_version=no
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 soname_spec='${libname}${release}${shared_ext}$major'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 shlibpath_overrides_runpath=yes
20435 ;;
20436
20437openbsd*)
20438 version_type=sunos
20439 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020440 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20443 shlibpath_var=LD_LIBRARY_PATH
20444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20445 case $host_os in
20446 openbsd2.[89] | openbsd2.[89].*)
20447 shlibpath_overrides_runpath=no
20448 ;;
20449 *)
20450 shlibpath_overrides_runpath=yes
20451 ;;
20452 esac
20453 else
20454 shlibpath_overrides_runpath=yes
20455 fi
20456 ;;
20457
20458os2*)
20459 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020460 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020461 need_lib_prefix=no
20462 library_names_spec='$libname${shared_ext} $libname.a'
20463 dynamic_linker='OS/2 ld.exe'
20464 shlibpath_var=LIBPATH
20465 ;;
20466
20467osf3* | osf4* | osf5*)
20468 version_type=osf
20469 need_lib_prefix=no
20470 need_version=no
20471 soname_spec='${libname}${release}${shared_ext}$major'
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 shlibpath_var=LD_LIBRARY_PATH
20474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20475 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20476 ;;
20477
20478sco3.2v5*)
20479 version_type=osf
20480 soname_spec='${libname}${release}${shared_ext}$major'
20481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20482 shlibpath_var=LD_LIBRARY_PATH
20483 ;;
20484
20485solaris*)
20486 version_type=linux
20487 need_lib_prefix=no
20488 need_version=no
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490 soname_spec='${libname}${release}${shared_ext}$major'
20491 shlibpath_var=LD_LIBRARY_PATH
20492 shlibpath_overrides_runpath=yes
20493 hardcode_into_libs=yes
20494 # ldd complains unless libraries are executable
20495 postinstall_cmds='chmod +x $lib'
20496 ;;
20497
20498sunos4*)
20499 version_type=sunos
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 shlibpath_overrides_runpath=yes
20504 if test "$with_gnu_ld" = yes; then
20505 need_lib_prefix=no
20506 fi
20507 need_version=yes
20508 ;;
20509
20510sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20511 version_type=linux
20512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 soname_spec='${libname}${release}${shared_ext}$major'
20514 shlibpath_var=LD_LIBRARY_PATH
20515 case $host_vendor in
20516 sni)
20517 shlibpath_overrides_runpath=no
20518 need_lib_prefix=no
20519 export_dynamic_flag_spec='${wl}-Blargedynsym'
20520 runpath_var=LD_RUN_PATH
20521 ;;
20522 siemens)
20523 need_lib_prefix=no
20524 ;;
20525 motorola)
20526 need_lib_prefix=no
20527 need_version=no
20528 shlibpath_overrides_runpath=no
20529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20530 ;;
20531 esac
20532 ;;
20533
20534sysv4*MP*)
20535 if test -d /usr/nec ;then
20536 version_type=linux
20537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20538 soname_spec='$libname${shared_ext}.$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 fi
20541 ;;
20542
20543uts4*)
20544 version_type=linux
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20546 soname_spec='${libname}${release}${shared_ext}$major'
20547 shlibpath_var=LD_LIBRARY_PATH
20548 ;;
20549
20550*)
20551 dynamic_linker=no
20552 ;;
20553esac
20554echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20555echo "${ECHO_T}$dynamic_linker" >&6
20556test "$dynamic_linker" = no && can_build_shared=no
20557
Reid Spencer2706f8c2004-09-19 23:53:36 +000020558echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20559echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20560hardcode_action_F77=
20561if test -n "$hardcode_libdir_flag_spec_F77" || \
20562 test -n "$runpath_var_F77" || \
20563 test "X$hardcode_automatic_F77" = "Xyes" ; then
20564
20565 # We can hardcode non-existant directories.
20566 if test "$hardcode_direct_F77" != no &&
20567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20568 # have to relink, otherwise we might link with an installed library
20569 # when we should be linking with a yet-to-be-installed one
20570 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20571 test "$hardcode_minus_L_F77" != no; then
20572 # Linking always hardcodes the temporary library directory.
20573 hardcode_action_F77=relink
20574 else
20575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20576 hardcode_action_F77=immediate
20577 fi
20578else
20579 # We cannot hardcode anything, or else we can only hardcode existing
20580 # directories.
20581 hardcode_action_F77=unsupported
20582fi
20583echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20584echo "${ECHO_T}$hardcode_action_F77" >&6
20585
20586if test "$hardcode_action_F77" = relink; then
20587 # Fast installation is not supported
20588 enable_fast_install=no
20589elif test "$shlibpath_overrides_runpath" = yes ||
20590 test "$enable_shared" = no; then
20591 # Fast installation is not necessary
20592 enable_fast_install=needless
20593fi
20594
20595striplib=
20596old_striplib=
20597echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20598echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20599if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20600 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20601 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20602 echo "$as_me:$LINENO: result: yes" >&5
20603echo "${ECHO_T}yes" >&6
20604else
20605# FIXME - insert some real tests, host_os isn't really good enough
20606 case $host_os in
20607 darwin*)
20608 if test -n "$STRIP" ; then
20609 striplib="$STRIP -x"
20610 echo "$as_me:$LINENO: result: yes" >&5
20611echo "${ECHO_T}yes" >&6
20612 else
20613 echo "$as_me:$LINENO: result: no" >&5
20614echo "${ECHO_T}no" >&6
20615fi
20616 ;;
20617 *)
20618 echo "$as_me:$LINENO: result: no" >&5
20619echo "${ECHO_T}no" >&6
20620 ;;
20621 esac
20622fi
20623
20624
John Criswell47fdd832003-07-14 16:52:07 +000020625
20626# The else clause should only fire when bootstrapping the
20627# libtool distribution, otherwise you forgot to ship ltmain.sh
20628# with your package, and you will get complaints that there are
20629# no rules to generate ltmain.sh.
20630if test -f "$ltmain"; then
20631 # See if we are running on zsh, and set the options which allow our commands through
20632 # without removal of \ escapes.
20633 if test -n "${ZSH_VERSION+set}" ; then
20634 setopt NO_GLOB_SUBST
20635 fi
20636 # Now quote all the things that may contain metacharacters while being
20637 # careful not to overquote the AC_SUBSTed values. We take copies of the
20638 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020639 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20640 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020641 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20642 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20643 deplibs_check_method reload_flag reload_cmds need_locks \
20644 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20645 lt_cv_sys_global_symbol_to_c_name_address \
20646 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20647 old_postinstall_cmds old_postuninstall_cmds \
20648 compiler_F77 \
20649 CC_F77 \
20650 LD_F77 \
20651 lt_prog_compiler_wl_F77 \
20652 lt_prog_compiler_pic_F77 \
20653 lt_prog_compiler_static_F77 \
20654 lt_prog_compiler_no_builtin_flag_F77 \
20655 export_dynamic_flag_spec_F77 \
20656 thread_safe_flag_spec_F77 \
20657 whole_archive_flag_spec_F77 \
20658 enable_shared_with_static_runtimes_F77 \
20659 old_archive_cmds_F77 \
20660 old_archive_from_new_cmds_F77 \
20661 predep_objects_F77 \
20662 postdep_objects_F77 \
20663 predeps_F77 \
20664 postdeps_F77 \
20665 compiler_lib_search_path_F77 \
20666 archive_cmds_F77 \
20667 archive_expsym_cmds_F77 \
20668 postinstall_cmds_F77 \
20669 postuninstall_cmds_F77 \
20670 old_archive_from_expsyms_cmds_F77 \
20671 allow_undefined_flag_F77 \
20672 no_undefined_flag_F77 \
20673 export_symbols_cmds_F77 \
20674 hardcode_libdir_flag_spec_F77 \
20675 hardcode_libdir_flag_spec_ld_F77 \
20676 hardcode_libdir_separator_F77 \
20677 hardcode_automatic_F77 \
20678 module_cmds_F77 \
20679 module_expsym_cmds_F77 \
20680 lt_cv_prog_compiler_c_o_F77 \
20681 exclude_expsyms_F77 \
20682 include_expsyms_F77; do
20683
20684 case $var in
20685 old_archive_cmds_F77 | \
20686 old_archive_from_new_cmds_F77 | \
20687 archive_cmds_F77 | \
20688 archive_expsym_cmds_F77 | \
20689 module_cmds_F77 | \
20690 module_expsym_cmds_F77 | \
20691 old_archive_from_expsyms_cmds_F77 | \
20692 export_symbols_cmds_F77 | \
20693 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20694 postinstall_cmds | postuninstall_cmds | \
20695 old_postinstall_cmds | old_postuninstall_cmds | \
20696 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20697 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020698 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 +000020699 ;;
20700 *)
20701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20702 ;;
20703 esac
20704 done
20705
20706 case $lt_echo in
20707 *'\$0 --fallback-echo"')
20708 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20709 ;;
20710 esac
20711
20712cfgfile="$ofile"
20713
20714 cat <<__EOF__ >> "$cfgfile"
20715# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20716
20717# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20718
20719# Shell to use when invoking shell scripts.
20720SHELL=$lt_SHELL
20721
20722# Whether or not to build shared libraries.
20723build_libtool_libs=$enable_shared
20724
20725# Whether or not to build static libraries.
20726build_old_libs=$enable_static
20727
20728# Whether or not to add -lc for building shared libraries.
20729build_libtool_need_lc=$archive_cmds_need_lc_F77
20730
20731# Whether or not to disallow shared libs when runtime libs are static
20732allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20733
20734# Whether or not to optimize for fast installation.
20735fast_install=$enable_fast_install
20736
20737# The host system.
20738host_alias=$host_alias
20739host=$host
20740
20741# An echo program that does not interpret backslashes.
20742echo=$lt_echo
20743
20744# The archiver.
20745AR=$lt_AR
20746AR_FLAGS=$lt_AR_FLAGS
20747
20748# A C compiler.
20749LTCC=$lt_LTCC
20750
20751# A language-specific compiler.
20752CC=$lt_compiler_F77
20753
20754# Is the compiler the GNU C compiler?
20755with_gcc=$GCC_F77
20756
20757# An ERE matcher.
20758EGREP=$lt_EGREP
20759
20760# The linker used to build libraries.
20761LD=$lt_LD_F77
20762
20763# Whether we need hard or soft links.
20764LN_S=$lt_LN_S
20765
20766# A BSD-compatible nm program.
20767NM=$lt_NM
20768
20769# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020770STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020771
20772# Used to examine libraries when file_magic_cmd begins "file"
20773MAGIC_CMD=$MAGIC_CMD
20774
20775# Used on cygwin: DLL creation program.
20776DLLTOOL="$DLLTOOL"
20777
20778# Used on cygwin: object dumper.
20779OBJDUMP="$OBJDUMP"
20780
20781# Used on cygwin: assembler.
20782AS="$AS"
20783
20784# The name of the directory that contains temporary libtool files.
20785objdir=$objdir
20786
20787# How to create reloadable object files.
20788reload_flag=$lt_reload_flag
20789reload_cmds=$lt_reload_cmds
20790
20791# How to pass a linker flag through the compiler.
20792wl=$lt_lt_prog_compiler_wl_F77
20793
20794# Object file suffix (normally "o").
20795objext="$ac_objext"
20796
20797# Old archive suffix (normally "a").
20798libext="$libext"
20799
20800# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020801shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020802
20803# Executable file suffix (normally "").
20804exeext="$exeext"
20805
20806# Additional compiler flags for building library objects.
20807pic_flag=$lt_lt_prog_compiler_pic_F77
20808pic_mode=$pic_mode
20809
20810# What is the maximum length of a command?
20811max_cmd_len=$lt_cv_sys_max_cmd_len
20812
20813# Does compiler simultaneously support -c and -o options?
20814compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20815
20816# Must we lock files when doing compilation ?
20817need_locks=$lt_need_locks
20818
20819# Do we need the lib prefix for modules?
20820need_lib_prefix=$need_lib_prefix
20821
20822# Do we need a version for libraries?
20823need_version=$need_version
20824
20825# Whether dlopen is supported.
20826dlopen_support=$enable_dlopen
20827
20828# Whether dlopen of programs is supported.
20829dlopen_self=$enable_dlopen_self
20830
20831# Whether dlopen of statically linked programs is supported.
20832dlopen_self_static=$enable_dlopen_self_static
20833
20834# Compiler flag to prevent dynamic linking.
20835link_static_flag=$lt_lt_prog_compiler_static_F77
20836
20837# Compiler flag to turn off builtin functions.
20838no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20839
20840# Compiler flag to allow reflexive dlopens.
20841export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20842
20843# Compiler flag to generate shared objects directly from archives.
20844whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20845
20846# Compiler flag to generate thread-safe objects.
20847thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20848
20849# Library versioning type.
20850version_type=$version_type
20851
20852# Format of library name prefix.
20853libname_spec=$lt_libname_spec
20854
20855# List of archive names. First name is the real one, the rest are links.
20856# The last name is the one that the linker finds with -lNAME.
20857library_names_spec=$lt_library_names_spec
20858
20859# The coded name of the library, if different from the real name.
20860soname_spec=$lt_soname_spec
20861
20862# Commands used to build and install an old-style archive.
20863RANLIB=$lt_RANLIB
20864old_archive_cmds=$lt_old_archive_cmds_F77
20865old_postinstall_cmds=$lt_old_postinstall_cmds
20866old_postuninstall_cmds=$lt_old_postuninstall_cmds
20867
20868# Create an old-style archive from a shared archive.
20869old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20870
20871# Create a temporary old-style archive to link instead of a shared archive.
20872old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20873
20874# Commands used to build and install a shared archive.
20875archive_cmds=$lt_archive_cmds_F77
20876archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20877postinstall_cmds=$lt_postinstall_cmds
20878postuninstall_cmds=$lt_postuninstall_cmds
20879
20880# Commands used to build a loadable module (assumed same as above if empty)
20881module_cmds=$lt_module_cmds_F77
20882module_expsym_cmds=$lt_module_expsym_cmds_F77
20883
20884# Commands to strip libraries.
20885old_striplib=$lt_old_striplib
20886striplib=$lt_striplib
20887
20888# Dependencies to place before the objects being linked to create a
20889# shared library.
20890predep_objects=$lt_predep_objects_F77
20891
20892# Dependencies to place after the objects being linked to create a
20893# shared library.
20894postdep_objects=$lt_postdep_objects_F77
20895
20896# Dependencies to place before the objects being linked to create a
20897# shared library.
20898predeps=$lt_predeps_F77
20899
20900# Dependencies to place after the objects being linked to create a
20901# shared library.
20902postdeps=$lt_postdeps_F77
20903
20904# The library search path used internally by the compiler when linking
20905# a shared library.
20906compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20907
20908# Method to check whether dependent libraries are shared objects.
20909deplibs_check_method=$lt_deplibs_check_method
20910
20911# Command to use when deplibs_check_method == file_magic.
20912file_magic_cmd=$lt_file_magic_cmd
20913
20914# Flag that allows shared libraries with undefined symbols to be built.
20915allow_undefined_flag=$lt_allow_undefined_flag_F77
20916
20917# Flag that forces no undefined symbols.
20918no_undefined_flag=$lt_no_undefined_flag_F77
20919
20920# Commands used to finish a libtool library installation in a directory.
20921finish_cmds=$lt_finish_cmds
20922
20923# Same as above, but a single script fragment to be evaled but not shown.
20924finish_eval=$lt_finish_eval
20925
20926# Take the output of nm and produce a listing of raw symbols and C names.
20927global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20928
20929# Transform the output of nm in a proper C declaration
20930global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20931
20932# Transform the output of nm in a C name address pair
20933global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20934
20935# This is the shared library runtime path variable.
20936runpath_var=$runpath_var
20937
20938# This is the shared library path variable.
20939shlibpath_var=$shlibpath_var
20940
20941# Is shlibpath searched before the hard-coded library search path?
20942shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20943
20944# How to hardcode a shared library path into an executable.
20945hardcode_action=$hardcode_action_F77
20946
20947# Whether we should hardcode library paths into libraries.
20948hardcode_into_libs=$hardcode_into_libs
20949
20950# Flag to hardcode \$libdir into a binary during linking.
20951# This must work even if \$libdir does not exist.
20952hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20953
20954# If ld is used when linking, flag to hardcode \$libdir into
20955# a binary during linking. This must work even if \$libdir does
20956# not exist.
20957hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20958
20959# Whether we need a single -rpath flag with a separated argument.
20960hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20961
20962# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20963# resulting binary.
20964hardcode_direct=$hardcode_direct_F77
20965
20966# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20967# resulting binary.
20968hardcode_minus_L=$hardcode_minus_L_F77
20969
20970# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20971# the resulting binary.
20972hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20973
20974# Set to yes if building a shared library automatically hardcodes DIR into the library
20975# and all subsequent libraries and executables linked against it.
20976hardcode_automatic=$hardcode_automatic_F77
20977
20978# Variables whose values should be saved in libtool wrapper scripts and
20979# restored at relink time.
20980variables_saved_for_relink="$variables_saved_for_relink"
20981
20982# Whether libtool must link a program against all its dependency libraries.
20983link_all_deplibs=$link_all_deplibs_F77
20984
20985# Compile-time system search path for libraries
20986sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20987
20988# Run-time system search path for libraries
20989sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20990
20991# Fix the shell variable \$srcfile for the compiler.
20992fix_srcfile_path="$fix_srcfile_path_F77"
20993
20994# Set to yes if exported symbols are required.
20995always_export_symbols=$always_export_symbols_F77
20996
20997# The commands to list exported symbols.
20998export_symbols_cmds=$lt_export_symbols_cmds_F77
20999
21000# The commands to extract the exported symbol list from a shared archive.
21001extract_expsyms_cmds=$lt_extract_expsyms_cmds
21002
21003# Symbols that should not be listed in the preloaded symbols.
21004exclude_expsyms=$lt_exclude_expsyms_F77
21005
21006# Symbols that must always be exported.
21007include_expsyms=$lt_include_expsyms_F77
21008
21009# ### END LIBTOOL TAG CONFIG: $tagname
21010
21011__EOF__
21012
21013
21014else
21015 # If there is no Makefile yet, we rely on a make rule to execute
21016 # `config.status --recheck' to rerun these tests and create the
21017 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021018 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21019 if test -f "$ltmain_in"; then
21020 test -f Makefile && make "$ltmain"
21021 fi
John Criswell47fdd832003-07-14 16:52:07 +000021022fi
21023
21024
21025ac_ext=c
21026ac_cpp='$CPP $CPPFLAGS'
21027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031CC="$lt_save_CC"
21032
21033 else
21034 tagname=""
21035 fi
21036 ;;
21037
21038 GCJ)
21039 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021040 ac_ext=c
21041ac_cpp='$CPP $CPPFLAGS'
21042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021045
21046
21047# Source file extension for Java test sources.
21048ac_ext=java
21049
21050# Object file extension for compiled Java test sources.
21051objext=o
21052objext_GCJ=$objext
21053
21054# Code to be used in simple compile tests
21055lt_simple_compile_test_code="class foo {}\n"
21056
21057# Code to be used in simple link tests
21058lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21059
21060# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21061
21062# If no C compiler was specified, use CC.
21063LTCC=${LTCC-"$CC"}
21064
21065# Allow CC to be a program name with arguments.
21066compiler=$CC
21067
21068
21069# Allow CC to be a program name with arguments.
21070lt_save_CC="$CC"
21071CC=${GCJ-"gcj"}
21072compiler=$CC
21073compiler_GCJ=$CC
21074
21075# GCJ did not exist at the time GCC didn't implicitly link libc in.
21076archive_cmds_need_lc_GCJ=no
21077
John Criswell47fdd832003-07-14 16:52:07 +000021078
21079lt_prog_compiler_no_builtin_flag_GCJ=
21080
21081if test "$GCC" = yes; then
21082 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21083
Reid Spencer2706f8c2004-09-19 23:53:36 +000021084
21085echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021086echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21087if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21088 echo $ECHO_N "(cached) $ECHO_C" >&6
21089else
21090 lt_cv_prog_compiler_rtti_exceptions=no
21091 ac_outfile=conftest.$ac_objext
21092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21093 lt_compiler_flag="-fno-rtti -fno-exceptions"
21094 # Insert the option either (1) after the last *FLAGS variable, or
21095 # (2) before a word containing "conftest.", or (3) at the end.
21096 # Note that $ac_compile itself does not contain backslashes and begins
21097 # with a dollar sign (not a hyphen), so the echo should work correctly.
21098 # The option is referenced via a variable to avoid confusing sed.
21099 lt_compile=`echo "$ac_compile" | $SED \
21100 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21102 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000021103 (eval echo "\"\$as_me:21103: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021104 (eval "$lt_compile" 2>conftest.err)
21105 ac_status=$?
21106 cat conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000021107 echo "$as_me:21107: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021108 if (exit $ac_status) && test -s "$ac_outfile"; then
21109 # The compiler can only warn and ignore the option if not recognized
21110 # So say no if there are warnings
21111 if test ! -s conftest.err; then
21112 lt_cv_prog_compiler_rtti_exceptions=yes
21113 fi
21114 fi
21115 $rm conftest*
21116
21117fi
21118echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21119echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21120
21121if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21122 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21123else
21124 :
21125fi
21126
21127fi
21128
21129lt_prog_compiler_wl_GCJ=
21130lt_prog_compiler_pic_GCJ=
21131lt_prog_compiler_static_GCJ=
21132
21133echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21134echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21135
21136 if test "$GCC" = yes; then
21137 lt_prog_compiler_wl_GCJ='-Wl,'
21138 lt_prog_compiler_static_GCJ='-static'
21139
21140 case $host_os in
21141 aix*)
21142 # All AIX code is PIC.
21143 if test "$host_cpu" = ia64; then
21144 # AIX 5 now supports IA64 processor
21145 lt_prog_compiler_static_GCJ='-Bstatic'
21146 fi
21147 ;;
21148
21149 amigaos*)
21150 # FIXME: we need at least 68020 code to build shared libraries, but
21151 # adding the `-m68020' flag to GCC prevents building anything better,
21152 # like `-m68040'.
21153 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21154 ;;
21155
21156 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21157 # PIC is the default for these OSes.
21158 ;;
21159
21160 mingw* | pw32* | os2*)
21161 # This hack is so that the source file can tell whether it is being
21162 # built for inclusion in a dll (and should export symbols for example).
21163 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21164 ;;
21165
21166 darwin* | rhapsody*)
21167 # PIC is the default on this platform
21168 # Common symbols not allowed in MH_DYLIB files
21169 lt_prog_compiler_pic_GCJ='-fno-common'
21170 ;;
21171
21172 msdosdjgpp*)
21173 # Just because we use GCC doesn't mean we suddenly get shared libraries
21174 # on systems that don't support them.
21175 lt_prog_compiler_can_build_shared_GCJ=no
21176 enable_shared=no
21177 ;;
21178
21179 sysv4*MP*)
21180 if test -d /usr/nec; then
21181 lt_prog_compiler_pic_GCJ=-Kconform_pic
21182 fi
21183 ;;
21184
21185 hpux*)
21186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21187 # not for PA HP-UX.
21188 case "$host_cpu" in
21189 hppa*64*|ia64*)
21190 # +Z the default
21191 ;;
21192 *)
21193 lt_prog_compiler_pic_GCJ='-fPIC'
21194 ;;
21195 esac
21196 ;;
21197
21198 *)
21199 lt_prog_compiler_pic_GCJ='-fPIC'
21200 ;;
21201 esac
21202 else
21203 # PORTME Check for flag to pass linker flags through the system compiler.
21204 case $host_os in
21205 aix*)
21206 lt_prog_compiler_wl_GCJ='-Wl,'
21207 if test "$host_cpu" = ia64; then
21208 # AIX 5 now supports IA64 processor
21209 lt_prog_compiler_static_GCJ='-Bstatic'
21210 else
21211 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21212 fi
21213 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021214 darwin*)
21215 # PIC is the default on this platform
21216 # Common symbols not allowed in MH_DYLIB files
21217 case "$cc_basename" in
21218 xlc*)
21219 lt_prog_compiler_pic_GCJ='-qnocommon'
21220 lt_prog_compiler_wl_GCJ='-Wl,'
21221 ;;
21222 esac
21223 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021224
21225 mingw* | pw32* | os2*)
21226 # This hack is so that the source file can tell whether it is being
21227 # built for inclusion in a dll (and should export symbols for example).
21228 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21229 ;;
21230
21231 hpux9* | hpux10* | hpux11*)
21232 lt_prog_compiler_wl_GCJ='-Wl,'
21233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21234 # not for PA HP-UX.
21235 case "$host_cpu" in
21236 hppa*64*|ia64*)
21237 # +Z the default
21238 ;;
21239 *)
21240 lt_prog_compiler_pic_GCJ='+Z'
21241 ;;
21242 esac
21243 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21244 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21245 ;;
21246
21247 irix5* | irix6* | nonstopux*)
21248 lt_prog_compiler_wl_GCJ='-Wl,'
21249 # PIC (with -KPIC) is the default.
21250 lt_prog_compiler_static_GCJ='-non_shared'
21251 ;;
21252
21253 newsos6)
21254 lt_prog_compiler_pic_GCJ='-KPIC'
21255 lt_prog_compiler_static_GCJ='-Bstatic'
21256 ;;
21257
21258 linux*)
21259 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021260 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021261 lt_prog_compiler_wl_GCJ='-Wl,'
21262 lt_prog_compiler_pic_GCJ='-KPIC'
21263 lt_prog_compiler_static_GCJ='-static'
21264 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021265 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021266 lt_prog_compiler_wl_GCJ='-Wl,'
21267 # All Alpha code is PIC.
21268 lt_prog_compiler_static_GCJ='-non_shared'
21269 ;;
21270 esac
21271 ;;
21272
21273 osf3* | osf4* | osf5*)
21274 lt_prog_compiler_wl_GCJ='-Wl,'
21275 # All OSF/1 code is PIC.
21276 lt_prog_compiler_static_GCJ='-non_shared'
21277 ;;
21278
21279 sco3.2v5*)
21280 lt_prog_compiler_pic_GCJ='-Kpic'
21281 lt_prog_compiler_static_GCJ='-dn'
21282 ;;
21283
21284 solaris*)
21285 lt_prog_compiler_wl_GCJ='-Wl,'
21286 lt_prog_compiler_pic_GCJ='-KPIC'
21287 lt_prog_compiler_static_GCJ='-Bstatic'
21288 ;;
21289
21290 sunos4*)
21291 lt_prog_compiler_wl_GCJ='-Qoption ld '
21292 lt_prog_compiler_pic_GCJ='-PIC'
21293 lt_prog_compiler_static_GCJ='-Bstatic'
21294 ;;
21295
21296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21297 lt_prog_compiler_wl_GCJ='-Wl,'
21298 lt_prog_compiler_pic_GCJ='-KPIC'
21299 lt_prog_compiler_static_GCJ='-Bstatic'
21300 ;;
21301
21302 sysv4*MP*)
21303 if test -d /usr/nec ;then
21304 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21305 lt_prog_compiler_static_GCJ='-Bstatic'
21306 fi
21307 ;;
21308
21309 uts4*)
21310 lt_prog_compiler_pic_GCJ='-pic'
21311 lt_prog_compiler_static_GCJ='-Bstatic'
21312 ;;
21313
21314 *)
21315 lt_prog_compiler_can_build_shared_GCJ=no
21316 ;;
21317 esac
21318 fi
21319
21320echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21321echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21322
21323#
21324# Check to make sure the PIC flag actually works.
21325#
21326if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021327
21328echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021329echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21330if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332else
21333 lt_prog_compiler_pic_works_GCJ=no
21334 ac_outfile=conftest.$ac_objext
21335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21336 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21337 # Insert the option either (1) after the last *FLAGS variable, or
21338 # (2) before a word containing "conftest.", or (3) at the end.
21339 # Note that $ac_compile itself does not contain backslashes and begins
21340 # with a dollar sign (not a hyphen), so the echo should work correctly.
21341 # The option is referenced via a variable to avoid confusing sed.
21342 lt_compile=`echo "$ac_compile" | $SED \
21343 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21345 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000021346 (eval echo "\"\$as_me:21346: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021347 (eval "$lt_compile" 2>conftest.err)
21348 ac_status=$?
21349 cat conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000021350 echo "$as_me:21350: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021351 if (exit $ac_status) && test -s "$ac_outfile"; then
21352 # The compiler can only warn and ignore the option if not recognized
21353 # So say no if there are warnings
21354 if test ! -s conftest.err; then
21355 lt_prog_compiler_pic_works_GCJ=yes
21356 fi
21357 fi
21358 $rm conftest*
21359
21360fi
21361echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21362echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21363
21364if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21365 case $lt_prog_compiler_pic_GCJ in
21366 "" | " "*) ;;
21367 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21368 esac
21369else
21370 lt_prog_compiler_pic_GCJ=
21371 lt_prog_compiler_can_build_shared_GCJ=no
21372fi
21373
21374fi
21375case "$host_os" in
21376 # For platforms which do not support PIC, -DPIC is meaningless:
21377 *djgpp*)
21378 lt_prog_compiler_pic_GCJ=
21379 ;;
21380 *)
21381 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21382 ;;
21383esac
21384
21385echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21386echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21387if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389else
21390 lt_cv_prog_compiler_c_o_GCJ=no
21391 $rm -r conftest 2>/dev/null
21392 mkdir conftest
21393 cd conftest
21394 mkdir out
21395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21396
John Criswell47fdd832003-07-14 16:52:07 +000021397 lt_compiler_flag="-o out/conftest2.$ac_objext"
21398 # Insert the option either (1) after the last *FLAGS variable, or
21399 # (2) before a word containing "conftest.", or (3) at the end.
21400 # Note that $ac_compile itself does not contain backslashes and begins
21401 # with a dollar sign (not a hyphen), so the echo should work correctly.
21402 lt_compile=`echo "$ac_compile" | $SED \
21403 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21405 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbe130282005-07-14 05:19:12 +000021406 (eval echo "\"\$as_me:21406: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021407 (eval "$lt_compile" 2>out/conftest.err)
21408 ac_status=$?
21409 cat out/conftest.err >&5
Reid Spencerbe130282005-07-14 05:19:12 +000021410 echo "$as_me:21410: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21412 then
21413 # The compiler can only warn and ignore the option if not recognized
21414 # So say no if there are warnings
21415 if test ! -s out/conftest.err; then
21416 lt_cv_prog_compiler_c_o_GCJ=yes
21417 fi
21418 fi
21419 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021420 $rm conftest*
21421 # SGI C++ compiler will create directory out/ii_files/ for
21422 # template instantiation
21423 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21424 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021425 cd ..
21426 rmdir conftest
21427 $rm conftest*
21428
21429fi
21430echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21431echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21432
21433
21434hard_links="nottested"
21435if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21436 # do not overwrite the value of need_locks provided by the user
21437 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21438echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21439 hard_links=yes
21440 $rm conftest*
21441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21442 touch conftest.a
21443 ln conftest.a conftest.b 2>&5 || hard_links=no
21444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21445 echo "$as_me:$LINENO: result: $hard_links" >&5
21446echo "${ECHO_T}$hard_links" >&6
21447 if test "$hard_links" = no; then
21448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21449echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21450 need_locks=warn
21451 fi
21452else
21453 need_locks=no
21454fi
21455
21456echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21457echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21458
21459 runpath_var=
21460 allow_undefined_flag_GCJ=
21461 enable_shared_with_static_runtimes_GCJ=no
21462 archive_cmds_GCJ=
21463 archive_expsym_cmds_GCJ=
21464 old_archive_From_new_cmds_GCJ=
21465 old_archive_from_expsyms_cmds_GCJ=
21466 export_dynamic_flag_spec_GCJ=
21467 whole_archive_flag_spec_GCJ=
21468 thread_safe_flag_spec_GCJ=
21469 hardcode_libdir_flag_spec_GCJ=
21470 hardcode_libdir_flag_spec_ld_GCJ=
21471 hardcode_libdir_separator_GCJ=
21472 hardcode_direct_GCJ=no
21473 hardcode_minus_L_GCJ=no
21474 hardcode_shlibpath_var_GCJ=unsupported
21475 link_all_deplibs_GCJ=unknown
21476 hardcode_automatic_GCJ=no
21477 module_cmds_GCJ=
21478 module_expsym_cmds_GCJ=
21479 always_export_symbols_GCJ=no
21480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21481 # include_expsyms should be a list of space-separated symbols to be *always*
21482 # included in the symbol list
21483 include_expsyms_GCJ=
21484 # exclude_expsyms can be an extended regexp of symbols to exclude
21485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21487 # as well as any symbol that contains `d'.
21488 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21490 # platforms (ab)use it in PIC code, but their linkers get confused if
21491 # the symbol is explicitly referenced. Since portable code cannot
21492 # rely on this symbol name, it's probably fine to never include it in
21493 # preloaded symbol tables.
21494 extract_expsyms_cmds=
21495
21496 case $host_os in
21497 cygwin* | mingw* | pw32*)
21498 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21499 # When not using gcc, we currently assume that we are using
21500 # Microsoft Visual C++.
21501 if test "$GCC" != yes; then
21502 with_gnu_ld=no
21503 fi
21504 ;;
21505 openbsd*)
21506 with_gnu_ld=no
21507 ;;
21508 esac
21509
21510 ld_shlibs_GCJ=yes
21511 if test "$with_gnu_ld" = yes; then
21512 # If archive_cmds runs LD, not CC, wlarc should be empty
21513 wlarc='${wl}'
21514
21515 # See if GNU ld supports shared libraries.
21516 case $host_os in
21517 aix3* | aix4* | aix5*)
21518 # On AIX/PPC, the GNU linker is very broken
21519 if test "$host_cpu" != ia64; then
21520 ld_shlibs_GCJ=no
21521 cat <<EOF 1>&2
21522
21523*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21524*** to be unable to reliably create shared libraries on AIX.
21525*** Therefore, libtool is disabling shared libraries support. If you
21526*** really care for shared libraries, you may want to modify your PATH
21527*** so that a non-GNU linker is found, and then restart.
21528
21529EOF
21530 fi
21531 ;;
21532
21533 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021534 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 +000021535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21536 hardcode_minus_L_GCJ=yes
21537
21538 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21539 # that the semantics of dynamic libraries on AmigaOS, at least up
21540 # to version 4, is to share data among multiple programs linked
21541 # with the same dynamic library. Since this doesn't match the
21542 # behavior of shared libraries on other platforms, we can't use
21543 # them.
21544 ld_shlibs_GCJ=no
21545 ;;
21546
21547 beos*)
21548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21549 allow_undefined_flag_GCJ=unsupported
21550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21551 # support --undefined. This deserves some investigation. FIXME
21552 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21553 else
21554 ld_shlibs_GCJ=no
21555 fi
21556 ;;
21557
21558 cygwin* | mingw* | pw32*)
21559 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21560 # as there is no search path for DLLs.
21561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21562 allow_undefined_flag_GCJ=unsupported
21563 always_export_symbols_GCJ=no
21564 enable_shared_with_static_runtimes_GCJ=yes
21565 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21566
21567 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21568 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21569 # If the export-symbols file already is a .def file (1st line
21570 # is EXPORTS), use it as is; otherwise, prepend...
21571 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21572 cp $export_symbols $output_objdir/$soname.def;
21573 else
21574 echo EXPORTS > $output_objdir/$soname.def;
21575 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021576 fi~
21577 $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 +000021578 else
21579 ld_shlibs=no
21580 fi
21581 ;;
21582
21583 netbsd*)
21584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21585 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21586 wlarc=
21587 else
21588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21590 fi
21591 ;;
21592
21593 solaris* | sysv5*)
21594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21595 ld_shlibs_GCJ=no
21596 cat <<EOF 1>&2
21597
21598*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21599*** create shared libraries on Solaris systems. Therefore, libtool
21600*** is disabling shared libraries support. We urge you to upgrade GNU
21601*** binutils to release 2.9.1 or newer. Another option is to modify
21602*** your PATH or compiler configuration so that the native linker is
21603*** used, and then restart.
21604
21605EOF
21606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21609 else
21610 ld_shlibs_GCJ=no
21611 fi
21612 ;;
21613
21614 sunos4*)
21615 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21616 wlarc=
21617 hardcode_direct_GCJ=yes
21618 hardcode_shlibpath_var_GCJ=no
21619 ;;
21620
Reid Spencer2706f8c2004-09-19 23:53:36 +000021621 linux*)
21622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21623 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21624 archive_cmds_GCJ="$tmp_archive_cmds"
21625 supports_anon_versioning=no
21626 case `$LD -v 2>/dev/null` in
21627 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21628 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21629 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21630 *\ 2.11.*) ;; # other 2.11 versions
21631 *) supports_anon_versioning=yes ;;
21632 esac
21633 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021634 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21635cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21636$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021637 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21638 else
21639 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21640 fi
21641 else
21642 ld_shlibs_GCJ=no
21643 fi
21644 ;;
21645
John Criswell47fdd832003-07-14 16:52:07 +000021646 *)
21647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21648 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21649 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21650 else
21651 ld_shlibs_GCJ=no
21652 fi
21653 ;;
21654 esac
21655
21656 if test "$ld_shlibs_GCJ" = yes; then
21657 runpath_var=LD_RUN_PATH
21658 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21659 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21660 # ancient GNU ld didn't support --whole-archive et. al.
21661 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21662 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21663 else
21664 whole_archive_flag_spec_GCJ=
21665 fi
21666 fi
21667 else
21668 # PORTME fill in a description of your system's linker (not GNU ld)
21669 case $host_os in
21670 aix3*)
21671 allow_undefined_flag_GCJ=unsupported
21672 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021673 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 +000021674 # Note: this linker hardcodes the directories in LIBPATH if there
21675 # are no directories specified by -L.
21676 hardcode_minus_L_GCJ=yes
21677 if test "$GCC" = yes && test -z "$link_static_flag"; then
21678 # Neither direct hardcoding nor static linking is supported with a
21679 # broken collect2.
21680 hardcode_direct_GCJ=unsupported
21681 fi
21682 ;;
21683
21684 aix4* | aix5*)
21685 if test "$host_cpu" = ia64; then
21686 # On IA64, the linker does run time linking by default, so we don't
21687 # have to do anything special.
21688 aix_use_runtimelinking=no
21689 exp_sym_flag='-Bexport'
21690 no_entry_flag=""
21691 else
21692 # If we're using GNU nm, then we don't want the "-C" option.
21693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21695 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'
21696 else
21697 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'
21698 fi
21699 aix_use_runtimelinking=no
21700
21701 # Test if we are trying to use run time linking or normal
21702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21703 # need to do runtime linking.
21704 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21705 for ld_flag in $LDFLAGS; do
21706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21707 aix_use_runtimelinking=yes
21708 break
21709 fi
21710 done
21711 esac
21712
21713 exp_sym_flag='-bexport'
21714 no_entry_flag='-bnoentry'
21715 fi
21716
21717 # When large executables or shared objects are built, AIX ld can
21718 # have problems creating the table of contents. If linking a library
21719 # or program results in "error TOC overflow" add -mminimal-toc to
21720 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21721 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21722
21723 archive_cmds_GCJ=''
21724 hardcode_direct_GCJ=yes
21725 hardcode_libdir_separator_GCJ=':'
21726 link_all_deplibs_GCJ=yes
21727
21728 if test "$GCC" = yes; then
21729 case $host_os in aix4.012|aix4.012.*)
21730 # We only want to do this on AIX 4.2 and lower, the check
21731 # below for broken collect2 doesn't work under 4.3+
21732 collect2name=`${CC} -print-prog-name=collect2`
21733 if test -f "$collect2name" && \
21734 strings "$collect2name" | grep resolve_lib_name >/dev/null
21735 then
21736 # We have reworked collect2
21737 hardcode_direct_GCJ=yes
21738 else
21739 # We have old collect2
21740 hardcode_direct_GCJ=unsupported
21741 # It fails to find uninstalled libraries when the uninstalled
21742 # path is not listed in the libpath. Setting hardcode_minus_L
21743 # to unsupported forces relinking
21744 hardcode_minus_L_GCJ=yes
21745 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21746 hardcode_libdir_separator_GCJ=
21747 fi
21748 esac
21749 shared_flag='-shared'
21750 else
21751 # not using gcc
21752 if test "$host_cpu" = ia64; then
21753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21754 # chokes on -Wl,-G. The following line is correct:
21755 shared_flag='-G'
21756 else
21757 if test "$aix_use_runtimelinking" = yes; then
21758 shared_flag='${wl}-G'
21759 else
21760 shared_flag='${wl}-bM:SRE'
21761 fi
21762 fi
21763 fi
21764
21765 # It seems that -bexpall does not export symbols beginning with
21766 # underscore (_), so it is better to generate a list of symbols to export.
21767 always_export_symbols_GCJ=yes
21768 if test "$aix_use_runtimelinking" = yes; then
21769 # Warning - without using the other runtime loading flags (-brtl),
21770 # -berok will link without error, but may produce a broken library.
21771 allow_undefined_flag_GCJ='-berok'
21772 # Determine the default libpath from the value encoded in an empty executable.
21773 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021774/* confdefs.h. */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021779
John Criswell47fdd832003-07-14 16:52:07 +000021780int
21781main ()
21782{
21783
21784 ;
21785 return 0;
21786}
21787_ACEOF
21788rm -f conftest.$ac_objext conftest$ac_exeext
21789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021790 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021792 grep -v '^ *+' conftest.er1 >conftest.err
21793 rm -f conftest.er1
21794 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021797 { ac_try='test -z "$ac_c_werror_flag"
21798 || test ! -s conftest.err'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21801 ac_status=$?
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; } &&
21804 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21807 ac_status=$?
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; }; then
21810
21811aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21812}'`
21813# Check for a 64-bit object if we didn't find anything.
21814if 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; }
21815}'`; fi
21816else
21817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021818sed 's/^/| /' conftest.$ac_ext >&5
21819
John Criswell47fdd832003-07-14 16:52:07 +000021820fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021821rm -f conftest.err conftest.$ac_objext \
21822 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021823if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21824
21825 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21826 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"
21827 else
21828 if test "$host_cpu" = ia64; then
21829 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21830 allow_undefined_flag_GCJ="-z nodefs"
21831 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"
21832 else
21833 # Determine the default libpath from the value encoded in an empty executable.
21834 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021835/* confdefs.h. */
21836_ACEOF
21837cat confdefs.h >>conftest.$ac_ext
21838cat >>conftest.$ac_ext <<_ACEOF
21839/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021840
John Criswell47fdd832003-07-14 16:52:07 +000021841int
21842main ()
21843{
21844
21845 ;
21846 return 0;
21847}
21848_ACEOF
21849rm -f conftest.$ac_objext conftest$ac_exeext
21850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021851 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021852 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021853 grep -v '^ *+' conftest.er1 >conftest.err
21854 rm -f conftest.er1
21855 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021858 { ac_try='test -z "$ac_c_werror_flag"
21859 || test ! -s conftest.err'
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; } &&
21865 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21868 ac_status=$?
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; }; then
21871
21872aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21873}'`
21874# Check for a 64-bit object if we didn't find anything.
21875if 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; }
21876}'`; fi
21877else
21878 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021879sed 's/^/| /' conftest.$ac_ext >&5
21880
John Criswell47fdd832003-07-14 16:52:07 +000021881fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021882rm -f conftest.err conftest.$ac_objext \
21883 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21885
21886 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21887 # Warning - without using the other run time loading flags,
21888 # -berok will link without error, but may produce a broken library.
21889 no_undefined_flag_GCJ=' ${wl}-bernotok'
21890 allow_undefined_flag_GCJ=' ${wl}-berok'
21891 # -bexpall does not export symbols beginning with underscore (_)
21892 always_export_symbols_GCJ=yes
21893 # Exported symbols can be pulled into shared objects from archives
21894 whole_archive_flag_spec_GCJ=' '
21895 archive_cmds_need_lc_GCJ=yes
21896 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021897 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 +000021898 fi
21899 fi
21900 ;;
21901
21902 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021903 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 +000021904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21905 hardcode_minus_L_GCJ=yes
21906 # see comment about different semantics on the GNU ld section
21907 ld_shlibs_GCJ=no
21908 ;;
21909
Reid Spencer2706f8c2004-09-19 23:53:36 +000021910 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021911 export_dynamic_flag_spec_GCJ=-rdynamic
21912 ;;
21913
21914 cygwin* | mingw* | pw32*)
21915 # When not using gcc, we currently assume that we are using
21916 # Microsoft Visual C++.
21917 # hardcode_libdir_flag_spec is actually meaningless, as there is
21918 # no search path for DLLs.
21919 hardcode_libdir_flag_spec_GCJ=' '
21920 allow_undefined_flag_GCJ=unsupported
21921 # Tell ltmain to make .lib files, not .a files.
21922 libext=lib
21923 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021924 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021925 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021926 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 +000021927 # The linker will automatically build a .lib file if we build a DLL.
21928 old_archive_From_new_cmds_GCJ='true'
21929 # FIXME: Should let the user specify the lib program.
21930 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21931 fix_srcfile_path='`cygpath -w "$srcfile"`'
21932 enable_shared_with_static_runtimes_GCJ=yes
21933 ;;
21934
21935 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021936 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021937 rhapsody* | darwin1.[012])
21938 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21939 ;;
21940 *) # Darwin 1.3 on
21941 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21942 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21943 else
21944 case ${MACOSX_DEPLOYMENT_TARGET} in
21945 10.[012])
21946 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21947 ;;
21948 10.*)
21949 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21950 ;;
21951 esac
21952 fi
21953 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021954 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021955 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021956 hardcode_direct_GCJ=no
21957 hardcode_automatic_GCJ=yes
21958 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021959 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021960 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021961 if test "$GCC" = yes ; then
21962 output_verbose_link_cmd='echo'
21963 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21964 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21965 # 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 +000021966 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}'
21967 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 +000021968 else
21969 case "$cc_basename" in
21970 xlc*)
21971 output_verbose_link_cmd='echo'
21972 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21973 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21974 # 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 +000021975 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}'
21976 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 +000021977 ;;
21978 *)
21979 ld_shlibs_GCJ=no
21980 ;;
21981 esac
John Criswell47fdd832003-07-14 16:52:07 +000021982 fi
21983 ;;
21984
21985 dgux*)
21986 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21987 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21988 hardcode_shlibpath_var_GCJ=no
21989 ;;
21990
21991 freebsd1*)
21992 ld_shlibs_GCJ=no
21993 ;;
21994
21995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21996 # support. Future versions do this automatically, but an explicit c++rt0.o
21997 # does not break anything, and helps significantly (at the cost of a little
21998 # extra space).
21999 freebsd2.2*)
22000 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22002 hardcode_direct_GCJ=yes
22003 hardcode_shlibpath_var_GCJ=no
22004 ;;
22005
22006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22007 freebsd2*)
22008 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22009 hardcode_direct_GCJ=yes
22010 hardcode_minus_L_GCJ=yes
22011 hardcode_shlibpath_var_GCJ=no
22012 ;;
22013
22014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022015 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022016 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018 hardcode_direct_GCJ=yes
22019 hardcode_shlibpath_var_GCJ=no
22020 ;;
22021
22022 hpux9*)
22023 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022024 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 +000022025 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022026 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 +000022027 fi
22028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22029 hardcode_libdir_separator_GCJ=:
22030 hardcode_direct_GCJ=yes
22031
22032 # hardcode_minus_L: Not really in the search PATH,
22033 # but as the default location of the library.
22034 hardcode_minus_L_GCJ=yes
22035 export_dynamic_flag_spec_GCJ='${wl}-E'
22036 ;;
22037
22038 hpux10* | hpux11*)
22039 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22040 case "$host_cpu" in
22041 hppa*64*|ia64*)
22042 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22043 ;;
22044 *)
22045 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22046 ;;
22047 esac
22048 else
22049 case "$host_cpu" in
22050 hppa*64*|ia64*)
22051 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22052 ;;
22053 *)
22054 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22055 ;;
22056 esac
22057 fi
22058 if test "$with_gnu_ld" = no; then
22059 case "$host_cpu" in
22060 hppa*64*)
22061 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22062 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22063 hardcode_libdir_separator_GCJ=:
22064 hardcode_direct_GCJ=no
22065 hardcode_shlibpath_var_GCJ=no
22066 ;;
22067 ia64*)
22068 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22069 hardcode_direct_GCJ=no
22070 hardcode_shlibpath_var_GCJ=no
22071
22072 # hardcode_minus_L: Not really in the search PATH,
22073 # but as the default location of the library.
22074 hardcode_minus_L_GCJ=yes
22075 ;;
22076 *)
22077 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22078 hardcode_libdir_separator_GCJ=:
22079 hardcode_direct_GCJ=yes
22080 export_dynamic_flag_spec_GCJ='${wl}-E'
22081
22082 # hardcode_minus_L: Not really in the search PATH,
22083 # but as the default location of the library.
22084 hardcode_minus_L_GCJ=yes
22085 ;;
22086 esac
22087 fi
22088 ;;
22089
22090 irix5* | irix6* | nonstopux*)
22091 if test "$GCC" = yes; then
22092 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'
22093 else
22094 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'
22095 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22096 fi
22097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22098 hardcode_libdir_separator_GCJ=:
22099 link_all_deplibs_GCJ=yes
22100 ;;
22101
22102 netbsd*)
22103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22104 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22105 else
22106 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22107 fi
22108 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22109 hardcode_direct_GCJ=yes
22110 hardcode_shlibpath_var_GCJ=no
22111 ;;
22112
22113 newsos6)
22114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22115 hardcode_direct_GCJ=yes
22116 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22117 hardcode_libdir_separator_GCJ=:
22118 hardcode_shlibpath_var_GCJ=no
22119 ;;
22120
22121 openbsd*)
22122 hardcode_direct_GCJ=yes
22123 hardcode_shlibpath_var_GCJ=no
22124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22125 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022126 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 +000022127 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22128 export_dynamic_flag_spec_GCJ='${wl}-E'
22129 else
22130 case $host_os in
22131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22132 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22133 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22134 ;;
22135 *)
22136 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22137 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22138 ;;
22139 esac
22140 fi
22141 ;;
22142
22143 os2*)
22144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22145 hardcode_minus_L_GCJ=yes
22146 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022147 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 +000022148 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22149 ;;
22150
22151 osf3*)
22152 if test "$GCC" = yes; then
22153 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22154 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'
22155 else
22156 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22157 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'
22158 fi
22159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22160 hardcode_libdir_separator_GCJ=:
22161 ;;
22162
22163 osf4* | osf5*) # as osf3* with the addition of -msym flag
22164 if test "$GCC" = yes; then
22165 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22166 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'
22167 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22168 else
22169 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22170 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 +000022171 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~
22172 $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'
22173
John Criswell47fdd832003-07-14 16:52:07 +000022174 # Both c and cxx compiler support -rpath directly
22175 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22176 fi
22177 hardcode_libdir_separator_GCJ=:
22178 ;;
22179
22180 sco3.2v5*)
22181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182 hardcode_shlibpath_var_GCJ=no
22183 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22184 runpath_var=LD_RUN_PATH
22185 hardcode_runpath_var=yes
22186 ;;
22187
22188 solaris*)
22189 no_undefined_flag_GCJ=' -z text'
22190 if test "$GCC" = yes; then
22191 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022192 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22193 $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 +000022194 else
22195 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022196 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22197 $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 +000022198 fi
22199 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22200 hardcode_shlibpath_var_GCJ=no
22201 case $host_os in
22202 solaris2.[0-5] | solaris2.[0-5].*) ;;
22203 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22204 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22205 esac
22206 link_all_deplibs_GCJ=yes
22207 ;;
22208
22209 sunos4*)
22210 if test "x$host_vendor" = xsequent; then
22211 # Use $CC to link under sequent, because it throws in some extra .o
22212 # files that make .init and .fini sections work.
22213 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22214 else
22215 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22216 fi
22217 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22218 hardcode_direct_GCJ=yes
22219 hardcode_minus_L_GCJ=yes
22220 hardcode_shlibpath_var_GCJ=no
22221 ;;
22222
22223 sysv4)
22224 case $host_vendor in
22225 sni)
22226 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22227 hardcode_direct_GCJ=yes # is this really true???
22228 ;;
22229 siemens)
22230 ## LD is ld it makes a PLAMLIB
22231 ## CC just makes a GrossModule.
22232 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22233 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22234 hardcode_direct_GCJ=no
22235 ;;
22236 motorola)
22237 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22239 ;;
22240 esac
22241 runpath_var='LD_RUN_PATH'
22242 hardcode_shlibpath_var_GCJ=no
22243 ;;
22244
22245 sysv4.3*)
22246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22247 hardcode_shlibpath_var_GCJ=no
22248 export_dynamic_flag_spec_GCJ='-Bexport'
22249 ;;
22250
22251 sysv4*MP*)
22252 if test -d /usr/nec; then
22253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22254 hardcode_shlibpath_var_GCJ=no
22255 runpath_var=LD_RUN_PATH
22256 hardcode_runpath_var=yes
22257 ld_shlibs_GCJ=yes
22258 fi
22259 ;;
22260
22261 sysv4.2uw2*)
22262 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22263 hardcode_direct_GCJ=yes
22264 hardcode_minus_L_GCJ=no
22265 hardcode_shlibpath_var_GCJ=no
22266 hardcode_runpath_var=yes
22267 runpath_var=LD_RUN_PATH
22268 ;;
22269
22270 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22271 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22272 if test "$GCC" = yes; then
22273 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22274 else
22275 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22276 fi
22277 runpath_var='LD_RUN_PATH'
22278 hardcode_shlibpath_var_GCJ=no
22279 ;;
22280
22281 sysv5*)
22282 no_undefined_flag_GCJ=' -z text'
22283 # $CC -shared without GNU ld will not create a library from C++
22284 # object files and a static libstdc++, better avoid it by now
22285 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022286 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22287 $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 +000022288 hardcode_libdir_flag_spec_GCJ=
22289 hardcode_shlibpath_var_GCJ=no
22290 runpath_var='LD_RUN_PATH'
22291 ;;
22292
22293 uts4*)
22294 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22295 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22296 hardcode_shlibpath_var_GCJ=no
22297 ;;
22298
22299 *)
22300 ld_shlibs_GCJ=no
22301 ;;
22302 esac
22303 fi
22304
22305echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22306echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22307test "$ld_shlibs_GCJ" = no && can_build_shared=no
22308
22309variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22310if test "$GCC" = yes; then
22311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22312fi
22313
22314#
22315# Do we need to explicitly link libc?
22316#
22317case "x$archive_cmds_need_lc_GCJ" in
22318x|xyes)
22319 # Assume -lc should be added
22320 archive_cmds_need_lc_GCJ=yes
22321
22322 if test "$enable_shared" = yes && test "$GCC" = yes; then
22323 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022324 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022325 # FIXME: we may have to deal with multi-command sequences.
22326 ;;
22327 '$CC '*)
22328 # Test whether the compiler implicitly links with -lc since on some
22329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22330 # to ld, don't add -lc before -lgcc.
22331 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22332echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22333 $rm conftest*
22334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22335
22336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22337 (eval $ac_compile) 2>&5
22338 ac_status=$?
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } 2>conftest.err; then
22341 soname=conftest
22342 lib=conftest
22343 libobjs=conftest.$ac_objext
22344 deplibs=
22345 wl=$lt_prog_compiler_wl_GCJ
22346 compiler_flags=-v
22347 linker_flags=-v
22348 verstring=
22349 output_objdir=.
22350 libname=conftest
22351 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22352 allow_undefined_flag_GCJ=
22353 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22354 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }
22358 then
22359 archive_cmds_need_lc_GCJ=no
22360 else
22361 archive_cmds_need_lc_GCJ=yes
22362 fi
22363 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22364 else
22365 cat conftest.err 1>&5
22366 fi
22367 $rm conftest*
22368 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22369echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22370 ;;
22371 esac
22372 fi
22373 ;;
22374esac
22375
John Criswell47fdd832003-07-14 16:52:07 +000022376echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22377echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22378library_names_spec=
22379libname_spec='lib$name'
22380soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022381shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022382postinstall_cmds=
22383postuninstall_cmds=
22384finish_cmds=
22385finish_eval=
22386shlibpath_var=
22387shlibpath_overrides_runpath=unknown
22388version_type=none
22389dynamic_linker="$host_os ld.so"
22390sys_lib_dlsearch_path_spec="/lib /usr/lib"
22391if test "$GCC" = yes; then
22392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22393 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22394 # if the path contains ";" then we assume it to be the separator
22395 # otherwise default to the standard path separator (i.e. ":") - it is
22396 # assumed that no part of a normal pathname contains ";" but that should
22397 # okay in the real world where ";" in dirpaths is itself problematic.
22398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22399 else
22400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22401 fi
22402else
22403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22404fi
22405need_lib_prefix=unknown
22406hardcode_into_libs=no
22407
22408# when you set need_version to no, make sure it does not cause -set_version
22409# flags to be left without arguments
22410need_version=unknown
22411
22412case $host_os in
22413aix3*)
22414 version_type=linux
22415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22416 shlibpath_var=LIBPATH
22417
22418 # AIX 3 has no versioning support, so we append a major version to the name.
22419 soname_spec='${libname}${release}${shared_ext}$major'
22420 ;;
22421
22422aix4* | aix5*)
22423 version_type=linux
22424 need_lib_prefix=no
22425 need_version=no
22426 hardcode_into_libs=yes
22427 if test "$host_cpu" = ia64; then
22428 # AIX 5 supports IA64
22429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22430 shlibpath_var=LD_LIBRARY_PATH
22431 else
22432 # With GCC up to 2.95.x, collect2 would create an import file
22433 # for dependence libraries. The import file would start with
22434 # the line `#! .'. This would cause the generated library to
22435 # depend on `.', always an invalid library. This was fixed in
22436 # development snapshots of GCC prior to 3.0.
22437 case $host_os in
22438 aix4 | aix4.[01] | aix4.[01].*)
22439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22440 echo ' yes '
22441 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22442 :
22443 else
22444 can_build_shared=no
22445 fi
22446 ;;
22447 esac
22448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22449 # soname into executable. Probably we can add versioning support to
22450 # collect2, so additional links can be useful in future.
22451 if test "$aix_use_runtimelinking" = yes; then
22452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22453 # instead of lib<name>.a to let people know that these are not
22454 # typical AIX shared libraries.
22455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22456 else
22457 # We preserve .a as extension for shared libraries through AIX4.2
22458 # and later when we are not doing run time linking.
22459 library_names_spec='${libname}${release}.a $libname.a'
22460 soname_spec='${libname}${release}${shared_ext}$major'
22461 fi
22462 shlibpath_var=LIBPATH
22463 fi
22464 ;;
22465
22466amigaos*)
22467 library_names_spec='$libname.ixlibrary $libname.a'
22468 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022469 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 +000022470 ;;
22471
22472beos*)
22473 library_names_spec='${libname}${shared_ext}'
22474 dynamic_linker="$host_os ld.so"
22475 shlibpath_var=LIBRARY_PATH
22476 ;;
22477
Reid Spencer2706f8c2004-09-19 23:53:36 +000022478bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022479 version_type=linux
22480 need_version=no
22481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22482 soname_spec='${libname}${release}${shared_ext}$major'
22483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22484 shlibpath_var=LD_LIBRARY_PATH
22485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22487 # the default ld.so.conf also contains /usr/contrib/lib and
22488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22489 # libtool to hard-code these into programs
22490 ;;
22491
22492cygwin* | mingw* | pw32*)
22493 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022494 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022495 need_version=no
22496 need_lib_prefix=no
22497
22498 case $GCC,$host_os in
22499 yes,cygwin* | yes,mingw* | yes,pw32*)
22500 library_names_spec='$libname.dll.a'
22501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022502 postinstall_cmds='base_file=`basename \${file}`~
22503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22504 dldir=$destdir/`dirname \$dlpath`~
22505 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022506 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22508 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022509 $rm \$dlpath'
22510 shlibpath_overrides_runpath=yes
22511
22512 case $host_os in
22513 cygwin*)
22514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22515 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 +000022516 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022517 ;;
22518 mingw*)
22519 # MinGW DLLs use traditional 'lib' prefix
22520 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22522 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22523 # It is most probably a Windows format PATH printed by
22524 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22525 # path with ; separators, and with drive letters. We can handle the
22526 # drive letters (cygwin fileutils understands them), so leave them,
22527 # especially as we might pass files found there to a mingw objdump,
22528 # which wouldn't understand a cygwinified path. Ahh.
22529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22530 else
22531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22532 fi
22533 ;;
22534 pw32*)
22535 # pw32 DLLs use 'pw' prefix rather than 'lib'
22536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22537 ;;
22538 esac
22539 ;;
22540
22541 *)
22542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22543 ;;
22544 esac
22545 dynamic_linker='Win32 ld.exe'
22546 # FIXME: first we should search . and the directory the executable is in
22547 shlibpath_var=PATH
22548 ;;
22549
22550darwin* | rhapsody*)
22551 dynamic_linker="$host_os dyld"
22552 version_type=darwin
22553 need_lib_prefix=no
22554 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022555 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022556 soname_spec='${libname}${release}${major}$shared_ext'
22557 shlibpath_overrides_runpath=yes
22558 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022559 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022560 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022561 if test "$GCC" = yes; then
22562 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"`
22563 else
22564 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022565 fi
22566 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22567 ;;
22568
22569dgux*)
22570 version_type=linux
22571 need_lib_prefix=no
22572 need_version=no
22573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22574 soname_spec='${libname}${release}${shared_ext}$major'
22575 shlibpath_var=LD_LIBRARY_PATH
22576 ;;
22577
22578freebsd1*)
22579 dynamic_linker=no
22580 ;;
22581
Reid Spencer2706f8c2004-09-19 23:53:36 +000022582kfreebsd*-gnu)
22583 version_type=linux
22584 need_lib_prefix=no
22585 need_version=no
22586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22587 soname_spec='${libname}${release}${shared_ext}$major'
22588 shlibpath_var=LD_LIBRARY_PATH
22589 shlibpath_overrides_runpath=no
22590 hardcode_into_libs=yes
22591 dynamic_linker='GNU ld.so'
22592 ;;
22593
John Criswell47fdd832003-07-14 16:52:07 +000022594freebsd*)
22595 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22596 version_type=freebsd-$objformat
22597 case $version_type in
22598 freebsd-elf*)
22599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22600 need_version=no
22601 need_lib_prefix=no
22602 ;;
22603 freebsd-*)
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22605 need_version=yes
22606 ;;
22607 esac
22608 shlibpath_var=LD_LIBRARY_PATH
22609 case $host_os in
22610 freebsd2*)
22611 shlibpath_overrides_runpath=yes
22612 ;;
22613 freebsd3.01* | freebsdelf3.01*)
22614 shlibpath_overrides_runpath=yes
22615 hardcode_into_libs=yes
22616 ;;
22617 *) # from 3.2 on
22618 shlibpath_overrides_runpath=no
22619 hardcode_into_libs=yes
22620 ;;
22621 esac
22622 ;;
22623
22624gnu*)
22625 version_type=linux
22626 need_lib_prefix=no
22627 need_version=no
22628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22629 soname_spec='${libname}${release}${shared_ext}$major'
22630 shlibpath_var=LD_LIBRARY_PATH
22631 hardcode_into_libs=yes
22632 ;;
22633
22634hpux9* | hpux10* | hpux11*)
22635 # Give a soname corresponding to the major version so that dld.sl refuses to
22636 # link against other versions.
22637 version_type=sunos
22638 need_lib_prefix=no
22639 need_version=no
22640 case "$host_cpu" in
22641 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022642 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022643 hardcode_into_libs=yes
22644 dynamic_linker="$host_os dld.so"
22645 shlibpath_var=LD_LIBRARY_PATH
22646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 if test "X$HPUX_IA64_MODE" = X32; then
22650 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22651 else
22652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22653 fi
22654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22655 ;;
22656 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022657 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022658 hardcode_into_libs=yes
22659 dynamic_linker="$host_os dld.sl"
22660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22663 soname_spec='${libname}${release}${shared_ext}$major'
22664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22666 ;;
22667 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022668 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022669 dynamic_linker="$host_os dld.sl"
22670 shlibpath_var=SHLIB_PATH
22671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 ;;
22675 esac
22676 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22677 postinstall_cmds='chmod 555 $lib'
22678 ;;
22679
22680irix5* | irix6* | nonstopux*)
22681 case $host_os in
22682 nonstopux*) version_type=nonstopux ;;
22683 *)
22684 if test "$lt_cv_prog_gnu_ld" = yes; then
22685 version_type=linux
22686 else
22687 version_type=irix
22688 fi ;;
22689 esac
22690 need_lib_prefix=no
22691 need_version=no
22692 soname_spec='${libname}${release}${shared_ext}$major'
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22694 case $host_os in
22695 irix5* | nonstopux*)
22696 libsuff= shlibsuff=
22697 ;;
22698 *)
22699 case $LD in # libtool.m4 will add one of these switches to LD
22700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22701 libsuff= shlibsuff= libmagic=32-bit;;
22702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22703 libsuff=32 shlibsuff=N32 libmagic=N32;;
22704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22706 *) libsuff= shlibsuff= libmagic=never-match;;
22707 esac
22708 ;;
22709 esac
22710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22711 shlibpath_overrides_runpath=no
22712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22714 hardcode_into_libs=yes
22715 ;;
22716
22717# No shared lib support for Linux oldld, aout, or coff.
22718linux*oldld* | linux*aout* | linux*coff*)
22719 dynamic_linker=no
22720 ;;
22721
22722# This must be Linux ELF.
22723linux*)
22724 version_type=linux
22725 need_lib_prefix=no
22726 need_version=no
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 soname_spec='${libname}${release}${shared_ext}$major'
22729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22730 shlibpath_var=LD_LIBRARY_PATH
22731 shlibpath_overrides_runpath=no
22732 # This implies no fast_install, which is unacceptable.
22733 # Some rework will be needed to allow for fast_install
22734 # before this can be enabled.
22735 hardcode_into_libs=yes
22736
Reid Spencer2706f8c2004-09-19 23:53:36 +000022737 # Append ld.so.conf contents to the search path
22738 if test -f /etc/ld.so.conf; then
22739 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22741 fi
22742
John Criswell47fdd832003-07-14 16:52:07 +000022743 # We used to test for /lib/ld.so.1 and disable shared libraries on
22744 # powerpc, because MkLinux only supported shared libraries with the
22745 # GNU dynamic linker. Since this was broken with cross compilers,
22746 # most powerpc-linux boxes support dynamic linking these days and
22747 # people can always --disable-shared, the test was removed, and we
22748 # assume the GNU/Linux dynamic linker is in use.
22749 dynamic_linker='GNU/Linux ld.so'
22750 ;;
22751
Reid Spencer2706f8c2004-09-19 23:53:36 +000022752knetbsd*-gnu)
22753 version_type=linux
22754 need_lib_prefix=no
22755 need_version=no
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 shlibpath_overrides_runpath=no
22760 hardcode_into_libs=yes
22761 dynamic_linker='GNU ld.so'
22762 ;;
22763
John Criswell47fdd832003-07-14 16:52:07 +000022764netbsd*)
22765 version_type=sunos
22766 need_lib_prefix=no
22767 need_version=no
22768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22771 dynamic_linker='NetBSD (a.out) ld.so'
22772 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022774 soname_spec='${libname}${release}${shared_ext}$major'
22775 dynamic_linker='NetBSD ld.elf_so'
22776 fi
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=yes
22779 hardcode_into_libs=yes
22780 ;;
22781
22782newsos6)
22783 version_type=linux
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 shlibpath_overrides_runpath=yes
22787 ;;
22788
Reid Spencer2706f8c2004-09-19 23:53:36 +000022789nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022790 version_type=linux
22791 need_lib_prefix=no
22792 need_version=no
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 shlibpath_overrides_runpath=yes
22797 ;;
22798
22799openbsd*)
22800 version_type=sunos
22801 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022802 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22805 shlibpath_var=LD_LIBRARY_PATH
22806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22807 case $host_os in
22808 openbsd2.[89] | openbsd2.[89].*)
22809 shlibpath_overrides_runpath=no
22810 ;;
22811 *)
22812 shlibpath_overrides_runpath=yes
22813 ;;
22814 esac
22815 else
22816 shlibpath_overrides_runpath=yes
22817 fi
22818 ;;
22819
22820os2*)
22821 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022822 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022823 need_lib_prefix=no
22824 library_names_spec='$libname${shared_ext} $libname.a'
22825 dynamic_linker='OS/2 ld.exe'
22826 shlibpath_var=LIBPATH
22827 ;;
22828
22829osf3* | osf4* | osf5*)
22830 version_type=osf
22831 need_lib_prefix=no
22832 need_version=no
22833 soname_spec='${libname}${release}${shared_ext}$major'
22834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22835 shlibpath_var=LD_LIBRARY_PATH
22836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22838 ;;
22839
22840sco3.2v5*)
22841 version_type=osf
22842 soname_spec='${libname}${release}${shared_ext}$major'
22843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22844 shlibpath_var=LD_LIBRARY_PATH
22845 ;;
22846
22847solaris*)
22848 version_type=linux
22849 need_lib_prefix=no
22850 need_version=no
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 shlibpath_var=LD_LIBRARY_PATH
22854 shlibpath_overrides_runpath=yes
22855 hardcode_into_libs=yes
22856 # ldd complains unless libraries are executable
22857 postinstall_cmds='chmod +x $lib'
22858 ;;
22859
22860sunos4*)
22861 version_type=sunos
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=yes
22866 if test "$with_gnu_ld" = yes; then
22867 need_lib_prefix=no
22868 fi
22869 need_version=yes
22870 ;;
22871
22872sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22873 version_type=linux
22874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875 soname_spec='${libname}${release}${shared_ext}$major'
22876 shlibpath_var=LD_LIBRARY_PATH
22877 case $host_vendor in
22878 sni)
22879 shlibpath_overrides_runpath=no
22880 need_lib_prefix=no
22881 export_dynamic_flag_spec='${wl}-Blargedynsym'
22882 runpath_var=LD_RUN_PATH
22883 ;;
22884 siemens)
22885 need_lib_prefix=no
22886 ;;
22887 motorola)
22888 need_lib_prefix=no
22889 need_version=no
22890 shlibpath_overrides_runpath=no
22891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22892 ;;
22893 esac
22894 ;;
22895
22896sysv4*MP*)
22897 if test -d /usr/nec ;then
22898 version_type=linux
22899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22900 soname_spec='$libname${shared_ext}.$major'
22901 shlibpath_var=LD_LIBRARY_PATH
22902 fi
22903 ;;
22904
22905uts4*)
22906 version_type=linux
22907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 shlibpath_var=LD_LIBRARY_PATH
22910 ;;
22911
22912*)
22913 dynamic_linker=no
22914 ;;
22915esac
22916echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22917echo "${ECHO_T}$dynamic_linker" >&6
22918test "$dynamic_linker" = no && can_build_shared=no
22919
Reid Spencer2706f8c2004-09-19 23:53:36 +000022920echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22921echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22922hardcode_action_GCJ=
22923if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22924 test -n "$runpath_var_GCJ" || \
22925 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22926
22927 # We can hardcode non-existant directories.
22928 if test "$hardcode_direct_GCJ" != no &&
22929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22930 # have to relink, otherwise we might link with an installed library
22931 # when we should be linking with a yet-to-be-installed one
22932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22933 test "$hardcode_minus_L_GCJ" != no; then
22934 # Linking always hardcodes the temporary library directory.
22935 hardcode_action_GCJ=relink
22936 else
22937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22938 hardcode_action_GCJ=immediate
22939 fi
22940else
22941 # We cannot hardcode anything, or else we can only hardcode existing
22942 # directories.
22943 hardcode_action_GCJ=unsupported
22944fi
22945echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22946echo "${ECHO_T}$hardcode_action_GCJ" >&6
22947
22948if test "$hardcode_action_GCJ" = relink; then
22949 # Fast installation is not supported
22950 enable_fast_install=no
22951elif test "$shlibpath_overrides_runpath" = yes ||
22952 test "$enable_shared" = no; then
22953 # Fast installation is not necessary
22954 enable_fast_install=needless
22955fi
22956
22957striplib=
22958old_striplib=
22959echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22960echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22961if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22962 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22963 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22964 echo "$as_me:$LINENO: result: yes" >&5
22965echo "${ECHO_T}yes" >&6
22966else
22967# FIXME - insert some real tests, host_os isn't really good enough
22968 case $host_os in
22969 darwin*)
22970 if test -n "$STRIP" ; then
22971 striplib="$STRIP -x"
22972 echo "$as_me:$LINENO: result: yes" >&5
22973echo "${ECHO_T}yes" >&6
22974 else
22975 echo "$as_me:$LINENO: result: no" >&5
22976echo "${ECHO_T}no" >&6
22977fi
22978 ;;
22979 *)
22980 echo "$as_me:$LINENO: result: no" >&5
22981echo "${ECHO_T}no" >&6
22982 ;;
22983 esac
22984fi
22985
John Criswell47fdd832003-07-14 16:52:07 +000022986if test "x$enable_dlopen" != xyes; then
22987 enable_dlopen=unknown
22988 enable_dlopen_self=unknown
22989 enable_dlopen_self_static=unknown
22990else
22991 lt_cv_dlopen=no
22992 lt_cv_dlopen_libs=
22993
22994 case $host_os in
22995 beos*)
22996 lt_cv_dlopen="load_add_on"
22997 lt_cv_dlopen_libs=
22998 lt_cv_dlopen_self=yes
22999 ;;
23000
23001 mingw* | pw32*)
23002 lt_cv_dlopen="LoadLibrary"
23003 lt_cv_dlopen_libs=
23004 ;;
23005
23006 cygwin*)
23007 lt_cv_dlopen="dlopen"
23008 lt_cv_dlopen_libs=
23009 ;;
23010
23011 darwin*)
23012 # if libdl is installed we need to link against it
23013 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23014echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23015if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23017else
23018 ac_check_lib_save_LIBS=$LIBS
23019LIBS="-ldl $LIBS"
23020cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023021/* confdefs.h. */
23022_ACEOF
23023cat confdefs.h >>conftest.$ac_ext
23024cat >>conftest.$ac_ext <<_ACEOF
23025/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023026
23027/* Override any gcc2 internal prototype to avoid an error. */
23028#ifdef __cplusplus
23029extern "C"
23030#endif
23031/* We use char because int might match the return type of a gcc2
23032 builtin and then its argument prototype would still apply. */
23033char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023034int
23035main ()
23036{
23037dlopen ();
23038 ;
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_lib_dl_dlopen=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_lib_dl_dlopen=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 +000023073LIBS=$ac_check_lib_save_LIBS
23074fi
23075echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23076echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23077if test $ac_cv_lib_dl_dlopen = yes; then
23078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23079else
23080
23081 lt_cv_dlopen="dyld"
23082 lt_cv_dlopen_libs=
23083 lt_cv_dlopen_self=yes
23084
23085fi
23086
23087 ;;
23088
23089 *)
23090 echo "$as_me:$LINENO: checking for shl_load" >&5
23091echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23092if test "${ac_cv_func_shl_load+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23094else
23095 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023096/* confdefs.h. */
23097_ACEOF
23098cat confdefs.h >>conftest.$ac_ext
23099cat >>conftest.$ac_ext <<_ACEOF
23100/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023101/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23103#define shl_load innocuous_shl_load
23104
John Criswell47fdd832003-07-14 16:52:07 +000023105/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023106 which can conflict with char shl_load (); below.
23107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23108 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023109
John Criswell0c38eaf2003-09-10 15:17:25 +000023110#ifdef __STDC__
23111# include <limits.h>
23112#else
23113# include <assert.h>
23114#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023115
23116#undef shl_load
23117
John Criswell47fdd832003-07-14 16:52:07 +000023118/* Override any gcc2 internal prototype to avoid an error. */
23119#ifdef __cplusplus
23120extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023121{
John Criswell47fdd832003-07-14 16:52:07 +000023122#endif
23123/* We use char because int might match the return type of a gcc2
23124 builtin and then its argument prototype would still apply. */
23125char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023126/* The GNU C library defines this for functions which it implements
23127 to always fail with ENOSYS. Some functions are actually named
23128 something starting with __ and the normal name is an alias. */
23129#if defined (__stub_shl_load) || defined (__stub___shl_load)
23130choke me
23131#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023132char (*f) () = shl_load;
23133#endif
23134#ifdef __cplusplus
23135}
John Criswell47fdd832003-07-14 16:52:07 +000023136#endif
23137
John Criswell0c38eaf2003-09-10 15:17:25 +000023138int
23139main ()
23140{
23141return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023142 ;
23143 return 0;
23144}
23145_ACEOF
23146rm -f conftest.$ac_objext conftest$ac_exeext
23147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023148 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023155 { ac_try='test -z "$ac_c_werror_flag"
23156 || test ! -s conftest.err'
23157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158 (eval $ac_try) 2>&5
23159 ac_status=$?
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; } &&
23162 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 ac_cv_func_shl_load=yes
23169else
23170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023171sed 's/^/| /' conftest.$ac_ext >&5
23172
John Criswell47fdd832003-07-14 16:52:07 +000023173ac_cv_func_shl_load=no
23174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023175rm -f conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023177fi
23178echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23179echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23180if test $ac_cv_func_shl_load = yes; then
23181 lt_cv_dlopen="shl_load"
23182else
23183 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23184echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23185if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187else
23188 ac_check_lib_save_LIBS=$LIBS
23189LIBS="-ldld $LIBS"
23190cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023191/* confdefs.h. */
23192_ACEOF
23193cat confdefs.h >>conftest.$ac_ext
23194cat >>conftest.$ac_ext <<_ACEOF
23195/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023196
23197/* Override any gcc2 internal prototype to avoid an error. */
23198#ifdef __cplusplus
23199extern "C"
23200#endif
23201/* We use char because int might match the return type of a gcc2
23202 builtin and then its argument prototype would still apply. */
23203char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023204int
23205main ()
23206{
23207shl_load ();
23208 ;
23209 return 0;
23210}
23211_ACEOF
23212rm -f conftest.$ac_objext conftest$ac_exeext
23213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023214 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023215 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023221 { ac_try='test -z "$ac_c_werror_flag"
23222 || test ! -s conftest.err'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_lib_dld_shl_load=yes
23235else
23236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023237sed 's/^/| /' conftest.$ac_ext >&5
23238
John Criswell47fdd832003-07-14 16:52:07 +000023239ac_cv_lib_dld_shl_load=no
23240fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023241rm -f conftest.err conftest.$ac_objext \
23242 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023243LIBS=$ac_check_lib_save_LIBS
23244fi
23245echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23246echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23247if test $ac_cv_lib_dld_shl_load = yes; then
23248 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23249else
23250 echo "$as_me:$LINENO: checking for dlopen" >&5
23251echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23252if test "${ac_cv_func_dlopen+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23254else
23255 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023256/* confdefs.h. */
23257_ACEOF
23258cat confdefs.h >>conftest.$ac_ext
23259cat >>conftest.$ac_ext <<_ACEOF
23260/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023261/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23263#define dlopen innocuous_dlopen
23264
John Criswell47fdd832003-07-14 16:52:07 +000023265/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023266 which can conflict with char dlopen (); below.
23267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23268 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023269
John Criswell0c38eaf2003-09-10 15:17:25 +000023270#ifdef __STDC__
23271# include <limits.h>
23272#else
23273# include <assert.h>
23274#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023275
23276#undef dlopen
23277
John Criswell47fdd832003-07-14 16:52:07 +000023278/* Override any gcc2 internal prototype to avoid an error. */
23279#ifdef __cplusplus
23280extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023281{
John Criswell47fdd832003-07-14 16:52:07 +000023282#endif
23283/* We use char because int might match the return type of a gcc2
23284 builtin and then its argument prototype would still apply. */
23285char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023286/* The GNU C library defines this for functions which it implements
23287 to always fail with ENOSYS. Some functions are actually named
23288 something starting with __ and the normal name is an alias. */
23289#if defined (__stub_dlopen) || defined (__stub___dlopen)
23290choke me
23291#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023292char (*f) () = dlopen;
23293#endif
23294#ifdef __cplusplus
23295}
John Criswell47fdd832003-07-14 16:52:07 +000023296#endif
23297
John Criswell0c38eaf2003-09-10 15:17:25 +000023298int
23299main ()
23300{
23301return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023302 ;
23303 return 0;
23304}
23305_ACEOF
23306rm -f conftest.$ac_objext conftest$ac_exeext
23307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023308 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023309 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023310 grep -v '^ *+' conftest.er1 >conftest.err
23311 rm -f conftest.er1
23312 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023315 { ac_try='test -z "$ac_c_werror_flag"
23316 || test ! -s conftest.err'
23317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318 (eval $ac_try) 2>&5
23319 ac_status=$?
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; } &&
23322 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
23328 ac_cv_func_dlopen=yes
23329else
23330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023331sed 's/^/| /' conftest.$ac_ext >&5
23332
John Criswell47fdd832003-07-14 16:52:07 +000023333ac_cv_func_dlopen=no
23334fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023335rm -f conftest.err conftest.$ac_objext \
23336 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023337fi
23338echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23339echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23340if test $ac_cv_func_dlopen = yes; then
23341 lt_cv_dlopen="dlopen"
23342else
23343 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23344echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23345if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23347else
23348 ac_check_lib_save_LIBS=$LIBS
23349LIBS="-ldl $LIBS"
23350cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023351/* confdefs.h. */
23352_ACEOF
23353cat confdefs.h >>conftest.$ac_ext
23354cat >>conftest.$ac_ext <<_ACEOF
23355/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023356
23357/* Override any gcc2 internal prototype to avoid an error. */
23358#ifdef __cplusplus
23359extern "C"
23360#endif
23361/* We use char because int might match the return type of a gcc2
23362 builtin and then its argument prototype would still apply. */
23363char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023364int
23365main ()
23366{
23367dlopen ();
23368 ;
23369 return 0;
23370}
23371_ACEOF
23372rm -f conftest.$ac_objext conftest$ac_exeext
23373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023374 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023375 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023376 grep -v '^ *+' conftest.er1 >conftest.err
23377 rm -f conftest.er1
23378 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023381 { ac_try='test -z "$ac_c_werror_flag"
23382 || test ! -s conftest.err'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_cv_lib_dl_dlopen=yes
23395else
23396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023397sed 's/^/| /' conftest.$ac_ext >&5
23398
John Criswell47fdd832003-07-14 16:52:07 +000023399ac_cv_lib_dl_dlopen=no
23400fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023401rm -f conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023403LIBS=$ac_check_lib_save_LIBS
23404fi
23405echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23406echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23407if test $ac_cv_lib_dl_dlopen = yes; then
23408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23409else
23410 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23411echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23412if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23413 echo $ECHO_N "(cached) $ECHO_C" >&6
23414else
23415 ac_check_lib_save_LIBS=$LIBS
23416LIBS="-lsvld $LIBS"
23417cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023418/* confdefs.h. */
23419_ACEOF
23420cat confdefs.h >>conftest.$ac_ext
23421cat >>conftest.$ac_ext <<_ACEOF
23422/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023423
23424/* Override any gcc2 internal prototype to avoid an error. */
23425#ifdef __cplusplus
23426extern "C"
23427#endif
23428/* We use char because int might match the return type of a gcc2
23429 builtin and then its argument prototype would still apply. */
23430char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023431int
23432main ()
23433{
23434dlopen ();
23435 ;
23436 return 0;
23437}
23438_ACEOF
23439rm -f conftest.$ac_objext conftest$ac_exeext
23440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023441 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023442 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023443 grep -v '^ *+' conftest.er1 >conftest.err
23444 rm -f conftest.er1
23445 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023448 { ac_try='test -z "$ac_c_werror_flag"
23449 || test ! -s conftest.err'
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23452 ac_status=$?
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; } &&
23455 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
23461 ac_cv_lib_svld_dlopen=yes
23462else
23463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023464sed 's/^/| /' conftest.$ac_ext >&5
23465
John Criswell47fdd832003-07-14 16:52:07 +000023466ac_cv_lib_svld_dlopen=no
23467fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023468rm -f conftest.err conftest.$ac_objext \
23469 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023470LIBS=$ac_check_lib_save_LIBS
23471fi
23472echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23473echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23474if test $ac_cv_lib_svld_dlopen = yes; then
23475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23476else
23477 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23478echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23479if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23481else
23482 ac_check_lib_save_LIBS=$LIBS
23483LIBS="-ldld $LIBS"
23484cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023485/* confdefs.h. */
23486_ACEOF
23487cat confdefs.h >>conftest.$ac_ext
23488cat >>conftest.$ac_ext <<_ACEOF
23489/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023490
23491/* Override any gcc2 internal prototype to avoid an error. */
23492#ifdef __cplusplus
23493extern "C"
23494#endif
23495/* We use char because int might match the return type of a gcc2
23496 builtin and then its argument prototype would still apply. */
23497char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023498int
23499main ()
23500{
23501dld_link ();
23502 ;
23503 return 0;
23504}
23505_ACEOF
23506rm -f conftest.$ac_objext conftest$ac_exeext
23507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023508 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023509 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023515 { ac_try='test -z "$ac_c_werror_flag"
23516 || test ! -s conftest.err'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_cv_lib_dld_dld_link=yes
23529else
23530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023531sed 's/^/| /' conftest.$ac_ext >&5
23532
John Criswell47fdd832003-07-14 16:52:07 +000023533ac_cv_lib_dld_dld_link=no
23534fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023535rm -f conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023537LIBS=$ac_check_lib_save_LIBS
23538fi
23539echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23540echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23541if test $ac_cv_lib_dld_dld_link = yes; then
23542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23543fi
23544
23545
23546fi
23547
23548
23549fi
23550
23551
23552fi
23553
23554
23555fi
23556
23557
23558fi
23559
23560 ;;
23561 esac
23562
23563 if test "x$lt_cv_dlopen" != xno; then
23564 enable_dlopen=yes
23565 else
23566 enable_dlopen=no
23567 fi
23568
23569 case $lt_cv_dlopen in
23570 dlopen)
23571 save_CPPFLAGS="$CPPFLAGS"
23572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23573
23574 save_LDFLAGS="$LDFLAGS"
23575 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23576
23577 save_LIBS="$LIBS"
23578 LIBS="$lt_cv_dlopen_libs $LIBS"
23579
23580 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23581echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23582if test "${lt_cv_dlopen_self+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23584else
23585 if test "$cross_compiling" = yes; then :
23586 lt_cv_dlopen_self=cross
23587else
23588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23589 lt_status=$lt_dlunknown
23590 cat > conftest.$ac_ext <<EOF
Reid Spencerbe130282005-07-14 05:19:12 +000023591#line 23591 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023592#include "confdefs.h"
23593
23594#if HAVE_DLFCN_H
23595#include <dlfcn.h>
23596#endif
23597
23598#include <stdio.h>
23599
23600#ifdef RTLD_GLOBAL
23601# define LT_DLGLOBAL RTLD_GLOBAL
23602#else
23603# ifdef DL_GLOBAL
23604# define LT_DLGLOBAL DL_GLOBAL
23605# else
23606# define LT_DLGLOBAL 0
23607# endif
23608#endif
23609
23610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23611 find out it does not work in some platform. */
23612#ifndef LT_DLLAZY_OR_NOW
23613# ifdef RTLD_LAZY
23614# define LT_DLLAZY_OR_NOW RTLD_LAZY
23615# else
23616# ifdef DL_LAZY
23617# define LT_DLLAZY_OR_NOW DL_LAZY
23618# else
23619# ifdef RTLD_NOW
23620# define LT_DLLAZY_OR_NOW RTLD_NOW
23621# else
23622# ifdef DL_NOW
23623# define LT_DLLAZY_OR_NOW DL_NOW
23624# else
23625# define LT_DLLAZY_OR_NOW 0
23626# endif
23627# endif
23628# endif
23629# endif
23630#endif
23631
23632#ifdef __cplusplus
23633extern "C" void exit (int);
23634#endif
23635
23636void fnord() { int i=42;}
23637int main ()
23638{
23639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23640 int status = $lt_dlunknown;
23641
23642 if (self)
23643 {
23644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23646 /* dlclose (self); */
23647 }
23648
23649 exit (status);
23650}
23651EOF
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23657 (./conftest; exit; ) 2>/dev/null
23658 lt_status=$?
23659 case x$lt_status in
23660 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23661 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23662 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23663 esac
23664 else :
23665 # compilation failed
23666 lt_cv_dlopen_self=no
23667 fi
23668fi
23669rm -fr conftest*
23670
23671
23672fi
23673echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23674echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23675
23676 if test "x$lt_cv_dlopen_self" = xyes; then
23677 LDFLAGS="$LDFLAGS $link_static_flag"
23678 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23679echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23680if test "${lt_cv_dlopen_self_static+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23682else
23683 if test "$cross_compiling" = yes; then :
23684 lt_cv_dlopen_self_static=cross
23685else
23686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23687 lt_status=$lt_dlunknown
23688 cat > conftest.$ac_ext <<EOF
Reid Spencerbe130282005-07-14 05:19:12 +000023689#line 23689 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023690#include "confdefs.h"
23691
23692#if HAVE_DLFCN_H
23693#include <dlfcn.h>
23694#endif
23695
23696#include <stdio.h>
23697
23698#ifdef RTLD_GLOBAL
23699# define LT_DLGLOBAL RTLD_GLOBAL
23700#else
23701# ifdef DL_GLOBAL
23702# define LT_DLGLOBAL DL_GLOBAL
23703# else
23704# define LT_DLGLOBAL 0
23705# endif
23706#endif
23707
23708/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23709 find out it does not work in some platform. */
23710#ifndef LT_DLLAZY_OR_NOW
23711# ifdef RTLD_LAZY
23712# define LT_DLLAZY_OR_NOW RTLD_LAZY
23713# else
23714# ifdef DL_LAZY
23715# define LT_DLLAZY_OR_NOW DL_LAZY
23716# else
23717# ifdef RTLD_NOW
23718# define LT_DLLAZY_OR_NOW RTLD_NOW
23719# else
23720# ifdef DL_NOW
23721# define LT_DLLAZY_OR_NOW DL_NOW
23722# else
23723# define LT_DLLAZY_OR_NOW 0
23724# endif
23725# endif
23726# endif
23727# endif
23728#endif
23729
23730#ifdef __cplusplus
23731extern "C" void exit (int);
23732#endif
23733
23734void fnord() { int i=42;}
23735int main ()
23736{
23737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23738 int status = $lt_dlunknown;
23739
23740 if (self)
23741 {
23742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23744 /* dlclose (self); */
23745 }
23746
23747 exit (status);
23748}
23749EOF
23750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751 (eval $ac_link) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23755 (./conftest; exit; ) 2>/dev/null
23756 lt_status=$?
23757 case x$lt_status in
23758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23760 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23761 esac
23762 else :
23763 # compilation failed
23764 lt_cv_dlopen_self_static=no
23765 fi
23766fi
23767rm -fr conftest*
23768
23769
23770fi
23771echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23772echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23773 fi
23774
23775 CPPFLAGS="$save_CPPFLAGS"
23776 LDFLAGS="$save_LDFLAGS"
23777 LIBS="$save_LIBS"
23778 ;;
23779 esac
23780
23781 case $lt_cv_dlopen_self in
23782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23783 *) enable_dlopen_self=unknown ;;
23784 esac
23785
23786 case $lt_cv_dlopen_self_static in
23787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23788 *) enable_dlopen_self_static=unknown ;;
23789 esac
23790fi
23791
23792
23793# The else clause should only fire when bootstrapping the
23794# libtool distribution, otherwise you forgot to ship ltmain.sh
23795# with your package, and you will get complaints that there are
23796# no rules to generate ltmain.sh.
23797if test -f "$ltmain"; then
23798 # See if we are running on zsh, and set the options which allow our commands through
23799 # without removal of \ escapes.
23800 if test -n "${ZSH_VERSION+set}" ; then
23801 setopt NO_GLOB_SUBST
23802 fi
23803 # Now quote all the things that may contain metacharacters while being
23804 # careful not to overquote the AC_SUBSTed values. We take copies of the
23805 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023806 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23807 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023808 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23809 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23810 deplibs_check_method reload_flag reload_cmds need_locks \
23811 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23812 lt_cv_sys_global_symbol_to_c_name_address \
23813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23814 old_postinstall_cmds old_postuninstall_cmds \
23815 compiler_GCJ \
23816 CC_GCJ \
23817 LD_GCJ \
23818 lt_prog_compiler_wl_GCJ \
23819 lt_prog_compiler_pic_GCJ \
23820 lt_prog_compiler_static_GCJ \
23821 lt_prog_compiler_no_builtin_flag_GCJ \
23822 export_dynamic_flag_spec_GCJ \
23823 thread_safe_flag_spec_GCJ \
23824 whole_archive_flag_spec_GCJ \
23825 enable_shared_with_static_runtimes_GCJ \
23826 old_archive_cmds_GCJ \
23827 old_archive_from_new_cmds_GCJ \
23828 predep_objects_GCJ \
23829 postdep_objects_GCJ \
23830 predeps_GCJ \
23831 postdeps_GCJ \
23832 compiler_lib_search_path_GCJ \
23833 archive_cmds_GCJ \
23834 archive_expsym_cmds_GCJ \
23835 postinstall_cmds_GCJ \
23836 postuninstall_cmds_GCJ \
23837 old_archive_from_expsyms_cmds_GCJ \
23838 allow_undefined_flag_GCJ \
23839 no_undefined_flag_GCJ \
23840 export_symbols_cmds_GCJ \
23841 hardcode_libdir_flag_spec_GCJ \
23842 hardcode_libdir_flag_spec_ld_GCJ \
23843 hardcode_libdir_separator_GCJ \
23844 hardcode_automatic_GCJ \
23845 module_cmds_GCJ \
23846 module_expsym_cmds_GCJ \
23847 lt_cv_prog_compiler_c_o_GCJ \
23848 exclude_expsyms_GCJ \
23849 include_expsyms_GCJ; do
23850
23851 case $var in
23852 old_archive_cmds_GCJ | \
23853 old_archive_from_new_cmds_GCJ | \
23854 archive_cmds_GCJ | \
23855 archive_expsym_cmds_GCJ | \
23856 module_cmds_GCJ | \
23857 module_expsym_cmds_GCJ | \
23858 old_archive_from_expsyms_cmds_GCJ | \
23859 export_symbols_cmds_GCJ | \
23860 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23861 postinstall_cmds | postuninstall_cmds | \
23862 old_postinstall_cmds | old_postuninstall_cmds | \
23863 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23864 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023865 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 +000023866 ;;
23867 *)
23868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23869 ;;
23870 esac
23871 done
23872
23873 case $lt_echo in
23874 *'\$0 --fallback-echo"')
23875 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23876 ;;
23877 esac
23878
23879cfgfile="$ofile"
23880
23881 cat <<__EOF__ >> "$cfgfile"
23882# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23883
23884# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23885
23886# Shell to use when invoking shell scripts.
23887SHELL=$lt_SHELL
23888
23889# Whether or not to build shared libraries.
23890build_libtool_libs=$enable_shared
23891
23892# Whether or not to build static libraries.
23893build_old_libs=$enable_static
23894
23895# Whether or not to add -lc for building shared libraries.
23896build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23897
23898# Whether or not to disallow shared libs when runtime libs are static
23899allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23900
23901# Whether or not to optimize for fast installation.
23902fast_install=$enable_fast_install
23903
23904# The host system.
23905host_alias=$host_alias
23906host=$host
23907
23908# An echo program that does not interpret backslashes.
23909echo=$lt_echo
23910
23911# The archiver.
23912AR=$lt_AR
23913AR_FLAGS=$lt_AR_FLAGS
23914
23915# A C compiler.
23916LTCC=$lt_LTCC
23917
23918# A language-specific compiler.
23919CC=$lt_compiler_GCJ
23920
23921# Is the compiler the GNU C compiler?
23922with_gcc=$GCC_GCJ
23923
23924# An ERE matcher.
23925EGREP=$lt_EGREP
23926
23927# The linker used to build libraries.
23928LD=$lt_LD_GCJ
23929
23930# Whether we need hard or soft links.
23931LN_S=$lt_LN_S
23932
23933# A BSD-compatible nm program.
23934NM=$lt_NM
23935
23936# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023937STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023938
23939# Used to examine libraries when file_magic_cmd begins "file"
23940MAGIC_CMD=$MAGIC_CMD
23941
23942# Used on cygwin: DLL creation program.
23943DLLTOOL="$DLLTOOL"
23944
23945# Used on cygwin: object dumper.
23946OBJDUMP="$OBJDUMP"
23947
23948# Used on cygwin: assembler.
23949AS="$AS"
23950
23951# The name of the directory that contains temporary libtool files.
23952objdir=$objdir
23953
23954# How to create reloadable object files.
23955reload_flag=$lt_reload_flag
23956reload_cmds=$lt_reload_cmds
23957
23958# How to pass a linker flag through the compiler.
23959wl=$lt_lt_prog_compiler_wl_GCJ
23960
23961# Object file suffix (normally "o").
23962objext="$ac_objext"
23963
23964# Old archive suffix (normally "a").
23965libext="$libext"
23966
23967# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023968shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023969
23970# Executable file suffix (normally "").
23971exeext="$exeext"
23972
23973# Additional compiler flags for building library objects.
23974pic_flag=$lt_lt_prog_compiler_pic_GCJ
23975pic_mode=$pic_mode
23976
23977# What is the maximum length of a command?
23978max_cmd_len=$lt_cv_sys_max_cmd_len
23979
23980# Does compiler simultaneously support -c and -o options?
23981compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23982
23983# Must we lock files when doing compilation ?
23984need_locks=$lt_need_locks
23985
23986# Do we need the lib prefix for modules?
23987need_lib_prefix=$need_lib_prefix
23988
23989# Do we need a version for libraries?
23990need_version=$need_version
23991
23992# Whether dlopen is supported.
23993dlopen_support=$enable_dlopen
23994
23995# Whether dlopen of programs is supported.
23996dlopen_self=$enable_dlopen_self
23997
23998# Whether dlopen of statically linked programs is supported.
23999dlopen_self_static=$enable_dlopen_self_static
24000
24001# Compiler flag to prevent dynamic linking.
24002link_static_flag=$lt_lt_prog_compiler_static_GCJ
24003
24004# Compiler flag to turn off builtin functions.
24005no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24006
24007# Compiler flag to allow reflexive dlopens.
24008export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24009
24010# Compiler flag to generate shared objects directly from archives.
24011whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24012
24013# Compiler flag to generate thread-safe objects.
24014thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24015
24016# Library versioning type.
24017version_type=$version_type
24018
24019# Format of library name prefix.
24020libname_spec=$lt_libname_spec
24021
24022# List of archive names. First name is the real one, the rest are links.
24023# The last name is the one that the linker finds with -lNAME.
24024library_names_spec=$lt_library_names_spec
24025
24026# The coded name of the library, if different from the real name.
24027soname_spec=$lt_soname_spec
24028
24029# Commands used to build and install an old-style archive.
24030RANLIB=$lt_RANLIB
24031old_archive_cmds=$lt_old_archive_cmds_GCJ
24032old_postinstall_cmds=$lt_old_postinstall_cmds
24033old_postuninstall_cmds=$lt_old_postuninstall_cmds
24034
24035# Create an old-style archive from a shared archive.
24036old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24037
24038# Create a temporary old-style archive to link instead of a shared archive.
24039old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24040
24041# Commands used to build and install a shared archive.
24042archive_cmds=$lt_archive_cmds_GCJ
24043archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24044postinstall_cmds=$lt_postinstall_cmds
24045postuninstall_cmds=$lt_postuninstall_cmds
24046
24047# Commands used to build a loadable module (assumed same as above if empty)
24048module_cmds=$lt_module_cmds_GCJ
24049module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24050
24051# Commands to strip libraries.
24052old_striplib=$lt_old_striplib
24053striplib=$lt_striplib
24054
24055# Dependencies to place before the objects being linked to create a
24056# shared library.
24057predep_objects=$lt_predep_objects_GCJ
24058
24059# Dependencies to place after the objects being linked to create a
24060# shared library.
24061postdep_objects=$lt_postdep_objects_GCJ
24062
24063# Dependencies to place before the objects being linked to create a
24064# shared library.
24065predeps=$lt_predeps_GCJ
24066
24067# Dependencies to place after the objects being linked to create a
24068# shared library.
24069postdeps=$lt_postdeps_GCJ
24070
24071# The library search path used internally by the compiler when linking
24072# a shared library.
24073compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24074
24075# Method to check whether dependent libraries are shared objects.
24076deplibs_check_method=$lt_deplibs_check_method
24077
24078# Command to use when deplibs_check_method == file_magic.
24079file_magic_cmd=$lt_file_magic_cmd
24080
24081# Flag that allows shared libraries with undefined symbols to be built.
24082allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24083
24084# Flag that forces no undefined symbols.
24085no_undefined_flag=$lt_no_undefined_flag_GCJ
24086
24087# Commands used to finish a libtool library installation in a directory.
24088finish_cmds=$lt_finish_cmds
24089
24090# Same as above, but a single script fragment to be evaled but not shown.
24091finish_eval=$lt_finish_eval
24092
24093# Take the output of nm and produce a listing of raw symbols and C names.
24094global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24095
24096# Transform the output of nm in a proper C declaration
24097global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24098
24099# Transform the output of nm in a C name address pair
24100global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24101
24102# This is the shared library runtime path variable.
24103runpath_var=$runpath_var
24104
24105# This is the shared library path variable.
24106shlibpath_var=$shlibpath_var
24107
24108# Is shlibpath searched before the hard-coded library search path?
24109shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24110
24111# How to hardcode a shared library path into an executable.
24112hardcode_action=$hardcode_action_GCJ
24113
24114# Whether we should hardcode library paths into libraries.
24115hardcode_into_libs=$hardcode_into_libs
24116
24117# Flag to hardcode \$libdir into a binary during linking.
24118# This must work even if \$libdir does not exist.
24119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24120
24121# If ld is used when linking, flag to hardcode \$libdir into
24122# a binary during linking. This must work even if \$libdir does
24123# not exist.
24124hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24125
24126# Whether we need a single -rpath flag with a separated argument.
24127hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24128
24129# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24130# resulting binary.
24131hardcode_direct=$hardcode_direct_GCJ
24132
24133# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24134# resulting binary.
24135hardcode_minus_L=$hardcode_minus_L_GCJ
24136
24137# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24138# the resulting binary.
24139hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24140
24141# Set to yes if building a shared library automatically hardcodes DIR into the library
24142# and all subsequent libraries and executables linked against it.
24143hardcode_automatic=$hardcode_automatic_GCJ
24144
24145# Variables whose values should be saved in libtool wrapper scripts and
24146# restored at relink time.
24147variables_saved_for_relink="$variables_saved_for_relink"
24148
24149# Whether libtool must link a program against all its dependency libraries.
24150link_all_deplibs=$link_all_deplibs_GCJ
24151
24152# Compile-time system search path for libraries
24153sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24154
24155# Run-time system search path for libraries
24156sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24157
24158# Fix the shell variable \$srcfile for the compiler.
24159fix_srcfile_path="$fix_srcfile_path_GCJ"
24160
24161# Set to yes if exported symbols are required.
24162always_export_symbols=$always_export_symbols_GCJ
24163
24164# The commands to list exported symbols.
24165export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24166
24167# The commands to extract the exported symbol list from a shared archive.
24168extract_expsyms_cmds=$lt_extract_expsyms_cmds
24169
24170# Symbols that should not be listed in the preloaded symbols.
24171exclude_expsyms=$lt_exclude_expsyms_GCJ
24172
24173# Symbols that must always be exported.
24174include_expsyms=$lt_include_expsyms_GCJ
24175
24176# ### END LIBTOOL TAG CONFIG: $tagname
24177
24178__EOF__
24179
24180
24181else
24182 # If there is no Makefile yet, we rely on a make rule to execute
24183 # `config.status --recheck' to rerun these tests and create the
24184 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24186 if test -f "$ltmain_in"; then
24187 test -f Makefile && make "$ltmain"
24188 fi
John Criswell47fdd832003-07-14 16:52:07 +000024189fi
24190
24191
24192ac_ext=c
24193ac_cpp='$CPP $CPPFLAGS'
24194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24196ac_compiler_gnu=$ac_cv_c_compiler_gnu
24197
24198CC="$lt_save_CC"
24199
24200 else
24201 tagname=""
24202 fi
24203 ;;
24204
24205 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024206 ac_ext=c
24207ac_cpp='$CPP $CPPFLAGS'
24208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24210ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024211
24212
24213# Source file extension for RC test sources.
24214ac_ext=rc
24215
24216# Object file extension for compiled RC test sources.
24217objext=o
24218objext_RC=$objext
24219
24220# Code to be used in simple compile tests
24221lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24222
24223# Code to be used in simple link tests
24224lt_simple_link_test_code="$lt_simple_compile_test_code"
24225
24226# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24227
24228# If no C compiler was specified, use CC.
24229LTCC=${LTCC-"$CC"}
24230
24231# Allow CC to be a program name with arguments.
24232compiler=$CC
24233
24234
24235# Allow CC to be a program name with arguments.
24236lt_save_CC="$CC"
24237CC=${RC-"windres"}
24238compiler=$CC
24239compiler_RC=$CC
24240lt_cv_prog_compiler_c_o_RC=yes
24241
24242# The else clause should only fire when bootstrapping the
24243# libtool distribution, otherwise you forgot to ship ltmain.sh
24244# with your package, and you will get complaints that there are
24245# no rules to generate ltmain.sh.
24246if test -f "$ltmain"; then
24247 # See if we are running on zsh, and set the options which allow our commands through
24248 # without removal of \ escapes.
24249 if test -n "${ZSH_VERSION+set}" ; then
24250 setopt NO_GLOB_SUBST
24251 fi
24252 # Now quote all the things that may contain metacharacters while being
24253 # careful not to overquote the AC_SUBSTed values. We take copies of the
24254 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24256 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024257 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24258 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24259 deplibs_check_method reload_flag reload_cmds need_locks \
24260 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24261 lt_cv_sys_global_symbol_to_c_name_address \
24262 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24263 old_postinstall_cmds old_postuninstall_cmds \
24264 compiler_RC \
24265 CC_RC \
24266 LD_RC \
24267 lt_prog_compiler_wl_RC \
24268 lt_prog_compiler_pic_RC \
24269 lt_prog_compiler_static_RC \
24270 lt_prog_compiler_no_builtin_flag_RC \
24271 export_dynamic_flag_spec_RC \
24272 thread_safe_flag_spec_RC \
24273 whole_archive_flag_spec_RC \
24274 enable_shared_with_static_runtimes_RC \
24275 old_archive_cmds_RC \
24276 old_archive_from_new_cmds_RC \
24277 predep_objects_RC \
24278 postdep_objects_RC \
24279 predeps_RC \
24280 postdeps_RC \
24281 compiler_lib_search_path_RC \
24282 archive_cmds_RC \
24283 archive_expsym_cmds_RC \
24284 postinstall_cmds_RC \
24285 postuninstall_cmds_RC \
24286 old_archive_from_expsyms_cmds_RC \
24287 allow_undefined_flag_RC \
24288 no_undefined_flag_RC \
24289 export_symbols_cmds_RC \
24290 hardcode_libdir_flag_spec_RC \
24291 hardcode_libdir_flag_spec_ld_RC \
24292 hardcode_libdir_separator_RC \
24293 hardcode_automatic_RC \
24294 module_cmds_RC \
24295 module_expsym_cmds_RC \
24296 lt_cv_prog_compiler_c_o_RC \
24297 exclude_expsyms_RC \
24298 include_expsyms_RC; do
24299
24300 case $var in
24301 old_archive_cmds_RC | \
24302 old_archive_from_new_cmds_RC | \
24303 archive_cmds_RC | \
24304 archive_expsym_cmds_RC | \
24305 module_cmds_RC | \
24306 module_expsym_cmds_RC | \
24307 old_archive_from_expsyms_cmds_RC | \
24308 export_symbols_cmds_RC | \
24309 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24310 postinstall_cmds | postuninstall_cmds | \
24311 old_postinstall_cmds | old_postuninstall_cmds | \
24312 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24313 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024314 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 +000024315 ;;
24316 *)
24317 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24318 ;;
24319 esac
24320 done
24321
24322 case $lt_echo in
24323 *'\$0 --fallback-echo"')
24324 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24325 ;;
24326 esac
24327
24328cfgfile="$ofile"
24329
24330 cat <<__EOF__ >> "$cfgfile"
24331# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24332
24333# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24334
24335# Shell to use when invoking shell scripts.
24336SHELL=$lt_SHELL
24337
24338# Whether or not to build shared libraries.
24339build_libtool_libs=$enable_shared
24340
24341# Whether or not to build static libraries.
24342build_old_libs=$enable_static
24343
24344# Whether or not to add -lc for building shared libraries.
24345build_libtool_need_lc=$archive_cmds_need_lc_RC
24346
24347# Whether or not to disallow shared libs when runtime libs are static
24348allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24349
24350# Whether or not to optimize for fast installation.
24351fast_install=$enable_fast_install
24352
24353# The host system.
24354host_alias=$host_alias
24355host=$host
24356
24357# An echo program that does not interpret backslashes.
24358echo=$lt_echo
24359
24360# The archiver.
24361AR=$lt_AR
24362AR_FLAGS=$lt_AR_FLAGS
24363
24364# A C compiler.
24365LTCC=$lt_LTCC
24366
24367# A language-specific compiler.
24368CC=$lt_compiler_RC
24369
24370# Is the compiler the GNU C compiler?
24371with_gcc=$GCC_RC
24372
24373# An ERE matcher.
24374EGREP=$lt_EGREP
24375
24376# The linker used to build libraries.
24377LD=$lt_LD_RC
24378
24379# Whether we need hard or soft links.
24380LN_S=$lt_LN_S
24381
24382# A BSD-compatible nm program.
24383NM=$lt_NM
24384
24385# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024386STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024387
24388# Used to examine libraries when file_magic_cmd begins "file"
24389MAGIC_CMD=$MAGIC_CMD
24390
24391# Used on cygwin: DLL creation program.
24392DLLTOOL="$DLLTOOL"
24393
24394# Used on cygwin: object dumper.
24395OBJDUMP="$OBJDUMP"
24396
24397# Used on cygwin: assembler.
24398AS="$AS"
24399
24400# The name of the directory that contains temporary libtool files.
24401objdir=$objdir
24402
24403# How to create reloadable object files.
24404reload_flag=$lt_reload_flag
24405reload_cmds=$lt_reload_cmds
24406
24407# How to pass a linker flag through the compiler.
24408wl=$lt_lt_prog_compiler_wl_RC
24409
24410# Object file suffix (normally "o").
24411objext="$ac_objext"
24412
24413# Old archive suffix (normally "a").
24414libext="$libext"
24415
24416# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024417shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024418
24419# Executable file suffix (normally "").
24420exeext="$exeext"
24421
24422# Additional compiler flags for building library objects.
24423pic_flag=$lt_lt_prog_compiler_pic_RC
24424pic_mode=$pic_mode
24425
24426# What is the maximum length of a command?
24427max_cmd_len=$lt_cv_sys_max_cmd_len
24428
24429# Does compiler simultaneously support -c and -o options?
24430compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24431
24432# Must we lock files when doing compilation ?
24433need_locks=$lt_need_locks
24434
24435# Do we need the lib prefix for modules?
24436need_lib_prefix=$need_lib_prefix
24437
24438# Do we need a version for libraries?
24439need_version=$need_version
24440
24441# Whether dlopen is supported.
24442dlopen_support=$enable_dlopen
24443
24444# Whether dlopen of programs is supported.
24445dlopen_self=$enable_dlopen_self
24446
24447# Whether dlopen of statically linked programs is supported.
24448dlopen_self_static=$enable_dlopen_self_static
24449
24450# Compiler flag to prevent dynamic linking.
24451link_static_flag=$lt_lt_prog_compiler_static_RC
24452
24453# Compiler flag to turn off builtin functions.
24454no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24455
24456# Compiler flag to allow reflexive dlopens.
24457export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24458
24459# Compiler flag to generate shared objects directly from archives.
24460whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24461
24462# Compiler flag to generate thread-safe objects.
24463thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24464
24465# Library versioning type.
24466version_type=$version_type
24467
24468# Format of library name prefix.
24469libname_spec=$lt_libname_spec
24470
24471# List of archive names. First name is the real one, the rest are links.
24472# The last name is the one that the linker finds with -lNAME.
24473library_names_spec=$lt_library_names_spec
24474
24475# The coded name of the library, if different from the real name.
24476soname_spec=$lt_soname_spec
24477
24478# Commands used to build and install an old-style archive.
24479RANLIB=$lt_RANLIB
24480old_archive_cmds=$lt_old_archive_cmds_RC
24481old_postinstall_cmds=$lt_old_postinstall_cmds
24482old_postuninstall_cmds=$lt_old_postuninstall_cmds
24483
24484# Create an old-style archive from a shared archive.
24485old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24486
24487# Create a temporary old-style archive to link instead of a shared archive.
24488old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24489
24490# Commands used to build and install a shared archive.
24491archive_cmds=$lt_archive_cmds_RC
24492archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24493postinstall_cmds=$lt_postinstall_cmds
24494postuninstall_cmds=$lt_postuninstall_cmds
24495
24496# Commands used to build a loadable module (assumed same as above if empty)
24497module_cmds=$lt_module_cmds_RC
24498module_expsym_cmds=$lt_module_expsym_cmds_RC
24499
24500# Commands to strip libraries.
24501old_striplib=$lt_old_striplib
24502striplib=$lt_striplib
24503
24504# Dependencies to place before the objects being linked to create a
24505# shared library.
24506predep_objects=$lt_predep_objects_RC
24507
24508# Dependencies to place after the objects being linked to create a
24509# shared library.
24510postdep_objects=$lt_postdep_objects_RC
24511
24512# Dependencies to place before the objects being linked to create a
24513# shared library.
24514predeps=$lt_predeps_RC
24515
24516# Dependencies to place after the objects being linked to create a
24517# shared library.
24518postdeps=$lt_postdeps_RC
24519
24520# The library search path used internally by the compiler when linking
24521# a shared library.
24522compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24523
24524# Method to check whether dependent libraries are shared objects.
24525deplibs_check_method=$lt_deplibs_check_method
24526
24527# Command to use when deplibs_check_method == file_magic.
24528file_magic_cmd=$lt_file_magic_cmd
24529
24530# Flag that allows shared libraries with undefined symbols to be built.
24531allow_undefined_flag=$lt_allow_undefined_flag_RC
24532
24533# Flag that forces no undefined symbols.
24534no_undefined_flag=$lt_no_undefined_flag_RC
24535
24536# Commands used to finish a libtool library installation in a directory.
24537finish_cmds=$lt_finish_cmds
24538
24539# Same as above, but a single script fragment to be evaled but not shown.
24540finish_eval=$lt_finish_eval
24541
24542# Take the output of nm and produce a listing of raw symbols and C names.
24543global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24544
24545# Transform the output of nm in a proper C declaration
24546global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24547
24548# Transform the output of nm in a C name address pair
24549global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24550
24551# This is the shared library runtime path variable.
24552runpath_var=$runpath_var
24553
24554# This is the shared library path variable.
24555shlibpath_var=$shlibpath_var
24556
24557# Is shlibpath searched before the hard-coded library search path?
24558shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24559
24560# How to hardcode a shared library path into an executable.
24561hardcode_action=$hardcode_action_RC
24562
24563# Whether we should hardcode library paths into libraries.
24564hardcode_into_libs=$hardcode_into_libs
24565
24566# Flag to hardcode \$libdir into a binary during linking.
24567# This must work even if \$libdir does not exist.
24568hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24569
24570# If ld is used when linking, flag to hardcode \$libdir into
24571# a binary during linking. This must work even if \$libdir does
24572# not exist.
24573hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24574
24575# Whether we need a single -rpath flag with a separated argument.
24576hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24577
24578# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24579# resulting binary.
24580hardcode_direct=$hardcode_direct_RC
24581
24582# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24583# resulting binary.
24584hardcode_minus_L=$hardcode_minus_L_RC
24585
24586# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24587# the resulting binary.
24588hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24589
24590# Set to yes if building a shared library automatically hardcodes DIR into the library
24591# and all subsequent libraries and executables linked against it.
24592hardcode_automatic=$hardcode_automatic_RC
24593
24594# Variables whose values should be saved in libtool wrapper scripts and
24595# restored at relink time.
24596variables_saved_for_relink="$variables_saved_for_relink"
24597
24598# Whether libtool must link a program against all its dependency libraries.
24599link_all_deplibs=$link_all_deplibs_RC
24600
24601# Compile-time system search path for libraries
24602sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24603
24604# Run-time system search path for libraries
24605sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24606
24607# Fix the shell variable \$srcfile for the compiler.
24608fix_srcfile_path="$fix_srcfile_path_RC"
24609
24610# Set to yes if exported symbols are required.
24611always_export_symbols=$always_export_symbols_RC
24612
24613# The commands to list exported symbols.
24614export_symbols_cmds=$lt_export_symbols_cmds_RC
24615
24616# The commands to extract the exported symbol list from a shared archive.
24617extract_expsyms_cmds=$lt_extract_expsyms_cmds
24618
24619# Symbols that should not be listed in the preloaded symbols.
24620exclude_expsyms=$lt_exclude_expsyms_RC
24621
24622# Symbols that must always be exported.
24623include_expsyms=$lt_include_expsyms_RC
24624
24625# ### END LIBTOOL TAG CONFIG: $tagname
24626
24627__EOF__
24628
24629
24630else
24631 # If there is no Makefile yet, we rely on a make rule to execute
24632 # `config.status --recheck' to rerun these tests and create the
24633 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024634 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24635 if test -f "$ltmain_in"; then
24636 test -f Makefile && make "$ltmain"
24637 fi
John Criswell47fdd832003-07-14 16:52:07 +000024638fi
24639
24640
24641ac_ext=c
24642ac_cpp='$CPP $CPPFLAGS'
24643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24645ac_compiler_gnu=$ac_cv_c_compiler_gnu
24646
24647CC="$lt_save_CC"
24648
24649 ;;
24650
24651 *)
24652 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24653echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24654 { (exit 1); exit 1; }; }
24655 ;;
24656 esac
24657
24658 # Append the new tag name to the list of available tags.
24659 if test -n "$tagname" ; then
24660 available_tags="$available_tags $tagname"
24661 fi
24662 fi
24663 done
24664 IFS="$lt_save_ifs"
24665
24666 # Now substitute the updated list of available tags.
24667 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24668 mv "${ofile}T" "$ofile"
24669 chmod +x "$ofile"
24670 else
24671 rm -f "${ofile}T"
24672 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24673echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24674 { (exit 1); exit 1; }; }
24675 fi
24676fi
John Criswell7a73b802003-06-30 21:59:07 +000024677
24678
24679
24680# This can be used to rebuild libtool when needed
24681LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24682
24683# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024684LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024685
24686# Prevent multiple expansion
24687
24688
24689
John Criswell47fdd832003-07-14 16:52:07 +000024690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024707
Reid Spencer582a23c2004-12-29 07:07:57 +000024708if test "$lt_cv_dlopen_self" = "yes" ; then
24709
24710cat >>confdefs.h <<\_ACEOF
24711#define CAN_DLOPEN_SELF 1
24712_ACEOF
24713
24714fi
24715
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024716etags_version=`$ETAGS --version 2>&1`
24717case "$etags_version" in
24718 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24719 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24720 *) ETAGSFLAGS="" ;;
24721esac
24722ETAGSFLAGS=$ETAGSFLAGS
24723
24724
Reid Spencer7931a782004-12-27 06:15:02 +000024725if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024726 LLVMGCC="llvm-gcc${EXEEXT}"
24727 LLVMGXX="llvm-g++${EXEEXT}"
24728 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24729set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024730echo "$as_me:$LINENO: checking for $ac_word" >&5
24731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24732if test "${ac_cv_path_LLVMGCC+set}" = set; then
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24734else
24735 case $LLVMGCC in
24736 [\\/]* | ?:[\\/]*)
24737 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24738 ;;
24739 *)
24740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24741for as_dir in $PATH
24742do
24743 IFS=$as_save_IFS
24744 test -z "$as_dir" && as_dir=.
24745 for ac_exec_ext in '' $ac_executable_extensions; do
24746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24747 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24749 break 2
24750 fi
24751done
24752done
24753
Reid Spencer59473af2004-12-25 07:31:29 +000024754 ;;
24755esac
24756fi
24757LLVMGCC=$ac_cv_path_LLVMGCC
24758
24759if test -n "$LLVMGCC"; then
24760 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24761echo "${ECHO_T}$LLVMGCC" >&6
24762else
24763 echo "$as_me:$LINENO: result: no" >&5
24764echo "${ECHO_T}no" >&6
24765fi
24766
Reid Spencerc84492c2005-06-02 22:34:49 +000024767 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24768set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024769echo "$as_me:$LINENO: checking for $ac_word" >&5
24770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24771if test "${ac_cv_path_LLVMGXX+set}" = set; then
24772 echo $ECHO_N "(cached) $ECHO_C" >&6
24773else
24774 case $LLVMGXX in
24775 [\\/]* | ?:[\\/]*)
24776 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24777 ;;
24778 *)
24779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24780for as_dir in $PATH
24781do
24782 IFS=$as_save_IFS
24783 test -z "$as_dir" && as_dir=.
24784 for ac_exec_ext in '' $ac_executable_extensions; do
24785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24786 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24788 break 2
24789 fi
24790done
24791done
24792
Reid Spencer59473af2004-12-25 07:31:29 +000024793 ;;
24794esac
24795fi
24796LLVMGXX=$ac_cv_path_LLVMGXX
24797
24798if test -n "$LLVMGXX"; then
24799 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24800echo "${ECHO_T}$LLVMGXX" >&6
24801else
24802 echo "$as_me:$LINENO: result: no" >&5
24803echo "${ECHO_T}no" >&6
24804fi
24805
24806else
Reid Spencerc84492c2005-06-02 22:34:49 +000024807 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24808 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024809 LLVMGCC=$LLVMGCC
24810
24811 LLVMGXX=$LLVMGXX
24812
24813fi
24814
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024815echo "$as_me:$LINENO: checking tool compatibility" >&5
24816echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24817
Reid Spencer86901802004-12-08 23:07:27 +000024818ICC=no
24819IXX=no
24820case $CC in
24821 icc*|icpc*)
24822 ICC=yes
24823 IXX=yes
24824 ;;
24825 *)
24826 ;;
24827esac
24828
24829if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024830then
Reid Spencer86901802004-12-08 23:07:27 +000024831 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24832echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024833 { (exit 1); exit 1; }; }
24834fi
24835
Reid Spencer86901802004-12-08 23:07:27 +000024836if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024837then
Reid Spencer86901802004-12-08 23:07:27 +000024838 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24839echo "$as_me: error: g++|icc required but not found" >&2;}
24840 { (exit 1); exit 1; }; }
24841fi
24842
24843if test "$GCC" = "yes"
24844then
24845 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24846 if test "$gccmajor" -lt "3"
24847 then
24848 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024849echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24850 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024851 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024852fi
24853
24854if test -z "$llvm_cv_gnu_make_command"
24855then
24856 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24857echo "$as_me: error: GNU Make required but not found" >&2;}
24858 { (exit 1); exit 1; }; }
24859fi
24860
24861echo "$as_me:$LINENO: result: ok" >&5
24862echo "${ECHO_T}ok" >&6
24863
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024864
John Criswell7a73b802003-06-30 21:59:07 +000024865
John Criswell7a73b802003-06-30 21:59:07 +000024866echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24867echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24868if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24870else
24871 ac_check_lib_save_LIBS=$LIBS
24872LIBS="-lelf $LIBS"
24873cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024874/* confdefs.h. */
24875_ACEOF
24876cat confdefs.h >>conftest.$ac_ext
24877cat >>conftest.$ac_ext <<_ACEOF
24878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024879
24880/* Override any gcc2 internal prototype to avoid an error. */
24881#ifdef __cplusplus
24882extern "C"
24883#endif
24884/* We use char because int might match the return type of a gcc2
24885 builtin and then its argument prototype would still apply. */
24886char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024887int
24888main ()
24889{
24890elf_begin ();
24891 ;
24892 return 0;
24893}
24894_ACEOF
24895rm -f conftest.$ac_objext conftest$ac_exeext
24896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024897 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024898 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024899 grep -v '^ *+' conftest.er1 >conftest.err
24900 rm -f conftest.er1
24901 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024904 { ac_try='test -z "$ac_c_werror_flag"
24905 || test ! -s conftest.err'
24906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907 (eval $ac_try) 2>&5
24908 ac_status=$?
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; } &&
24911 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; }; then
24917 ac_cv_lib_elf_elf_begin=yes
24918else
24919 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024920sed 's/^/| /' conftest.$ac_ext >&5
24921
John Criswell7a73b802003-06-30 21:59:07 +000024922ac_cv_lib_elf_elf_begin=no
24923fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024924rm -f conftest.err conftest.$ac_objext \
24925 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024926LIBS=$ac_check_lib_save_LIBS
24927fi
24928echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24929echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24930if test $ac_cv_lib_elf_elf_begin = yes; then
24931 cat >>confdefs.h <<_ACEOF
24932#define HAVE_LIBELF 1
24933_ACEOF
24934
24935 LIBS="-lelf $LIBS"
24936
24937fi
24938
24939
Reid Spencer22177fe2005-07-12 15:24:20 +000024940
Reid Spencer17795972004-11-18 09:47:37 +000024941echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24942echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24943if test "${ac_cv_search_lt_dlopen+set}" = set; then
24944 echo $ECHO_N "(cached) $ECHO_C" >&6
24945else
24946 ac_func_search_save_LIBS=$LIBS
24947ac_cv_search_lt_dlopen=no
24948cat >conftest.$ac_ext <<_ACEOF
24949/* confdefs.h. */
24950_ACEOF
24951cat confdefs.h >>conftest.$ac_ext
24952cat >>conftest.$ac_ext <<_ACEOF
24953/* end confdefs.h. */
24954
24955/* Override any gcc2 internal prototype to avoid an error. */
24956#ifdef __cplusplus
24957extern "C"
24958#endif
24959/* We use char because int might match the return type of a gcc2
24960 builtin and then its argument prototype would still apply. */
24961char lt_dlopen ();
24962int
24963main ()
24964{
24965lt_dlopen ();
24966 ;
24967 return 0;
24968}
24969_ACEOF
24970rm -f conftest.$ac_objext conftest$ac_exeext
24971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24972 (eval $ac_link) 2>conftest.er1
24973 ac_status=$?
24974 grep -v '^ *+' conftest.er1 >conftest.err
24975 rm -f conftest.er1
24976 cat conftest.err >&5
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } &&
24979 { ac_try='test -z "$ac_c_werror_flag"
24980 || test ! -s conftest.err'
24981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982 (eval $ac_try) 2>&5
24983 ac_status=$?
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; } &&
24986 { ac_try='test -s conftest$ac_exeext'
24987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24988 (eval $ac_try) 2>&5
24989 ac_status=$?
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); }; }; then
24992 ac_cv_search_lt_dlopen="none required"
24993else
24994 echo "$as_me: failed program was:" >&5
24995sed 's/^/| /' conftest.$ac_ext >&5
24996
24997fi
24998rm -f conftest.err conftest.$ac_objext \
24999 conftest$ac_exeext conftest.$ac_ext
25000if test "$ac_cv_search_lt_dlopen" = no; then
25001 for ac_lib in ltdl; do
25002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25003 cat >conftest.$ac_ext <<_ACEOF
25004/* confdefs.h. */
25005_ACEOF
25006cat confdefs.h >>conftest.$ac_ext
25007cat >>conftest.$ac_ext <<_ACEOF
25008/* end confdefs.h. */
25009
25010/* Override any gcc2 internal prototype to avoid an error. */
25011#ifdef __cplusplus
25012extern "C"
25013#endif
25014/* We use char because int might match the return type of a gcc2
25015 builtin and then its argument prototype would still apply. */
25016char lt_dlopen ();
25017int
25018main ()
25019{
25020lt_dlopen ();
25021 ;
25022 return 0;
25023}
25024_ACEOF
25025rm -f conftest.$ac_objext conftest$ac_exeext
25026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25027 (eval $ac_link) 2>conftest.er1
25028 ac_status=$?
25029 grep -v '^ *+' conftest.er1 >conftest.err
25030 rm -f conftest.er1
25031 cat conftest.err >&5
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } &&
25034 { ac_try='test -z "$ac_c_werror_flag"
25035 || test ! -s conftest.err'
25036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; } &&
25041 { ac_try='test -s conftest$ac_exeext'
25042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043 (eval $ac_try) 2>&5
25044 ac_status=$?
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; }; then
25047 ac_cv_search_lt_dlopen="-l$ac_lib"
25048break
25049else
25050 echo "$as_me: failed program was:" >&5
25051sed 's/^/| /' conftest.$ac_ext >&5
25052
25053fi
25054rm -f conftest.err conftest.$ac_objext \
25055 conftest$ac_exeext conftest.$ac_ext
25056 done
25057fi
25058LIBS=$ac_func_search_save_LIBS
25059fi
25060echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25061echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25062if test "$ac_cv_search_lt_dlopen" != no; then
25063 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25064
25065cat >>confdefs.h <<\_ACEOF
25066#define HAVE_LT_DLOPEN 1
25067_ACEOF
25068
25069else
25070 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25071 not be available" >&5
25072echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25073 not be available" >&2;}
25074fi
25075
25076
John Criswell7a73b802003-06-30 21:59:07 +000025077echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25078echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25079if test "${ac_cv_search_dlopen+set}" = set; then
25080 echo $ECHO_N "(cached) $ECHO_C" >&6
25081else
25082 ac_func_search_save_LIBS=$LIBS
25083ac_cv_search_dlopen=no
25084cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025085/* confdefs.h. */
25086_ACEOF
25087cat confdefs.h >>conftest.$ac_ext
25088cat >>conftest.$ac_ext <<_ACEOF
25089/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025090
25091/* Override any gcc2 internal prototype to avoid an error. */
25092#ifdef __cplusplus
25093extern "C"
25094#endif
25095/* We use char because int might match the return type of a gcc2
25096 builtin and then its argument prototype would still apply. */
25097char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025098int
25099main ()
25100{
25101dlopen ();
25102 ;
25103 return 0;
25104}
25105_ACEOF
25106rm -f conftest.$ac_objext conftest$ac_exeext
25107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025108 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025109 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025110 grep -v '^ *+' conftest.er1 >conftest.err
25111 rm -f conftest.er1
25112 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025115 { ac_try='test -z "$ac_c_werror_flag"
25116 || test ! -s conftest.err'
25117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; } &&
25122 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; }; then
25128 ac_cv_search_dlopen="none required"
25129else
25130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025131sed 's/^/| /' conftest.$ac_ext >&5
25132
John Criswell7a73b802003-06-30 21:59:07 +000025133fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025134rm -f conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025136if test "$ac_cv_search_dlopen" = no; then
25137 for ac_lib in dl; do
25138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25139 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025140/* confdefs.h. */
25141_ACEOF
25142cat confdefs.h >>conftest.$ac_ext
25143cat >>conftest.$ac_ext <<_ACEOF
25144/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025145
25146/* Override any gcc2 internal prototype to avoid an error. */
25147#ifdef __cplusplus
25148extern "C"
25149#endif
25150/* We use char because int might match the return type of a gcc2
25151 builtin and then its argument prototype would still apply. */
25152char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025153int
25154main ()
25155{
25156dlopen ();
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext conftest$ac_exeext
25162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025163 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025164 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025170 { ac_try='test -z "$ac_c_werror_flag"
25171 || test ! -s conftest.err'
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25174 ac_status=$?
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; } &&
25177 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; }; then
25183 ac_cv_search_dlopen="-l$ac_lib"
25184break
25185else
25186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025187sed 's/^/| /' conftest.$ac_ext >&5
25188
John Criswell7a73b802003-06-30 21:59:07 +000025189fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025190rm -f conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025192 done
25193fi
25194LIBS=$ac_func_search_save_LIBS
25195fi
25196echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25197echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25198if test "$ac_cv_search_dlopen" != no; then
25199 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025200
25201cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025202#define HAVE_DLOPEN 1
25203_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025204
25205else
Brian Gaekec45be042003-10-07 06:01:34 +000025206 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25207echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025208fi
25209
25210
25211echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25212echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25213if test "${ac_cv_search_mallinfo+set}" = set; then
25214 echo $ECHO_N "(cached) $ECHO_C" >&6
25215else
25216 ac_func_search_save_LIBS=$LIBS
25217ac_cv_search_mallinfo=no
25218cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025219/* confdefs.h. */
25220_ACEOF
25221cat confdefs.h >>conftest.$ac_ext
25222cat >>conftest.$ac_ext <<_ACEOF
25223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025224
25225/* Override any gcc2 internal prototype to avoid an error. */
25226#ifdef __cplusplus
25227extern "C"
25228#endif
25229/* We use char because int might match the return type of a gcc2
25230 builtin and then its argument prototype would still apply. */
25231char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025232int
25233main ()
25234{
25235mallinfo ();
25236 ;
25237 return 0;
25238}
25239_ACEOF
25240rm -f conftest.$ac_objext conftest$ac_exeext
25241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025242 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025243 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025244 grep -v '^ *+' conftest.er1 >conftest.err
25245 rm -f conftest.er1
25246 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025249 { ac_try='test -z "$ac_c_werror_flag"
25250 || test ! -s conftest.err'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; } &&
25256 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 ac_cv_search_mallinfo="none required"
25263else
25264 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025265sed 's/^/| /' conftest.$ac_ext >&5
25266
John Criswell7a73b802003-06-30 21:59:07 +000025267fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025268rm -f conftest.err conftest.$ac_objext \
25269 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025270if test "$ac_cv_search_mallinfo" = no; then
25271 for ac_lib in malloc; do
25272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25273 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025274/* confdefs.h. */
25275_ACEOF
25276cat confdefs.h >>conftest.$ac_ext
25277cat >>conftest.$ac_ext <<_ACEOF
25278/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025279
25280/* Override any gcc2 internal prototype to avoid an error. */
25281#ifdef __cplusplus
25282extern "C"
25283#endif
25284/* We use char because int might match the return type of a gcc2
25285 builtin and then its argument prototype would still apply. */
25286char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025287int
25288main ()
25289{
25290mallinfo ();
25291 ;
25292 return 0;
25293}
25294_ACEOF
25295rm -f conftest.$ac_objext conftest$ac_exeext
25296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025297 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025299 grep -v '^ *+' conftest.er1 >conftest.err
25300 rm -f conftest.er1
25301 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025304 { ac_try='test -z "$ac_c_werror_flag"
25305 || test ! -s conftest.err'
25306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307 (eval $ac_try) 2>&5
25308 ac_status=$?
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; } &&
25311 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313 (eval $ac_try) 2>&5
25314 ac_status=$?
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); }; }; then
25317 ac_cv_search_mallinfo="-l$ac_lib"
25318break
25319else
25320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025321sed 's/^/| /' conftest.$ac_ext >&5
25322
John Criswell7a73b802003-06-30 21:59:07 +000025323fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025324rm -f conftest.err conftest.$ac_objext \
25325 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025326 done
25327fi
25328LIBS=$ac_func_search_save_LIBS
25329fi
25330echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25331echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25332if test "$ac_cv_search_mallinfo" != no; then
25333 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025334
25335cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025336#define HAVE_MALLINFO 1
25337_ACEOF
25338
25339fi
25340
25341
Reid Spencer22177fe2005-07-12 15:24:20 +000025342
25343echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25344echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25345if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25346 echo $ECHO_N "(cached) $ECHO_C" >&6
25347else
25348 ac_check_lib_save_LIBS=$LIBS
25349LIBS="-lpthread $LIBS"
25350cat >conftest.$ac_ext <<_ACEOF
25351/* confdefs.h. */
25352_ACEOF
25353cat confdefs.h >>conftest.$ac_ext
25354cat >>conftest.$ac_ext <<_ACEOF
25355/* end confdefs.h. */
25356
25357/* Override any gcc2 internal prototype to avoid an error. */
25358#ifdef __cplusplus
25359extern "C"
25360#endif
25361/* We use char because int might match the return type of a gcc2
25362 builtin and then its argument prototype would still apply. */
25363char pthread_mutex_init ();
25364int
25365main ()
25366{
25367pthread_mutex_init ();
25368 ;
25369 return 0;
25370}
25371_ACEOF
25372rm -f conftest.$ac_objext conftest$ac_exeext
25373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25374 (eval $ac_link) 2>conftest.er1
25375 ac_status=$?
25376 grep -v '^ *+' conftest.er1 >conftest.err
25377 rm -f conftest.er1
25378 cat conftest.err >&5
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); } &&
25381 { ac_try='test -z "$ac_c_werror_flag"
25382 || test ! -s conftest.err'
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; } &&
25388 { ac_try='test -s conftest$ac_exeext'
25389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390 (eval $ac_try) 2>&5
25391 ac_status=$?
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); }; }; then
25394 ac_cv_lib_pthread_pthread_mutex_init=yes
25395else
25396 echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399ac_cv_lib_pthread_pthread_mutex_init=no
25400fi
25401rm -f conftest.err conftest.$ac_objext \
25402 conftest$ac_exeext conftest.$ac_ext
25403LIBS=$ac_check_lib_save_LIBS
25404fi
25405echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25406echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25407if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25408 cat >>confdefs.h <<_ACEOF
25409#define HAVE_LIBPTHREAD 1
25410_ACEOF
25411
25412 LIBS="-lpthread $LIBS"
25413
25414fi
25415
Brian Gaeke5f268f72003-12-05 19:29:01 +000025416echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25417echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25418if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25419 echo $ECHO_N "(cached) $ECHO_C" >&6
25420else
25421 ac_func_search_save_LIBS=$LIBS
25422ac_cv_search_pthread_mutex_lock=no
25423cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025424/* confdefs.h. */
25425_ACEOF
25426cat confdefs.h >>conftest.$ac_ext
25427cat >>conftest.$ac_ext <<_ACEOF
25428/* end confdefs.h. */
25429
25430/* Override any gcc2 internal prototype to avoid an error. */
25431#ifdef __cplusplus
25432extern "C"
25433#endif
25434/* We use char because int might match the return type of a gcc2
25435 builtin and then its argument prototype would still apply. */
25436char pthread_mutex_lock ();
25437int
25438main ()
25439{
25440pthread_mutex_lock ();
25441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest.$ac_objext conftest$ac_exeext
25446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025447 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025449 grep -v '^ *+' conftest.er1 >conftest.err
25450 rm -f conftest.er1
25451 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 ac_cv_search_pthread_mutex_lock="none required"
25468else
25469 echo "$as_me: failed program was:" >&5
25470sed 's/^/| /' conftest.$ac_ext >&5
25471
25472fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025473rm -f conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025475if test "$ac_cv_search_pthread_mutex_lock" = no; then
25476 for ac_lib in pthread; do
25477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25478 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025479/* confdefs.h. */
25480_ACEOF
25481cat confdefs.h >>conftest.$ac_ext
25482cat >>conftest.$ac_ext <<_ACEOF
25483/* end confdefs.h. */
25484
25485/* Override any gcc2 internal prototype to avoid an error. */
25486#ifdef __cplusplus
25487extern "C"
25488#endif
25489/* We use char because int might match the return type of a gcc2
25490 builtin and then its argument prototype would still apply. */
25491char pthread_mutex_lock ();
25492int
25493main ()
25494{
25495pthread_mutex_lock ();
25496 ;
25497 return 0;
25498}
25499_ACEOF
25500rm -f conftest.$ac_objext conftest$ac_exeext
25501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025502 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025503 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025504 grep -v '^ *+' conftest.er1 >conftest.err
25505 rm -f conftest.er1
25506 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025509 { ac_try='test -z "$ac_c_werror_flag"
25510 || test ! -s conftest.err'
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25513 ac_status=$?
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; } &&
25516 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25523break
25524else
25525 echo "$as_me: failed program was:" >&5
25526sed 's/^/| /' conftest.$ac_ext >&5
25527
25528fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025529rm -f conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025531 done
25532fi
25533LIBS=$ac_func_search_save_LIBS
25534fi
25535echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25536echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25537if test "$ac_cv_search_pthread_mutex_lock" != no; then
25538 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025539
John Criswell40468462004-09-24 21:19:06 +000025540cat >>confdefs.h <<\_ACEOF
25541#define HAVE_PTHREAD_MUTEX_LOCK 1
25542_ACEOF
25543
25544fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025545
Brian Gaekec9a410c2004-02-23 21:30:37 +000025546
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025547
Reid Spencer59473af2004-12-25 07:31:29 +000025548
25549
25550
25551
25552
25553ac_header_dirent=no
25554for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25555 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25556echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25557echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25558if eval "test \"\${$as_ac_Header+set}\" = set"; then
25559 echo $ECHO_N "(cached) $ECHO_C" >&6
25560else
25561 cat >conftest.$ac_ext <<_ACEOF
25562/* confdefs.h. */
25563_ACEOF
25564cat confdefs.h >>conftest.$ac_ext
25565cat >>conftest.$ac_ext <<_ACEOF
25566/* end confdefs.h. */
25567#include <sys/types.h>
25568#include <$ac_hdr>
25569
25570int
25571main ()
25572{
25573if ((DIR *) 0)
25574return 0;
25575 ;
25576 return 0;
25577}
25578_ACEOF
25579rm -f conftest.$ac_objext
25580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25581 (eval $ac_compile) 2>conftest.er1
25582 ac_status=$?
25583 grep -v '^ *+' conftest.er1 >conftest.err
25584 rm -f conftest.er1
25585 cat conftest.err >&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
25588 { ac_try='test -z "$ac_c_werror_flag"
25589 || test ! -s conftest.err'
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25592 ac_status=$?
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; } &&
25595 { ac_try='test -s conftest.$ac_objext'
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25598 ac_status=$?
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; }; then
25601 eval "$as_ac_Header=yes"
25602else
25603 echo "$as_me: failed program was:" >&5
25604sed 's/^/| /' conftest.$ac_ext >&5
25605
25606eval "$as_ac_Header=no"
25607fi
25608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25609fi
25610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25612if test `eval echo '${'$as_ac_Header'}'` = yes; then
25613 cat >>confdefs.h <<_ACEOF
25614#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25615_ACEOF
25616
25617ac_header_dirent=$ac_hdr; break
25618fi
25619
25620done
25621# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25622if test $ac_header_dirent = dirent.h; then
25623 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25624echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25625if test "${ac_cv_search_opendir+set}" = set; then
25626 echo $ECHO_N "(cached) $ECHO_C" >&6
25627else
25628 ac_func_search_save_LIBS=$LIBS
25629ac_cv_search_opendir=no
25630cat >conftest.$ac_ext <<_ACEOF
25631/* confdefs.h. */
25632_ACEOF
25633cat confdefs.h >>conftest.$ac_ext
25634cat >>conftest.$ac_ext <<_ACEOF
25635/* end confdefs.h. */
25636
25637/* Override any gcc2 internal prototype to avoid an error. */
25638#ifdef __cplusplus
25639extern "C"
25640#endif
25641/* We use char because int might match the return type of a gcc2
25642 builtin and then its argument prototype would still apply. */
25643char opendir ();
25644int
25645main ()
25646{
25647opendir ();
25648 ;
25649 return 0;
25650}
25651_ACEOF
25652rm -f conftest.$ac_objext conftest$ac_exeext
25653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654 (eval $ac_link) 2>conftest.er1
25655 ac_status=$?
25656 grep -v '^ *+' conftest.er1 >conftest.err
25657 rm -f conftest.er1
25658 cat conftest.err >&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } &&
25661 { ac_try='test -z "$ac_c_werror_flag"
25662 || test ! -s conftest.err'
25663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664 (eval $ac_try) 2>&5
25665 ac_status=$?
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); }; } &&
25668 { ac_try='test -s conftest$ac_exeext'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; }; then
25674 ac_cv_search_opendir="none required"
25675else
25676 echo "$as_me: failed program was:" >&5
25677sed 's/^/| /' conftest.$ac_ext >&5
25678
25679fi
25680rm -f conftest.err conftest.$ac_objext \
25681 conftest$ac_exeext conftest.$ac_ext
25682if test "$ac_cv_search_opendir" = no; then
25683 for ac_lib in dir; do
25684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25685 cat >conftest.$ac_ext <<_ACEOF
25686/* confdefs.h. */
25687_ACEOF
25688cat confdefs.h >>conftest.$ac_ext
25689cat >>conftest.$ac_ext <<_ACEOF
25690/* end confdefs.h. */
25691
25692/* Override any gcc2 internal prototype to avoid an error. */
25693#ifdef __cplusplus
25694extern "C"
25695#endif
25696/* We use char because int might match the return type of a gcc2
25697 builtin and then its argument prototype would still apply. */
25698char opendir ();
25699int
25700main ()
25701{
25702opendir ();
25703 ;
25704 return 0;
25705}
25706_ACEOF
25707rm -f conftest.$ac_objext conftest$ac_exeext
25708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25709 (eval $ac_link) 2>conftest.er1
25710 ac_status=$?
25711 grep -v '^ *+' conftest.er1 >conftest.err
25712 rm -f conftest.er1
25713 cat conftest.err >&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } &&
25716 { ac_try='test -z "$ac_c_werror_flag"
25717 || test ! -s conftest.err'
25718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719 (eval $ac_try) 2>&5
25720 ac_status=$?
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); }; } &&
25723 { ac_try='test -s conftest$ac_exeext'
25724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725 (eval $ac_try) 2>&5
25726 ac_status=$?
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); }; }; then
25729 ac_cv_search_opendir="-l$ac_lib"
25730break
25731else
25732 echo "$as_me: failed program was:" >&5
25733sed 's/^/| /' conftest.$ac_ext >&5
25734
25735fi
25736rm -f conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext conftest.$ac_ext
25738 done
25739fi
25740LIBS=$ac_func_search_save_LIBS
25741fi
25742echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25743echo "${ECHO_T}$ac_cv_search_opendir" >&6
25744if test "$ac_cv_search_opendir" != no; then
25745 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25746
25747fi
25748
25749else
25750 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25751echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25752if test "${ac_cv_search_opendir+set}" = set; then
25753 echo $ECHO_N "(cached) $ECHO_C" >&6
25754else
25755 ac_func_search_save_LIBS=$LIBS
25756ac_cv_search_opendir=no
25757cat >conftest.$ac_ext <<_ACEOF
25758/* confdefs.h. */
25759_ACEOF
25760cat confdefs.h >>conftest.$ac_ext
25761cat >>conftest.$ac_ext <<_ACEOF
25762/* end confdefs.h. */
25763
25764/* Override any gcc2 internal prototype to avoid an error. */
25765#ifdef __cplusplus
25766extern "C"
25767#endif
25768/* We use char because int might match the return type of a gcc2
25769 builtin and then its argument prototype would still apply. */
25770char opendir ();
25771int
25772main ()
25773{
25774opendir ();
25775 ;
25776 return 0;
25777}
25778_ACEOF
25779rm -f conftest.$ac_objext conftest$ac_exeext
25780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25781 (eval $ac_link) 2>conftest.er1
25782 ac_status=$?
25783 grep -v '^ *+' conftest.er1 >conftest.err
25784 rm -f conftest.er1
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } &&
25788 { ac_try='test -z "$ac_c_werror_flag"
25789 || test ! -s conftest.err'
25790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791 (eval $ac_try) 2>&5
25792 ac_status=$?
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; } &&
25795 { ac_try='test -s conftest$ac_exeext'
25796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25797 (eval $ac_try) 2>&5
25798 ac_status=$?
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); }; }; then
25801 ac_cv_search_opendir="none required"
25802else
25803 echo "$as_me: failed program was:" >&5
25804sed 's/^/| /' conftest.$ac_ext >&5
25805
25806fi
25807rm -f conftest.err conftest.$ac_objext \
25808 conftest$ac_exeext conftest.$ac_ext
25809if test "$ac_cv_search_opendir" = no; then
25810 for ac_lib in x; do
25811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25812 cat >conftest.$ac_ext <<_ACEOF
25813/* confdefs.h. */
25814_ACEOF
25815cat confdefs.h >>conftest.$ac_ext
25816cat >>conftest.$ac_ext <<_ACEOF
25817/* end confdefs.h. */
25818
25819/* Override any gcc2 internal prototype to avoid an error. */
25820#ifdef __cplusplus
25821extern "C"
25822#endif
25823/* We use char because int might match the return type of a gcc2
25824 builtin and then its argument prototype would still apply. */
25825char opendir ();
25826int
25827main ()
25828{
25829opendir ();
25830 ;
25831 return 0;
25832}
25833_ACEOF
25834rm -f conftest.$ac_objext conftest$ac_exeext
25835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25836 (eval $ac_link) 2>conftest.er1
25837 ac_status=$?
25838 grep -v '^ *+' conftest.er1 >conftest.err
25839 rm -f conftest.er1
25840 cat conftest.err >&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } &&
25843 { ac_try='test -z "$ac_c_werror_flag"
25844 || test ! -s conftest.err'
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; } &&
25850 { ac_try='test -s conftest$ac_exeext'
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25853 ac_status=$?
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; }; then
25856 ac_cv_search_opendir="-l$ac_lib"
25857break
25858else
25859 echo "$as_me: failed program was:" >&5
25860sed 's/^/| /' conftest.$ac_ext >&5
25861
25862fi
25863rm -f conftest.err conftest.$ac_objext \
25864 conftest$ac_exeext conftest.$ac_ext
25865 done
25866fi
25867LIBS=$ac_func_search_save_LIBS
25868fi
25869echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25870echo "${ECHO_T}$ac_cv_search_opendir" >&6
25871if test "$ac_cv_search_opendir" != no; then
25872 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25873
25874fi
25875
25876fi
25877
25878echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25879echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25880if test "${ac_cv_header_mmap_anon+set}" = set; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
25882else
25883 ac_ext=c
25884ac_cpp='$CPP $CPPFLAGS'
25885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25887ac_compiler_gnu=$ac_cv_c_compiler_gnu
25888
25889 cat >conftest.$ac_ext <<_ACEOF
25890/* confdefs.h. */
25891_ACEOF
25892cat confdefs.h >>conftest.$ac_ext
25893cat >>conftest.$ac_ext <<_ACEOF
25894/* end confdefs.h. */
25895#include <sys/mman.h>
25896#include <unistd.h>
25897#include <fcntl.h>
25898int
25899main ()
25900{
25901mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25902 ;
25903 return 0;
25904}
25905_ACEOF
25906rm -f conftest.$ac_objext
25907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25908 (eval $ac_compile) 2>conftest.er1
25909 ac_status=$?
25910 grep -v '^ *+' conftest.er1 >conftest.err
25911 rm -f conftest.er1
25912 cat conftest.err >&5
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); } &&
25915 { ac_try='test -z "$ac_c_werror_flag"
25916 || test ! -s conftest.err'
25917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; } &&
25922 { ac_try='test -s conftest.$ac_objext'
25923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); }; }; then
25928 ac_cv_header_mmap_anon=yes
25929else
25930 echo "$as_me: failed program was:" >&5
25931sed 's/^/| /' conftest.$ac_ext >&5
25932
25933ac_cv_header_mmap_anon=no
25934fi
25935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25936 ac_ext=c
25937ac_cpp='$CPP $CPPFLAGS'
25938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25940ac_compiler_gnu=$ac_cv_c_compiler_gnu
25941
25942
25943fi
25944echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25945echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25946if test "$ac_cv_header_mmap_anon" = yes; then
25947
25948cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025949#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025950_ACEOF
25951
25952fi
25953
25954echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25955echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25956if test "${ac_cv_header_stat_broken+set}" = set; then
25957 echo $ECHO_N "(cached) $ECHO_C" >&6
25958else
25959 cat >conftest.$ac_ext <<_ACEOF
25960/* confdefs.h. */
25961_ACEOF
25962cat confdefs.h >>conftest.$ac_ext
25963cat >>conftest.$ac_ext <<_ACEOF
25964/* end confdefs.h. */
25965#include <sys/types.h>
25966#include <sys/stat.h>
25967
25968#if defined(S_ISBLK) && defined(S_IFDIR)
25969# if S_ISBLK (S_IFDIR)
25970You lose.
25971# endif
25972#endif
25973
25974#if defined(S_ISBLK) && defined(S_IFCHR)
25975# if S_ISBLK (S_IFCHR)
25976You lose.
25977# endif
25978#endif
25979
25980#if defined(S_ISLNK) && defined(S_IFREG)
25981# if S_ISLNK (S_IFREG)
25982You lose.
25983# endif
25984#endif
25985
25986#if defined(S_ISSOCK) && defined(S_IFREG)
25987# if S_ISSOCK (S_IFREG)
25988You lose.
25989# endif
25990#endif
25991
25992_ACEOF
25993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25994 $EGREP "You lose" >/dev/null 2>&1; then
25995 ac_cv_header_stat_broken=yes
25996else
25997 ac_cv_header_stat_broken=no
25998fi
25999rm -f conftest*
26000
26001fi
26002echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26003echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26004if test $ac_cv_header_stat_broken = yes; then
26005
26006cat >>confdefs.h <<\_ACEOF
26007#define STAT_MACROS_BROKEN 1
26008_ACEOF
26009
26010fi
26011
John Criswell7a73b802003-06-30 21:59:07 +000026012echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26013echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26014if test "${ac_cv_header_stdc+set}" = set; then
26015 echo $ECHO_N "(cached) $ECHO_C" >&6
26016else
26017 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026018/* confdefs.h. */
26019_ACEOF
26020cat confdefs.h >>conftest.$ac_ext
26021cat >>conftest.$ac_ext <<_ACEOF
26022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026023#include <stdlib.h>
26024#include <stdarg.h>
26025#include <string.h>
26026#include <float.h>
26027
John Criswell0c38eaf2003-09-10 15:17:25 +000026028int
26029main ()
26030{
26031
26032 ;
26033 return 0;
26034}
John Criswell7a73b802003-06-30 21:59:07 +000026035_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026036rm -f conftest.$ac_objext
26037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026038 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026040 grep -v '^ *+' conftest.er1 >conftest.err
26041 rm -f conftest.er1
26042 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026044 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026045 { ac_try='test -z "$ac_c_werror_flag"
26046 || test ! -s conftest.err'
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26049 ac_status=$?
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; } &&
26052 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054 (eval $ac_try) 2>&5
26055 ac_status=$?
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026058 ac_cv_header_stdc=yes
26059else
26060 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026061sed 's/^/| /' conftest.$ac_ext >&5
26062
26063ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026064fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026066
26067if test $ac_cv_header_stdc = yes; then
26068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26069 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026070/* confdefs.h. */
26071_ACEOF
26072cat confdefs.h >>conftest.$ac_ext
26073cat >>conftest.$ac_ext <<_ACEOF
26074/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026075#include <string.h>
26076
26077_ACEOF
26078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026079 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026080 :
26081else
26082 ac_cv_header_stdc=no
26083fi
26084rm -f conftest*
26085
26086fi
26087
26088if test $ac_cv_header_stdc = yes; then
26089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26090 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026091/* confdefs.h. */
26092_ACEOF
26093cat confdefs.h >>conftest.$ac_ext
26094cat >>conftest.$ac_ext <<_ACEOF
26095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026096#include <stdlib.h>
26097
26098_ACEOF
26099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026100 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026101 :
26102else
26103 ac_cv_header_stdc=no
26104fi
26105rm -f conftest*
26106
26107fi
26108
26109if test $ac_cv_header_stdc = yes; then
26110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26111 if test "$cross_compiling" = yes; then
26112 :
26113else
26114 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
26119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026120#include <ctype.h>
26121#if ((' ' & 0x0FF) == 0x020)
26122# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26123# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26124#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026125# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026126 (('a' <= (c) && (c) <= 'i') \
26127 || ('j' <= (c) && (c) <= 'r') \
26128 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026129# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26130#endif
26131
26132#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26133int
26134main ()
26135{
26136 int i;
26137 for (i = 0; i < 256; i++)
26138 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026139 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026140 exit(2);
26141 exit (0);
26142}
26143_ACEOF
26144rm -f conftest$ac_exeext
26145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26146 (eval $ac_link) 2>&5
26147 ac_status=$?
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151 (eval $ac_try) 2>&5
26152 ac_status=$?
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); }; }; then
26155 :
26156else
26157 echo "$as_me: program exited with status $ac_status" >&5
26158echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026159sed 's/^/| /' conftest.$ac_ext >&5
26160
John Criswell7a73b802003-06-30 21:59:07 +000026161( exit $ac_status )
26162ac_cv_header_stdc=no
26163fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026164rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026165fi
26166fi
26167fi
26168echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26169echo "${ECHO_T}$ac_cv_header_stdc" >&6
26170if test $ac_cv_header_stdc = yes; then
26171
26172cat >>confdefs.h <<\_ACEOF
26173#define STDC_HEADERS 1
26174_ACEOF
26175
26176fi
26177
26178echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26179echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26180if test "${ac_cv_header_sys_wait_h+set}" = set; then
26181 echo $ECHO_N "(cached) $ECHO_C" >&6
26182else
26183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026184/* confdefs.h. */
26185_ACEOF
26186cat confdefs.h >>conftest.$ac_ext
26187cat >>conftest.$ac_ext <<_ACEOF
26188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026189#include <sys/types.h>
26190#include <sys/wait.h>
26191#ifndef WEXITSTATUS
26192# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26193#endif
26194#ifndef WIFEXITED
26195# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26196#endif
26197
John Criswell7a73b802003-06-30 21:59:07 +000026198int
26199main ()
26200{
26201 int s;
26202 wait (&s);
26203 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26204 ;
26205 return 0;
26206}
26207_ACEOF
26208rm -f conftest.$ac_objext
26209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026210 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026211 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026212 grep -v '^ *+' conftest.er1 >conftest.err
26213 rm -f conftest.er1
26214 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026217 { ac_try='test -z "$ac_c_werror_flag"
26218 || test ! -s conftest.err'
26219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26220 (eval $ac_try) 2>&5
26221 ac_status=$?
26222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); }; } &&
26224 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226 (eval $ac_try) 2>&5
26227 ac_status=$?
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); }; }; then
26230 ac_cv_header_sys_wait_h=yes
26231else
26232 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026233sed 's/^/| /' conftest.$ac_ext >&5
26234
John Criswell7a73b802003-06-30 21:59:07 +000026235ac_cv_header_sys_wait_h=no
26236fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026238fi
26239echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26240echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26241if test $ac_cv_header_sys_wait_h = yes; then
26242
26243cat >>confdefs.h <<\_ACEOF
26244#define HAVE_SYS_WAIT_H 1
26245_ACEOF
26246
26247fi
26248
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026249echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26250echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26251if test "${ac_cv_header_time+set}" = set; then
26252 echo $ECHO_N "(cached) $ECHO_C" >&6
26253else
26254 cat >conftest.$ac_ext <<_ACEOF
26255/* confdefs.h. */
26256_ACEOF
26257cat confdefs.h >>conftest.$ac_ext
26258cat >>conftest.$ac_ext <<_ACEOF
26259/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026260#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026261#include <sys/time.h>
26262#include <time.h>
26263
26264int
26265main ()
26266{
26267if ((struct tm *) 0)
26268return 0;
26269 ;
26270 return 0;
26271}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026272_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026273rm -f conftest.$ac_objext
26274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26275 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026276 ac_status=$?
26277 grep -v '^ *+' conftest.er1 >conftest.err
26278 rm -f conftest.er1
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026281 (exit $ac_status); } &&
26282 { ac_try='test -z "$ac_c_werror_flag"
26283 || test ! -s conftest.err'
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5
26286 ac_status=$?
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; } &&
26289 { ac_try='test -s conftest.$ac_objext'
26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291 (eval $ac_try) 2>&5
26292 ac_status=$?
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; }; then
26295 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026296else
26297 echo "$as_me: failed program was:" >&5
26298sed 's/^/| /' conftest.$ac_ext >&5
26299
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026300ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026301fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26303fi
26304echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26305echo "${ECHO_T}$ac_cv_header_time" >&6
26306if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026307
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026308cat >>confdefs.h <<\_ACEOF
26309#define TIME_WITH_SYS_TIME 1
26310_ACEOF
26311
26312fi
26313
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026314
Reid Spencer59473af2004-12-25 07:31:29 +000026315
26316
26317
26318
26319
26320
26321for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26322do
26323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26324if eval "test \"\${$as_ac_Header+set}\" = set"; then
26325 echo "$as_me:$LINENO: checking for $ac_header" >&5
26326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26327if eval "test \"\${$as_ac_Header+set}\" = set"; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26329fi
26330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26332else
26333 # Is the header compilable?
26334echo "$as_me:$LINENO: checking $ac_header usability" >&5
26335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26336cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026337/* confdefs.h. */
26338_ACEOF
26339cat confdefs.h >>conftest.$ac_ext
26340cat >>conftest.$ac_ext <<_ACEOF
26341/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026342$ac_includes_default
26343#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026344_ACEOF
26345rm -f conftest.$ac_objext
26346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26347 (eval $ac_compile) 2>conftest.er1
26348 ac_status=$?
26349 grep -v '^ *+' conftest.er1 >conftest.err
26350 rm -f conftest.er1
26351 cat conftest.err >&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); } &&
26354 { ac_try='test -z "$ac_c_werror_flag"
26355 || test ! -s conftest.err'
26356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26357 (eval $ac_try) 2>&5
26358 ac_status=$?
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); }; } &&
26361 { ac_try='test -s conftest.$ac_objext'
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026367 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026368else
26369 echo "$as_me: failed program was:" >&5
26370sed 's/^/| /' conftest.$ac_ext >&5
26371
Reid Spencer59473af2004-12-25 07:31:29 +000026372ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026373fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26376echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026377
Reid Spencer59473af2004-12-25 07:31:29 +000026378# Is the header present?
26379echo "$as_me:$LINENO: checking $ac_header presence" >&5
26380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26381cat >conftest.$ac_ext <<_ACEOF
26382/* confdefs.h. */
26383_ACEOF
26384cat confdefs.h >>conftest.$ac_ext
26385cat >>conftest.$ac_ext <<_ACEOF
26386/* end confdefs.h. */
26387#include <$ac_header>
26388_ACEOF
26389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26391 ac_status=$?
26392 grep -v '^ *+' conftest.er1 >conftest.err
26393 rm -f conftest.er1
26394 cat conftest.err >&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } >/dev/null; then
26397 if test -s conftest.err; then
26398 ac_cpp_err=$ac_c_preproc_warn_flag
26399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26400 else
26401 ac_cpp_err=
26402 fi
26403else
26404 ac_cpp_err=yes
26405fi
26406if test -z "$ac_cpp_err"; then
26407 ac_header_preproc=yes
26408else
26409 echo "$as_me: failed program was:" >&5
26410sed 's/^/| /' conftest.$ac_ext >&5
26411
26412 ac_header_preproc=no
26413fi
26414rm -f conftest.err conftest.$ac_ext
26415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26416echo "${ECHO_T}$ac_header_preproc" >&6
26417
26418# So? What about this header?
26419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26420 yes:no: )
26421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26425 ac_header_preproc=yes
26426 ;;
26427 no:yes:* )
26428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26440 (
26441 cat <<\_ASBOX
26442## ----------------------------------- ##
26443## Report this to llvmbugs@cs.uiuc.edu ##
26444## ----------------------------------- ##
26445_ASBOX
26446 ) |
26447 sed "s/^/$as_me: WARNING: /" >&2
26448 ;;
26449esac
26450echo "$as_me:$LINENO: checking for $ac_header" >&5
26451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26452if eval "test \"\${$as_ac_Header+set}\" = set"; then
26453 echo $ECHO_N "(cached) $ECHO_C" >&6
26454else
26455 eval "$as_ac_Header=\$ac_header_preproc"
26456fi
26457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026459
26460fi
Reid Spencer59473af2004-12-25 07:31:29 +000026461if test `eval echo '${'$as_ac_Header'}'` = yes; then
26462 cat >>confdefs.h <<_ACEOF
26463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026464_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026465
26466fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026467
Reid Spencer59473af2004-12-25 07:31:29 +000026468done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026469
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026470
26471
Reid Spencer59473af2004-12-25 07:31:29 +000026472
26473
26474
26475
Reid Spencer22177fe2005-07-12 15:24:20 +000026476for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26477do
26478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26479if eval "test \"\${$as_ac_Header+set}\" = set"; then
26480 echo "$as_me:$LINENO: checking for $ac_header" >&5
26481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26484fi
26485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26487else
26488 # Is the header compilable?
26489echo "$as_me:$LINENO: checking $ac_header usability" >&5
26490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26491cat >conftest.$ac_ext <<_ACEOF
26492/* confdefs.h. */
26493_ACEOF
26494cat confdefs.h >>conftest.$ac_ext
26495cat >>conftest.$ac_ext <<_ACEOF
26496/* end confdefs.h. */
26497$ac_includes_default
26498#include <$ac_header>
26499_ACEOF
26500rm -f conftest.$ac_objext
26501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502 (eval $ac_compile) 2>conftest.er1
26503 ac_status=$?
26504 grep -v '^ *+' conftest.er1 >conftest.err
26505 rm -f conftest.er1
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
26509 { ac_try='test -z "$ac_c_werror_flag"
26510 || test ! -s conftest.err'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest.$ac_objext'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_header_compiler=yes
26523else
26524 echo "$as_me: failed program was:" >&5
26525sed 's/^/| /' conftest.$ac_ext >&5
26526
26527ac_header_compiler=no
26528fi
26529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26531echo "${ECHO_T}$ac_header_compiler" >&6
26532
26533# Is the header present?
26534echo "$as_me:$LINENO: checking $ac_header presence" >&5
26535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26536cat >conftest.$ac_ext <<_ACEOF
26537/* confdefs.h. */
26538_ACEOF
26539cat confdefs.h >>conftest.$ac_ext
26540cat >>conftest.$ac_ext <<_ACEOF
26541/* end confdefs.h. */
26542#include <$ac_header>
26543_ACEOF
26544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26546 ac_status=$?
26547 grep -v '^ *+' conftest.er1 >conftest.err
26548 rm -f conftest.er1
26549 cat conftest.err >&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } >/dev/null; then
26552 if test -s conftest.err; then
26553 ac_cpp_err=$ac_c_preproc_warn_flag
26554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26555 else
26556 ac_cpp_err=
26557 fi
26558else
26559 ac_cpp_err=yes
26560fi
26561if test -z "$ac_cpp_err"; then
26562 ac_header_preproc=yes
26563else
26564 echo "$as_me: failed program was:" >&5
26565sed 's/^/| /' conftest.$ac_ext >&5
26566
26567 ac_header_preproc=no
26568fi
26569rm -f conftest.err conftest.$ac_ext
26570echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26571echo "${ECHO_T}$ac_header_preproc" >&6
26572
26573# So? What about this header?
26574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26575 yes:no: )
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26579echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26580 ac_header_preproc=yes
26581 ;;
26582 no:yes:* )
26583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26584echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26586echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26588echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26590echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26594echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26595 (
26596 cat <<\_ASBOX
26597## ----------------------------------- ##
26598## Report this to llvmbugs@cs.uiuc.edu ##
26599## ----------------------------------- ##
26600_ASBOX
26601 ) |
26602 sed "s/^/$as_me: WARNING: /" >&2
26603 ;;
26604esac
26605echo "$as_me:$LINENO: checking for $ac_header" >&5
26606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26607if eval "test \"\${$as_ac_Header+set}\" = set"; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26609else
26610 eval "$as_ac_Header=\$ac_header_preproc"
26611fi
26612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26614
26615fi
26616if test `eval echo '${'$as_ac_Header'}'` = yes; then
26617 cat >>confdefs.h <<_ACEOF
26618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26619_ACEOF
26620
26621fi
26622
26623done
26624
26625
26626for ac_header in windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026627do
26628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26629if eval "test \"\${$as_ac_Header+set}\" = set"; then
26630 echo "$as_me:$LINENO: checking for $ac_header" >&5
26631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634fi
26635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26637else
26638 # Is the header compilable?
26639echo "$as_me:$LINENO: checking $ac_header usability" >&5
26640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26641cat >conftest.$ac_ext <<_ACEOF
26642/* confdefs.h. */
26643_ACEOF
26644cat confdefs.h >>conftest.$ac_ext
26645cat >>conftest.$ac_ext <<_ACEOF
26646/* end confdefs.h. */
26647$ac_includes_default
26648#include <$ac_header>
26649_ACEOF
26650rm -f conftest.$ac_objext
26651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652 (eval $ac_compile) 2>conftest.er1
26653 ac_status=$?
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
26659 { ac_try='test -z "$ac_c_werror_flag"
26660 || test ! -s conftest.err'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; } &&
26666 { ac_try='test -s conftest.$ac_objext'
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26669 ac_status=$?
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; }; then
26672 ac_header_compiler=yes
26673else
26674 echo "$as_me: failed program was:" >&5
26675sed 's/^/| /' conftest.$ac_ext >&5
26676
26677ac_header_compiler=no
26678fi
26679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26681echo "${ECHO_T}$ac_header_compiler" >&6
26682
26683# Is the header present?
26684echo "$as_me:$LINENO: checking $ac_header presence" >&5
26685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26686cat >conftest.$ac_ext <<_ACEOF
26687/* confdefs.h. */
26688_ACEOF
26689cat confdefs.h >>conftest.$ac_ext
26690cat >>conftest.$ac_ext <<_ACEOF
26691/* end confdefs.h. */
26692#include <$ac_header>
26693_ACEOF
26694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26696 ac_status=$?
26697 grep -v '^ *+' conftest.er1 >conftest.err
26698 rm -f conftest.er1
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } >/dev/null; then
26702 if test -s conftest.err; then
26703 ac_cpp_err=$ac_c_preproc_warn_flag
26704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26705 else
26706 ac_cpp_err=
26707 fi
26708else
26709 ac_cpp_err=yes
26710fi
26711if test -z "$ac_cpp_err"; then
26712 ac_header_preproc=yes
26713else
26714 echo "$as_me: failed program was:" >&5
26715sed 's/^/| /' conftest.$ac_ext >&5
26716
26717 ac_header_preproc=no
26718fi
26719rm -f conftest.err conftest.$ac_ext
26720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26721echo "${ECHO_T}$ac_header_preproc" >&6
26722
26723# So? What about this header?
26724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26725 yes:no: )
26726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26730 ac_header_preproc=yes
26731 ;;
26732 no:yes:* )
26733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26745 (
26746 cat <<\_ASBOX
26747## ----------------------------------- ##
26748## Report this to llvmbugs@cs.uiuc.edu ##
26749## ----------------------------------- ##
26750_ASBOX
26751 ) |
26752 sed "s/^/$as_me: WARNING: /" >&2
26753 ;;
26754esac
26755echo "$as_me:$LINENO: checking for $ac_header" >&5
26756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26759else
26760 eval "$as_ac_Header=\$ac_header_preproc"
26761fi
26762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26764
26765fi
26766if test `eval echo '${'$as_ac_Header'}'` = yes; then
26767 cat >>confdefs.h <<_ACEOF
26768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26769_ACEOF
26770
26771fi
26772
26773done
26774
26775
26776
26777
26778
26779
26780for 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 +000026781do
26782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26783if eval "test \"\${$as_ac_Header+set}\" = set"; then
26784 echo "$as_me:$LINENO: checking for $ac_header" >&5
26785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26786if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026787 echo $ECHO_N "(cached) $ECHO_C" >&6
26788fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026791else
26792 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026793echo "$as_me:$LINENO: checking $ac_header usability" >&5
26794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026795cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026796/* confdefs.h. */
26797_ACEOF
26798cat confdefs.h >>conftest.$ac_ext
26799cat >>conftest.$ac_ext <<_ACEOF
26800/* end confdefs.h. */
26801$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026802#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026803_ACEOF
26804rm -f conftest.$ac_objext
26805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026806 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026808 grep -v '^ *+' conftest.er1 >conftest.err
26809 rm -f conftest.er1
26810 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026813 { ac_try='test -z "$ac_c_werror_flag"
26814 || test ! -s conftest.err'
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26817 ac_status=$?
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; } &&
26820 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822 (eval $ac_try) 2>&5
26823 ac_status=$?
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26826 ac_header_compiler=yes
26827else
26828 echo "$as_me: failed program was:" >&5
26829sed 's/^/| /' conftest.$ac_ext >&5
26830
26831ac_header_compiler=no
26832fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26835echo "${ECHO_T}$ac_header_compiler" >&6
26836
26837# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026838echo "$as_me:$LINENO: checking $ac_header presence" >&5
26839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026840cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026841/* confdefs.h. */
26842_ACEOF
26843cat confdefs.h >>conftest.$ac_ext
26844cat >>conftest.$ac_ext <<_ACEOF
26845/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026846#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026847_ACEOF
26848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26850 ac_status=$?
26851 grep -v '^ *+' conftest.er1 >conftest.err
26852 rm -f conftest.er1
26853 cat conftest.err >&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } >/dev/null; then
26856 if test -s conftest.err; then
26857 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026859 else
26860 ac_cpp_err=
26861 fi
26862else
26863 ac_cpp_err=yes
26864fi
26865if test -z "$ac_cpp_err"; then
26866 ac_header_preproc=yes
26867else
26868 echo "$as_me: failed program was:" >&5
26869sed 's/^/| /' conftest.$ac_ext >&5
26870
26871 ac_header_preproc=no
26872fi
26873rm -f conftest.err conftest.$ac_ext
26874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26875echo "${ECHO_T}$ac_header_preproc" >&6
26876
26877# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26879 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026884 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026885 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026886 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026899 (
26900 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026901## ----------------------------------- ##
26902## Report this to llvmbugs@cs.uiuc.edu ##
26903## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026904_ASBOX
26905 ) |
26906 sed "s/^/$as_me: WARNING: /" >&2
26907 ;;
26908esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026909echo "$as_me:$LINENO: checking for $ac_header" >&5
26910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26911if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026912 echo $ECHO_N "(cached) $ECHO_C" >&6
26913else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026914 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026915fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026918
26919fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026920if test `eval echo '${'$as_ac_Header'}'` = yes; then
26921 cat >>confdefs.h <<_ACEOF
26922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026923_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026924
26925fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026926
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026927done
26928
John Criswell7ed43ad2004-07-19 16:12:29 +000026929
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026930
Reid Spencer8085cff2005-01-16 02:58:39 +000026931for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26932do
26933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26934if eval "test \"\${$as_ac_Header+set}\" = set"; then
26935 echo "$as_me:$LINENO: checking for $ac_header" >&5
26936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26937if eval "test \"\${$as_ac_Header+set}\" = set"; then
26938 echo $ECHO_N "(cached) $ECHO_C" >&6
26939fi
26940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26942else
26943 # Is the header compilable?
26944echo "$as_me:$LINENO: checking $ac_header usability" >&5
26945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26946cat >conftest.$ac_ext <<_ACEOF
26947/* confdefs.h. */
26948_ACEOF
26949cat confdefs.h >>conftest.$ac_ext
26950cat >>conftest.$ac_ext <<_ACEOF
26951/* end confdefs.h. */
26952$ac_includes_default
26953#include <$ac_header>
26954_ACEOF
26955rm -f conftest.$ac_objext
26956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26957 (eval $ac_compile) 2>conftest.er1
26958 ac_status=$?
26959 grep -v '^ *+' conftest.er1 >conftest.err
26960 rm -f conftest.er1
26961 cat conftest.err >&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } &&
26964 { ac_try='test -z "$ac_c_werror_flag"
26965 || test ! -s conftest.err'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; } &&
26971 { ac_try='test -s conftest.$ac_objext'
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_header_compiler=yes
26978else
26979 echo "$as_me: failed program was:" >&5
26980sed 's/^/| /' conftest.$ac_ext >&5
26981
26982ac_header_compiler=no
26983fi
26984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26986echo "${ECHO_T}$ac_header_compiler" >&6
26987
26988# Is the header present?
26989echo "$as_me:$LINENO: checking $ac_header presence" >&5
26990echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26991cat >conftest.$ac_ext <<_ACEOF
26992/* confdefs.h. */
26993_ACEOF
26994cat confdefs.h >>conftest.$ac_ext
26995cat >>conftest.$ac_ext <<_ACEOF
26996/* end confdefs.h. */
26997#include <$ac_header>
26998_ACEOF
26999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27001 ac_status=$?
27002 grep -v '^ *+' conftest.er1 >conftest.err
27003 rm -f conftest.er1
27004 cat conftest.err >&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } >/dev/null; then
27007 if test -s conftest.err; then
27008 ac_cpp_err=$ac_c_preproc_warn_flag
27009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27010 else
27011 ac_cpp_err=
27012 fi
27013else
27014 ac_cpp_err=yes
27015fi
27016if test -z "$ac_cpp_err"; then
27017 ac_header_preproc=yes
27018else
27019 echo "$as_me: failed program was:" >&5
27020sed 's/^/| /' conftest.$ac_ext >&5
27021
27022 ac_header_preproc=no
27023fi
27024rm -f conftest.err conftest.$ac_ext
27025echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27026echo "${ECHO_T}$ac_header_preproc" >&6
27027
27028# So? What about this header?
27029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27030 yes:no: )
27031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27035 ac_header_preproc=yes
27036 ;;
27037 no:yes:* )
27038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27050 (
27051 cat <<\_ASBOX
27052## ----------------------------------- ##
27053## Report this to llvmbugs@cs.uiuc.edu ##
27054## ----------------------------------- ##
27055_ASBOX
27056 ) |
27057 sed "s/^/$as_me: WARNING: /" >&2
27058 ;;
27059esac
27060echo "$as_me:$LINENO: checking for $ac_header" >&5
27061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27062if eval "test \"\${$as_ac_Header+set}\" = set"; then
27063 echo $ECHO_N "(cached) $ECHO_C" >&6
27064else
27065 eval "$as_ac_Header=\$ac_header_preproc"
27066fi
27067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27069
27070fi
27071if test `eval echo '${'$as_ac_Header'}'` = yes; then
27072 cat >>confdefs.h <<_ACEOF
27073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27074_ACEOF
27075
27076fi
27077
27078done
27079
27080
27081
John Criswell7a73b802003-06-30 21:59:07 +000027082echo "$as_me:$LINENO: checking for pid_t" >&5
27083echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27084if test "${ac_cv_type_pid_t+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27086else
27087 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027088/* confdefs.h. */
27089_ACEOF
27090cat confdefs.h >>conftest.$ac_ext
27091cat >>conftest.$ac_ext <<_ACEOF
27092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027093$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027094int
27095main ()
27096{
27097if ((pid_t *) 0)
27098 return 0;
27099if (sizeof (pid_t))
27100 return 0;
27101 ;
27102 return 0;
27103}
27104_ACEOF
27105rm -f conftest.$ac_objext
27106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027107 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027108 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027109 grep -v '^ *+' conftest.er1 >conftest.err
27110 rm -f conftest.er1
27111 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027114 { ac_try='test -z "$ac_c_werror_flag"
27115 || test ! -s conftest.err'
27116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117 (eval $ac_try) 2>&5
27118 ac_status=$?
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); }; } &&
27121 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123 (eval $ac_try) 2>&5
27124 ac_status=$?
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; }; then
27127 ac_cv_type_pid_t=yes
27128else
27129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027130sed 's/^/| /' conftest.$ac_ext >&5
27131
John Criswell7a73b802003-06-30 21:59:07 +000027132ac_cv_type_pid_t=no
27133fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027135fi
27136echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27137echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27138if test $ac_cv_type_pid_t = yes; then
27139 :
27140else
27141
27142cat >>confdefs.h <<_ACEOF
27143#define pid_t int
27144_ACEOF
27145
27146fi
27147
27148echo "$as_me:$LINENO: checking for size_t" >&5
27149echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27150if test "${ac_cv_type_size_t+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27152else
27153 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027154/* confdefs.h. */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027159$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027160int
27161main ()
27162{
27163if ((size_t *) 0)
27164 return 0;
27165if (sizeof (size_t))
27166 return 0;
27167 ;
27168 return 0;
27169}
27170_ACEOF
27171rm -f conftest.$ac_objext
27172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027173 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027174 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027175 grep -v '^ *+' conftest.er1 >conftest.err
27176 rm -f conftest.er1
27177 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027180 { ac_try='test -z "$ac_c_werror_flag"
27181 || test ! -s conftest.err'
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27184 ac_status=$?
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27190 ac_status=$?
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27193 ac_cv_type_size_t=yes
27194else
27195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027196sed 's/^/| /' conftest.$ac_ext >&5
27197
John Criswell7a73b802003-06-30 21:59:07 +000027198ac_cv_type_size_t=no
27199fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027201fi
27202echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27203echo "${ECHO_T}$ac_cv_type_size_t" >&6
27204if test $ac_cv_type_size_t = yes; then
27205 :
27206else
27207
27208cat >>confdefs.h <<_ACEOF
27209#define size_t unsigned
27210_ACEOF
27211
27212fi
27213
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027214echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27215echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27216if test "${ac_cv_type_signal+set}" = set; then
27217 echo $ECHO_N "(cached) $ECHO_C" >&6
27218else
27219 cat >conftest.$ac_ext <<_ACEOF
27220/* confdefs.h. */
27221_ACEOF
27222cat confdefs.h >>conftest.$ac_ext
27223cat >>conftest.$ac_ext <<_ACEOF
27224/* end confdefs.h. */
27225#include <sys/types.h>
27226#include <signal.h>
27227#ifdef signal
27228# undef signal
27229#endif
27230#ifdef __cplusplus
27231extern "C" void (*signal (int, void (*)(int)))(int);
27232#else
27233void (*signal ()) ();
27234#endif
27235
27236int
27237main ()
27238{
27239int i;
27240 ;
27241 return 0;
27242}
27243_ACEOF
27244rm -f conftest.$ac_objext
27245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27246 (eval $ac_compile) 2>conftest.er1
27247 ac_status=$?
27248 grep -v '^ *+' conftest.er1 >conftest.err
27249 rm -f conftest.er1
27250 cat conftest.err >&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
27253 { ac_try='test -z "$ac_c_werror_flag"
27254 || test ! -s conftest.err'
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; } &&
27260 { ac_try='test -s conftest.$ac_objext'
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27263 ac_status=$?
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; }; then
27266 ac_cv_type_signal=void
27267else
27268 echo "$as_me: failed program was:" >&5
27269sed 's/^/| /' conftest.$ac_ext >&5
27270
27271ac_cv_type_signal=int
27272fi
27273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27274fi
27275echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27276echo "${ECHO_T}$ac_cv_type_signal" >&6
27277
27278cat >>confdefs.h <<_ACEOF
27279#define RETSIGTYPE $ac_cv_type_signal
27280_ACEOF
27281
27282
27283echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27284echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27285if test "${ac_cv_struct_tm+set}" = set; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27287else
27288 cat >conftest.$ac_ext <<_ACEOF
27289/* confdefs.h. */
27290_ACEOF
27291cat confdefs.h >>conftest.$ac_ext
27292cat >>conftest.$ac_ext <<_ACEOF
27293/* end confdefs.h. */
27294#include <sys/types.h>
27295#include <time.h>
27296
27297int
27298main ()
27299{
27300struct tm *tp; tp->tm_sec;
27301 ;
27302 return 0;
27303}
27304_ACEOF
27305rm -f conftest.$ac_objext
27306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27307 (eval $ac_compile) 2>conftest.er1
27308 ac_status=$?
27309 grep -v '^ *+' conftest.er1 >conftest.err
27310 rm -f conftest.er1
27311 cat conftest.err >&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } &&
27314 { ac_try='test -z "$ac_c_werror_flag"
27315 || test ! -s conftest.err'
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest.$ac_objext'
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27324 ac_status=$?
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; }; then
27327 ac_cv_struct_tm=time.h
27328else
27329 echo "$as_me: failed program was:" >&5
27330sed 's/^/| /' conftest.$ac_ext >&5
27331
27332ac_cv_struct_tm=sys/time.h
27333fi
27334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27335fi
27336echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27337echo "${ECHO_T}$ac_cv_struct_tm" >&6
27338if test $ac_cv_struct_tm = sys/time.h; then
27339
27340cat >>confdefs.h <<\_ACEOF
27341#define TM_IN_SYS_TIME 1
27342_ACEOF
27343
27344fi
27345
John Criswell7a73b802003-06-30 21:59:07 +000027346echo "$as_me:$LINENO: checking for int64_t" >&5
27347echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27348if test "${ac_cv_type_int64_t+set}" = set; then
27349 echo $ECHO_N "(cached) $ECHO_C" >&6
27350else
27351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027352/* confdefs.h. */
27353_ACEOF
27354cat confdefs.h >>conftest.$ac_ext
27355cat >>conftest.$ac_ext <<_ACEOF
27356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027357$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027358int
27359main ()
27360{
27361if ((int64_t *) 0)
27362 return 0;
27363if (sizeof (int64_t))
27364 return 0;
27365 ;
27366 return 0;
27367}
27368_ACEOF
27369rm -f conftest.$ac_objext
27370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027371 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027373 grep -v '^ *+' conftest.er1 >conftest.err
27374 rm -f conftest.er1
27375 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027378 { ac_try='test -z "$ac_c_werror_flag"
27379 || test ! -s conftest.err'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27382 ac_status=$?
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; } &&
27385 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387 (eval $ac_try) 2>&5
27388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; }; then
27391 ac_cv_type_int64_t=yes
27392else
27393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027394sed 's/^/| /' conftest.$ac_ext >&5
27395
John Criswell7a73b802003-06-30 21:59:07 +000027396ac_cv_type_int64_t=no
27397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027399fi
27400echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27401echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27402if test $ac_cv_type_int64_t = yes; then
27403
27404cat >>confdefs.h <<_ACEOF
27405#define HAVE_INT64_T 1
27406_ACEOF
27407
27408
27409else
27410 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27411echo "$as_me: error: Type int64_t required but not found" >&2;}
27412 { (exit 1); exit 1; }; }
27413fi
27414
27415echo "$as_me:$LINENO: checking for uint64_t" >&5
27416echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27417if test "${ac_cv_type_uint64_t+set}" = set; then
27418 echo $ECHO_N "(cached) $ECHO_C" >&6
27419else
27420 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027421/* confdefs.h. */
27422_ACEOF
27423cat confdefs.h >>conftest.$ac_ext
27424cat >>conftest.$ac_ext <<_ACEOF
27425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027426$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027427int
27428main ()
27429{
27430if ((uint64_t *) 0)
27431 return 0;
27432if (sizeof (uint64_t))
27433 return 0;
27434 ;
27435 return 0;
27436}
27437_ACEOF
27438rm -f conftest.$ac_objext
27439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027440 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027442 grep -v '^ *+' conftest.er1 >conftest.err
27443 rm -f conftest.er1
27444 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027447 { ac_try='test -z "$ac_c_werror_flag"
27448 || test ! -s conftest.err'
27449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27450 (eval $ac_try) 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; } &&
27454 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456 (eval $ac_try) 2>&5
27457 ac_status=$?
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); }; }; then
27460 ac_cv_type_uint64_t=yes
27461else
27462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027463sed 's/^/| /' conftest.$ac_ext >&5
27464
John Criswell7a73b802003-06-30 21:59:07 +000027465ac_cv_type_uint64_t=no
27466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027468fi
27469echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27470echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27471if test $ac_cv_type_uint64_t = yes; then
27472
27473cat >>confdefs.h <<_ACEOF
27474#define HAVE_UINT64_T 1
27475_ACEOF
27476
27477
27478else
Misha Brukmanceca9042004-09-02 23:02:30 +000027479 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027480echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27481if test "${ac_cv_type_u_int64_t+set}" = set; then
27482 echo $ECHO_N "(cached) $ECHO_C" >&6
27483else
27484 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490$ac_includes_default
27491int
27492main ()
27493{
27494if ((u_int64_t *) 0)
27495 return 0;
27496if (sizeof (u_int64_t))
27497 return 0;
27498 ;
27499 return 0;
27500}
27501_ACEOF
27502rm -f conftest.$ac_objext
27503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027504 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027505 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027506 grep -v '^ *+' conftest.er1 >conftest.err
27507 rm -f conftest.er1
27508 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027511 { ac_try='test -z "$ac_c_werror_flag"
27512 || test ! -s conftest.err'
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27515 ac_status=$?
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; } &&
27518 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
27524 ac_cv_type_u_int64_t=yes
27525else
27526 echo "$as_me: failed program was:" >&5
27527sed 's/^/| /' conftest.$ac_ext >&5
27528
27529ac_cv_type_u_int64_t=no
27530fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027532fi
27533echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27534echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27535if test $ac_cv_type_u_int64_t = yes; then
27536
27537cat >>confdefs.h <<_ACEOF
27538#define HAVE_U_INT64_T 1
27539_ACEOF
27540
27541
Misha Brukmanceca9042004-09-02 23:02:30 +000027542else
27543 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27544echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27545 { (exit 1); exit 1; }; }
27546fi
27547
John Criswell679ff312004-09-02 18:44:44 +000027548fi
27549
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027550
27551
27552
27553
27554
27555
27556
Reid Spencerb9a5d682005-05-15 22:15:11 +000027557for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
Reid Spencerab5eaea2004-12-20 00:59:04 +000027558do
27559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27560echo "$as_me:$LINENO: checking for $ac_func" >&5
27561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27562if eval "test \"\${$as_ac_var+set}\" = set"; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27564else
27565 cat >conftest.$ac_ext <<_ACEOF
27566/* confdefs.h. */
27567_ACEOF
27568cat confdefs.h >>conftest.$ac_ext
27569cat >>conftest.$ac_ext <<_ACEOF
27570/* end confdefs.h. */
27571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27573#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027574
Reid Spencerab5eaea2004-12-20 00:59:04 +000027575/* System header to define __stub macros and hopefully few prototypes,
27576 which can conflict with char $ac_func (); below.
27577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27578 <limits.h> exists even on freestanding compilers. */
27579
27580#ifdef __STDC__
27581# include <limits.h>
27582#else
27583# include <assert.h>
27584#endif
27585
27586#undef $ac_func
27587
27588/* Override any gcc2 internal prototype to avoid an error. */
27589#ifdef __cplusplus
27590extern "C"
27591{
27592#endif
27593/* We use char because int might match the return type of a gcc2
27594 builtin and then its argument prototype would still apply. */
27595char $ac_func ();
27596/* The GNU C library defines this for functions which it implements
27597 to always fail with ENOSYS. Some functions are actually named
27598 something starting with __ and the normal name is an alias. */
27599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27600choke me
27601#else
27602char (*f) () = $ac_func;
27603#endif
27604#ifdef __cplusplus
27605}
27606#endif
27607
27608int
27609main ()
27610{
27611return f != $ac_func;
27612 ;
27613 return 0;
27614}
27615_ACEOF
27616rm -f conftest.$ac_objext conftest$ac_exeext
27617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27618 (eval $ac_link) 2>conftest.er1
27619 ac_status=$?
27620 grep -v '^ *+' conftest.er1 >conftest.err
27621 rm -f conftest.er1
27622 cat conftest.err >&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); } &&
27625 { ac_try='test -z "$ac_c_werror_flag"
27626 || test ! -s conftest.err'
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27629 ac_status=$?
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } &&
27632 { ac_try='test -s conftest$ac_exeext'
27633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634 (eval $ac_try) 2>&5
27635 ac_status=$?
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); }; }; then
27638 eval "$as_ac_var=yes"
27639else
27640 echo "$as_me: failed program was:" >&5
27641sed 's/^/| /' conftest.$ac_ext >&5
27642
27643eval "$as_ac_var=no"
27644fi
27645rm -f conftest.err conftest.$ac_objext \
27646 conftest$ac_exeext conftest.$ac_ext
27647fi
27648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27650if test `eval echo '${'$as_ac_var'}'` = yes; then
27651 cat >>confdefs.h <<_ACEOF
27652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27653_ACEOF
27654
27655fi
27656done
27657
27658
27659
27660
Reid Spencerc29b13d2005-05-14 16:42:52 +000027661
27662for ac_func in isatty mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027663do
27664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27665echo "$as_me:$LINENO: checking for $ac_func" >&5
27666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27667if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027668 echo $ECHO_N "(cached) $ECHO_C" >&6
27669else
27670 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027671/* confdefs.h. */
27672_ACEOF
27673cat confdefs.h >>conftest.$ac_ext
27674cat >>conftest.$ac_ext <<_ACEOF
27675/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27678#define $ac_func innocuous_$ac_func
27679
27680/* System header to define __stub macros and hopefully few prototypes,
27681 which can conflict with char $ac_func (); below.
27682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27683 <limits.h> exists even on freestanding compilers. */
27684
27685#ifdef __STDC__
27686# include <limits.h>
27687#else
27688# include <assert.h>
27689#endif
27690
27691#undef $ac_func
27692
27693/* Override any gcc2 internal prototype to avoid an error. */
27694#ifdef __cplusplus
27695extern "C"
27696{
27697#endif
27698/* We use char because int might match the return type of a gcc2
27699 builtin and then its argument prototype would still apply. */
27700char $ac_func ();
27701/* The GNU C library defines this for functions which it implements
27702 to always fail with ENOSYS. Some functions are actually named
27703 something starting with __ and the normal name is an alias. */
27704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27705choke me
27706#else
27707char (*f) () = $ac_func;
27708#endif
27709#ifdef __cplusplus
27710}
27711#endif
John Criswell7a73b802003-06-30 21:59:07 +000027712
John Criswell7a73b802003-06-30 21:59:07 +000027713int
27714main ()
27715{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027716return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027717 ;
27718 return 0;
27719}
27720_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027721rm -f conftest.$ac_objext conftest$ac_exeext
27722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27723 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027725 grep -v '^ *+' conftest.er1 >conftest.err
27726 rm -f conftest.er1
27727 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027730 { ac_try='test -z "$ac_c_werror_flag"
27731 || test ! -s conftest.err'
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027737 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739 (eval $ac_try) 2>&5
27740 ac_status=$?
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027743 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027744else
27745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027746sed 's/^/| /' conftest.$ac_ext >&5
27747
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027748eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027749fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027750rm -f conftest.err conftest.$ac_objext \
27751 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027752fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27755if test `eval echo '${'$as_ac_var'}'` = yes; then
27756 cat >>confdefs.h <<_ACEOF
27757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027758_ACEOF
27759
27760fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027761done
John Criswell7a73b802003-06-30 21:59:07 +000027762
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027763
27764
27765
Reid Spencer6af3d262004-12-15 04:01:48 +000027766
27767
Reid Spencer59473af2004-12-25 07:31:29 +000027768
Reid Spencerba46ca32004-12-31 05:49:15 +000027769for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +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
27775 echo $ECHO_N "(cached) $ECHO_C" >&6
27776else
27777 cat >conftest.$ac_ext <<_ACEOF
27778/* confdefs.h. */
27779_ACEOF
27780cat confdefs.h >>conftest.$ac_ext
27781cat >>conftest.$ac_ext <<_ACEOF
27782/* end confdefs.h. */
27783/* 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
27819
27820int
27821main ()
27822{
27823return f != $ac_func;
27824 ;
27825 return 0;
27826}
27827_ACEOF
27828rm -f conftest.$ac_objext conftest$ac_exeext
27829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27830 (eval $ac_link) 2>conftest.er1
27831 ac_status=$?
27832 grep -v '^ *+' conftest.er1 >conftest.err
27833 rm -f conftest.er1
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
27837 { 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); }; } &&
27844 { ac_try='test -s conftest$ac_exeext'
27845 { (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
27850 eval "$as_ac_var=yes"
27851else
27852 echo "$as_me: failed program was:" >&5
27853sed 's/^/| /' conftest.$ac_ext >&5
27854
27855eval "$as_ac_var=no"
27856fi
27857rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
27859fi
27860echo "$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
27865_ACEOF
27866
27867fi
27868done
27869
27870
Reid Spencerba46ca32004-12-31 05:49:15 +000027871
27872
27873for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027874do
27875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27876echo "$as_me:$LINENO: checking for $ac_func" >&5
27877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27878if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027879 echo $ECHO_N "(cached) $ECHO_C" >&6
27880else
27881 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027882/* confdefs.h. */
27883_ACEOF
27884cat confdefs.h >>conftest.$ac_ext
27885cat >>conftest.$ac_ext <<_ACEOF
27886/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27889#define $ac_func innocuous_$ac_func
27890
27891/* System header to define __stub macros and hopefully few prototypes,
27892 which can conflict with char $ac_func (); below.
27893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27894 <limits.h> exists even on freestanding compilers. */
27895
27896#ifdef __STDC__
27897# include <limits.h>
27898#else
27899# include <assert.h>
27900#endif
27901
27902#undef $ac_func
27903
27904/* Override any gcc2 internal prototype to avoid an error. */
27905#ifdef __cplusplus
27906extern "C"
27907{
27908#endif
27909/* We use char because int might match the return type of a gcc2
27910 builtin and then its argument prototype would still apply. */
27911char $ac_func ();
27912/* The GNU C library defines this for functions which it implements
27913 to always fail with ENOSYS. Some functions are actually named
27914 something starting with __ and the normal name is an alias. */
27915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27916choke me
27917#else
27918char (*f) () = $ac_func;
27919#endif
27920#ifdef __cplusplus
27921}
27922#endif
John Criswell7a73b802003-06-30 21:59:07 +000027923
John Criswell7a73b802003-06-30 21:59:07 +000027924int
27925main ()
27926{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027927return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027928 ;
27929 return 0;
27930}
27931_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027932rm -f conftest.$ac_objext conftest$ac_exeext
27933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027935 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027936 grep -v '^ *+' conftest.er1 >conftest.err
27937 rm -f conftest.er1
27938 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027941 { ac_try='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27945 ac_status=$?
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027948 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027954 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027955else
27956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027957sed 's/^/| /' conftest.$ac_ext >&5
27958
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027959eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027960fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027961rm -f conftest.err conftest.$ac_objext \
27962 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027963fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27966if test `eval echo '${'$as_ac_var'}'` = yes; then
27967 cat >>confdefs.h <<_ACEOF
27968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027969_ACEOF
27970
27971fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027972done
John Criswell7a73b802003-06-30 21:59:07 +000027973
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027974echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27975echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027976if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027977 echo $ECHO_N "(cached) $ECHO_C" >&6
27978else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027979 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027980ac_cpp='$CPP $CPPFLAGS'
27981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27983ac_compiler_gnu=$ac_cv_c_compiler_gnu
27984
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027985 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027986 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027987else
27988 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027989
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027990 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027991_ACEOF
27992cat confdefs.h >>conftest.$ac_ext
27993cat >>conftest.$ac_ext <<_ACEOF
27994/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027995
John Criswella0137d32003-10-13 16:22:01 +000027996#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027997#include <stdlib.h>
27998
John Criswella0137d32003-10-13 16:22:01 +000027999int
28000main ()
28001{
28002
Reid Spencer2706f8c2004-09-19 23:53:36 +000028003volatile double A, B;
28004char Buffer[100];
28005A = 1;
28006A /= 10.0;
28007sprintf(Buffer, "%a", A);
28008B = atof(Buffer);
28009if (A != B)
28010 return (1);
28011if (A != 0x1.999999999999ap-4)
28012 return (1);
28013return (0);
John Criswella0137d32003-10-13 16:22:01 +000028014 ;
28015 return 0;
28016}
28017_ACEOF
28018rm -f conftest$ac_exeext
28019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28020 (eval $ac_link) 2>&5
28021 ac_status=$?
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28025 (eval $ac_try) 2>&5
28026 ac_status=$?
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028029 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028030else
28031 echo "$as_me: program exited with status $ac_status" >&5
28032echo "$as_me: failed program was:" >&5
28033sed 's/^/| /' conftest.$ac_ext >&5
28034
28035( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028036llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028037fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028038rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028039fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028040 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028041ac_cpp='$CPP $CPPFLAGS'
28042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28044ac_compiler_gnu=$ac_cv_c_compiler_gnu
28045
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028046fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028047echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28048echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28049 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028050
28051cat >>confdefs.h <<\_ACEOF
28052#define HAVE_PRINTF_A 1
28053_ACEOF
28054
Reid Spencer2706f8c2004-09-19 23:53:36 +000028055 fi
John Criswella0137d32003-10-13 16:22:01 +000028056
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028057# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28058# for constant arguments. Useless!
28059echo "$as_me:$LINENO: checking for working alloca.h" >&5
28060echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28061if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028062 echo $ECHO_N "(cached) $ECHO_C" >&6
28063else
John Criswell0021c312004-02-13 21:57:29 +000028064 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028065/* confdefs.h. */
28066_ACEOF
28067cat confdefs.h >>conftest.$ac_ext
28068cat >>conftest.$ac_ext <<_ACEOF
28069/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028070#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028071int
28072main ()
28073{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028074char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028075 ;
28076 return 0;
28077}
28078_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028079rm -f conftest.$ac_objext conftest$ac_exeext
28080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28081 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028083 grep -v '^ *+' conftest.er1 >conftest.err
28084 rm -f conftest.er1
28085 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028088 { ac_try='test -z "$ac_c_werror_flag"
28089 || test ! -s conftest.err'
28090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091 (eval $ac_try) 2>&5
28092 ac_status=$?
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028095 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097 (eval $ac_try) 2>&5
28098 ac_status=$?
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028101 ac_cv_working_alloca_h=yes
28102else
28103 echo "$as_me: failed program was:" >&5
28104sed 's/^/| /' conftest.$ac_ext >&5
28105
28106ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028107fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028108rm -f conftest.err conftest.$ac_objext \
28109 conftest$ac_exeext conftest.$ac_ext
28110fi
28111echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28112echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28113if test $ac_cv_working_alloca_h = yes; then
28114
28115cat >>confdefs.h <<\_ACEOF
28116#define HAVE_ALLOCA_H 1
28117_ACEOF
28118
28119fi
28120
28121echo "$as_me:$LINENO: checking for alloca" >&5
28122echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28123if test "${ac_cv_func_alloca_works+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28125else
28126 cat >conftest.$ac_ext <<_ACEOF
28127/* confdefs.h. */
28128_ACEOF
28129cat confdefs.h >>conftest.$ac_ext
28130cat >>conftest.$ac_ext <<_ACEOF
28131/* end confdefs.h. */
28132#ifdef __GNUC__
28133# define alloca __builtin_alloca
28134#else
28135# ifdef _MSC_VER
28136# include <malloc.h>
28137# define alloca _alloca
28138# else
28139# if HAVE_ALLOCA_H
28140# include <alloca.h>
28141# else
28142# ifdef _AIX
28143 #pragma alloca
28144# else
28145# ifndef alloca /* predefined by HP cc +Olibcalls */
28146char *alloca ();
28147# endif
28148# endif
28149# endif
28150# endif
28151#endif
28152
28153int
28154main ()
28155{
28156char *p = (char *) alloca (1);
28157 ;
28158 return 0;
28159}
28160_ACEOF
28161rm -f conftest.$ac_objext conftest$ac_exeext
28162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28163 (eval $ac_link) 2>conftest.er1
28164 ac_status=$?
28165 grep -v '^ *+' conftest.er1 >conftest.err
28166 rm -f conftest.er1
28167 cat conftest.err >&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } &&
28170 { ac_try='test -z "$ac_c_werror_flag"
28171 || test ! -s conftest.err'
28172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28173 (eval $ac_try) 2>&5
28174 ac_status=$?
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; } &&
28177 { ac_try='test -s conftest$ac_exeext'
28178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179 (eval $ac_try) 2>&5
28180 ac_status=$?
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28183 ac_cv_func_alloca_works=yes
28184else
28185 echo "$as_me: failed program was:" >&5
28186sed 's/^/| /' conftest.$ac_ext >&5
28187
28188ac_cv_func_alloca_works=no
28189fi
28190rm -f conftest.err conftest.$ac_objext \
28191 conftest$ac_exeext conftest.$ac_ext
28192fi
28193echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28194echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28195
28196if test $ac_cv_func_alloca_works = yes; then
28197
28198cat >>confdefs.h <<\_ACEOF
28199#define HAVE_ALLOCA 1
28200_ACEOF
28201
28202else
28203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28204# that cause trouble. Some versions do not even contain alloca or
28205# contain a buggy version. If you still want to use their alloca,
28206# use ar to extract alloca.o from them instead of compiling alloca.c.
28207
28208ALLOCA=alloca.$ac_objext
28209
28210cat >>confdefs.h <<\_ACEOF
28211#define C_ALLOCA 1
28212_ACEOF
28213
28214
28215echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28216echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28217if test "${ac_cv_os_cray+set}" = set; then
28218 echo $ECHO_N "(cached) $ECHO_C" >&6
28219else
28220 cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h. */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h. */
28226#if defined(CRAY) && ! defined(CRAY2)
28227webecray
28228#else
28229wenotbecray
28230#endif
28231
28232_ACEOF
28233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28234 $EGREP "webecray" >/dev/null 2>&1; then
28235 ac_cv_os_cray=yes
28236else
28237 ac_cv_os_cray=no
28238fi
28239rm -f conftest*
28240
28241fi
28242echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28243echo "${ECHO_T}$ac_cv_os_cray" >&6
28244if test $ac_cv_os_cray = yes; then
28245 for ac_func in _getb67 GETB67 getb67; do
28246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28247echo "$as_me:$LINENO: checking for $ac_func" >&5
28248echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28249if eval "test \"\${$as_ac_var+set}\" = set"; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28251else
28252 cat >conftest.$ac_ext <<_ACEOF
28253/* confdefs.h. */
28254_ACEOF
28255cat confdefs.h >>conftest.$ac_ext
28256cat >>conftest.$ac_ext <<_ACEOF
28257/* end confdefs.h. */
28258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28260#define $ac_func innocuous_$ac_func
28261
28262/* System header to define __stub macros and hopefully few prototypes,
28263 which can conflict with char $ac_func (); below.
28264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28265 <limits.h> exists even on freestanding compilers. */
28266
28267#ifdef __STDC__
28268# include <limits.h>
28269#else
28270# include <assert.h>
28271#endif
28272
28273#undef $ac_func
28274
28275/* Override any gcc2 internal prototype to avoid an error. */
28276#ifdef __cplusplus
28277extern "C"
28278{
28279#endif
28280/* We use char because int might match the return type of a gcc2
28281 builtin and then its argument prototype would still apply. */
28282char $ac_func ();
28283/* The GNU C library defines this for functions which it implements
28284 to always fail with ENOSYS. Some functions are actually named
28285 something starting with __ and the normal name is an alias. */
28286#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28287choke me
28288#else
28289char (*f) () = $ac_func;
28290#endif
28291#ifdef __cplusplus
28292}
28293#endif
28294
28295int
28296main ()
28297{
28298return f != $ac_func;
28299 ;
28300 return 0;
28301}
28302_ACEOF
28303rm -f conftest.$ac_objext conftest$ac_exeext
28304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28305 (eval $ac_link) 2>conftest.er1
28306 ac_status=$?
28307 grep -v '^ *+' conftest.er1 >conftest.err
28308 rm -f conftest.er1
28309 cat conftest.err >&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } &&
28312 { ac_try='test -z "$ac_c_werror_flag"
28313 || test ! -s conftest.err'
28314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28315 (eval $ac_try) 2>&5
28316 ac_status=$?
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; } &&
28319 { ac_try='test -s conftest$ac_exeext'
28320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321 (eval $ac_try) 2>&5
28322 ac_status=$?
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); }; }; then
28325 eval "$as_ac_var=yes"
28326else
28327 echo "$as_me: failed program was:" >&5
28328sed 's/^/| /' conftest.$ac_ext >&5
28329
28330eval "$as_ac_var=no"
28331fi
28332rm -f conftest.err conftest.$ac_objext \
28333 conftest$ac_exeext conftest.$ac_ext
28334fi
28335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28336echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28337if test `eval echo '${'$as_ac_var'}'` = yes; then
28338
28339cat >>confdefs.h <<_ACEOF
28340#define CRAY_STACKSEG_END $ac_func
28341_ACEOF
28342
28343 break
28344fi
28345
28346 done
28347fi
28348
28349echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28350echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28351if test "${ac_cv_c_stack_direction+set}" = set; then
28352 echo $ECHO_N "(cached) $ECHO_C" >&6
28353else
28354 if test "$cross_compiling" = yes; then
28355 ac_cv_c_stack_direction=0
28356else
28357 cat >conftest.$ac_ext <<_ACEOF
28358/* confdefs.h. */
28359_ACEOF
28360cat confdefs.h >>conftest.$ac_ext
28361cat >>conftest.$ac_ext <<_ACEOF
28362/* end confdefs.h. */
28363int
28364find_stack_direction ()
28365{
28366 static char *addr = 0;
28367 auto char dummy;
28368 if (addr == 0)
28369 {
28370 addr = &dummy;
28371 return find_stack_direction ();
28372 }
John Criswell0021c312004-02-13 21:57:29 +000028373 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028374 return (&dummy > addr) ? 1 : -1;
28375}
John Criswell0021c312004-02-13 21:57:29 +000028376
John Criswell0021c312004-02-13 21:57:29 +000028377int
28378main ()
28379{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028380 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028381}
28382_ACEOF
28383rm -f conftest$ac_exeext
28384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28385 (eval $ac_link) 2>&5
28386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28391 ac_status=$?
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028394 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028395else
28396 echo "$as_me: program exited with status $ac_status" >&5
28397echo "$as_me: failed program was:" >&5
28398sed 's/^/| /' conftest.$ac_ext >&5
28399
28400( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028401ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028402fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028403rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028404fi
28405fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028406echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28407echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28408
28409cat >>confdefs.h <<_ACEOF
28410#define STACK_DIRECTION $ac_cv_c_stack_direction
28411_ACEOF
28412
28413
John Criswell0021c312004-02-13 21:57:29 +000028414fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028415
28416
28417echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28418echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28419if test "${ac_cv_func_rand48+set}" = set; then
28420 echo $ECHO_N "(cached) $ECHO_C" >&6
28421else
28422 ac_ext=cc
28423ac_cpp='$CXXCPP $CPPFLAGS'
28424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28427
28428 cat >conftest.$ac_ext <<_ACEOF
28429/* confdefs.h. */
28430_ACEOF
28431cat confdefs.h >>conftest.$ac_ext
28432cat >>conftest.$ac_ext <<_ACEOF
28433/* end confdefs.h. */
28434#include <stdlib.h>
28435int
28436main ()
28437{
28438srand48(0);lrand48();drand48();
28439 ;
28440 return 0;
28441}
28442_ACEOF
28443rm -f conftest.$ac_objext
28444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28445 (eval $ac_compile) 2>conftest.er1
28446 ac_status=$?
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
28452 { ac_try='test -z "$ac_cxx_werror_flag"
28453 || test ! -s conftest.err'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; } &&
28459 { ac_try='test -s conftest.$ac_objext'
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; }; then
28465 ac_cv_func_rand48=yes
28466else
28467 echo "$as_me: failed program was:" >&5
28468sed 's/^/| /' conftest.$ac_ext >&5
28469
28470ac_cv_func_rand48=no
28471fi
28472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28473 ac_ext=c
28474ac_cpp='$CPP $CPPFLAGS'
28475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28477ac_compiler_gnu=$ac_cv_c_compiler_gnu
28478
28479fi
28480echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28481echo "${ECHO_T}$ac_cv_func_rand48" >&6
28482
28483if test "$ac_cv_func_rand48" = "yes" ; then
28484
28485cat >>confdefs.h <<\_ACEOF
28486#define HAVE_RAND48 1
28487_ACEOF
28488
28489fi
John Criswell0021c312004-02-13 21:57:29 +000028490
28491
John Criswell7a73b802003-06-30 21:59:07 +000028492echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28493echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28494if test "${ac_cv_cxx_namespaces+set}" = set; then
28495 echo $ECHO_N "(cached) $ECHO_C" >&6
28496else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028497 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028498ac_cpp='$CXXCPP $CPPFLAGS'
28499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28502
28503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028504/* confdefs.h. */
28505_ACEOF
28506cat confdefs.h >>conftest.$ac_ext
28507cat >>conftest.$ac_ext <<_ACEOF
28508/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028509namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028510int
28511main ()
28512{
28513using namespace Outer::Inner; return i;
28514 ;
28515 return 0;
28516}
28517_ACEOF
28518rm -f conftest.$ac_objext
28519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028520 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028522 grep -v '^ *+' conftest.er1 >conftest.err
28523 rm -f conftest.er1
28524 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028527 { ac_try='test -z "$ac_cxx_werror_flag"
28528 || test ! -s conftest.err'
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28531 ac_status=$?
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; } &&
28534 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 ac_cv_cxx_namespaces=yes
28541else
28542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028543sed 's/^/| /' conftest.$ac_ext >&5
28544
John Criswell7a73b802003-06-30 21:59:07 +000028545ac_cv_cxx_namespaces=no
28546fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028548 ac_ext=c
28549ac_cpp='$CPP $CPPFLAGS'
28550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28552ac_compiler_gnu=$ac_cv_c_compiler_gnu
28553
28554
28555fi
28556echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28557echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28558if test "$ac_cv_cxx_namespaces" = yes; then
28559
28560cat >>confdefs.h <<\_ACEOF
28561#define HAVE_NAMESPACES
28562_ACEOF
28563
28564fi
28565
Brian Gaeke90583492003-11-10 03:06:28 +000028566echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28567echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28568if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028569 echo $ECHO_N "(cached) $ECHO_C" >&6
28570else
28571
John Criswell7a73b802003-06-30 21:59:07 +000028572 ac_ext=cc
28573ac_cpp='$CXXCPP $CPPFLAGS'
28574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28577
28578 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028579/* confdefs.h. */
28580_ACEOF
28581cat confdefs.h >>conftest.$ac_ext
28582cat >>conftest.$ac_ext <<_ACEOF
28583/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028584#include <ext/hash_map>
28585#ifdef HAVE_NAMESPACES
28586using namespace std;
28587#endif
John Criswell7a73b802003-06-30 21:59:07 +000028588int
28589main ()
28590{
Brian Gaeke90583492003-11-10 03:06:28 +000028591hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028592 ;
28593 return 0;
28594}
28595_ACEOF
28596rm -f conftest.$ac_objext
28597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028598 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028600 grep -v '^ *+' conftest.er1 >conftest.err
28601 rm -f conftest.er1
28602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028605 { ac_try='test -z "$ac_cxx_werror_flag"
28606 || test ! -s conftest.err'
28607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608 (eval $ac_try) 2>&5
28609 ac_status=$?
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); }; } &&
28612 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28615 ac_status=$?
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028618 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028619else
28620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028621sed 's/^/| /' conftest.$ac_ext >&5
28622
Brian Gaeke90583492003-11-10 03:06:28 +000028623ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028624fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028626 ac_ext=c
28627ac_cpp='$CPP $CPPFLAGS'
28628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28630ac_compiler_gnu=$ac_cv_c_compiler_gnu
28631
John Criswell7a73b802003-06-30 21:59:07 +000028632fi
Brian Gaeke90583492003-11-10 03:06:28 +000028633echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28634echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028635 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28636 then
John Criswell9f011862004-09-24 18:28:00 +000028637
28638cat >>confdefs.h <<\_ACEOF
28639#define HAVE_STD_EXT_HASH_MAP 1
28640_ACEOF
28641
28642 else
28643
28644cat >>confdefs.h <<\_ACEOF
28645#define HAVE_STD_EXT_HASH_MAP 0
28646_ACEOF
28647
Brian Gaeke90583492003-11-10 03:06:28 +000028648 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028649
Brian Gaeke90583492003-11-10 03:06:28 +000028650 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28651echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28652if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28653 echo $ECHO_N "(cached) $ECHO_C" >&6
28654else
28655
Brian Gaeke90583492003-11-10 03:06:28 +000028656 ac_ext=cc
28657ac_cpp='$CXXCPP $CPPFLAGS'
28658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28661
28662 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028663/* confdefs.h. */
28664_ACEOF
28665cat confdefs.h >>conftest.$ac_ext
28666cat >>conftest.$ac_ext <<_ACEOF
28667/* end confdefs.h. */
28668#include <ext/hash_map>
28669#ifdef HAVE_NAMESPACES
28670using namespace __gnu_cxx;
28671#endif
28672int
28673main ()
28674{
28675hash_map<int,int> t;
28676 ;
28677 return 0;
28678}
28679_ACEOF
28680rm -f conftest.$ac_objext
28681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028682 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028684 grep -v '^ *+' conftest.er1 >conftest.err
28685 rm -f conftest.er1
28686 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028689 { ac_try='test -z "$ac_cxx_werror_flag"
28690 || test ! -s conftest.err'
28691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692 (eval $ac_try) 2>&5
28693 ac_status=$?
28694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); }; } &&
28696 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698 (eval $ac_try) 2>&5
28699 ac_status=$?
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; }; then
28702 ac_cv_cxx_have_gnu_ext_hash_map=yes
28703else
28704 echo "$as_me: failed program was:" >&5
28705sed 's/^/| /' conftest.$ac_ext >&5
28706
28707ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028708fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028710 ac_ext=c
28711ac_cpp='$CPP $CPPFLAGS'
28712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28714ac_compiler_gnu=$ac_cv_c_compiler_gnu
28715
28716fi
28717echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28718echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028719 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28720 then
John Criswell9f011862004-09-24 18:28:00 +000028721
28722cat >>confdefs.h <<\_ACEOF
28723#define HAVE_GNU_EXT_HASH_MAP 1
28724_ACEOF
28725
28726 else
28727
28728cat >>confdefs.h <<\_ACEOF
28729#define HAVE_GNU_EXT_HASH_MAP 0
28730_ACEOF
28731
Brian Gaeke90583492003-11-10 03:06:28 +000028732 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028733
Brian Gaeke90583492003-11-10 03:06:28 +000028734 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28735echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28736if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28737 echo $ECHO_N "(cached) $ECHO_C" >&6
28738else
John Criswell7a73b802003-06-30 21:59:07 +000028739
Brian Gaeke90583492003-11-10 03:06:28 +000028740 ac_ext=cc
28741ac_cpp='$CXXCPP $CPPFLAGS'
28742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28745
28746 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028747/* confdefs.h. */
28748_ACEOF
28749cat confdefs.h >>conftest.$ac_ext
28750cat >>conftest.$ac_ext <<_ACEOF
28751/* end confdefs.h. */
28752#include <hash_map>
28753int
28754main ()
28755{
28756hash_map<int,int> t;
28757 ;
28758 return 0;
28759}
28760_ACEOF
28761rm -f conftest.$ac_objext
28762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028763 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028764 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028765 grep -v '^ *+' conftest.er1 >conftest.err
28766 rm -f conftest.er1
28767 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028770 { ac_try='test -z "$ac_cxx_werror_flag"
28771 || test ! -s conftest.err'
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28774 ac_status=$?
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; } &&
28777 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779 (eval $ac_try) 2>&5
28780 ac_status=$?
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 ac_cv_cxx_have_global_hash_map=yes
28784else
28785 echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
28788ac_cv_cxx_have_global_hash_map=no
28789fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028791 ac_ext=c
28792ac_cpp='$CPP $CPPFLAGS'
28793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28795ac_compiler_gnu=$ac_cv_c_compiler_gnu
28796
28797fi
28798echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28799echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028800 if test "$ac_cv_cxx_have_global_hash_map" = yes
28801 then
John Criswell9f011862004-09-24 18:28:00 +000028802
28803cat >>confdefs.h <<\_ACEOF
28804#define HAVE_GLOBAL_HASH_MAP 1
28805_ACEOF
28806
28807 else
28808
28809cat >>confdefs.h <<\_ACEOF
28810#define HAVE_GLOBAL_HASH_MAP 0
28811_ACEOF
28812
Brian Gaeke90583492003-11-10 03:06:28 +000028813 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028814
Brian Gaeke90583492003-11-10 03:06:28 +000028815echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28816echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28817if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028818 echo $ECHO_N "(cached) $ECHO_C" >&6
28819else
28820
John Criswell7a73b802003-06-30 21:59:07 +000028821 ac_ext=cc
28822ac_cpp='$CXXCPP $CPPFLAGS'
28823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28826
28827 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028828/* confdefs.h. */
28829_ACEOF
28830cat confdefs.h >>conftest.$ac_ext
28831cat >>conftest.$ac_ext <<_ACEOF
28832/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028833#include <ext/hash_set>
28834#ifdef HAVE_NAMESPACES
28835using namespace std;
28836#endif
John Criswell7a73b802003-06-30 21:59:07 +000028837int
28838main ()
28839{
Brian Gaeke90583492003-11-10 03:06:28 +000028840hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028841 ;
28842 return 0;
28843}
28844_ACEOF
28845rm -f conftest.$ac_objext
28846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028847 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028848 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028849 grep -v '^ *+' conftest.er1 >conftest.err
28850 rm -f conftest.er1
28851 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028854 { ac_try='test -z "$ac_cxx_werror_flag"
28855 || test ! -s conftest.err'
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
28858 ac_status=$?
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; } &&
28861 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28864 ac_status=$?
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028867 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028868else
28869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028870sed 's/^/| /' conftest.$ac_ext >&5
28871
Brian Gaeke90583492003-11-10 03:06:28 +000028872ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028873fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028875 ac_ext=c
28876ac_cpp='$CPP $CPPFLAGS'
28877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28879ac_compiler_gnu=$ac_cv_c_compiler_gnu
28880
28881fi
28882echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28883echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028884 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28885 then
John Criswell9f011862004-09-24 18:28:00 +000028886
28887cat >>confdefs.h <<\_ACEOF
28888#define HAVE_STD_EXT_HASH_SET 1
28889_ACEOF
28890
28891 else
28892
28893cat >>confdefs.h <<\_ACEOF
28894#define HAVE_STD_EXT_HASH_SET 0
28895_ACEOF
28896
Brian Gaeke90583492003-11-10 03:06:28 +000028897 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028898
Brian Gaeke90583492003-11-10 03:06:28 +000028899 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28900echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28901if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28903else
28904
Brian Gaeke90583492003-11-10 03:06:28 +000028905 ac_ext=cc
28906ac_cpp='$CXXCPP $CPPFLAGS'
28907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28910
John Criswell7a73b802003-06-30 21:59:07 +000028911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028912/* confdefs.h. */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028917#include <ext/hash_set>
28918#ifdef HAVE_NAMESPACES
28919using namespace __gnu_cxx;
28920#endif
John Criswell7a73b802003-06-30 21:59:07 +000028921int
28922main ()
28923{
Brian Gaeke90583492003-11-10 03:06:28 +000028924hash_set<int> t;
28925 ;
28926 return 0;
28927}
28928_ACEOF
28929rm -f conftest.$ac_objext
28930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028931 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028932 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028933 grep -v '^ *+' conftest.er1 >conftest.err
28934 rm -f conftest.er1
28935 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028938 { ac_try='test -z "$ac_cxx_werror_flag"
28939 || test ! -s conftest.err'
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28942 ac_status=$?
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; } &&
28945 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947 (eval $ac_try) 2>&5
28948 ac_status=$?
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); }; }; then
28951 ac_cv_cxx_have_gnu_ext_hash_set=yes
28952else
28953 echo "$as_me: failed program was:" >&5
28954sed 's/^/| /' conftest.$ac_ext >&5
28955
28956ac_cv_cxx_have_gnu_ext_hash_set=no
28957fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028959 ac_ext=c
28960ac_cpp='$CPP $CPPFLAGS'
28961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28963ac_compiler_gnu=$ac_cv_c_compiler_gnu
28964
28965fi
28966echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28967echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028968 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28969 then
John Criswell9f011862004-09-24 18:28:00 +000028970
28971cat >>confdefs.h <<\_ACEOF
28972#define HAVE_GNU_EXT_HASH_SET 1
28973_ACEOF
28974
28975 else
28976
28977cat >>confdefs.h <<\_ACEOF
28978#define HAVE_GNU_EXT_HASH_SET 0
28979_ACEOF
28980
Brian Gaeke90583492003-11-10 03:06:28 +000028981 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028982
Brian Gaeke90583492003-11-10 03:06:28 +000028983 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28984echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28985if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28987else
28988
Brian Gaeke90583492003-11-10 03:06:28 +000028989 ac_ext=cc
28990ac_cpp='$CXXCPP $CPPFLAGS'
28991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28994
28995 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028996/* confdefs.h. */
28997_ACEOF
28998cat confdefs.h >>conftest.$ac_ext
28999cat >>conftest.$ac_ext <<_ACEOF
29000/* end confdefs.h. */
29001#include <hash_set>
29002int
29003main ()
29004{
John Criswell7a73b802003-06-30 21:59:07 +000029005hash_set<int> t; return 0;
29006 ;
29007 return 0;
29008}
29009_ACEOF
29010rm -f conftest.$ac_objext
29011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029012 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029014 grep -v '^ *+' conftest.er1 >conftest.err
29015 rm -f conftest.er1
29016 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029019 { ac_try='test -z "$ac_cxx_werror_flag"
29020 || test ! -s conftest.err'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; } &&
29026 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29029 ac_status=$?
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029032 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029033else
29034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029035sed 's/^/| /' conftest.$ac_ext >&5
29036
Brian Gaeke90583492003-11-10 03:06:28 +000029037ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029038fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029040 ac_ext=c
29041ac_cpp='$CPP $CPPFLAGS'
29042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29044ac_compiler_gnu=$ac_cv_c_compiler_gnu
29045
John Criswell7a73b802003-06-30 21:59:07 +000029046fi
Brian Gaeke90583492003-11-10 03:06:28 +000029047echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29048echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029049 if test "$ac_cv_cxx_have_global_hash_set" = yes
29050 then
John Criswell9f011862004-09-24 18:28:00 +000029051
29052cat >>confdefs.h <<\_ACEOF
29053#define HAVE_GLOBAL_HASH_SET 1
29054_ACEOF
29055
29056 else
29057
29058cat >>confdefs.h <<\_ACEOF
29059#define HAVE_GLOBAL_HASH_SET 0
29060_ACEOF
29061
Brian Gaeke90583492003-11-10 03:06:28 +000029062 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029063
John Criswell7a73b802003-06-30 21:59:07 +000029064echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29065echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29066if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29067 echo $ECHO_N "(cached) $ECHO_C" >&6
29068else
29069
John Criswell7a73b802003-06-30 21:59:07 +000029070 ac_ext=cc
29071ac_cpp='$CXXCPP $CPPFLAGS'
29072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29075
29076 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029077/* confdefs.h. */
29078_ACEOF
29079cat confdefs.h >>conftest.$ac_ext
29080cat >>conftest.$ac_ext <<_ACEOF
29081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029082#include <iterator>
29083#ifdef HAVE_NAMESPACES
29084using namespace std;
29085#endif
John Criswell7a73b802003-06-30 21:59:07 +000029086int
29087main ()
29088{
29089iterator<int,int,int> t; return 0;
29090 ;
29091 return 0;
29092}
29093_ACEOF
29094rm -f conftest.$ac_objext
29095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029096 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029097 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029098 grep -v '^ *+' conftest.er1 >conftest.err
29099 rm -f conftest.er1
29100 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029103 { ac_try='test -z "$ac_cxx_werror_flag"
29104 || test ! -s conftest.err'
29105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106 (eval $ac_try) 2>&5
29107 ac_status=$?
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); }; } &&
29110 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112 (eval $ac_try) 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; }; then
29116 ac_cv_cxx_have_std_iterator=yes
29117else
29118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029119sed 's/^/| /' conftest.$ac_ext >&5
29120
John Criswell7a73b802003-06-30 21:59:07 +000029121ac_cv_cxx_have_std_iterator=no
29122fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029124 ac_ext=c
29125ac_cpp='$CPP $CPPFLAGS'
29126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29128ac_compiler_gnu=$ac_cv_c_compiler_gnu
29129
29130
29131fi
29132echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29133echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029134if test "$ac_cv_cxx_have_std_iterator" = yes
29135then
John Criswell40468462004-09-24 21:19:06 +000029136
29137cat >>confdefs.h <<\_ACEOF
29138#define HAVE_STD_ITERATOR 1
29139_ACEOF
29140
29141else
29142
29143cat >>confdefs.h <<\_ACEOF
29144#define HAVE_STD_ITERATOR 0
29145_ACEOF
29146
John Criswell7a73b802003-06-30 21:59:07 +000029147fi
29148
29149echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29150echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29151if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29153else
29154
John Criswell7a73b802003-06-30 21:59:07 +000029155 ac_ext=cc
29156ac_cpp='$CXXCPP $CPPFLAGS'
29157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29160
29161 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029162/* confdefs.h. */
29163_ACEOF
29164cat confdefs.h >>conftest.$ac_ext
29165cat >>conftest.$ac_ext <<_ACEOF
29166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029167#include <iterator>
29168#ifdef HAVE_NAMESPACES
29169using namespace std;
29170#endif
John Criswell7a73b802003-06-30 21:59:07 +000029171int
29172main ()
29173{
John Criswellc78022e2003-07-29 19:11:58 +000029174bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029175 ;
29176 return 0;
29177}
29178_ACEOF
29179rm -f conftest.$ac_objext
29180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029181 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029182 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029183 grep -v '^ *+' conftest.er1 >conftest.err
29184 rm -f conftest.er1
29185 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029188 { ac_try='test -z "$ac_cxx_werror_flag"
29189 || test ! -s conftest.err'
29190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191 (eval $ac_try) 2>&5
29192 ac_status=$?
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; } &&
29195 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29198 ac_status=$?
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; }; then
29201 ac_cv_cxx_have_bi_iterator=yes
29202else
29203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029204sed 's/^/| /' conftest.$ac_ext >&5
29205
John Criswell7a73b802003-06-30 21:59:07 +000029206ac_cv_cxx_have_bi_iterator=no
29207fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029209 ac_ext=c
29210ac_cpp='$CPP $CPPFLAGS'
29211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29213ac_compiler_gnu=$ac_cv_c_compiler_gnu
29214
29215
29216fi
29217echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29218echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029219if test "$ac_cv_cxx_have_bi_iterator" = yes
29220then
John Criswell40468462004-09-24 21:19:06 +000029221
29222cat >>confdefs.h <<\_ACEOF
29223#define HAVE_BI_ITERATOR 1
29224_ACEOF
29225
29226else
29227
29228cat >>confdefs.h <<\_ACEOF
29229#define HAVE_BI_ITERATOR 0
29230_ACEOF
29231
John Criswell7a73b802003-06-30 21:59:07 +000029232fi
29233
29234echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29235echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29236if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29237 echo $ECHO_N "(cached) $ECHO_C" >&6
29238else
29239
John Criswell7a73b802003-06-30 21:59:07 +000029240 ac_ext=cc
29241ac_cpp='$CXXCPP $CPPFLAGS'
29242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29245
29246 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029247/* confdefs.h. */
29248_ACEOF
29249cat confdefs.h >>conftest.$ac_ext
29250cat >>conftest.$ac_ext <<_ACEOF
29251/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029252#include <iterator>
29253#ifdef HAVE_NAMESPACES
29254using namespace std;
29255#endif
John Criswell7a73b802003-06-30 21:59:07 +000029256int
29257main ()
29258{
John Criswellc78022e2003-07-29 19:11:58 +000029259forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029260 ;
29261 return 0;
29262}
29263_ACEOF
29264rm -f conftest.$ac_objext
29265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029266 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029268 grep -v '^ *+' conftest.er1 >conftest.err
29269 rm -f conftest.er1
29270 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029273 { ac_try='test -z "$ac_cxx_werror_flag"
29274 || test ! -s conftest.err'
29275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276 (eval $ac_try) 2>&5
29277 ac_status=$?
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; } &&
29280 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 ac_cv_cxx_have_fwd_iterator=yes
29287else
29288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029289sed 's/^/| /' conftest.$ac_ext >&5
29290
John Criswell7a73b802003-06-30 21:59:07 +000029291ac_cv_cxx_have_fwd_iterator=no
29292fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029294 ac_ext=c
29295ac_cpp='$CPP $CPPFLAGS'
29296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298ac_compiler_gnu=$ac_cv_c_compiler_gnu
29299
29300
29301fi
29302echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29303echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029304if test "$ac_cv_cxx_have_fwd_iterator" = yes
29305then
John Criswell40468462004-09-24 21:19:06 +000029306
29307cat >>confdefs.h <<\_ACEOF
29308#define HAVE_FWD_ITERATOR 1
29309_ACEOF
29310
29311else
29312
29313cat >>confdefs.h <<\_ACEOF
29314#define HAVE_FWD_ITERATOR 0
29315_ACEOF
29316
John Criswell7a73b802003-06-30 21:59:07 +000029317fi
29318
29319
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029320echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29321echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29322if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29324else
29325 ac_ext=cc
29326ac_cpp='$CXXCPP $CPPFLAGS'
29327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29330
Reid Spencerabec8f92004-10-27 23:03:44 +000029331 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
29337#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029338int
29339main ()
29340{
29341float f; isnan(f);
29342 ;
29343 return 0;
29344}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029345_ACEOF
29346rm -f conftest.$ac_objext
29347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029348 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029349 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029350 grep -v '^ *+' conftest.er1 >conftest.err
29351 rm -f conftest.er1
29352 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029355 { ac_try='test -z "$ac_cxx_werror_flag"
29356 || test ! -s conftest.err'
29357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358 (eval $ac_try) 2>&5
29359 ac_status=$?
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; } &&
29362 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364 (eval $ac_try) 2>&5
29365 ac_status=$?
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); }; }; then
29368 ac_cv_func_isnan_in_math_h=yes
29369else
29370 echo "$as_me: failed program was:" >&5
29371sed 's/^/| /' conftest.$ac_ext >&5
29372
29373ac_cv_func_isnan_in_math_h=no
29374fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029376 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029377ac_cpp='$CPP $CPPFLAGS'
29378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380ac_compiler_gnu=$ac_cv_c_compiler_gnu
29381
29382fi
29383echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29384echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029385
29386
29387if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029388
29389cat >>confdefs.h <<\_ACEOF
29390#define HAVE_ISNAN_IN_MATH_H 1
29391_ACEOF
29392
Reid Spencerabec8f92004-10-27 23:03:44 +000029393fi
29394
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029395echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29396echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29397if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29399else
29400 ac_ext=cc
29401ac_cpp='$CXXCPP $CPPFLAGS'
29402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29405
Reid Spencerabec8f92004-10-27 23:03:44 +000029406 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029407/* confdefs.h. */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h. */
29412#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029413int
29414main ()
29415{
29416float f; isnan(f);
29417 ;
29418 return 0;
29419}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029420_ACEOF
29421rm -f conftest.$ac_objext
29422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029423 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029425 grep -v '^ *+' conftest.er1 >conftest.err
29426 rm -f conftest.er1
29427 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029430 { ac_try='test -z "$ac_cxx_werror_flag"
29431 || test ! -s conftest.err'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29434 ac_status=$?
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; } &&
29437 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29440 ac_status=$?
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29443 ac_cv_func_isnan_in_cmath=yes
29444else
29445 echo "$as_me: failed program was:" >&5
29446sed 's/^/| /' conftest.$ac_ext >&5
29447
29448ac_cv_func_isnan_in_cmath=no
29449fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029451 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029452ac_cpp='$CPP $CPPFLAGS'
29453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455ac_compiler_gnu=$ac_cv_c_compiler_gnu
29456
29457fi
29458echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29459echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029460
29461if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029462
29463cat >>confdefs.h <<\_ACEOF
29464#define HAVE_ISNAN_IN_CMATH 1
29465_ACEOF
29466
Reid Spencerabec8f92004-10-27 23:03:44 +000029467fi
29468
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029469echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29470echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29471if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29473else
29474 ac_ext=cc
29475ac_cpp='$CXXCPP $CPPFLAGS'
29476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29479
Reid Spencerabec8f92004-10-27 23:03:44 +000029480 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029481/* confdefs.h. */
29482_ACEOF
29483cat confdefs.h >>conftest.$ac_ext
29484cat >>conftest.$ac_ext <<_ACEOF
29485/* end confdefs.h. */
29486#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029487int
29488main ()
29489{
29490float f; std::isnan(f);
29491 ;
29492 return 0;
29493}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029494_ACEOF
29495rm -f conftest.$ac_objext
29496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029497 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029498 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029499 grep -v '^ *+' conftest.er1 >conftest.err
29500 rm -f conftest.er1
29501 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029504 { ac_try='test -z "$ac_cxx_werror_flag"
29505 || test ! -s conftest.err'
29506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507 (eval $ac_try) 2>&5
29508 ac_status=$?
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; } &&
29511 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 (eval $ac_try) 2>&5
29514 ac_status=$?
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; }; then
29517 ac_cv_func_std_isnan_in_cmath=yes
29518else
29519 echo "$as_me: failed program was:" >&5
29520sed 's/^/| /' conftest.$ac_ext >&5
29521
29522ac_cv_func_std_isnan_in_cmath=no
29523fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029525 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029526ac_cpp='$CPP $CPPFLAGS'
29527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529ac_compiler_gnu=$ac_cv_c_compiler_gnu
29530
29531fi
29532echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29533echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029534
29535if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029536
29537cat >>confdefs.h <<\_ACEOF
29538#define HAVE_STD_ISNAN_IN_CMATH 1
29539_ACEOF
29540
Reid Spencerabec8f92004-10-27 23:03:44 +000029541fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029542
29543
Brian Gaeke52a551d2004-07-21 03:14:12 +000029544echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29545echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29546if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29548else
29549 ac_ext=cc
29550ac_cpp='$CXXCPP $CPPFLAGS'
29551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29554
Reid Spencerabec8f92004-10-27 23:03:44 +000029555 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029556/* confdefs.h. */
29557_ACEOF
29558cat confdefs.h >>conftest.$ac_ext
29559cat >>conftest.$ac_ext <<_ACEOF
29560/* end confdefs.h. */
29561#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029562int
29563main ()
29564{
29565float f; isinf(f);
29566 ;
29567 return 0;
29568}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029569_ACEOF
29570rm -f conftest.$ac_objext
29571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029572 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029573 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029574 grep -v '^ *+' conftest.er1 >conftest.err
29575 rm -f conftest.er1
29576 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029579 { ac_try='test -z "$ac_cxx_werror_flag"
29580 || test ! -s conftest.err'
29581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582 (eval $ac_try) 2>&5
29583 ac_status=$?
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); }; } &&
29586 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588 (eval $ac_try) 2>&5
29589 ac_status=$?
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; }; then
29592 ac_cv_func_isinf_in_math_h=yes
29593else
29594 echo "$as_me: failed program was:" >&5
29595sed 's/^/| /' conftest.$ac_ext >&5
29596
29597ac_cv_func_isinf_in_math_h=no
29598fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029600 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029601ac_cpp='$CPP $CPPFLAGS'
29602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29604ac_compiler_gnu=$ac_cv_c_compiler_gnu
29605
29606fi
29607echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29608echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029609
29610if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029611
29612cat >>confdefs.h <<\_ACEOF
29613#define HAVE_ISINF_IN_MATH_H 1
29614_ACEOF
29615
Reid Spencerabec8f92004-10-27 23:03:44 +000029616fi
29617
Brian Gaeke52a551d2004-07-21 03:14:12 +000029618echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29619echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29620if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29622else
29623 ac_ext=cc
29624ac_cpp='$CXXCPP $CPPFLAGS'
29625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29628
Reid Spencerabec8f92004-10-27 23:03:44 +000029629 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029630/* confdefs.h. */
29631_ACEOF
29632cat confdefs.h >>conftest.$ac_ext
29633cat >>conftest.$ac_ext <<_ACEOF
29634/* end confdefs.h. */
29635#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029636int
29637main ()
29638{
29639float f; isinf(f);
29640 ;
29641 return 0;
29642}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029643_ACEOF
29644rm -f conftest.$ac_objext
29645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029646 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029648 grep -v '^ *+' conftest.er1 >conftest.err
29649 rm -f conftest.er1
29650 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029653 { ac_try='test -z "$ac_cxx_werror_flag"
29654 || test ! -s conftest.err'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; } &&
29660 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662 (eval $ac_try) 2>&5
29663 ac_status=$?
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; }; then
29666 ac_cv_func_isinf_in_cmath=yes
29667else
29668 echo "$as_me: failed program was:" >&5
29669sed 's/^/| /' conftest.$ac_ext >&5
29670
29671ac_cv_func_isinf_in_cmath=no
29672fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029674 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029675ac_cpp='$CPP $CPPFLAGS'
29676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678ac_compiler_gnu=$ac_cv_c_compiler_gnu
29679
29680fi
29681echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29682echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029683
29684if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029685
29686cat >>confdefs.h <<\_ACEOF
29687#define HAVE_ISINF_IN_CMATH 1
29688_ACEOF
29689
Reid Spencerabec8f92004-10-27 23:03:44 +000029690fi
29691
Brian Gaeke52a551d2004-07-21 03:14:12 +000029692echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29693echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29694if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29695 echo $ECHO_N "(cached) $ECHO_C" >&6
29696else
29697 ac_ext=cc
29698ac_cpp='$CXXCPP $CPPFLAGS'
29699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29702
Reid Spencerabec8f92004-10-27 23:03:44 +000029703 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029704/* confdefs.h. */
29705_ACEOF
29706cat confdefs.h >>conftest.$ac_ext
29707cat >>conftest.$ac_ext <<_ACEOF
29708/* end confdefs.h. */
29709#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029710int
29711main ()
29712{
29713float f; std::isinf(f)}
29714 ;
29715 return 0;
29716}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029717_ACEOF
29718rm -f conftest.$ac_objext
29719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029720 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029721 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029722 grep -v '^ *+' conftest.er1 >conftest.err
29723 rm -f conftest.er1
29724 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029727 { ac_try='test -z "$ac_cxx_werror_flag"
29728 || test ! -s conftest.err'
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29731 ac_status=$?
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; } &&
29734 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; }; then
29740 ac_cv_func_std_isinf_in_cmath=yes
29741else
29742 echo "$as_me: failed program was:" >&5
29743sed 's/^/| /' conftest.$ac_ext >&5
29744
29745ac_cv_func_std_isinf_in_cmath=no
29746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029748 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029749ac_cpp='$CPP $CPPFLAGS'
29750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29752ac_compiler_gnu=$ac_cv_c_compiler_gnu
29753
29754fi
29755echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29756echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029757
29758if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029759
29760cat >>confdefs.h <<\_ACEOF
29761#define HAVE_STD_ISINF_IN_CMATH 1
29762_ACEOF
29763
Reid Spencerabec8f92004-10-27 23:03:44 +000029764fi
29765
Brian Gaeked59a6472004-07-21 03:33:58 +000029766echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29767echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29768if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
29770else
29771 ac_ext=cc
29772ac_cpp='$CXXCPP $CPPFLAGS'
29773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29776
Reid Spencerabec8f92004-10-27 23:03:44 +000029777 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029778/* confdefs.h. */
29779_ACEOF
29780cat confdefs.h >>conftest.$ac_ext
29781cat >>conftest.$ac_ext <<_ACEOF
29782/* end confdefs.h. */
29783#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029784int
29785main ()
29786{
29787float f; finite(f);
29788 ;
29789 return 0;
29790}
Brian Gaeked59a6472004-07-21 03:33:58 +000029791_ACEOF
29792rm -f conftest.$ac_objext
29793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029794 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029796 grep -v '^ *+' conftest.er1 >conftest.err
29797 rm -f conftest.er1
29798 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029801 { ac_try='test -z "$ac_cxx_werror_flag"
29802 || test ! -s conftest.err'
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; } &&
29808 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810 (eval $ac_try) 2>&5
29811 ac_status=$?
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; }; then
29814 ac_cv_func_finite_in_ieeefp_h=yes
29815else
29816 echo "$as_me: failed program was:" >&5
29817sed 's/^/| /' conftest.$ac_ext >&5
29818
29819ac_cv_func_finite_in_ieeefp_h=no
29820fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029822 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029823ac_cpp='$CPP $CPPFLAGS'
29824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29826ac_compiler_gnu=$ac_cv_c_compiler_gnu
29827
29828fi
29829echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29830echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029831
Brian Gaeke6802b552004-10-28 05:06:45 +000029832if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029833
29834cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029835#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029836_ACEOF
29837
Reid Spencerabec8f92004-10-27 23:03:44 +000029838fi
29839
29840
29841
John Criswell7a73b802003-06-30 21:59:07 +000029842
29843
29844for ac_header in stdlib.h unistd.h
29845do
29846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29847if eval "test \"\${$as_ac_Header+set}\" = set"; then
29848 echo "$as_me:$LINENO: checking for $ac_header" >&5
29849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29850if eval "test \"\${$as_ac_Header+set}\" = set"; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29852fi
29853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29855else
29856 # Is the header compilable?
29857echo "$as_me:$LINENO: checking $ac_header usability" >&5
29858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29859cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029860/* confdefs.h. */
29861_ACEOF
29862cat confdefs.h >>conftest.$ac_ext
29863cat >>conftest.$ac_ext <<_ACEOF
29864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029865$ac_includes_default
29866#include <$ac_header>
29867_ACEOF
29868rm -f conftest.$ac_objext
29869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029870 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029871 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029872 grep -v '^ *+' conftest.er1 >conftest.err
29873 rm -f conftest.er1
29874 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029877 { ac_try='test -z "$ac_c_werror_flag"
29878 || test ! -s conftest.err'
29879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880 (eval $ac_try) 2>&5
29881 ac_status=$?
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; } &&
29884 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29886 (eval $ac_try) 2>&5
29887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 ac_header_compiler=yes
29891else
29892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029893sed 's/^/| /' conftest.$ac_ext >&5
29894
John Criswell7a73b802003-06-30 21:59:07 +000029895ac_header_compiler=no
29896fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29899echo "${ECHO_T}$ac_header_compiler" >&6
29900
29901# Is the header present?
29902echo "$as_me:$LINENO: checking $ac_header presence" >&5
29903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29904cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029905/* confdefs.h. */
29906_ACEOF
29907cat confdefs.h >>conftest.$ac_ext
29908cat >>conftest.$ac_ext <<_ACEOF
29909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029910#include <$ac_header>
29911_ACEOF
29912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29914 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029915 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029916 rm -f conftest.er1
29917 cat conftest.err >&5
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } >/dev/null; then
29920 if test -s conftest.err; then
29921 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029923 else
29924 ac_cpp_err=
29925 fi
29926else
29927 ac_cpp_err=yes
29928fi
29929if test -z "$ac_cpp_err"; then
29930 ac_header_preproc=yes
29931else
29932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029933sed 's/^/| /' conftest.$ac_ext >&5
29934
John Criswell7a73b802003-06-30 21:59:07 +000029935 ac_header_preproc=no
29936fi
29937rm -f conftest.err conftest.$ac_ext
29938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29939echo "${ECHO_T}$ac_header_preproc" >&6
29940
29941# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29943 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29948 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029949 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029950 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29954echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29958echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029963 (
29964 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029965## ----------------------------------- ##
29966## Report this to llvmbugs@cs.uiuc.edu ##
29967## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029968_ASBOX
29969 ) |
29970 sed "s/^/$as_me: WARNING: /" >&2
29971 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029972esac
29973echo "$as_me:$LINENO: checking for $ac_header" >&5
29974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29975if eval "test \"\${$as_ac_Header+set}\" = set"; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029978 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029979fi
29980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29982
29983fi
29984if test `eval echo '${'$as_ac_Header'}'` = yes; then
29985 cat >>confdefs.h <<_ACEOF
29986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29987_ACEOF
29988
29989fi
29990
29991done
29992
29993
29994for ac_func in getpagesize
29995do
29996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29997echo "$as_me:$LINENO: checking for $ac_func" >&5
29998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29999if eval "test \"\${$as_ac_var+set}\" = set"; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30001else
30002 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030003/* confdefs.h. */
30004_ACEOF
30005cat confdefs.h >>conftest.$ac_ext
30006cat >>conftest.$ac_ext <<_ACEOF
30007/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30010#define $ac_func innocuous_$ac_func
30011
John Criswell7a73b802003-06-30 21:59:07 +000030012/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030013 which can conflict with char $ac_func (); below.
30014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30015 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030016
John Criswell0c38eaf2003-09-10 15:17:25 +000030017#ifdef __STDC__
30018# include <limits.h>
30019#else
30020# include <assert.h>
30021#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030022
30023#undef $ac_func
30024
John Criswell7a73b802003-06-30 21:59:07 +000030025/* Override any gcc2 internal prototype to avoid an error. */
30026#ifdef __cplusplus
30027extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030028{
John Criswell7a73b802003-06-30 21:59:07 +000030029#endif
30030/* We use char because int might match the return type of a gcc2
30031 builtin and then its argument prototype would still apply. */
30032char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030033/* The GNU C library defines this for functions which it implements
30034 to always fail with ENOSYS. Some functions are actually named
30035 something starting with __ and the normal name is an alias. */
30036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30037choke me
30038#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030039char (*f) () = $ac_func;
30040#endif
30041#ifdef __cplusplus
30042}
John Criswell7a73b802003-06-30 21:59:07 +000030043#endif
30044
John Criswell0c38eaf2003-09-10 15:17:25 +000030045int
30046main ()
30047{
30048return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030049 ;
30050 return 0;
30051}
30052_ACEOF
30053rm -f conftest.$ac_objext conftest$ac_exeext
30054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030055 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030056 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030057 grep -v '^ *+' conftest.er1 >conftest.err
30058 rm -f conftest.er1
30059 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030062 { ac_try='test -z "$ac_c_werror_flag"
30063 || test ! -s conftest.err'
30064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065 (eval $ac_try) 2>&5
30066 ac_status=$?
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30072 ac_status=$?
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075 eval "$as_ac_var=yes"
30076else
30077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030078sed 's/^/| /' conftest.$ac_ext >&5
30079
John Criswell7a73b802003-06-30 21:59:07 +000030080eval "$as_ac_var=no"
30081fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030082rm -f conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030084fi
30085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30087if test `eval echo '${'$as_ac_var'}'` = yes; then
30088 cat >>confdefs.h <<_ACEOF
30089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30090_ACEOF
30091
30092fi
30093done
30094
30095echo "$as_me:$LINENO: checking for working mmap" >&5
30096echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30097if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30098 echo $ECHO_N "(cached) $ECHO_C" >&6
30099else
30100 if test "$cross_compiling" = yes; then
30101 ac_cv_func_mmap_fixed_mapped=no
30102else
30103 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030104/* confdefs.h. */
30105_ACEOF
30106cat confdefs.h >>conftest.$ac_ext
30107cat >>conftest.$ac_ext <<_ACEOF
30108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030109$ac_includes_default
30110/* malloc might have been renamed as rpl_malloc. */
30111#undef malloc
30112
30113/* Thanks to Mike Haertel and Jim Avera for this test.
30114 Here is a matrix of mmap possibilities:
30115 mmap private not fixed
30116 mmap private fixed at somewhere currently unmapped
30117 mmap private fixed at somewhere already mapped
30118 mmap shared not fixed
30119 mmap shared fixed at somewhere currently unmapped
30120 mmap shared fixed at somewhere already mapped
30121 For private mappings, we should verify that changes cannot be read()
30122 back from the file, nor mmap's back from the file at a different
30123 address. (There have been systems where private was not correctly
30124 implemented like the infamous i386 svr4.0, and systems where the
30125 VM page cache was not coherent with the file system buffer cache
30126 like early versions of FreeBSD and possibly contemporary NetBSD.)
30127 For shared mappings, we should conversely verify that changes get
30128 propagated back to all the places they're supposed to be.
30129
30130 Grep wants private fixed already mapped.
30131 The main things grep needs to know about mmap are:
30132 * does it exist and is it safe to write into the mmap'd area
30133 * how to use it (BSD variants) */
30134
30135#include <fcntl.h>
30136#include <sys/mman.h>
30137
30138#if !STDC_HEADERS && !HAVE_STDLIB_H
30139char *malloc ();
30140#endif
30141
30142/* This mess was copied from the GNU getpagesize.h. */
30143#if !HAVE_GETPAGESIZE
30144/* Assume that all systems that can run configure have sys/param.h. */
30145# if !HAVE_SYS_PARAM_H
30146# define HAVE_SYS_PARAM_H 1
30147# endif
30148
30149# ifdef _SC_PAGESIZE
30150# define getpagesize() sysconf(_SC_PAGESIZE)
30151# else /* no _SC_PAGESIZE */
30152# if HAVE_SYS_PARAM_H
30153# include <sys/param.h>
30154# ifdef EXEC_PAGESIZE
30155# define getpagesize() EXEC_PAGESIZE
30156# else /* no EXEC_PAGESIZE */
30157# ifdef NBPG
30158# define getpagesize() NBPG * CLSIZE
30159# ifndef CLSIZE
30160# define CLSIZE 1
30161# endif /* no CLSIZE */
30162# else /* no NBPG */
30163# ifdef NBPC
30164# define getpagesize() NBPC
30165# else /* no NBPC */
30166# ifdef PAGESIZE
30167# define getpagesize() PAGESIZE
30168# endif /* PAGESIZE */
30169# endif /* no NBPC */
30170# endif /* no NBPG */
30171# endif /* no EXEC_PAGESIZE */
30172# else /* no HAVE_SYS_PARAM_H */
30173# define getpagesize() 8192 /* punt totally */
30174# endif /* no HAVE_SYS_PARAM_H */
30175# endif /* no _SC_PAGESIZE */
30176
30177#endif /* no HAVE_GETPAGESIZE */
30178
30179int
30180main ()
30181{
30182 char *data, *data2, *data3;
30183 int i, pagesize;
30184 int fd;
30185
30186 pagesize = getpagesize ();
30187
30188 /* First, make a file with some known garbage in it. */
30189 data = (char *) malloc (pagesize);
30190 if (!data)
30191 exit (1);
30192 for (i = 0; i < pagesize; ++i)
30193 *(data + i) = rand ();
30194 umask (0);
30195 fd = creat ("conftest.mmap", 0600);
30196 if (fd < 0)
30197 exit (1);
30198 if (write (fd, data, pagesize) != pagesize)
30199 exit (1);
30200 close (fd);
30201
30202 /* Next, try to mmap the file at a fixed address which already has
30203 something else allocated at it. If we can, also make sure that
30204 we see the same garbage. */
30205 fd = open ("conftest.mmap", O_RDWR);
30206 if (fd < 0)
30207 exit (1);
30208 data2 = (char *) malloc (2 * pagesize);
30209 if (!data2)
30210 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030211 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030212 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030213 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030214 exit (1);
30215 for (i = 0; i < pagesize; ++i)
30216 if (*(data + i) != *(data2 + i))
30217 exit (1);
30218
30219 /* Finally, make sure that changes to the mapped area do not
30220 percolate back to the file as seen by read(). (This is a bug on
30221 some variants of i386 svr4.0.) */
30222 for (i = 0; i < pagesize; ++i)
30223 *(data2 + i) = *(data2 + i) + 1;
30224 data3 = (char *) malloc (pagesize);
30225 if (!data3)
30226 exit (1);
30227 if (read (fd, data3, pagesize) != pagesize)
30228 exit (1);
30229 for (i = 0; i < pagesize; ++i)
30230 if (*(data + i) != *(data3 + i))
30231 exit (1);
30232 close (fd);
30233 exit (0);
30234}
30235_ACEOF
30236rm -f conftest$ac_exeext
30237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30238 (eval $ac_link) 2>&5
30239 ac_status=$?
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30243 (eval $ac_try) 2>&5
30244 ac_status=$?
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); }; }; then
30247 ac_cv_func_mmap_fixed_mapped=yes
30248else
30249 echo "$as_me: program exited with status $ac_status" >&5
30250echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030251sed 's/^/| /' conftest.$ac_ext >&5
30252
John Criswell7a73b802003-06-30 21:59:07 +000030253( exit $ac_status )
30254ac_cv_func_mmap_fixed_mapped=no
30255fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030256rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030257fi
30258fi
30259echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30260echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30261if test $ac_cv_func_mmap_fixed_mapped = yes; then
30262
30263cat >>confdefs.h <<\_ACEOF
30264#define HAVE_MMAP 1
30265_ACEOF
30266
30267fi
30268rm -f conftest.mmap
30269
30270echo "$as_me:$LINENO: checking for mmap of files" >&5
30271echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30272if test "${ac_cv_func_mmap_file+set}" = set; then
30273 echo $ECHO_N "(cached) $ECHO_C" >&6
30274else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030275 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030276ac_cpp='$CPP $CPPFLAGS'
30277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30279ac_compiler_gnu=$ac_cv_c_compiler_gnu
30280
30281 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030282 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030283else
30284 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030285
Reid Spencer777ce172004-09-20 04:09:56 +000030286 /* confdefs.h. */
30287_ACEOF
30288cat confdefs.h >>conftest.$ac_ext
30289cat >>conftest.$ac_ext <<_ACEOF
30290/* end confdefs.h. */
30291
John Criswell7a73b802003-06-30 21:59:07 +000030292#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030293#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030294#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030295
30296int
30297main ()
30298{
John Criswell7a73b802003-06-30 21:59:07 +000030299
30300 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030301 fd = creat ("foo",0777);
30302 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30303 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030304 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030305 ;
30306 return 0;
30307}
John Criswell7a73b802003-06-30 21:59:07 +000030308_ACEOF
30309rm -f conftest$ac_exeext
30310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30311 (eval $ac_link) 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30316 (eval $ac_try) 2>&5
30317 ac_status=$?
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; }; then
30320 ac_cv_func_mmap_file=yes
30321else
30322 echo "$as_me: program exited with status $ac_status" >&5
30323echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030324sed 's/^/| /' conftest.$ac_ext >&5
30325
John Criswell7a73b802003-06-30 21:59:07 +000030326( exit $ac_status )
30327ac_cv_func_mmap_file=no
30328fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030329rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030330fi
30331 ac_ext=c
30332ac_cpp='$CPP $CPPFLAGS'
30333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30335ac_compiler_gnu=$ac_cv_c_compiler_gnu
30336
30337
30338fi
30339echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30340echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30341if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030342
30343cat >>confdefs.h <<\_ACEOF
30344#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030345_ACEOF
30346
30347 MMAP_FILE=yes
30348
30349fi
30350
Reid Spencer7931a782004-12-27 06:15:02 +000030351echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30352echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30353if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30354 echo $ECHO_N "(cached) $ECHO_C" >&6
30355else
Reid Spencer582a23c2004-12-29 07:07:57 +000030356 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030357 ac_cv_need_dev_zero_for_mmap=yes
30358 else
30359 ac_cv_need_dev_zero_for_mmap=no
30360 fi
30361
30362fi
30363echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30364echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30365if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30366
30367cat >>confdefs.h <<\_ACEOF
30368#define NEED_DEV_ZERO_FOR_MMAP 1
30369_ACEOF
30370
30371fi
John Criswell7a73b802003-06-30 21:59:07 +000030372echo "$as_me:$LINENO: checking for mprotect" >&5
30373echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30374if test "${ac_cv_func_mprotect+set}" = set; then
30375 echo $ECHO_N "(cached) $ECHO_C" >&6
30376else
30377 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030378/* confdefs.h. */
30379_ACEOF
30380cat confdefs.h >>conftest.$ac_ext
30381cat >>conftest.$ac_ext <<_ACEOF
30382/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030383/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30385#define mprotect innocuous_mprotect
30386
John Criswell7a73b802003-06-30 21:59:07 +000030387/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030388 which can conflict with char mprotect (); below.
30389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30390 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030391
John Criswell0c38eaf2003-09-10 15:17:25 +000030392#ifdef __STDC__
30393# include <limits.h>
30394#else
30395# include <assert.h>
30396#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030397
30398#undef mprotect
30399
John Criswell7a73b802003-06-30 21:59:07 +000030400/* Override any gcc2 internal prototype to avoid an error. */
30401#ifdef __cplusplus
30402extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030403{
John Criswell7a73b802003-06-30 21:59:07 +000030404#endif
30405/* We use char because int might match the return type of a gcc2
30406 builtin and then its argument prototype would still apply. */
30407char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030408/* The GNU C library defines this for functions which it implements
30409 to always fail with ENOSYS. Some functions are actually named
30410 something starting with __ and the normal name is an alias. */
30411#if defined (__stub_mprotect) || defined (__stub___mprotect)
30412choke me
30413#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030414char (*f) () = mprotect;
30415#endif
30416#ifdef __cplusplus
30417}
John Criswell7a73b802003-06-30 21:59:07 +000030418#endif
30419
John Criswell0c38eaf2003-09-10 15:17:25 +000030420int
30421main ()
30422{
30423return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030424 ;
30425 return 0;
30426}
30427_ACEOF
30428rm -f conftest.$ac_objext conftest$ac_exeext
30429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030430 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030432 grep -v '^ *+' conftest.er1 >conftest.err
30433 rm -f conftest.er1
30434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030437 { ac_try='test -z "$ac_c_werror_flag"
30438 || test ! -s conftest.err'
30439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440 (eval $ac_try) 2>&5
30441 ac_status=$?
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); }; } &&
30444 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30447 ac_status=$?
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; }; then
30450 ac_cv_func_mprotect=yes
30451else
30452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030453sed 's/^/| /' conftest.$ac_ext >&5
30454
John Criswell7a73b802003-06-30 21:59:07 +000030455ac_cv_func_mprotect=no
30456fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030457rm -f conftest.err conftest.$ac_objext \
30458 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030459fi
30460echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30461echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30462if test $ac_cv_func_mprotect = yes; then
30463 :
30464else
30465 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30466echo "$as_me: error: Function mprotect() required but not found" >&2;}
30467 { (exit 1); exit 1; }; }
30468fi
30469
30470
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030471if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030472then
Reid Spencer582a23c2004-12-29 07:07:57 +000030473 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30474echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030475fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030476if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030477then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030478 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30479echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030480fi
John Criswell7a73b802003-06-30 21:59:07 +000030481
30482
Brian Gaekef3b24102003-11-16 18:38:14 +000030483echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30484echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030485if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30486 echo $ECHO_N "(cached) $ECHO_C" >&6
30487else
30488 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030489if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030490 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030491 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030492 if test $? -eq 0 ; then
30493 llvm_cv_llvmgcc_sanity="yes"
30494 fi
30495 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030496fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030497fi
30498echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30499echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30500
30501if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030502 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030503 LLVMCC1=$llvmcc1path
30504
Reid Spencer502935f2004-12-22 05:56:56 +000030505 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030506 LLVMCC1PLUS=$llvmcc1pluspath
30507
Reid Spencer502935f2004-12-22 05:56:56 +000030508 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30509 LLVMGCCDIR=$llvmgccdir
30510
Brian Gaekef3b24102003-11-16 18:38:14 +000030511fi
30512
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030513SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030514
30515
Reid Spencere9de0912004-08-20 09:03:57 +000030516# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030517# information into substitutions that will end up in Makefile.config.in
30518# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030519eval LLVM_PREFIX="${prefix}";
30520eval LLVM_BINDIR="${prefix}/bin";
30521eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030522eval LLVM_DATADIR="${prefix}/share/llvm";
30523eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30524eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030525eval LLVM_INCLUDEDIR="${prefix}/include";
30526eval LLVM_INFODIR="${prefix}/info";
30527eval LLVM_MANDIR="${prefix}/man";
30528LLVM_CONFIGTIME=`date`
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030540# Place the various directores into the config.h file as #defines so that we
30541# can know about the installation paths within LLVM.
30542
Reid Spencere9de0912004-08-20 09:03:57 +000030543cat >>confdefs.h <<_ACEOF
30544#define LLVM_PREFIX "$LLVM_PREFIX"
30545_ACEOF
30546
30547
30548cat >>confdefs.h <<_ACEOF
30549#define LLVM_BINDIR "$LLVM_BINDIR"
30550_ACEOF
30551
30552
30553cat >>confdefs.h <<_ACEOF
30554#define LLVM_LIBDIR "$LLVM_LIBDIR"
30555_ACEOF
30556
30557
30558cat >>confdefs.h <<_ACEOF
30559#define LLVM_DATADIR "$LLVM_DATADIR"
30560_ACEOF
30561
30562
30563cat >>confdefs.h <<_ACEOF
30564#define LLVM_DATADIR "$LLVM_DOCSDIR"
30565_ACEOF
30566
30567
30568cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030569#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030570_ACEOF
30571
30572
30573cat >>confdefs.h <<_ACEOF
30574#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30575_ACEOF
30576
30577
30578cat >>confdefs.h <<_ACEOF
30579#define LLVM_INFODIR "$LLVM_INFODIR"
30580_ACEOF
30581
30582
30583cat >>confdefs.h <<_ACEOF
30584#define LLVM_MANDIR "$LLVM_MANDIR"
30585_ACEOF
30586
30587
30588cat >>confdefs.h <<_ACEOF
30589#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30590_ACEOF
30591
30592
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030593
30594 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030596 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30597
30598 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30599
30600 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30601
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030602 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30603
30604
30605 ac_config_files="$ac_config_files Makefile.config"
30606
30607
Reid Spencer1f319422004-11-29 04:56:35 +000030608 ac_config_files="$ac_config_files docs/doxygen.cfg"
30609
30610
Reid Spencerc0682832005-02-24 19:05:19 +000030611 ac_config_commands="$ac_config_commands setup"
30612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030613 ac_config_commands="$ac_config_commands Makefile"
30614
30615
30616 ac_config_commands="$ac_config_commands Makefile.common"
30617
30618
30619 ac_config_commands="$ac_config_commands examples/Makefile"
30620
30621
30622 ac_config_commands="$ac_config_commands lib/Makefile"
30623
30624
30625 ac_config_commands="$ac_config_commands runtime/Makefile"
30626
30627
30628 ac_config_commands="$ac_config_commands test/Makefile"
30629
30630
30631 ac_config_commands="$ac_config_commands test/Makefile.tests"
30632
30633
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030634 ac_config_commands="$ac_config_commands tools/Makefile"
30635
30636
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030637 ac_config_commands="$ac_config_commands utils/Makefile"
30638
30639
30640 ac_config_commands="$ac_config_commands projects/Makefile"
30641
30642
30643
John Criswell7a73b802003-06-30 21:59:07 +000030644cat >confcache <<\_ACEOF
30645# This file is a shell script that caches the results of configure
30646# tests run on this system so they can be shared between configure
30647# scripts and configure runs, see configure's option --config-cache.
30648# It is not useful on other systems. If it contains results you don't
30649# want to keep, you may remove or edit it.
30650#
30651# config.status only pays attention to the cache file if you give it
30652# the --recheck option to rerun configure.
30653#
John Criswell0c38eaf2003-09-10 15:17:25 +000030654# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030655# loading this file, other *unset* `ac_cv_foo' will be assigned the
30656# following values.
30657
30658_ACEOF
30659
30660# The following way of writing the cache mishandles newlines in values,
30661# but we know of no workaround that is simple, portable, and efficient.
30662# So, don't put newlines in cache variables' values.
30663# Ultrix sh set writes to stderr and can't be redirected directly,
30664# and sets the high bit in the cache file unless we assign to the vars.
30665{
30666 (set) 2>&1 |
30667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30668 *ac_space=\ *)
30669 # `set' does not quote correctly, so add quotes (double-quote
30670 # substitution turns \\\\ into \\, and sed turns \\ into \).
30671 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030672 "s/'/'\\\\''/g;
30673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030674 ;;
30675 *)
30676 # `set' quotes correctly as required by POSIX, so do not add quotes.
30677 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030679 ;;
30680 esac;
30681} |
30682 sed '
30683 t clear
30684 : clear
30685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30686 t end
30687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30688 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030689if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030690 if test -w $cache_file; then
30691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30692 cat confcache >$cache_file
30693 else
30694 echo "not updating unwritable cache $cache_file"
30695 fi
30696fi
30697rm -f confcache
30698
30699test "x$prefix" = xNONE && prefix=$ac_default_prefix
30700# Let make expand exec_prefix.
30701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30702
30703# VPATH may cause trouble with some makes, so we remove $(srcdir),
30704# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30705# trailing colons and then remove the whole line if VPATH becomes empty
30706# (actually we leave an empty line to preserve line numbers).
30707if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030709s/:*\$(srcdir):*/:/;
30710s/:*\${srcdir}:*/:/;
30711s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030712s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030713s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030714s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030715}'
30716fi
30717
30718DEFS=-DHAVE_CONFIG_H
30719
John Criswell0c38eaf2003-09-10 15:17:25 +000030720ac_libobjs=
30721ac_ltlibobjs=
30722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30723 # 1. Remove the extension, and $U if already installed.
30724 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030725 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030726 # 2. Add them.
30727 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30728 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30729done
30730LIBOBJS=$ac_libobjs
30731
30732LTLIBOBJS=$ac_ltlibobjs
30733
30734
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030735if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30736 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30737Usually this means the macro was only invoked conditionally." >&5
30738echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30739Usually this means the macro was only invoked conditionally." >&2;}
30740 { (exit 1); exit 1; }; }
30741fi
30742if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30743 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30744Usually this means the macro was only invoked conditionally." >&5
30745echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30746Usually this means the macro was only invoked conditionally." >&2;}
30747 { (exit 1); exit 1; }; }
30748fi
John Criswell7a73b802003-06-30 21:59:07 +000030749
30750: ${CONFIG_STATUS=./config.status}
30751ac_clean_files_save=$ac_clean_files
30752ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30753{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30754echo "$as_me: creating $CONFIG_STATUS" >&6;}
30755cat >$CONFIG_STATUS <<_ACEOF
30756#! $SHELL
30757# Generated by $as_me.
30758# Run this file to recreate the current configuration.
30759# Compiler output produced by configure, useful for debugging
30760# configure, is in config.log if it exists.
30761
30762debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030763ac_cs_recheck=false
30764ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030765SHELL=\${CONFIG_SHELL-$SHELL}
30766_ACEOF
30767
30768cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030769## --------------------- ##
30770## M4sh Initialization. ##
30771## --------------------- ##
30772
30773# Be Bourne compatible
30774if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30775 emulate sh
30776 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30778 # is contrary to our usage. Disable this feature.
30779 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030780elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30781 set -o posix
30782fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030783DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030784
John Criswell7a73b802003-06-30 21:59:07 +000030785# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030786if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030787 as_unset=unset
30788else
30789 as_unset=false
30790fi
30791
John Criswell0c38eaf2003-09-10 15:17:25 +000030792
30793# Work around bugs in pre-3.0 UWIN ksh.
30794$as_unset ENV MAIL MAILPATH
30795PS1='$ '
30796PS2='> '
30797PS4='+ '
30798
30799# NLS nuisances.
30800for as_var in \
30801 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30802 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30803 LC_TELEPHONE LC_TIME
30804do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030805 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030806 eval $as_var=C; export $as_var
30807 else
30808 $as_unset $as_var
30809 fi
30810done
30811
30812# Required to use basename.
30813if expr a : '\(a\)' >/dev/null 2>&1; then
30814 as_expr=expr
30815else
30816 as_expr=false
30817fi
30818
30819if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30820 as_basename=basename
30821else
30822 as_basename=false
30823fi
John Criswell7a73b802003-06-30 21:59:07 +000030824
30825
30826# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030827as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030828$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30829 X"$0" : 'X\(//\)$' \| \
30830 X"$0" : 'X\(/\)$' \| \
30831 . : '\(.\)' 2>/dev/null ||
30832echo X/"$0" |
30833 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30834 /^X\/\(\/\/\)$/{ s//\1/; q; }
30835 /^X\/\(\/\).*/{ s//\1/; q; }
30836 s/.*/./; q'`
30837
John Criswell0c38eaf2003-09-10 15:17:25 +000030838
John Criswell7a73b802003-06-30 21:59:07 +000030839# PATH needs CR, and LINENO needs CR and PATH.
30840# Avoid depending upon Character Ranges.
30841as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30842as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30843as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30844as_cr_digits='0123456789'
30845as_cr_alnum=$as_cr_Letters$as_cr_digits
30846
30847# The user is always right.
30848if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030849 echo "#! /bin/sh" >conf$$.sh
30850 echo "exit 0" >>conf$$.sh
30851 chmod +x conf$$.sh
30852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030853 PATH_SEPARATOR=';'
30854 else
30855 PATH_SEPARATOR=:
30856 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030857 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030858fi
30859
30860
30861 as_lineno_1=$LINENO
30862 as_lineno_2=$LINENO
30863 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30864 test "x$as_lineno_1" != "x$as_lineno_2" &&
30865 test "x$as_lineno_3" = "x$as_lineno_2" || {
30866 # Find who we are. Look in the path if we contain no path at all
30867 # relative or not.
30868 case $0 in
30869 *[\\/]* ) as_myself=$0 ;;
30870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30871for as_dir in $PATH
30872do
30873 IFS=$as_save_IFS
30874 test -z "$as_dir" && as_dir=.
30875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30876done
30877
30878 ;;
30879 esac
30880 # We did not find ourselves, most probably we were run as `sh COMMAND'
30881 # in which case we are not to be found in the path.
30882 if test "x$as_myself" = x; then
30883 as_myself=$0
30884 fi
30885 if test ! -f "$as_myself"; then
30886 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30887echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30888 { (exit 1); exit 1; }; }
30889 fi
30890 case $CONFIG_SHELL in
30891 '')
30892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30893for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30894do
30895 IFS=$as_save_IFS
30896 test -z "$as_dir" && as_dir=.
30897 for as_base in sh bash ksh sh5; do
30898 case $as_dir in
30899 /*)
30900 if ("$as_dir/$as_base" -c '
30901 as_lineno_1=$LINENO
30902 as_lineno_2=$LINENO
30903 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30904 test "x$as_lineno_1" != "x$as_lineno_2" &&
30905 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030906 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30907 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030908 CONFIG_SHELL=$as_dir/$as_base
30909 export CONFIG_SHELL
30910 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30911 fi;;
30912 esac
30913 done
30914done
30915;;
30916 esac
30917
30918 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30919 # uniformly replaced by the line number. The first 'sed' inserts a
30920 # line-number line before each line; the second 'sed' does the real
30921 # work. The second script uses 'N' to pair each line-number line
30922 # with the numbered line, and appends trailing '-' during
30923 # substitution so that $LINENO is not a special case at line end.
30924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30925 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30926 sed '=' <$as_myself |
30927 sed '
30928 N
30929 s,$,-,
30930 : loop
30931 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30932 t loop
30933 s,-$,,
30934 s,^['$as_cr_digits']*\n,,
30935 ' >$as_me.lineno &&
30936 chmod +x $as_me.lineno ||
30937 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30938echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30939 { (exit 1); exit 1; }; }
30940
30941 # Don't try to exec as it changes $[0], causing all sort of problems
30942 # (the dirname of $[0] is not the place where we might find the
30943 # original and so on. Autoconf is especially sensible to this).
30944 . ./$as_me.lineno
30945 # Exit status is that of the last command.
30946 exit
30947}
30948
30949
30950case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30951 *c*,-n*) ECHO_N= ECHO_C='
30952' ECHO_T=' ' ;;
30953 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30954 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30955esac
30956
30957if expr a : '\(a\)' >/dev/null 2>&1; then
30958 as_expr=expr
30959else
30960 as_expr=false
30961fi
30962
30963rm -f conf$$ conf$$.exe conf$$.file
30964echo >conf$$.file
30965if ln -s conf$$.file conf$$ 2>/dev/null; then
30966 # We could just check for DJGPP; but this test a) works b) is more generic
30967 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30968 if test -f conf$$.exe; then
30969 # Don't use ln at all; we don't have any links
30970 as_ln_s='cp -p'
30971 else
30972 as_ln_s='ln -s'
30973 fi
30974elif ln conf$$.file conf$$ 2>/dev/null; then
30975 as_ln_s=ln
30976else
30977 as_ln_s='cp -p'
30978fi
30979rm -f conf$$ conf$$.exe conf$$.file
30980
John Criswell0c38eaf2003-09-10 15:17:25 +000030981if mkdir -p . 2>/dev/null; then
30982 as_mkdir_p=:
30983else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030984 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030985 as_mkdir_p=false
30986fi
30987
John Criswell7a73b802003-06-30 21:59:07 +000030988as_executable_p="test -f"
30989
30990# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030991as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030992
30993# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030994as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030995
30996
30997# IFS
30998# We need space, tab and new line, in precisely that order.
30999as_nl='
31000'
31001IFS=" $as_nl"
31002
31003# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031004$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031005
31006exec 6>&1
31007
31008# Open the log real soon, to keep \$[0] and so on meaningful, and to
31009# report actual input values of CONFIG_FILES etc. instead of their
31010# values after options handling. Logging --version etc. is OK.
31011exec 5>>config.log
31012{
31013 echo
31014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31015## Running $as_me. ##
31016_ASBOX
31017} >&5
31018cat >&5 <<_CSEOF
31019
John Criswell5690c532005-05-18 20:18:40 +000031020This file was extended by llvm $as_me 1.6cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031021generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031022
31023 CONFIG_FILES = $CONFIG_FILES
31024 CONFIG_HEADERS = $CONFIG_HEADERS
31025 CONFIG_LINKS = $CONFIG_LINKS
31026 CONFIG_COMMANDS = $CONFIG_COMMANDS
31027 $ $0 $@
31028
31029_CSEOF
31030echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31031echo >&5
31032_ACEOF
31033
31034# Files that config.status was made for.
31035if test -n "$ac_config_files"; then
31036 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31037fi
31038
31039if test -n "$ac_config_headers"; then
31040 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31041fi
31042
31043if test -n "$ac_config_links"; then
31044 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31045fi
31046
31047if test -n "$ac_config_commands"; then
31048 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31049fi
31050
31051cat >>$CONFIG_STATUS <<\_ACEOF
31052
31053ac_cs_usage="\
31054\`$as_me' instantiates files from templates according to the
31055current configuration.
31056
31057Usage: $0 [OPTIONS] [FILE]...
31058
31059 -h, --help print this help, then exit
31060 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031061 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031062 -d, --debug don't remove temporary files
31063 --recheck update $as_me by reconfiguring in the same conditions
31064 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031065 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031066 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031067 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031068
31069Configuration files:
31070$config_files
31071
31072Configuration headers:
31073$config_headers
31074
John Criswellc764fbc2003-09-06 15:17:13 +000031075Configuration commands:
31076$config_commands
31077
John Criswell7a73b802003-06-30 21:59:07 +000031078Report bugs to <bug-autoconf@gnu.org>."
31079_ACEOF
31080
31081cat >>$CONFIG_STATUS <<_ACEOF
31082ac_cs_version="\\
John Criswell5690c532005-05-18 20:18:40 +000031083llvm config.status 1.6cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031084configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031085 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31086
Reid Spencer2706f8c2004-09-19 23:53:36 +000031087Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031088This config.status script is free software; the Free Software Foundation
31089gives unlimited permission to copy, distribute and modify it."
31090srcdir=$srcdir
31091INSTALL="$INSTALL"
31092_ACEOF
31093
31094cat >>$CONFIG_STATUS <<\_ACEOF
31095# If no file are specified by the user, then we need to provide default
31096# value. By we need to know if files were specified by the user.
31097ac_need_defaults=:
31098while test $# != 0
31099do
31100 case $1 in
31101 --*=*)
31102 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31103 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031104 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031105 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031106 -*)
31107 ac_option=$1
31108 ac_optarg=$2
31109 ac_shift=shift
31110 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031111 *) # This is not an option, so the user has probably given explicit
31112 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031113 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031114 ac_need_defaults=false;;
31115 esac
31116
John Criswell0c38eaf2003-09-10 15:17:25 +000031117 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031118 # Handling of the options.
31119_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031120cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31122 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031123 --version | --vers* | -V )
31124 echo "$ac_cs_version"; exit 0 ;;
31125 --he | --h)
31126 # Conflict between --help and --header
31127 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31128Try \`$0 --help' for more information." >&5
31129echo "$as_me: error: ambiguous option: $1
31130Try \`$0 --help' for more information." >&2;}
31131 { (exit 1); exit 1; }; };;
31132 --help | --hel | -h )
31133 echo "$ac_cs_usage"; exit 0 ;;
31134 --debug | --d* | -d )
31135 debug=: ;;
31136 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031137 $ac_shift
31138 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031139 ac_need_defaults=false;;
31140 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031141 $ac_shift
31142 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031143 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31146 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031147
31148 # This is an error.
31149 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31150Try \`$0 --help' for more information." >&5
31151echo "$as_me: error: unrecognized option: $1
31152Try \`$0 --help' for more information." >&2;}
31153 { (exit 1); exit 1; }; } ;;
31154
31155 *) ac_config_targets="$ac_config_targets $1" ;;
31156
31157 esac
31158 shift
31159done
31160
John Criswell0c38eaf2003-09-10 15:17:25 +000031161ac_configure_extra_args=
31162
31163if $ac_cs_silent; then
31164 exec 6>/dev/null
31165 ac_configure_extra_args="$ac_configure_extra_args --silent"
31166fi
31167
31168_ACEOF
31169cat >>$CONFIG_STATUS <<_ACEOF
31170if \$ac_cs_recheck; then
31171 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31172 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31173fi
31174
John Criswell7a73b802003-06-30 21:59:07 +000031175_ACEOF
31176
John Criswellc764fbc2003-09-06 15:17:13 +000031177cat >>$CONFIG_STATUS <<_ACEOF
31178#
31179# INIT-COMMANDS section.
31180#
John Criswell7a73b802003-06-30 21:59:07 +000031181
Reid Spencerc0682832005-02-24 19:05:19 +000031182llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031183
31184_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031185
31186
31187
31188cat >>$CONFIG_STATUS <<\_ACEOF
31189for ac_config_target in $ac_config_targets
31190do
31191 case "$ac_config_target" in
31192 # Handling of arguments.
31193 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031194 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031195 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031196 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31197 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031198 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031199 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031200 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031201 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31202 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031203 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031204 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031205 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031206 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031207 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031208 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31209 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031210 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031211 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31212echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31213 { (exit 1); exit 1; }; };;
31214 esac
31215done
31216
31217# If the user did not use the arguments to specify the items to instantiate,
31218# then the envvar interface is used. Set only those that are not.
31219# We use the long form for the default assignment because of an extremely
31220# bizarre bug on SunOS 4.1.3.
31221if $ac_need_defaults; then
31222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031225fi
31226
John Criswell0c38eaf2003-09-10 15:17:25 +000031227# Have a temporary directory for convenience. Make it in the build tree
31228# simply because there is no reason to put it here, and in addition,
31229# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031230# Create a temporary directory, and hook for its removal unless debugging.
31231$debug ||
31232{
31233 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31234 trap '{ (exit 1); exit 1; }' 1 2 13 15
31235}
31236
31237# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031238
John Criswell7a73b802003-06-30 21:59:07 +000031239{
John Criswell0c38eaf2003-09-10 15:17:25 +000031240 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031241 test -n "$tmp" && test -d "$tmp"
31242} ||
31243{
John Criswell0c38eaf2003-09-10 15:17:25 +000031244 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031245 (umask 077 && mkdir $tmp)
31246} ||
31247{
John Criswell0c38eaf2003-09-10 15:17:25 +000031248 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031249 { (exit 1); exit 1; }
31250}
31251
31252_ACEOF
31253
31254cat >>$CONFIG_STATUS <<_ACEOF
31255
31256#
31257# CONFIG_FILES section.
31258#
31259
31260# No need to generate the scripts if there are no CONFIG_FILES.
31261# This happens for instance when ./config.status config.h
31262if test -n "\$CONFIG_FILES"; then
31263 # Protect against being on the right side of a sed subst in config.status.
31264 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31265 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31266s,@SHELL@,$SHELL,;t t
31267s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31268s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31269s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31270s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31271s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31272s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31273s,@exec_prefix@,$exec_prefix,;t t
31274s,@prefix@,$prefix,;t t
31275s,@program_transform_name@,$program_transform_name,;t t
31276s,@bindir@,$bindir,;t t
31277s,@sbindir@,$sbindir,;t t
31278s,@libexecdir@,$libexecdir,;t t
31279s,@datadir@,$datadir,;t t
31280s,@sysconfdir@,$sysconfdir,;t t
31281s,@sharedstatedir@,$sharedstatedir,;t t
31282s,@localstatedir@,$localstatedir,;t t
31283s,@libdir@,$libdir,;t t
31284s,@includedir@,$includedir,;t t
31285s,@oldincludedir@,$oldincludedir,;t t
31286s,@infodir@,$infodir,;t t
31287s,@mandir@,$mandir,;t t
31288s,@build_alias@,$build_alias,;t t
31289s,@host_alias@,$host_alias,;t t
31290s,@target_alias@,$target_alias,;t t
31291s,@DEFS@,$DEFS,;t t
31292s,@ECHO_C@,$ECHO_C,;t t
31293s,@ECHO_N@,$ECHO_N,;t t
31294s,@ECHO_T@,$ECHO_T,;t t
31295s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031296s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031297s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031298s,@build@,$build,;t t
31299s,@build_cpu@,$build_cpu,;t t
31300s,@build_vendor@,$build_vendor,;t t
31301s,@build_os@,$build_os,;t t
31302s,@host@,$host,;t t
31303s,@host_cpu@,$host_cpu,;t t
31304s,@host_vendor@,$host_vendor,;t t
31305s,@host_os@,$host_os,;t t
31306s,@target@,$target,;t t
31307s,@target_cpu@,$target_cpu,;t t
31308s,@target_vendor@,$target_vendor,;t t
31309s,@target_os@,$target_os,;t t
31310s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031311s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31312s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031313s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031314s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031315s,@CC@,$CC,;t t
31316s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031317s,@LDFLAGS@,$LDFLAGS,;t t
31318s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031319s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031320s,@EXEEXT@,$EXEEXT,;t t
31321s,@OBJEXT@,$OBJEXT,;t t
31322s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31323s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031324s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031325s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031326s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031327s,@CXX@,$CXX,;t t
31328s,@CXXFLAGS@,$CXXFLAGS,;t t
31329s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031330s,@LEX@,$LEX,;t t
31331s,@LEXLIB@,$LEXLIB,;t t
31332s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031333s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031334s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031335s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031336s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031337s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031338s,@CMP@,$CMP,;t t
31339s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031340s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031341s,@FIND@,$FIND,;t t
31342s,@GREP@,$GREP,;t t
31343s,@MKDIR@,$MKDIR,;t t
31344s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031345s,@RANLIB@,$RANLIB,;t t
31346s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031347s,@RM@,$RM,;t t
31348s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031349s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031350s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031351s,@GV@,$GV,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031352s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31353s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31354s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031355s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031356s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031357s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031358s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031359s,@GROFF@,$GROFF,;t t
31360s,@GZIP@,$GZIP,;t t
31361s,@POD2HTML@,$POD2HTML,;t t
31362s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031363s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031364s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031365s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031366s,@EGREP@,$EGREP,;t t
31367s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31368s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31369s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31370s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31371s,@LIBADD_DL@,$LIBADD_DL,;t t
31372s,@ECHO@,$ECHO,;t t
31373s,@AR@,$AR,;t t
31374s,@ac_ct_AR@,$ac_ct_AR,;t t
31375s,@STRIP@,$STRIP,;t t
31376s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31377s,@CXXCPP@,$CXXCPP,;t t
31378s,@F77@,$F77,;t t
31379s,@FFLAGS@,$FFLAGS,;t t
31380s,@ac_ct_F77@,$ac_ct_F77,;t t
31381s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031382s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031383s,@LLVMGCC@,$LLVMGCC,;t t
31384s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031385s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031386s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031387s,@LLVMCC1@,$LLVMCC1,;t t
31388s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031389s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031390s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031391s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31392s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31393s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31394s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31395s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31396s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31397s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31398s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31399s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31400s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031401s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031402s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031403CEOF
31404
31405_ACEOF
31406
31407 cat >>$CONFIG_STATUS <<\_ACEOF
31408 # Split the substitutions into bite-sized pieces for seds with
31409 # small command number limits, like on Digital OSF/1 and HP-UX.
31410 ac_max_sed_lines=48
31411 ac_sed_frag=1 # Number of current file.
31412 ac_beg=1 # First line for current file.
31413 ac_end=$ac_max_sed_lines # Line after last line for current file.
31414 ac_more_lines=:
31415 ac_sed_cmds=
31416 while $ac_more_lines; do
31417 if test $ac_beg -gt 1; then
31418 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31419 else
31420 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31421 fi
31422 if test ! -s $tmp/subs.frag; then
31423 ac_more_lines=false
31424 else
31425 # The purpose of the label and of the branching condition is to
31426 # speed up the sed processing (if there are no `@' at all, there
31427 # is no need to browse any of the substitutions).
31428 # These are the two extra sed commands mentioned above.
31429 (echo ':t
31430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31431 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031432 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031433 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031434 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031435 fi
31436 ac_sed_frag=`expr $ac_sed_frag + 1`
31437 ac_beg=$ac_end
31438 ac_end=`expr $ac_end + $ac_max_sed_lines`
31439 fi
31440 done
31441 if test -z "$ac_sed_cmds"; then
31442 ac_sed_cmds=cat
31443 fi
31444fi # test -n "$CONFIG_FILES"
31445
31446_ACEOF
31447cat >>$CONFIG_STATUS <<\_ACEOF
31448for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31450 case $ac_file in
31451 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031452 cat >$tmp/stdin
31453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031457 * ) ac_file_in=$ac_file.in ;;
31458 esac
31459
31460 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31461 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031463 X"$ac_file" : 'X\(//\)[^/]' \| \
31464 X"$ac_file" : 'X\(//\)$' \| \
31465 X"$ac_file" : 'X\(/\)' \| \
31466 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031467echo X"$ac_file" |
31468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31470 /^X\(\/\/\)$/{ s//\1/; q; }
31471 /^X\(\/\).*/{ s//\1/; q; }
31472 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031473 { if $as_mkdir_p; then
31474 mkdir -p "$ac_dir"
31475 else
31476 as_dir="$ac_dir"
31477 as_dirs=
31478 while test ! -d "$as_dir"; do
31479 as_dirs="$as_dir $as_dirs"
31480 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031482 X"$as_dir" : 'X\(//\)[^/]' \| \
31483 X"$as_dir" : 'X\(//\)$' \| \
31484 X"$as_dir" : 'X\(/\)' \| \
31485 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031486echo X"$as_dir" |
31487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31489 /^X\(\/\/\)$/{ s//\1/; q; }
31490 /^X\(\/\).*/{ s//\1/; q; }
31491 s/.*/./; q'`
31492 done
31493 test ! -n "$as_dirs" || mkdir $as_dirs
31494 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31495echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31496 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031497
31498 ac_builddir=.
31499
31500if test "$ac_dir" != .; then
31501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31502 # A "../" for each directory in $ac_dir_suffix.
31503 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31504else
31505 ac_dir_suffix= ac_top_builddir=
31506fi
31507
31508case $srcdir in
31509 .) # No --srcdir option. We are building in place.
31510 ac_srcdir=.
31511 if test -z "$ac_top_builddir"; then
31512 ac_top_srcdir=.
31513 else
31514 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31515 fi ;;
31516 [\\/]* | ?:[\\/]* ) # Absolute path.
31517 ac_srcdir=$srcdir$ac_dir_suffix;
31518 ac_top_srcdir=$srcdir ;;
31519 *) # Relative path.
31520 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31521 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31522esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031523
31524# Do not use `cd foo && pwd` to compute absolute paths, because
31525# the directories may not exist.
31526case `pwd` in
31527.) ac_abs_builddir="$ac_dir";;
31528*)
31529 case "$ac_dir" in
31530 .) ac_abs_builddir=`pwd`;;
31531 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31532 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31533 esac;;
31534esac
31535case $ac_abs_builddir in
31536.) ac_abs_top_builddir=${ac_top_builddir}.;;
31537*)
31538 case ${ac_top_builddir}. in
31539 .) ac_abs_top_builddir=$ac_abs_builddir;;
31540 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31541 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31542 esac;;
31543esac
31544case $ac_abs_builddir in
31545.) ac_abs_srcdir=$ac_srcdir;;
31546*)
31547 case $ac_srcdir in
31548 .) ac_abs_srcdir=$ac_abs_builddir;;
31549 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31550 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31551 esac;;
31552esac
31553case $ac_abs_builddir in
31554.) ac_abs_top_srcdir=$ac_top_srcdir;;
31555*)
31556 case $ac_top_srcdir in
31557 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31558 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31559 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31560 esac;;
31561esac
John Criswell7a73b802003-06-30 21:59:07 +000031562
31563
31564 case $INSTALL in
31565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31566 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31567 esac
31568
31569 if test x"$ac_file" != x-; then
31570 { echo "$as_me:$LINENO: creating $ac_file" >&5
31571echo "$as_me: creating $ac_file" >&6;}
31572 rm -f "$ac_file"
31573 fi
31574 # Let's still pretend it is `configure' which instantiates (i.e., don't
31575 # use $as_me), people would be surprised to read:
31576 # /* config.h. Generated by config.status. */
31577 if test x"$ac_file" = x-; then
31578 configure_input=
31579 else
31580 configure_input="$ac_file. "
31581 fi
31582 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031583 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031584
31585 # First look for the input files in the build tree, otherwise in the
31586 # src tree.
31587 ac_file_inputs=`IFS=:
31588 for f in $ac_file_in; do
31589 case $f in
31590 -) echo $tmp/stdin ;;
31591 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031592 # Absolute (can't be DOS-style, as IFS=:)
31593 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031594echo "$as_me: error: cannot find input file: $f" >&2;}
31595 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031596 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031597 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031598 if test -f "$f"; then
31599 # Build tree
31600 echo "$f"
31601 elif test -f "$srcdir/$f"; then
31602 # Source tree
31603 echo "$srcdir/$f"
31604 else
31605 # /dev/null tree
31606 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031607echo "$as_me: error: cannot find input file: $f" >&2;}
31608 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031609 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031610 esac
31611 done` || { (exit 1); exit 1; }
31612_ACEOF
31613cat >>$CONFIG_STATUS <<_ACEOF
31614 sed "$ac_vpsub
31615$extrasub
31616_ACEOF
31617cat >>$CONFIG_STATUS <<\_ACEOF
31618:t
31619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31620s,@configure_input@,$configure_input,;t t
31621s,@srcdir@,$ac_srcdir,;t t
31622s,@abs_srcdir@,$ac_abs_srcdir,;t t
31623s,@top_srcdir@,$ac_top_srcdir,;t t
31624s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31625s,@builddir@,$ac_builddir,;t t
31626s,@abs_builddir@,$ac_abs_builddir,;t t
31627s,@top_builddir@,$ac_top_builddir,;t t
31628s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31629s,@INSTALL@,$ac_INSTALL,;t t
31630" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31631 rm -f $tmp/stdin
31632 if test x"$ac_file" != x-; then
31633 mv $tmp/out $ac_file
31634 else
31635 cat $tmp/out
31636 rm -f $tmp/out
31637 fi
31638
31639done
31640_ACEOF
31641cat >>$CONFIG_STATUS <<\_ACEOF
31642
31643#
31644# CONFIG_HEADER section.
31645#
31646
31647# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31648# NAME is the cpp macro being defined and VALUE is the value it is being given.
31649#
31650# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031651ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31652ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031653ac_dC=' '
31654ac_dD=',;t'
31655# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031656ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031657ac_uB='$,\1#\2define\3'
31658ac_uC=' '
31659ac_uD=',;t'
31660
31661for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31663 case $ac_file in
31664 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031665 cat >$tmp/stdin
31666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031670 * ) ac_file_in=$ac_file.in ;;
31671 esac
31672
31673 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31674echo "$as_me: creating $ac_file" >&6;}
31675
31676 # First look for the input files in the build tree, otherwise in the
31677 # src tree.
31678 ac_file_inputs=`IFS=:
31679 for f in $ac_file_in; do
31680 case $f in
31681 -) echo $tmp/stdin ;;
31682 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031683 # Absolute (can't be DOS-style, as IFS=:)
31684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031685echo "$as_me: error: cannot find input file: $f" >&2;}
31686 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031687 # Do quote $f, to prevent DOS paths from being IFS'd.
31688 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031689 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031690 if test -f "$f"; then
31691 # Build tree
31692 echo "$f"
31693 elif test -f "$srcdir/$f"; then
31694 # Source tree
31695 echo "$srcdir/$f"
31696 else
31697 # /dev/null tree
31698 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031699echo "$as_me: error: cannot find input file: $f" >&2;}
31700 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031701 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031702 esac
31703 done` || { (exit 1); exit 1; }
31704 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031705 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031706
31707_ACEOF
31708
31709# Transform confdefs.h into two sed scripts, `conftest.defines' and
31710# `conftest.undefs', that substitutes the proper values into
31711# config.h.in to produce config.h. The first handles `#define'
31712# templates, and the second `#undef' templates.
31713# And first: Protect against being on the right side of a sed subst in
31714# config.status. Protect against being in an unquoted here document
31715# in config.status.
31716rm -f conftest.defines conftest.undefs
31717# Using a here document instead of a string reduces the quoting nightmare.
31718# Putting comments in sed scripts is not portable.
31719#
31720# `end' is used to avoid that the second main sed command (meant for
31721# 0-ary CPP macros) applies to n-ary macro definitions.
31722# See the Autoconf documentation for `clear'.
31723cat >confdef2sed.sed <<\_ACEOF
31724s/[\\&,]/\\&/g
31725s,[\\$`],\\&,g
31726t clear
31727: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031728s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031729t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031730s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031731: end
31732_ACEOF
31733# If some macros were called several times there might be several times
31734# the same #defines, which is useless. Nevertheless, we may not want to
31735# sort them, since we want the *last* AC-DEFINE to be honored.
31736uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31737sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31738rm -f confdef2sed.sed
31739
31740# This sed command replaces #undef with comments. This is necessary, for
31741# example, in the case of _POSIX_SOURCE, which is predefined and required
31742# on some systems where configure will not decide to define it.
31743cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031744s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031745_ACEOF
31746
31747# Break up conftest.defines because some shells have a limit on the size
31748# of here documents, and old seds have small limits too (100 cmds).
31749echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031750echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031751echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31752echo ' :' >>$CONFIG_STATUS
31753rm -f conftest.tail
31754while grep . conftest.defines >/dev/null
31755do
31756 # Write a limited-size here document to $tmp/defines.sed.
31757 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31758 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031759 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031760 # Work around the forget-to-reset-the-flag bug.
31761 echo 't clr' >>$CONFIG_STATUS
31762 echo ': clr' >>$CONFIG_STATUS
31763 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31764 echo 'CEOF
31765 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31766 rm -f $tmp/in
31767 mv $tmp/out $tmp/in
31768' >>$CONFIG_STATUS
31769 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31770 rm -f conftest.defines
31771 mv conftest.tail conftest.defines
31772done
31773rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031774echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031775echo >>$CONFIG_STATUS
31776
31777# Break up conftest.undefs because some shells have a limit on the size
31778# of here documents, and old seds have small limits too (100 cmds).
31779echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31780rm -f conftest.tail
31781while grep . conftest.undefs >/dev/null
31782do
31783 # Write a limited-size here document to $tmp/undefs.sed.
31784 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31785 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031786 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031787 # Work around the forget-to-reset-the-flag bug.
31788 echo 't clr' >>$CONFIG_STATUS
31789 echo ': clr' >>$CONFIG_STATUS
31790 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31791 echo 'CEOF
31792 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31793 rm -f $tmp/in
31794 mv $tmp/out $tmp/in
31795' >>$CONFIG_STATUS
31796 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31797 rm -f conftest.undefs
31798 mv conftest.tail conftest.undefs
31799done
31800rm -f conftest.undefs
31801
31802cat >>$CONFIG_STATUS <<\_ACEOF
31803 # Let's still pretend it is `configure' which instantiates (i.e., don't
31804 # use $as_me), people would be surprised to read:
31805 # /* config.h. Generated by config.status. */
31806 if test x"$ac_file" = x-; then
31807 echo "/* Generated by configure. */" >$tmp/config.h
31808 else
31809 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31810 fi
31811 cat $tmp/in >>$tmp/config.h
31812 rm -f $tmp/in
31813 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031814 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031815 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31816echo "$as_me: $ac_file is unchanged" >&6;}
31817 else
31818 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31819$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031820 X"$ac_file" : 'X\(//\)[^/]' \| \
31821 X"$ac_file" : 'X\(//\)$' \| \
31822 X"$ac_file" : 'X\(/\)' \| \
31823 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031824echo X"$ac_file" |
31825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31827 /^X\(\/\/\)$/{ s//\1/; q; }
31828 /^X\(\/\).*/{ s//\1/; q; }
31829 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031830 { if $as_mkdir_p; then
31831 mkdir -p "$ac_dir"
31832 else
31833 as_dir="$ac_dir"
31834 as_dirs=
31835 while test ! -d "$as_dir"; do
31836 as_dirs="$as_dir $as_dirs"
31837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031839 X"$as_dir" : 'X\(//\)[^/]' \| \
31840 X"$as_dir" : 'X\(//\)$' \| \
31841 X"$as_dir" : 'X\(/\)' \| \
31842 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031843echo X"$as_dir" |
31844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31846 /^X\(\/\/\)$/{ s//\1/; q; }
31847 /^X\(\/\).*/{ s//\1/; q; }
31848 s/.*/./; q'`
31849 done
31850 test ! -n "$as_dirs" || mkdir $as_dirs
31851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31852echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31853 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031854
31855 rm -f $ac_file
31856 mv $tmp/config.h $ac_file
31857 fi
31858 else
31859 cat $tmp/config.h
31860 rm -f $tmp/config.h
31861 fi
31862done
31863_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031864cat >>$CONFIG_STATUS <<\_ACEOF
31865
31866#
31867# CONFIG_COMMANDS section.
31868#
31869for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31870 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31871 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31872 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31873$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031874 X"$ac_dest" : 'X\(//\)[^/]' \| \
31875 X"$ac_dest" : 'X\(//\)$' \| \
31876 X"$ac_dest" : 'X\(/\)' \| \
31877 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031878echo X"$ac_dest" |
31879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31881 /^X\(\/\/\)$/{ s//\1/; q; }
31882 /^X\(\/\).*/{ s//\1/; q; }
31883 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031884 { if $as_mkdir_p; then
31885 mkdir -p "$ac_dir"
31886 else
31887 as_dir="$ac_dir"
31888 as_dirs=
31889 while test ! -d "$as_dir"; do
31890 as_dirs="$as_dir $as_dirs"
31891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31893 X"$as_dir" : 'X\(//\)[^/]' \| \
31894 X"$as_dir" : 'X\(//\)$' \| \
31895 X"$as_dir" : 'X\(/\)' \| \
31896 . : '\(.\)' 2>/dev/null ||
31897echo X"$as_dir" |
31898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31900 /^X\(\/\/\)$/{ s//\1/; q; }
31901 /^X\(\/\).*/{ s//\1/; q; }
31902 s/.*/./; q'`
31903 done
31904 test ! -n "$as_dirs" || mkdir $as_dirs
31905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31906echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31907 { (exit 1); exit 1; }; }; }
31908
John Criswellc764fbc2003-09-06 15:17:13 +000031909 ac_builddir=.
31910
31911if test "$ac_dir" != .; then
31912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31913 # A "../" for each directory in $ac_dir_suffix.
31914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31915else
31916 ac_dir_suffix= ac_top_builddir=
31917fi
31918
31919case $srcdir in
31920 .) # No --srcdir option. We are building in place.
31921 ac_srcdir=.
31922 if test -z "$ac_top_builddir"; then
31923 ac_top_srcdir=.
31924 else
31925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31926 fi ;;
31927 [\\/]* | ?:[\\/]* ) # Absolute path.
31928 ac_srcdir=$srcdir$ac_dir_suffix;
31929 ac_top_srcdir=$srcdir ;;
31930 *) # Relative path.
31931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31933esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031934
31935# Do not use `cd foo && pwd` to compute absolute paths, because
31936# the directories may not exist.
31937case `pwd` in
31938.) ac_abs_builddir="$ac_dir";;
31939*)
31940 case "$ac_dir" in
31941 .) ac_abs_builddir=`pwd`;;
31942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31944 esac;;
31945esac
31946case $ac_abs_builddir in
31947.) ac_abs_top_builddir=${ac_top_builddir}.;;
31948*)
31949 case ${ac_top_builddir}. in
31950 .) ac_abs_top_builddir=$ac_abs_builddir;;
31951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31953 esac;;
31954esac
31955case $ac_abs_builddir in
31956.) ac_abs_srcdir=$ac_srcdir;;
31957*)
31958 case $ac_srcdir in
31959 .) ac_abs_srcdir=$ac_abs_builddir;;
31960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31962 esac;;
31963esac
31964case $ac_abs_builddir in
31965.) ac_abs_top_srcdir=$ac_top_srcdir;;
31966*)
31967 case $ac_top_srcdir in
31968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31971 esac;;
31972esac
John Criswellc764fbc2003-09-06 15:17:13 +000031973
31974
31975 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31976echo "$as_me: executing $ac_dest commands" >&6;}
31977 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031978 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31979 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31980 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31981 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31982 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31983 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31984 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31985 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31986 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31987 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31988 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31989 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31990 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31991 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31992 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31993 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31994 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31995 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31996 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31997 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031998 esac
31999done
32000_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032001
32002cat >>$CONFIG_STATUS <<\_ACEOF
32003
32004{ (exit 0); exit 0; }
32005_ACEOF
32006chmod +x $CONFIG_STATUS
32007ac_clean_files=$ac_clean_files_save
32008
32009
32010# configure is writing to config.log, and then calls config.status.
32011# config.status does its own redirection, appending to config.log.
32012# Unfortunately, on DOS this fails, as config.log is still kept open
32013# by configure, so config.status won't be able to write to it; its
32014# output is simply discarded. So we exec the FD to /dev/null,
32015# effectively closing config.log, so it can be properly (re)opened and
32016# appended to by config.status. When coming back to configure, we
32017# need to make the FD available again.
32018if test "$no_create" != yes; then
32019 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032020 ac_config_status_args=
32021 test "$silent" = yes &&
32022 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032023 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032025 exec 5>>config.log
32026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32027 # would make configure fail if this is the last instruction.
32028 $ac_cs_success || { (exit 1); exit 1; }
32029fi
32030
John Criswell12399a12003-09-30 15:55:44 +000032031#
32032# CONFIG_SUBDIRS section.
32033#
32034if test "$no_recursion" != yes; then
32035
32036 # Remove --cache-file and --srcdir arguments so they do not pile up.
32037 ac_sub_configure_args=
32038 ac_prev=
32039 for ac_arg in $ac_configure_args; do
32040 if test -n "$ac_prev"; then
32041 ac_prev=
32042 continue
32043 fi
32044 case $ac_arg in
32045 -cache-file | --cache-file | --cache-fil | --cache-fi \
32046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32047 ac_prev=cache_file ;;
32048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32050 | --c=*)
32051 ;;
32052 --config-cache | -C)
32053 ;;
32054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32055 ac_prev=srcdir ;;
32056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32057 ;;
32058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32059 ac_prev=prefix ;;
32060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32061 ;;
32062 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32063 esac
32064 done
32065
32066 # Always prepend --prefix to ensure using the same prefix
32067 # in subdir configurations.
32068 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32069
32070 ac_popdir=`pwd`
32071 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32072
32073 # Do not complain, so a configure script can configure whichever
32074 # parts of a large source tree are present.
32075 test -d $srcdir/$ac_dir || continue
32076
32077 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32078echo "$as_me: configuring in $ac_dir" >&6;}
32079 { if $as_mkdir_p; then
32080 mkdir -p "$ac_dir"
32081 else
32082 as_dir="$ac_dir"
32083 as_dirs=
32084 while test ! -d "$as_dir"; do
32085 as_dirs="$as_dir $as_dirs"
32086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032088 X"$as_dir" : 'X\(//\)[^/]' \| \
32089 X"$as_dir" : 'X\(//\)$' \| \
32090 X"$as_dir" : 'X\(/\)' \| \
32091 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032092echo X"$as_dir" |
32093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32095 /^X\(\/\/\)$/{ s//\1/; q; }
32096 /^X\(\/\).*/{ s//\1/; q; }
32097 s/.*/./; q'`
32098 done
32099 test ! -n "$as_dirs" || mkdir $as_dirs
32100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32101echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32102 { (exit 1); exit 1; }; }; }
32103
32104 ac_builddir=.
32105
32106if test "$ac_dir" != .; then
32107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32108 # A "../" for each directory in $ac_dir_suffix.
32109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32110else
32111 ac_dir_suffix= ac_top_builddir=
32112fi
32113
32114case $srcdir in
32115 .) # No --srcdir option. We are building in place.
32116 ac_srcdir=.
32117 if test -z "$ac_top_builddir"; then
32118 ac_top_srcdir=.
32119 else
32120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32121 fi ;;
32122 [\\/]* | ?:[\\/]* ) # Absolute path.
32123 ac_srcdir=$srcdir$ac_dir_suffix;
32124 ac_top_srcdir=$srcdir ;;
32125 *) # Relative path.
32126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32128esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032129
32130# Do not use `cd foo && pwd` to compute absolute paths, because
32131# the directories may not exist.
32132case `pwd` in
32133.) ac_abs_builddir="$ac_dir";;
32134*)
32135 case "$ac_dir" in
32136 .) ac_abs_builddir=`pwd`;;
32137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32139 esac;;
32140esac
32141case $ac_abs_builddir in
32142.) ac_abs_top_builddir=${ac_top_builddir}.;;
32143*)
32144 case ${ac_top_builddir}. in
32145 .) ac_abs_top_builddir=$ac_abs_builddir;;
32146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32148 esac;;
32149esac
32150case $ac_abs_builddir in
32151.) ac_abs_srcdir=$ac_srcdir;;
32152*)
32153 case $ac_srcdir in
32154 .) ac_abs_srcdir=$ac_abs_builddir;;
32155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32157 esac;;
32158esac
32159case $ac_abs_builddir in
32160.) ac_abs_top_srcdir=$ac_top_srcdir;;
32161*)
32162 case $ac_top_srcdir in
32163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32166 esac;;
32167esac
John Criswell12399a12003-09-30 15:55:44 +000032168
32169
32170 cd $ac_dir
32171
32172 # Check for guested configure; otherwise get Cygnus style configure.
32173 if test -f $ac_srcdir/configure.gnu; then
32174 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32175 elif test -f $ac_srcdir/configure; then
32176 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32177 elif test -f $ac_srcdir/configure.in; then
32178 ac_sub_configure=$ac_configure
32179 else
32180 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32181echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32182 ac_sub_configure=
32183 fi
32184
32185 # The recursion is here.
32186 if test -n "$ac_sub_configure"; then
32187 # Make the cache file name correct relative to the subdirectory.
32188 case $cache_file in
32189 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32190 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032191 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032192 esac
32193
32194 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32195echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32196 # The eval makes quoting arguments work.
32197 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032198 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32199 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032200echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32201 { (exit 1); exit 1; }; }
32202 fi
32203
32204 cd $ac_popdir
32205 done
32206fi
32207
Brian Gaekef3b24102003-11-16 18:38:14 +000032208
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032209if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032210 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32211echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032212 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32213echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32214 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32215echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32216 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32217echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32218 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32219echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032220fi