blob: 870f63397645f4e63ca5a83f2ccf2cf07f24c4b5 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +00003# Generated by GNU Autoconf 2.59 for llvm 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000428PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000429PACKAGE_STRING='llvm 1.4'
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"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000438ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswelle96aa1c2004-10-28 13:35:00 +0000441ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer59473af2004-12-25 07:31:29 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001040 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001052 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1053 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001054 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1057 both]
1058 --with-tags[=TAGS]
1059 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001060
1061Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001062 CC C compiler command
1063 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001068 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001074
1075Use these variables to override the choices made by `configure' or to help
1076it to find libraries and programs with nonstandard names/locations.
1077
1078Report bugs to <llvmbugs@cs.uiuc.edu>.
1079_ACEOF
1080fi
1081
1082if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1084 ac_popdir=`pwd`
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1087 ac_builddir=.
1088
1089if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093else
1094 ac_dir_suffix= ac_top_builddir=
1095fi
1096
1097case $srcdir in
1098 .) # No --srcdir option. We are building in place.
1099 ac_srcdir=.
1100 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=.
1102 else
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 fi ;;
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1108 *) # Relative path.
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001112
1113# Do not use `cd foo && pwd` to compute absolute paths, because
1114# the directories may not exist.
1115case `pwd` in
1116.) ac_abs_builddir="$ac_dir";;
1117*)
1118 case "$ac_dir" in
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_top_builddir=${ac_top_builddir}.;;
1126*)
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_srcdir=$ac_srcdir;;
1135*)
1136 case $ac_srcdir in
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_srcdir=$ac_top_srcdir;;
1144*)
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 esac;;
1150esac
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 cd $ac_dir
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1155 echo
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1158 echo
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001161 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001162 echo
1163 $ac_configure --help
1164 else
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166 fi
1167 cd $ac_popdir
1168 done
1169fi
1170
1171test -n "$ac_init_help" && exit 0
1172if $ac_init_version; then
1173 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001174llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001175generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001176
Reid Spencer2706f8c2004-09-19 23:53:36 +00001177Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001178This configure script is free software; the Free Software Foundation
1179gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001180
1181$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001182_ACEOF
1183 exit 0
1184fi
1185exec 5>config.log
1186cat >&5 <<_ACEOF
1187This file contains any messages produced by compilers while
1188running configure, to aid debugging if configure makes a mistake.
1189
Reid Spencerabec8f92004-10-27 23:03:44 +00001190It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001191generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001192
1193 $ $0 $@
1194
1195_ACEOF
1196{
1197cat <<_ASUNAME
1198## --------- ##
1199## Platform. ##
1200## --------- ##
1201
1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210
1211/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1218
1219_ASUNAME
1220
1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222for as_dir in $PATH
1223do
1224 IFS=$as_save_IFS
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1227done
1228
1229} >&5
1230
1231cat >&5 <<_ACEOF
1232
1233
1234## ----------- ##
1235## Core tests. ##
1236## ----------- ##
1237
1238_ACEOF
1239
1240
1241# Keep a trace of the command line.
1242# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001243# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001244# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001245# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001246ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001247ac_configure_args0=
1248ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001249ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001250ac_must_keep_next=false
1251for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001252do
John Criswell0c38eaf2003-09-10 15:17:25 +00001253 for ac_arg
1254 do
1255 case $ac_arg in
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 continue ;;
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 esac
1263 case $ac_pass in
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 2)
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001268 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001269 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001270 case $ac_arg in
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 esac
1278 ;;
1279 -* ) ac_must_keep_next=true ;;
1280 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001281 fi
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1284 ac_sep=" "
1285 ;;
1286 esac
1287 done
John Criswell7a73b802003-06-30 21:59:07 +00001288done
John Criswell0c38eaf2003-09-10 15:17:25 +00001289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290$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 +00001291
1292# When interrupted or exit'd, cleanup temporary files, and complete
1293# config.log. We remove comments because anyway the quotes in there
1294# would cause problems or look ugly.
1295# WARNING: Be sure not to use single quotes in there, as some shells,
1296# such as our DU 5.0 friend, will then `close' the trap.
1297trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1299 {
1300 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001301
John Criswell7a73b802003-06-30 21:59:07 +00001302 cat <<\_ASBOX
1303## ---------------- ##
1304## Cache variables. ##
1305## ---------------- ##
1306_ASBOX
1307 echo
1308 # The following way of writing the cache mishandles newlines in values,
1309{
1310 (set) 2>&1 |
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 *ac_space=\ *)
1313 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001316 ;;
1317 *)
1318 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001320 ;;
1321 esac;
1322}
1323 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001324
1325 cat <<\_ASBOX
1326## ----------------- ##
1327## Output variables. ##
1328## ----------------- ##
1329_ASBOX
1330 echo
1331 for ac_var in $ac_subst_vars
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337
1338 if test -n "$ac_subst_files"; then
1339 cat <<\_ASBOX
1340## ------------- ##
1341## Output files. ##
1342## ------------- ##
1343_ASBOX
1344 echo
1345 for ac_var in $ac_subst_files
1346 do
1347 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001348 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001349 done | sort
1350 echo
1351 fi
1352
John Criswell7a73b802003-06-30 21:59:07 +00001353 if test -s confdefs.h; then
1354 cat <<\_ASBOX
1355## ----------- ##
1356## confdefs.h. ##
1357## ----------- ##
1358_ASBOX
1359 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001360 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001361 echo
1362 fi
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1366 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001367 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 exit $exit_status
1370 ' 0
1371for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373done
1374ac_signal=0
1375
1376# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377rm -rf conftest* confdefs.h
1378# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379echo >confdefs.h
1380
1381# Predefined preprocessor variables.
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_NAME "$PACKAGE_NAME"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_VERSION "$PACKAGE_VERSION"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_STRING "$PACKAGE_STRING"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405_ACEOF
1406
1407
1408# Let the site file select an alternate cache file if it wants to.
1409# Prefer explicitly selected file to automatically selected ones.
1410if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 else
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 fi
1416fi
1417for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1422 . "$ac_site_file"
1423 fi
1424done
1425
1426if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431echo "$as_me: loading cache $cache_file" >&6;}
1432 case $cache_file in
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1435 esac
1436 fi
1437else
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439echo "$as_me: creating cache $cache_file" >&6;}
1440 >$cache_file
1441fi
1442
1443# Check that the precious variables saved in the cache have kept the same
1444# value.
1445ac_cache_corrupted=false
1446for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1453 set,)
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1457 ,set)
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1461 ,);;
1462 *)
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001467echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001469echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001471 fi;;
1472 esac
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1475 case $ac_new_val in
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1479 esac
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483 esac
1484 fi
1485done
1486if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1492fi
1493
1494ac_ext=c
1495ac_cpp='$CPP $CPPFLAGS'
1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
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
John Criswell0c38eaf2003-09-10 15:17:25 +00001526
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001527LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
John Criswell7a73b802003-06-30 21:59:07 +00001535ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001536for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001537 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break
1541 elif test -f $ac_dir/install.sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 break
1545 elif test -f $ac_dir/shtool; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break
1549 fi
1550done
1551if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001554 { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
John Criswell392aaa32003-07-22 19:18:09 +00001560
Reid Spencer2706f8c2004-09-19 23:53:36 +00001561if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001562 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001564echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001566 fi
John Criswell93e1c722003-09-15 17:04:06 +00001567fi
1568
John Criswell33a911a2003-11-25 20:36:46 +00001569for i in `ls ${srcdir}/projects`
1570do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001571 if test -d ${srcdir}/projects/${i} ; then
1572 case ${i} in
1573 "CVS") ;;
1574 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001575
Reid Spencer4d68ba22004-09-07 16:35:45 +00001576subdirs="$subdirs projects/sample"
1577 ;;
1578 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001579
Reid Spencer4d68ba22004-09-07 16:35:45 +00001580subdirs="$subdirs projects/Stacker"
1581 ;;
1582 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001583
Reid Spencer4d68ba22004-09-07 16:35:45 +00001584subdirs="$subdirs projects/llvm-test"
1585 ;;
1586 "llvm-reopt")
1587
1588subdirs="$subdirs projects/llvm-reopt"
1589;;
1590 "llvm-gcc")
1591
1592subdirs="$subdirs projects/llvm-gcc"
1593 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001594 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595
Reid Spencer641f7ef2004-09-20 22:14:56 +00001596subdirs="$subdirs projects/Java"
1597 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001598 "llvm-tv")
1599
1600subdirs="$subdirs projects/llvm-tv"
1601 ;;
1602 "llvm-fefw")
1603
1604subdirs="$subdirs projects/llvm-fefw"
1605 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001606 "poolalloc")
1607
1608subdirs="$subdirs projects/poolalloc"
1609 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001610 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001611 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001613 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001614 esac
John Criswell33a911a2003-11-25 20:36:46 +00001615 fi
1616done
John Criswell559a6c12003-09-30 16:31:48 +00001617
John Criswell7a73b802003-06-30 21:59:07 +00001618
1619# Make sure we can run config.sub.
1620$ac_config_sub sun4 >/dev/null 2>&1 ||
1621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623 { (exit 1); exit 1; }; }
1624
1625echo "$as_me:$LINENO: checking build system type" >&5
1626echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627if test "${ac_cv_build+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_build_alias=$build_alias
1631test -z "$ac_cv_build_alias" &&
1632 ac_cv_build_alias=`$ac_config_guess`
1633test -z "$ac_cv_build_alias" &&
1634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636 { (exit 1); exit 1; }; }
1637ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1641
1642fi
1643echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644echo "${ECHO_T}$ac_cv_build" >&6
1645build=$ac_cv_build
1646build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651echo "$as_me:$LINENO: checking host system type" >&5
1652echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653if test "${ac_cv_host+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656 ac_cv_host_alias=$host_alias
1657test -z "$ac_cv_host_alias" &&
1658 ac_cv_host_alias=$ac_cv_build_alias
1659ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662 { (exit 1); exit 1; }; }
1663
1664fi
1665echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666echo "${ECHO_T}$ac_cv_host" >&6
1667host=$ac_cv_host
1668host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673echo "$as_me:$LINENO: checking target system type" >&5
1674echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675if test "${ac_cv_target+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678 ac_cv_target_alias=$target_alias
1679test "x$ac_cv_target_alias" = "x" &&
1680 ac_cv_target_alias=$ac_cv_host_alias
1681ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1685
1686fi
1687echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688echo "${ECHO_T}$ac_cv_target" >&6
1689target=$ac_cv_target
1690target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695# The aliases save the names the user supplied, while $host etc.
1696# will get canonicalized.
1697test -n "$target_alias" &&
1698 test "$program_prefix$program_suffix$program_transform_name" = \
1699 NONENONEs,x,x, &&
1700 program_prefix=${target_alias}-
1701
Reid Spencer7b3e8512004-12-24 06:29:05 +00001702echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001708 *-*-aix*)
1709 llvm_cv_os_type="AIX"
1710 llvm_cv_platform_type="Unix" ;;
1711 *-*-cygwin*)
1712 llvm_cv_os_type="Cygwin"
1713 llvm_cv_platform_type="Unix" ;;
1714 *-*-darwin*)
1715 llvm_cv_os_type="Darwin"
1716 llvm_cv_platform_type="Unix" ;;
1717 *-*-freebsd*)
1718 llvm_cv_os_type="FreeBSD"
1719 llvm_cv_platform_type="Unix" ;;
1720 *-*-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
1759 ;;
1760 Win32)
1761
1762cat >>confdefs.h <<\_ACEOF
1763#define LLVM_ON_WIN32 1
1764_ACEOF
1765
1766 ;;
1767esac
1768
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001769case $target in
1770 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1771
1772 ;;
1773esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001774
1775echo "$as_me:$LINENO: checking target architecture" >&5
1776echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001777if test "${llvm_cv_target_arch+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779else
1780 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001781 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001782 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001783 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1784 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1785 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001786esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001787fi
1788echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1789echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001790
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001791if test "$llvm_cv_target_arch" = "Unknown" ; then
1792 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1793echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1794fi
John Criswell76595452003-07-01 22:07:39 +00001795
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001796ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001797
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001798
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001799ac_ext=c
1800ac_cpp='$CPP $CPPFLAGS'
1801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001804if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001805 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1806set dummy ${ac_tool_prefix}gcc; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1825 fi
1826done
1827done
1828
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6
1835else
1836 echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840fi
1841if test -z "$ac_cv_prog_CC"; then
1842 ac_ct_CC=$CC
1843 # Extract the first word of "gcc", so it can be a program name with args.
1844set dummy gcc; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850 if test -n "$ac_ct_CC"; then
1851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_ac_ct_CC="gcc"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2
1863 fi
1864done
1865done
1866
1867fi
1868fi
1869ac_ct_CC=$ac_cv_prog_ac_ct_CC
1870if test -n "$ac_ct_CC"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1872echo "${ECHO_T}$ac_ct_CC" >&6
1873else
1874 echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878 CC=$ac_ct_CC
1879else
1880 CC="$ac_cv_prog_CC"
1881fi
1882
1883if test -z "$CC"; then
1884 if test -n "$ac_tool_prefix"; then
1885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1886set dummy ${ac_tool_prefix}cc; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_CC="${ac_tool_prefix}cc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1905 fi
1906done
1907done
1908
1909fi
1910fi
1911CC=$ac_cv_prog_CC
1912if test -n "$CC"; then
1913 echo "$as_me:$LINENO: result: $CC" >&5
1914echo "${ECHO_T}$CC" >&6
1915else
1916 echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920fi
1921if test -z "$ac_cv_prog_CC"; then
1922 ac_ct_CC=$CC
1923 # Extract the first word of "cc", so it can be a program name with args.
1924set dummy cc; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930 if test -n "$ac_ct_CC"; then
1931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_ac_ct_CC="cc"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1943 fi
1944done
1945done
1946
1947fi
1948fi
1949ac_ct_CC=$ac_cv_prog_ac_ct_CC
1950if test -n "$ac_ct_CC"; then
1951 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1952echo "${ECHO_T}$ac_ct_CC" >&6
1953else
1954 echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6
1956fi
1957
1958 CC=$ac_ct_CC
1959else
1960 CC="$ac_cv_prog_CC"
1961fi
1962
1963fi
1964if test -z "$CC"; then
1965 # Extract the first word of "cc", so it can be a program name with args.
1966set dummy cc; ac_word=$2
1967echo "$as_me:$LINENO: checking for $ac_word" >&5
1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1974else
1975 ac_prog_rejected=no
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1984 ac_prog_rejected=yes
1985 continue
1986 fi
1987 ac_cv_prog_CC="cc"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 break 2
1990 fi
1991done
1992done
1993
1994if test $ac_prog_rejected = yes; then
1995 # We found a bogon in the path, so make sure we never use it.
1996 set dummy $ac_cv_prog_CC
1997 shift
1998 if test $# != 0; then
1999 # We chose a different compiler from the bogus one.
2000 # However, it has the same basename, so the bogon will be chosen
2001 # first if we set CC to just the basename; use the full file name.
2002 shift
2003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2004 fi
2005fi
2006fi
2007fi
2008CC=$ac_cv_prog_CC
2009if test -n "$CC"; then
2010 echo "$as_me:$LINENO: result: $CC" >&5
2011echo "${ECHO_T}$CC" >&6
2012else
2013 echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6
2015fi
2016
2017fi
2018if test -z "$CC"; then
2019 if test -n "$ac_tool_prefix"; then
2020 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002021 do
2022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2024echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002026if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029 if test -n "$CC"; then
2030 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2042 fi
2043done
2044done
2045
2046fi
2047fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048CC=$ac_cv_prog_CC
2049if test -n "$CC"; then
2050 echo "$as_me:$LINENO: result: $CC" >&5
2051echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002052else
2053 echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6
2055fi
2056
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002057 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002058 done
2059fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060if test -z "$CC"; then
2061 ac_ct_CC=$CC
2062 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002063do
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065set dummy $ac_prog; ac_word=$2
2066echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2084 fi
2085done
2086done
2087
2088fi
2089fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002090ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091if test -n "$ac_ct_CC"; then
2092 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002094else
2095 echo "$as_me:$LINENO: result: no" >&5
2096echo "${ECHO_T}no" >&6
2097fi
2098
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002099 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002100done
John Criswell7a73b802003-06-30 21:59:07 +00002101
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102 CC=$ac_ct_CC
2103fi
2104
John Criswell7a73b802003-06-30 21:59:07 +00002105fi
2106
2107
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002108test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: no acceptable C compiler found in \$PATH
2111See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2113
John Criswell7a73b802003-06-30 21:59:07 +00002114# Provide some information about the compiler.
2115echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002116 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002117ac_compiler=`set X $ac_compile; echo $2`
2118{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2119 (eval $ac_compiler --version </dev/null >&5) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2124 (eval $ac_compiler -v </dev/null >&5) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2129 (eval $ac_compiler -V </dev/null >&5) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133
2134cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002135/* confdefs.h. */
2136_ACEOF
2137cat confdefs.h >>conftest.$ac_ext
2138cat >>conftest.$ac_ext <<_ACEOF
2139/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002140
John Criswell7a73b802003-06-30 21:59:07 +00002141int
2142main ()
2143{
2144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002150ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002151# Try to create an executable without -o first, disregard a.out.
2152# It will help us diagnose broken compilers, and finding out an intuition
2153# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002154echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2155echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002156ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2158 (eval $ac_link_default) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 # Find the output, starting from the most likely. This scheme is
2163# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2164# resort.
2165
2166# Be careful to initialize this variable, since it used to be cached.
2167# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002169# b.out is created by i960 compilers.
2170for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171do
2172 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002173 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002175 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002176 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002177 # This is the source file.
2178 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002180 # We found the default executable, but exeext='' is most
2181 # certainly right.
2182 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002183 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185 # FIXME: I believe we export ac_cv_exeext for Libtool,
2186 # but it would be cool to find out if it's true. Does anybody
2187 # maintain Libtool? --akim.
2188 export ac_cv_exeext
2189 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002192 esac
2193done
2194else
2195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002196sed 's/^/| /' conftest.$ac_ext >&5
2197
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002198{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002199See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002200echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002201See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002202 { (exit 77); exit 77; }; }
2203fi
2204
2205ac_exeext=$ac_cv_exeext
2206echo "$as_me:$LINENO: result: $ac_file" >&5
2207echo "${ECHO_T}$ac_file" >&6
2208
2209# Check the compiler produces executables we can run. If not, either
2210# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002211echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002213# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214# If not cross compiling, check that we can run a simple program.
2215if test "$cross_compiling" != yes; then
2216 if { ac_try='./$ac_file'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 cross_compiling=no
2223 else
2224 if test "$cross_compiling" = maybe; then
2225 cross_compiling=yes
2226 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002227 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002228If you meant to cross compile, use \`--host'.
2229See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002230echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002233 { (exit 1); exit 1; }; }
2234 fi
2235 fi
2236fi
2237echo "$as_me:$LINENO: result: yes" >&5
2238echo "${ECHO_T}yes" >&6
2239
John Criswell0c38eaf2003-09-10 15:17:25 +00002240rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002241ac_clean_files=$ac_clean_files_save
2242# Check the compiler produces executables we can run. If not, either
2243# the compiler is broken, or we cross compile.
2244echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2245echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2246echo "$as_me:$LINENO: result: $cross_compiling" >&5
2247echo "${ECHO_T}$cross_compiling" >&6
2248
2249echo "$as_me:$LINENO: checking for suffix of executables" >&5
2250echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2252 (eval $ac_link) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258# work properly (i.e., refer to `conftest.exe'), while it won't with
2259# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002260for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002262 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002265 export ac_cv_exeext
2266 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002267 * ) break;;
2268 esac
2269done
2270else
John Criswell0c38eaf2003-09-10 15:17:25 +00002271 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272See \`config.log' for more details." >&5
2273echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002275 { (exit 1); exit 1; }; }
2276fi
2277
2278rm -f conftest$ac_cv_exeext
2279echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280echo "${ECHO_T}$ac_cv_exeext" >&6
2281
2282rm -f conftest.$ac_ext
2283EXEEXT=$ac_cv_exeext
2284ac_exeext=$EXEEXT
2285echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2287if test "${ac_cv_objext+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002291/* confdefs.h. */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002296
John Criswell7a73b802003-06-30 21:59:07 +00002297int
2298main ()
2299{
2300
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305rm -f conftest.o conftest.obj
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315 break;;
2316 esac
2317done
2318else
2319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002326 { (exit 1); exit 1; }; }
2327fi
2328
2329rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330fi
2331echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332echo "${ECHO_T}$ac_cv_objext" >&6
2333OBJEXT=$ac_cv_objext
2334ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002335echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002341/* confdefs.h. */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002346
John Criswell7a73b802003-06-30 21:59:07 +00002347int
2348main ()
2349{
2350#ifndef __GNUC__
2351 choke me
2352#endif
2353
2354 ;
2355 return 0;
2356}
2357_ACEOF
2358rm -f conftest.$ac_objext
2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002360 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002361 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002362 grep -v '^ *+' conftest.er1 >conftest.err
2363 rm -f conftest.er1
2364 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002368 || test ! -s conftest.err'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 (eval $ac_try) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; } &&
2374 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2380 ac_compiler_gnu=yes
2381else
2382 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002383sed 's/^/| /' conftest.$ac_ext >&5
2384
John Criswell7a73b802003-06-30 21:59:07 +00002385ac_compiler_gnu=no
2386fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002389
2390fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2392echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2393GCC=`test $ac_compiler_gnu = yes && echo yes`
2394ac_test_CFLAGS=${CFLAGS+set}
2395ac_save_CFLAGS=$CFLAGS
2396CFLAGS="-g"
2397echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2398echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2399if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401else
2402 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002403/* confdefs.h. */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002408
John Criswell7a73b802003-06-30 21:59:07 +00002409int
2410main ()
2411{
2412
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002419 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002421 grep -v '^ *+' conftest.er1 >conftest.err
2422 rm -f conftest.er1
2423 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002427 || test ! -s conftest.err'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 (eval $ac_try) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002440else
2441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002442sed 's/^/| /' conftest.$ac_ext >&5
2443
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002445fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002447fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2449echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2450if test "$ac_test_CFLAGS" = set; then
2451 CFLAGS=$ac_save_CFLAGS
2452elif test $ac_cv_prog_cc_g = yes; then
2453 if test "$GCC" = yes; then
2454 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002455 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002457 fi
2458else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459 if test "$GCC" = yes; then
2460 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002461 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002463 fi
2464fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2466echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_stdc+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 ac_cv_prog_cc_stdc=no
2471ac_save_CC=$CC
2472cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h. */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h. */
2478#include <stdarg.h>
2479#include <stdio.h>
2480#include <sys/types.h>
2481#include <sys/stat.h>
2482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2483struct buf { int x; };
2484FILE * (*rcsopen) (struct buf *, struct stat *, int);
2485static char *e (p, i)
2486 char **p;
2487 int i;
2488{
2489 return p[i];
2490}
2491static char *f (char * (*g) (char **, int), char **p, ...)
2492{
2493 char *s;
2494 va_list v;
2495 va_start (v,p);
2496 s = g (p, va_arg (v,int));
2497 va_end (v);
2498 return s;
2499}
2500
2501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2502 function prototypes and stuff, but not '\xHH' hex character constants.
2503 These don't provoke an error unfortunately, instead are silently treated
2504 as 'x'. The following induces an error, until -std1 is added to get
2505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2506 array size at least. It's necessary to write '\x00'==0 to get something
2507 that's true only with -std1. */
2508int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2509
2510int test (int i, double x);
2511struct s1 {int (*f) (int a);};
2512struct s2 {int (*f) (double a);};
2513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514int argc;
2515char **argv;
2516int
2517main ()
2518{
2519return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524# Don't try gcc -ansi; that turns off useful extensions and
2525# breaks some systems' header files.
2526# AIX -qlanglvl=ansi
2527# Ultrix and OSF/1 -std1
2528# HP-UX 10.20 and later -Ae
2529# HP-UX older versions -Aa -D_HPUX_SOURCE
2530# SVR4 -Xc -D__EXTENSIONS__
2531for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2532do
2533 CC="$ac_save_CC $ac_arg"
2534 rm -f conftest.$ac_objext
2535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536 (eval $ac_compile) 2>conftest.er1
2537 ac_status=$?
2538 grep -v '^ *+' conftest.er1 >conftest.err
2539 rm -f conftest.er1
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag"
2544 || test ! -s conftest.err'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 ac_cv_prog_cc_stdc=$ac_arg
2557break
2558else
2559 echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562fi
2563rm -f conftest.err conftest.$ac_objext
2564done
2565rm -f conftest.$ac_ext conftest.$ac_objext
2566CC=$ac_save_CC
2567
2568fi
2569
2570case "x$ac_cv_prog_cc_stdc" in
2571 x|xno)
2572 echo "$as_me:$LINENO: result: none needed" >&5
2573echo "${ECHO_T}none needed" >&6 ;;
2574 *)
2575 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2576echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2577 CC="$CC $ac_cv_prog_cc_stdc" ;;
2578esac
2579
2580# Some people use a C++ compiler to compile C. Since we use `exit',
2581# in C++ we need to declare it. In case someone uses the same compiler
2582# for both compiling C and C++ we need to have the C++ compiler decide
2583# the declaration of exit, since it's the most demanding environment.
2584cat >conftest.$ac_ext <<_ACEOF
2585#ifndef __cplusplus
2586 choke me
2587#endif
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2592 ac_status=$?
2593 grep -v '^ *+' conftest.er1 >conftest.err
2594 rm -f conftest.er1
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_c_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002612 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002613 'extern "C" void std::exit (int) throw (); using std::exit;' \
2614 'extern "C" void std::exit (int); using std::exit;' \
2615 'extern "C" void exit (int) throw ();' \
2616 'extern "C" void exit (int);' \
2617 'void exit (int);'
2618do
2619 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002620/* confdefs.h. */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002625$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002626#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002627int
2628main ()
2629{
2630exit (42);
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002637 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002638 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002645 || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 :
2658else
2659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002660sed 's/^/| /' conftest.$ac_ext >&5
2661
John Criswell7a73b802003-06-30 21:59:07 +00002662continue
2663fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002666/* confdefs.h. */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002671$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002672int
2673main ()
2674{
2675exit (42);
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002682 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002689 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 break
2703else
2704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002705sed 's/^/| /' conftest.$ac_ext >&5
2706
John Criswell7a73b802003-06-30 21:59:07 +00002707fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002709done
2710rm -f conftest*
2711if test -n "$ac_declaration"; then
2712 echo '#ifdef __cplusplus' >>confdefs.h
2713 echo $ac_declaration >>confdefs.h
2714 echo '#endif' >>confdefs.h
2715fi
2716
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002717else
2718 echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721fi
2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723ac_ext=c
2724ac_cpp='$CPP $CPPFLAGS'
2725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728
2729
2730echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2731echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2732if test "${ac_cv_c_bigendian+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735 # See if sys/param.h defines the BYTE_ORDER macro.
2736cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h. */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h. */
2742#include <sys/types.h>
2743#include <sys/param.h>
2744
2745int
2746main ()
2747{
2748#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2749 bogus endian macros
2750#endif
2751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756rm -f conftest.$ac_objext
2757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 # It does; now see whether it defined to BIG_ENDIAN or not.
2779cat >conftest.$ac_ext <<_ACEOF
2780/* confdefs.h. */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h. */
2785#include <sys/types.h>
2786#include <sys/param.h>
2787
2788int
2789main ()
2790{
2791#if BYTE_ORDER != BIG_ENDIAN
2792 not big endian
2793#endif
2794
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 ac_cv_c_bigendian=yes
2822else
2823 echo "$as_me: failed program was:" >&5
2824sed 's/^/| /' conftest.$ac_ext >&5
2825
2826ac_cv_c_bigendian=no
2827fi
2828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829else
2830 echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833# It does not; compile a test program.
2834if test "$cross_compiling" = yes; then
2835 # try to guess the endianness by grepping values into an object file
2836 ac_cv_c_bigendian=unknown
2837 cat >conftest.$ac_ext <<_ACEOF
2838/* confdefs.h. */
2839_ACEOF
2840cat confdefs.h >>conftest.$ac_ext
2841cat >>conftest.$ac_ext <<_ACEOF
2842/* end confdefs.h. */
2843short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2844short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2845void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2846short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2847short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2848void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2849int
2850main ()
2851{
2852 _ascii (); _ebcdic ();
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext
2858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>conftest.er1
2860 ac_status=$?
2861 grep -v '^ *+' conftest.er1 >conftest.err
2862 rm -f conftest.er1
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -z "$ac_c_werror_flag"
2867 || test ! -s conftest.err'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; } &&
2873 { ac_try='test -s conftest.$ac_objext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2880 ac_cv_c_bigendian=yes
2881fi
2882if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2883 if test "$ac_cv_c_bigendian" = unknown; then
2884 ac_cv_c_bigendian=no
2885 else
2886 # finding both strings is unlikely to happen, but who knows?
2887 ac_cv_c_bigendian=unknown
2888 fi
2889fi
2890else
2891 echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
2894fi
2895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2896else
2897 cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
2903int
2904main ()
2905{
2906 /* Are we little or big endian? From Harbison&Steele. */
2907 union
2908 {
2909 long l;
2910 char c[sizeof (long)];
2911 } u;
2912 u.l = 1;
2913 exit (u.c[sizeof (long) - 1] == 1);
2914}
2915_ACEOF
2916rm -f conftest$ac_exeext
2917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2918 (eval $ac_link) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 ac_cv_c_bigendian=no
2928else
2929 echo "$as_me: program exited with status $ac_status" >&5
2930echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933( exit $ac_status )
2934ac_cv_c_bigendian=yes
2935fi
2936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2937fi
2938fi
2939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2942echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2943case $ac_cv_c_bigendian in
2944 yes)
2945 ENDIAN=big
2946 ;;
2947 no)
2948 ENDIAN=little
2949 ;;
2950 *)
2951 { { echo "$as_me:$LINENO: error: unknown endianness
2952presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2953echo "$as_me: error: unknown endianness
2954presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2955 { (exit 1); exit 1; }; } ;;
2956esac
2957
2958
2959
2960# Check whether --enable-optimized or --disable-optimized was given.
2961if test "${enable_optimized+set}" = set; then
2962 enableval="$enable_optimized"
2963
2964else
2965 enableval=no
2966fi;
2967if test ${enableval} = "no" ; then
2968 ENABLE_OPTIMIZED=
2969
2970else
2971 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2972
2973fi
2974
2975# Check whether --enable-jit or --disable-jit was given.
2976if test "${enable_jit+set}" = set; then
2977 enableval="$enable_jit"
2978
2979else
2980 enableval=default
2981fi;
2982if test ${enableval} = "no"
2983then
2984 JIT=
2985
2986else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002987 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002988 x86) JIT=TARGET_HAS_JIT=1
2989 ;;
2990 Sparc) JIT=TARGET_HAS_JIT=1
2991 ;;
2992 PowerPC) JIT=TARGET_HAS_JIT=1
2993 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00002994 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00002995 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002996 *) JIT=
2997 ;;
2998 esac
2999fi
3000
Reid Spencer1f319422004-11-29 04:56:35 +00003001# Check whether --enable-doxygen or --disable-doxygen was given.
3002if test "${enable_doxygen+set}" = set; then
3003 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003004
Reid Spencer1f319422004-11-29 04:56:35 +00003005else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003006 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003007fi;
3008case "$enableval" in
3009 yes) ENABLE_DOXYGEN=1
3010 ;;
3011 no) ENABLE_DOXYGEN=0
3012 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003013 default) ENABLE_DOXYGEN=0
3014 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003015 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3016echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3017 { (exit 1); exit 1; }; } ;;
3018esac
3019
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003020
Reid Spencer59473af2004-12-25 07:31:29 +00003021# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3022if test "${with_llvmgccdir+set}" = set; then
3023 withval="$with_llvmgccdir"
3024
3025else
3026 withval=default
3027fi;
3028case "$withval" in
3029 default) WITH_LLVMGCCDIR=default ;;
3030 /*) WITH_LLVMGCCDIR=$withval ;;
3031 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3032echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3033 { (exit 1); exit 1; }; } ;;
3034esac
3035
3036
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003037ac_ext=c
3038ac_cpp='$CPP $CPPFLAGS'
3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3043echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3044# On Suns, sometimes $CPP names a directory.
3045if test -n "$CPP" && test -d "$CPP"; then
3046 CPP=
3047fi
3048if test -z "$CPP"; then
3049 if test "${ac_cv_prog_CPP+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052 # Double quotes because CPP needs to be expanded
3053 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3054 do
3055 ac_preproc_ok=false
3056for ac_c_preproc_warn_flag in '' yes
3057do
3058 # Use a header file that comes with gcc, so configuring glibc
3059 # with a fresh cross-compiler works.
3060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061 # <limits.h> exists even on freestanding compilers.
3062 # On the NeXT, cc -E runs the code through the compiler's parser,
3063 # not just through cpp. "Syntax error" is here to catch this case.
3064 cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h. */
3070#ifdef __STDC__
3071# include <limits.h>
3072#else
3073# include <assert.h>
3074#endif
3075 Syntax error
3076_ACEOF
3077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_c_preproc_warn_flag
3087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088 else
3089 ac_cpp_err=
3090 fi
3091else
3092 ac_cpp_err=yes
3093fi
3094if test -z "$ac_cpp_err"; then
3095 :
3096else
3097 echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 # Broken: fails on valid input.
3101continue
3102fi
3103rm -f conftest.err conftest.$ac_ext
3104
3105 # OK, works on sane cases. Now check whether non-existent headers
3106 # can be detected and how.
3107 cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
3113#include <ac_nonexistent.h>
3114_ACEOF
3115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } >/dev/null; then
3123 if test -s conftest.err; then
3124 ac_cpp_err=$ac_c_preproc_warn_flag
3125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126 else
3127 ac_cpp_err=
3128 fi
3129else
3130 ac_cpp_err=yes
3131fi
3132if test -z "$ac_cpp_err"; then
3133 # Broken: success on invalid input.
3134continue
3135else
3136 echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 # Passes both tests.
3140ac_preproc_ok=:
3141break
3142fi
3143rm -f conftest.err conftest.$ac_ext
3144
3145done
3146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147rm -f conftest.err conftest.$ac_ext
3148if $ac_preproc_ok; then
3149 break
3150fi
3151
3152 done
3153 ac_cv_prog_CPP=$CPP
3154
3155fi
3156 CPP=$ac_cv_prog_CPP
3157else
3158 ac_cv_prog_CPP=$CPP
3159fi
3160echo "$as_me:$LINENO: result: $CPP" >&5
3161echo "${ECHO_T}$CPP" >&6
3162ac_preproc_ok=false
3163for ac_c_preproc_warn_flag in '' yes
3164do
3165 # Use a header file that comes with gcc, so configuring glibc
3166 # with a fresh cross-compiler works.
3167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3168 # <limits.h> exists even on freestanding compilers.
3169 # On the NeXT, cc -E runs the code through the compiler's parser,
3170 # not just through cpp. "Syntax error" is here to catch this case.
3171 cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177#ifdef __STDC__
3178# include <limits.h>
3179#else
3180# include <assert.h>
3181#endif
3182 Syntax error
3183_ACEOF
3184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } >/dev/null; then
3192 if test -s conftest.err; then
3193 ac_cpp_err=$ac_c_preproc_warn_flag
3194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3195 else
3196 ac_cpp_err=
3197 fi
3198else
3199 ac_cpp_err=yes
3200fi
3201if test -z "$ac_cpp_err"; then
3202 :
3203else
3204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 # Broken: fails on valid input.
3208continue
3209fi
3210rm -f conftest.err conftest.$ac_ext
3211
3212 # OK, works on sane cases. Now check whether non-existent headers
3213 # can be detected and how.
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220#include <ac_nonexistent.h>
3221_ACEOF
3222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } >/dev/null; then
3230 if test -s conftest.err; then
3231 ac_cpp_err=$ac_c_preproc_warn_flag
3232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3233 else
3234 ac_cpp_err=
3235 fi
3236else
3237 ac_cpp_err=yes
3238fi
3239if test -z "$ac_cpp_err"; then
3240 # Broken: success on invalid input.
3241continue
3242else
3243 echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 # Passes both tests.
3247ac_preproc_ok=:
3248break
3249fi
3250rm -f conftest.err conftest.$ac_ext
3251
3252done
3253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254rm -f conftest.err conftest.$ac_ext
3255if $ac_preproc_ok; then
3256 :
3257else
3258 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3259See \`config.log' for more details." >&5
3260echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3261See \`config.log' for more details." >&2;}
3262 { (exit 1); exit 1; }; }
3263fi
3264
John Criswell7a73b802003-06-30 21:59:07 +00003265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276if test -n "$ac_tool_prefix"; then
3277 for ac_prog in gcc
3278 do
3279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281echo "$as_me:$LINENO: checking for $ac_word" >&5
3282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283if test "${ac_cv_prog_CC+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300done
3301done
3302
3303fi
3304fi
3305CC=$ac_cv_prog_CC
3306if test -n "$CC"; then
3307 echo "$as_me:$LINENO: result: $CC" >&5
3308echo "${ECHO_T}$CC" >&6
3309else
3310 echo "$as_me:$LINENO: result: no" >&5
3311echo "${ECHO_T}no" >&6
3312fi
3313
3314 test -n "$CC" && break
3315 done
3316fi
3317if test -z "$CC"; then
3318 ac_ct_CC=$CC
3319 for ac_prog in gcc
3320do
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322set dummy $ac_prog; ac_word=$2
3323echo "$as_me:$LINENO: checking for $ac_word" >&5
3324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327else
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_ac_ct_CC="$ac_prog"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3341 fi
3342done
3343done
3344
3345fi
3346fi
3347ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348if test -n "$ac_ct_CC"; then
3349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350echo "${ECHO_T}$ac_ct_CC" >&6
3351else
3352 echo "$as_me:$LINENO: result: no" >&5
3353echo "${ECHO_T}no" >&6
3354fi
3355
3356 test -n "$ac_ct_CC" && break
3357done
3358
3359 CC=$ac_ct_CC
3360fi
3361
3362
John Criswell0c38eaf2003-09-10 15:17:25 +00003363test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3364See \`config.log' for more details." >&5
3365echo "$as_me: error: no acceptable C compiler found in \$PATH
3366See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003367 { (exit 1); exit 1; }; }
3368
3369# Provide some information about the compiler.
3370echo "$as_me:$LINENO:" \
3371 "checking for C compiler version" >&5
3372ac_compiler=`set X $ac_compile; echo $2`
3373{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3374 (eval $ac_compiler --version </dev/null >&5) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3379 (eval $ac_compiler -v </dev/null >&5) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3384 (eval $ac_compiler -V </dev/null >&5) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388
3389echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3390echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3391if test "${ac_cv_c_compiler_gnu+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003400
John Criswell7a73b802003-06-30 21:59:07 +00003401int
3402main ()
3403{
3404#ifndef __GNUC__
3405 choke me
3406#endif
3407
3408 ;
3409 return 0;
3410}
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003414 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003421 { ac_try='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 ac_compiler_gnu=yes
3435else
3436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003437sed 's/^/| /' conftest.$ac_ext >&5
3438
John Criswell7a73b802003-06-30 21:59:07 +00003439ac_compiler_gnu=no
3440fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003442ac_cv_c_compiler_gnu=$ac_compiler_gnu
3443
3444fi
3445echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3446echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3447GCC=`test $ac_compiler_gnu = yes && echo yes`
3448ac_test_CFLAGS=${CFLAGS+set}
3449ac_save_CFLAGS=$CFLAGS
3450CFLAGS="-g"
3451echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3452echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3453if test "${ac_cv_prog_cc_g+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003457/* confdefs.h. */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003462
John Criswell7a73b802003-06-30 21:59:07 +00003463int
3464main ()
3465{
3466
3467 ;
3468 return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext
3472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003473 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003474 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003480 { ac_try='test -z "$ac_c_werror_flag"
3481 || test ! -s conftest.err'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; } &&
3487 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3493 ac_cv_prog_cc_g=yes
3494else
3495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003496sed 's/^/| /' conftest.$ac_ext >&5
3497
John Criswell7a73b802003-06-30 21:59:07 +00003498ac_cv_prog_cc_g=no
3499fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003501fi
3502echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3503echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3504if test "$ac_test_CFLAGS" = set; then
3505 CFLAGS=$ac_save_CFLAGS
3506elif test $ac_cv_prog_cc_g = yes; then
3507 if test "$GCC" = yes; then
3508 CFLAGS="-g -O2"
3509 else
3510 CFLAGS="-g"
3511 fi
3512else
3513 if test "$GCC" = yes; then
3514 CFLAGS="-O2"
3515 else
3516 CFLAGS=
3517 fi
3518fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003519echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3520echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3521if test "${ac_cv_prog_cc_stdc+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 ac_cv_prog_cc_stdc=no
3525ac_save_CC=$CC
3526cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003527/* confdefs.h. */
3528_ACEOF
3529cat confdefs.h >>conftest.$ac_ext
3530cat >>conftest.$ac_ext <<_ACEOF
3531/* end confdefs.h. */
3532#include <stdarg.h>
3533#include <stdio.h>
3534#include <sys/types.h>
3535#include <sys/stat.h>
3536/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3537struct buf { int x; };
3538FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539static char *e (p, i)
3540 char **p;
3541 int i;
3542{
3543 return p[i];
3544}
3545static char *f (char * (*g) (char **, int), char **p, ...)
3546{
3547 char *s;
3548 va_list v;
3549 va_start (v,p);
3550 s = g (p, va_arg (v,int));
3551 va_end (v);
3552 return s;
3553}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003554
3555/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3556 function prototypes and stuff, but not '\xHH' hex character constants.
3557 These don't provoke an error unfortunately, instead are silently treated
3558 as 'x'. The following induces an error, until -std1 is added to get
3559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3560 array size at least. It's necessary to write '\x00'==0 to get something
3561 that's true only with -std1. */
3562int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563
John Criswell0c38eaf2003-09-10 15:17:25 +00003564int test (int i, double x);
3565struct s1 {int (*f) (int a);};
3566struct s2 {int (*f) (double a);};
3567int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3568int argc;
3569char **argv;
3570int
3571main ()
3572{
3573return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578# Don't try gcc -ansi; that turns off useful extensions and
3579# breaks some systems' header files.
3580# AIX -qlanglvl=ansi
3581# Ultrix and OSF/1 -std1
3582# HP-UX 10.20 and later -Ae
3583# HP-UX older versions -Aa -D_HPUX_SOURCE
3584# SVR4 -Xc -D__EXTENSIONS__
3585for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586do
3587 CC="$ac_save_CC $ac_arg"
3588 rm -f conftest.$ac_objext
3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003590 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003591 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_cv_prog_cc_stdc=$ac_arg
3611break
3612else
3613 echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003617rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003618done
3619rm -f conftest.$ac_ext conftest.$ac_objext
3620CC=$ac_save_CC
3621
3622fi
3623
3624case "x$ac_cv_prog_cc_stdc" in
3625 x|xno)
3626 echo "$as_me:$LINENO: result: none needed" >&5
3627echo "${ECHO_T}none needed" >&6 ;;
3628 *)
3629 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3630echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3631 CC="$CC $ac_cv_prog_cc_stdc" ;;
3632esac
3633
John Criswell7a73b802003-06-30 21:59:07 +00003634# Some people use a C++ compiler to compile C. Since we use `exit',
3635# in C++ we need to declare it. In case someone uses the same compiler
3636# for both compiling C and C++ we need to have the C++ compiler decide
3637# the declaration of exit, since it's the most demanding environment.
3638cat >conftest.$ac_ext <<_ACEOF
3639#ifndef __cplusplus
3640 choke me
3641#endif
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003645 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003666 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003667 'extern "C" void std::exit (int) throw (); using std::exit;' \
3668 'extern "C" void std::exit (int); using std::exit;' \
3669 'extern "C" void exit (int) throw ();' \
3670 'extern "C" void exit (int);' \
3671 'void exit (int);'
3672do
3673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003679$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003680#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003681int
3682main ()
3683{
3684exit (42);
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003691 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003692 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003706 { (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); }; }; then
3711 :
3712else
3713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003714sed 's/^/| /' conftest.$ac_ext >&5
3715
John Criswell7a73b802003-06-30 21:59:07 +00003716continue
3717fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003719 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003720/* confdefs.h. */
3721_ACEOF
3722cat confdefs.h >>conftest.$ac_ext
3723cat >>conftest.$ac_ext <<_ACEOF
3724/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003725$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003726int
3727main ()
3728{
3729exit (42);
3730 ;
3731 return 0;
3732}
3733_ACEOF
3734rm -f conftest.$ac_objext
3735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003736 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003738 grep -v '^ *+' conftest.er1 >conftest.err
3739 rm -f conftest.er1
3740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003743 { ac_try='test -z "$ac_c_werror_flag"
3744 || test ! -s conftest.err'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; } &&
3750 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 (eval $ac_try) 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3756 break
3757else
3758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003759sed 's/^/| /' conftest.$ac_ext >&5
3760
John Criswell7a73b802003-06-30 21:59:07 +00003761fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003763done
3764rm -f conftest*
3765if test -n "$ac_declaration"; then
3766 echo '#ifdef __cplusplus' >>confdefs.h
3767 echo $ac_declaration >>confdefs.h
3768 echo '#endif' >>confdefs.h
3769fi
3770
3771else
3772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003773sed 's/^/| /' conftest.$ac_ext >&5
3774
John Criswell7a73b802003-06-30 21:59:07 +00003775fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003783ac_ext=cc
3784ac_cpp='$CXXCPP $CPPFLAGS'
3785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3788if test -n "$ac_tool_prefix"; then
3789 for ac_prog in $CCC g++
3790 do
3791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3793echo "$as_me:$LINENO: checking for $ac_word" >&5
3794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003798 if test -n "$CXX"; then
3799 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003803do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812done
3813done
3814
3815fi
3816fi
3817CXX=$ac_cv_prog_CXX
3818if test -n "$CXX"; then
3819 echo "$as_me:$LINENO: result: $CXX" >&5
3820echo "${ECHO_T}$CXX" >&6
3821else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824fi
3825
3826 test -n "$CXX" && break
3827 done
3828fi
3829if test -z "$CXX"; then
3830 ac_ct_CXX=$CXX
3831 for ac_prog in $CCC g++
3832do
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834set dummy $ac_prog; ac_word=$2
3835echo "$as_me:$LINENO: checking for $ac_word" >&5
3836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3837if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840 if test -n "$ac_ct_CXX"; then
3841 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3842else
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_ac_ct_CXX="$ac_prog"
3851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854done
3855done
3856
3857fi
3858fi
3859ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3860if test -n "$ac_ct_CXX"; then
3861 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3862echo "${ECHO_T}$ac_ct_CXX" >&6
3863else
3864 echo "$as_me:$LINENO: result: no" >&5
3865echo "${ECHO_T}no" >&6
3866fi
3867
3868 test -n "$ac_ct_CXX" && break
3869done
3870test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3871
3872 CXX=$ac_ct_CXX
3873fi
3874
3875
3876# Provide some information about the compiler.
3877echo "$as_me:$LINENO:" \
3878 "checking for C++ compiler version" >&5
3879ac_compiler=`set X $ac_compile; echo $2`
3880{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3881 (eval $ac_compiler --version </dev/null >&5) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }
3885{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3886 (eval $ac_compiler -v </dev/null >&5) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }
3890{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3891 (eval $ac_compiler -V </dev/null >&5) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }
3895
3896echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3897echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3898if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
John Criswell7a73b802003-06-30 21:59:07 +00003901 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003907
3908int
3909main ()
3910{
3911#ifndef __GNUC__
3912 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003913#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003914
3915 ;
3916 return 0;
3917}
John Criswell7a73b802003-06-30 21:59:07 +00003918_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003919rm -f conftest.$ac_objext
3920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003922 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003923 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003927 (exit $ac_status); } &&
3928 { ac_try='test -z "$ac_cxx_werror_flag"
3929 || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_compiler_gnu=yes
3942else
3943 echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946ac_compiler_gnu=no
3947fi
3948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3950
3951fi
3952echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3953echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3954GXX=`test $ac_compiler_gnu = yes && echo yes`
3955ac_test_CXXFLAGS=${CXXFLAGS+set}
3956ac_save_CXXFLAGS=$CXXFLAGS
3957CXXFLAGS="-g"
3958echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3959echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3960if test "${ac_cv_prog_cxx_g+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h. */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h. */
3969
3970int
3971main ()
3972{
3973
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978rm -f conftest.$ac_objext
3979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_cxx_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_cv_prog_cxx_g=yes
4001else
4002 echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005ac_cv_prog_cxx_g=no
4006fi
4007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008fi
4009echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4010echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4011if test "$ac_test_CXXFLAGS" = set; then
4012 CXXFLAGS=$ac_save_CXXFLAGS
4013elif test $ac_cv_prog_cxx_g = yes; then
4014 if test "$GXX" = yes; then
4015 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004016 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004017 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004018 fi
4019else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004020 if test "$GXX" = yes; then
4021 CXXFLAGS="-O2"
4022 else
4023 CXXFLAGS=
4024 fi
John Criswell7a73b802003-06-30 21:59:07 +00004025fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004026for ac_declaration in \
4027 '' \
4028 'extern "C" void std::exit (int) throw (); using std::exit;' \
4029 'extern "C" void std::exit (int); using std::exit;' \
4030 'extern "C" void exit (int) throw ();' \
4031 'extern "C" void exit (int);' \
4032 'void exit (int);'
4033do
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040$ac_declaration
4041#include <stdlib.h>
4042int
4043main ()
4044{
4045exit (42);
4046 ;
4047 return 0;
4048}
4049_ACEOF
4050rm -f conftest.$ac_objext
4051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4052 (eval $ac_compile) 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_cxx_werror_flag"
4060 || test ! -s conftest.err'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; } &&
4066 { ac_try='test -s conftest.$ac_objext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004072 :
4073else
4074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004075sed 's/^/| /' conftest.$ac_ext >&5
4076
John Criswell7a73b802003-06-30 21:59:07 +00004077continue
4078fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004080 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004081/* confdefs.h. */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004086$ac_declaration
4087int
4088main ()
4089{
4090exit (42);
4091 ;
4092 return 0;
4093}
John Criswell7a73b802003-06-30 21:59:07 +00004094_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004095rm -f conftest.$ac_objext
4096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004098 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004099 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_cxx_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004117 break
John Criswell7a73b802003-06-30 21:59:07 +00004118else
4119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004120sed 's/^/| /' conftest.$ac_ext >&5
4121
John Criswell7a73b802003-06-30 21:59:07 +00004122fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004124done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004125rm -f conftest*
4126if test -n "$ac_declaration"; then
4127 echo '#ifdef __cplusplus' >>confdefs.h
4128 echo $ac_declaration >>confdefs.h
4129 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004130fi
4131
4132ac_ext=c
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
John Criswell7a73b802003-06-30 21:59:07 +00004138echo "$as_me:$LINENO: checking " >&5
4139echo $ECHO_N "checking ... $ECHO_C" >&6
4140if test "${ac_cv_has_flex+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142else
4143 for ac_prog in flex lex
4144do
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146set dummy $ac_prog; ac_word=$2
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149if test "${ac_cv_prog_LEX+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 if test -n "$LEX"; then
4153 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4154else
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_LEX="$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
4168
4169fi
4170fi
4171LEX=$ac_cv_prog_LEX
4172if test -n "$LEX"; then
4173 echo "$as_me:$LINENO: result: $LEX" >&5
4174echo "${ECHO_T}$LEX" >&6
4175else
4176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
4178fi
4179
4180 test -n "$LEX" && break
4181done
4182test -n "$LEX" || LEX=":"
4183
4184if test -z "$LEXLIB"
4185then
4186 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4187echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4188if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 ac_check_lib_save_LIBS=$LIBS
4192LIBS="-lfl $LIBS"
4193cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004199
4200/* Override any gcc2 internal prototype to avoid an error. */
4201#ifdef __cplusplus
4202extern "C"
4203#endif
4204/* We use char because int might match the return type of a gcc2
4205 builtin and then its argument prototype would still apply. */
4206char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004207int
4208main ()
4209{
4210yywrap ();
4211 ;
4212 return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext conftest$ac_exeext
4216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004217 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004218 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004224 { ac_try='test -z "$ac_c_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 ac_cv_lib_fl_yywrap=yes
4238else
4239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004240sed 's/^/| /' conftest.$ac_ext >&5
4241
John Criswell7a73b802003-06-30 21:59:07 +00004242ac_cv_lib_fl_yywrap=no
4243fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004244rm -f conftest.err conftest.$ac_objext \
4245 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004246LIBS=$ac_check_lib_save_LIBS
4247fi
4248echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4249echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4250if test $ac_cv_lib_fl_yywrap = yes; then
4251 LEXLIB="-lfl"
4252else
4253 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4254echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4255if test "${ac_cv_lib_l_yywrap+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258 ac_check_lib_save_LIBS=$LIBS
4259LIBS="-ll $LIBS"
4260cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004266
4267/* Override any gcc2 internal prototype to avoid an error. */
4268#ifdef __cplusplus
4269extern "C"
4270#endif
4271/* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4273char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004274int
4275main ()
4276{
4277yywrap ();
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext conftest$ac_exeext
4283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004284 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004285 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_lib_l_yywrap=yes
4305else
4306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004307sed 's/^/| /' conftest.$ac_ext >&5
4308
John Criswell7a73b802003-06-30 21:59:07 +00004309ac_cv_lib_l_yywrap=no
4310fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004311rm -f conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004313LIBS=$ac_check_lib_save_LIBS
4314fi
4315echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4316echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4317if test $ac_cv_lib_l_yywrap = yes; then
4318 LEXLIB="-ll"
4319fi
4320
4321fi
4322
4323fi
4324
4325if test "x$LEX" != "x:"; then
4326 echo "$as_me:$LINENO: checking lex output file root" >&5
4327echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4328if test "${ac_cv_prog_lex_root+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331 # The minimal lex program is just a single line: %%. But some broken lexes
4332# (Solaris, I think it was) want two %% lines, so accommodate them.
4333cat >conftest.l <<_ACEOF
4334%%
4335%%
4336_ACEOF
4337{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4338 (eval $LEX conftest.l) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }
4342if test -f lex.yy.c; then
4343 ac_cv_prog_lex_root=lex.yy
4344elif test -f lexyy.c; then
4345 ac_cv_prog_lex_root=lexyy
4346else
4347 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4348echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4349 { (exit 1); exit 1; }; }
4350fi
4351fi
4352echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4353echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4354rm -f conftest.l
4355LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4356
4357echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4358echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4359if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362 # POSIX says lex can declare yytext either as a pointer or an array; the
4363# default is implementation-dependent. Figure out which it is, since
4364# not all implementations provide the %pointer and %array declarations.
4365ac_cv_prog_lex_yytext_pointer=no
4366echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4367ac_save_LIBS=$LIBS
4368LIBS="$LIBS $LEXLIB"
4369cat >conftest.$ac_ext <<_ACEOF
4370`cat $LEX_OUTPUT_ROOT.c`
4371_ACEOF
4372rm -f conftest.$ac_objext conftest$ac_exeext
4373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004374 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004375 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004381 { ac_try='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 ac_cv_prog_lex_yytext_pointer=yes
4395else
4396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004397sed 's/^/| /' conftest.$ac_ext >&5
4398
John Criswell7a73b802003-06-30 21:59:07 +00004399fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004400rm -f conftest.err conftest.$ac_objext \
4401 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004402LIBS=$ac_save_LIBS
4403rm -f "${LEX_OUTPUT_ROOT}.c"
4404
4405fi
4406echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4407echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4408if test $ac_cv_prog_lex_yytext_pointer = yes; then
4409
4410cat >>confdefs.h <<\_ACEOF
4411#define YYTEXT_POINTER 1
4412_ACEOF
4413
4414fi
4415
4416fi
4417
4418fi
4419echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4420echo "${ECHO_T}$ac_cv_has_flex" >&6
4421if test "$LEX" != "flex"; then
4422 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4423echo "$as_me: error: flex not found but required" >&2;}
4424 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004425else
4426 FLEX=flex
4427
John Criswell7a73b802003-06-30 21:59:07 +00004428fi
4429
4430echo "$as_me:$LINENO: checking " >&5
4431echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004432if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435 for ac_prog in 'bison -y' byacc
4436do
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438set dummy $ac_prog; ac_word=$2
4439echo "$as_me:$LINENO: checking for $ac_word" >&5
4440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441if test "${ac_cv_prog_YACC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 if test -n "$YACC"; then
4445 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4446else
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_YACC="$ac_prog"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458done
4459done
4460
4461fi
4462fi
4463YACC=$ac_cv_prog_YACC
4464if test -n "$YACC"; then
4465 echo "$as_me:$LINENO: result: $YACC" >&5
4466echo "${ECHO_T}$YACC" >&6
4467else
4468 echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6
4470fi
4471
4472 test -n "$YACC" && break
4473done
4474test -n "$YACC" || YACC="yacc"
4475
John Criswell7a73b802003-06-30 21:59:07 +00004476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004477echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4478echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004479if test "$YACC" != "bison -y"; then
4480 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4481echo "$as_me: error: bison not found but required" >&2;}
4482 { (exit 1); exit 1; }; }
4483else
Brian Gaeke12810632004-01-13 06:52:10 +00004484 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004485
4486fi
4487
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004488echo "$as_me:$LINENO: checking for GNU make" >&5
4489echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4490if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004493 llvm_cv_gnu_make_command=''
4494 for a in "$MAKE" make gmake gnumake ; do
4495 if test -z "$a" ; then continue ; fi ;
4496 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4497 then
4498 llvm_cv_gnu_make_command=$a ;
4499 break;
John Criswell47fdd832003-07-14 16:52:07 +00004500 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004501 done
John Criswell7a73b802003-06-30 21:59:07 +00004502fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004503echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4504echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4505 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4506 ifGNUmake='' ;
4507 else
4508 ifGNUmake='#' ;
4509 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4510echo "${ECHO_T}\"Not found\"" >&6;
4511 fi
John Criswell7a73b802003-06-30 21:59:07 +00004512
John Criswell7a73b802003-06-30 21:59:07 +00004513
4514echo "$as_me:$LINENO: checking whether ln -s works" >&5
4515echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4516LN_S=$as_ln_s
4517if test "$LN_S" = "ln -s"; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
4520else
4521 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4522echo "${ECHO_T}no, using $LN_S" >&6
4523fi
4524
Reid Spencer8a2d4712004-12-16 17:48:14 +00004525# Extract the first word of "cmp", so it can be a program name with args.
4526set dummy cmp; ac_word=$2
4527echo "$as_me:$LINENO: checking for $ac_word" >&5
4528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529if test "${ac_cv_path_CMP+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 case $CMP in
4533 [\\/]* | ?:[\\/]*)
4534 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4535 ;;
4536 *)
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548done
4549done
4550
4551 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4552 ;;
4553esac
4554fi
4555CMP=$ac_cv_path_CMP
4556
4557if test -n "$CMP"; then
4558 echo "$as_me:$LINENO: result: $CMP" >&5
4559echo "${ECHO_T}$CMP" >&6
4560else
4561 echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563fi
4564
4565# Extract the first word of "cp", so it can be a program name with args.
4566set dummy cp; ac_word=$2
4567echo "$as_me:$LINENO: checking for $ac_word" >&5
4568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569if test "${ac_cv_path_CP+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572 case $CP in
4573 [\\/]* | ?:[\\/]*)
4574 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4575 ;;
4576 *)
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588done
4589done
4590
4591 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4592 ;;
4593esac
4594fi
4595CP=$ac_cv_path_CP
4596
4597if test -n "$CP"; then
4598 echo "$as_me:$LINENO: result: $CP" >&5
4599echo "${ECHO_T}$CP" >&6
4600else
4601 echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
4603fi
4604
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004605# Extract the first word of "date", so it can be a program name with args.
4606set dummy date; ac_word=$2
4607echo "$as_me:$LINENO: checking for $ac_word" >&5
4608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004612 case $DATE in
4613 [\\/]* | ?:[\\/]*)
4614 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004615 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004616 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004627 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004628done
4629done
John Criswell7a73b802003-06-30 21:59:07 +00004630
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004631 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004632 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004633esac
John Criswell7a73b802003-06-30 21:59:07 +00004634fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004635DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004636
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004637if test -n "$DATE"; then
4638 echo "$as_me:$LINENO: result: $DATE" >&5
4639echo "${ECHO_T}$DATE" >&6
4640else
4641 echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
4643fi
John Criswell7a73b802003-06-30 21:59:07 +00004644
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004645# Extract the first word of "find", so it can be a program name with args.
4646set dummy find; ac_word=$2
4647echo "$as_me:$LINENO: checking for $ac_word" >&5
4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004652 case $FIND in
4653 [\\/]* | ?:[\\/]*)
4654 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4655 ;;
4656 *)
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670
4671 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4672 ;;
4673esac
4674fi
4675FIND=$ac_cv_path_FIND
4676
4677if test -n "$FIND"; then
4678 echo "$as_me:$LINENO: result: $FIND" >&5
4679echo "${ECHO_T}$FIND" >&6
4680else
4681 echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6
4683fi
4684
4685# Extract the first word of "grep", so it can be a program name with args.
4686set dummy grep; ac_word=$2
4687echo "$as_me:$LINENO: checking for $ac_word" >&5
4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4689if test "${ac_cv_path_GREP+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692 case $GREP in
4693 [\\/]* | ?:[\\/]*)
4694 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4695 ;;
4696 *)
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708done
4709done
4710
4711 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4712 ;;
4713esac
4714fi
4715GREP=$ac_cv_path_GREP
4716
4717if test -n "$GREP"; then
4718 echo "$as_me:$LINENO: result: $GREP" >&5
4719echo "${ECHO_T}$GREP" >&6
4720else
4721 echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6
4723fi
4724
4725# Extract the first word of "mkdir", so it can be a program name with args.
4726set dummy mkdir; ac_word=$2
4727echo "$as_me:$LINENO: checking for $ac_word" >&5
4728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729if test "${ac_cv_path_MKDIR+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
4732 case $MKDIR in
4733 [\\/]* | ?:[\\/]*)
4734 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4735 ;;
4736 *)
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749done
4750
4751 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4752 ;;
4753esac
4754fi
4755MKDIR=$ac_cv_path_MKDIR
4756
4757if test -n "$MKDIR"; then
4758 echo "$as_me:$LINENO: result: $MKDIR" >&5
4759echo "${ECHO_T}$MKDIR" >&6
4760else
4761 echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763fi
4764
4765# Extract the first word of "mv", so it can be a program name with args.
4766set dummy mv; ac_word=$2
4767echo "$as_me:$LINENO: checking for $ac_word" >&5
4768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769if test "${ac_cv_path_MV+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771else
4772 case $MV in
4773 [\\/]* | ?:[\\/]*)
4774 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4775 ;;
4776 *)
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788done
4789done
4790
4791 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4792 ;;
4793esac
4794fi
4795MV=$ac_cv_path_MV
4796
4797if test -n "$MV"; then
4798 echo "$as_me:$LINENO: result: $MV" >&5
4799echo "${ECHO_T}$MV" >&6
4800else
4801 echo "$as_me:$LINENO: result: no" >&5
4802echo "${ECHO_T}no" >&6
4803fi
4804
4805# Extract the first word of "pax", so it can be a program name with args.
4806set dummy pax; ac_word=$2
4807echo "$as_me:$LINENO: checking for $ac_word" >&5
4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809if test "${ac_cv_path_PAX+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 case $PAX in
4813 [\\/]* | ?:[\\/]*)
4814 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4815 ;;
4816 *)
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828done
4829done
4830
4831 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4832 ;;
4833esac
4834fi
4835PAX=$ac_cv_path_PAX
4836
4837if test -n "$PAX"; then
4838 echo "$as_me:$LINENO: result: $PAX" >&5
4839echo "${ECHO_T}$PAX" >&6
4840else
4841 echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
4843fi
4844
4845if test -n "$ac_tool_prefix"; then
4846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4847set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4848echo "$as_me:$LINENO: checking for $ac_word" >&5
4849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850if test "${ac_cv_prog_RANLIB+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 if test -n "$RANLIB"; then
4854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4855else
4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867done
4868done
4869
4870fi
4871fi
4872RANLIB=$ac_cv_prog_RANLIB
4873if test -n "$RANLIB"; then
4874 echo "$as_me:$LINENO: result: $RANLIB" >&5
4875echo "${ECHO_T}$RANLIB" >&6
4876else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879fi
4880
4881fi
4882if test -z "$ac_cv_prog_RANLIB"; then
4883 ac_ct_RANLIB=$RANLIB
4884 # Extract the first word of "ranlib", so it can be a program name with args.
4885set dummy ranlib; ac_word=$2
4886echo "$as_me:$LINENO: checking for $ac_word" >&5
4887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 if test -n "$ac_ct_RANLIB"; then
4892 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_ac_ct_RANLIB="ranlib"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905done
4906done
4907
4908 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4909fi
4910fi
4911ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4912if test -n "$ac_ct_RANLIB"; then
4913 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4914echo "${ECHO_T}$ac_ct_RANLIB" >&6
4915else
4916 echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918fi
4919
4920 RANLIB=$ac_ct_RANLIB
4921else
4922 RANLIB="$ac_cv_prog_RANLIB"
4923fi
4924
4925# Extract the first word of "rm", so it can be a program name with args.
4926set dummy rm; ac_word=$2
4927echo "$as_me:$LINENO: checking for $ac_word" >&5
4928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4929if test "${ac_cv_path_RM+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932 case $RM in
4933 [\\/]* | ?:[\\/]*)
4934 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4935 ;;
4936 *)
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948done
4949done
4950
4951 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4952 ;;
4953esac
4954fi
4955RM=$ac_cv_path_RM
4956
4957if test -n "$RM"; then
4958 echo "$as_me:$LINENO: result: $RM" >&5
4959echo "${ECHO_T}$RM" >&6
4960else
4961 echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963fi
4964
4965# Extract the first word of "sed", so it can be a program name with args.
4966set dummy sed; ac_word=$2
4967echo "$as_me:$LINENO: checking for $ac_word" >&5
4968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969if test "${ac_cv_path_SED+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972 case $SED in
4973 [\\/]* | ?:[\\/]*)
4974 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4975 ;;
4976 *)
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988done
4989done
4990
4991 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4992 ;;
4993esac
4994fi
4995SED=$ac_cv_path_SED
4996
4997if test -n "$SED"; then
4998 echo "$as_me:$LINENO: result: $SED" >&5
4999echo "${ECHO_T}$SED" >&6
5000else
5001 echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
5003fi
5004
5005# Extract the first word of "tar", so it can be a program name with args.
5006set dummy tar; ac_word=$2
5007echo "$as_me:$LINENO: checking for $ac_word" >&5
5008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009if test "${ac_cv_path_TAR+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 case $TAR in
5013 [\\/]* | ?:[\\/]*)
5014 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5015 ;;
5016 *)
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028done
5029done
5030
5031 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5032 ;;
5033esac
5034fi
5035TAR=$ac_cv_path_TAR
5036
5037if test -n "$TAR"; then
5038 echo "$as_me:$LINENO: result: $TAR" >&5
5039echo "${ECHO_T}$TAR" >&6
5040else
5041 echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043fi
5044
5045
5046# Find a good install program. We prefer a C program (faster),
5047# so one script is as good as another. But avoid the broken or
5048# incompatible versions:
5049# SysV /etc/install, /usr/sbin/install
5050# SunOS /usr/etc/install
5051# IRIX /sbin/install
5052# AIX /bin/install
5053# AmigaOS /C/install, which installs bootblocks on floppy discs
5054# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5055# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5056# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5057# OS/2's system install, which has a completely different semantic
5058# ./install, which can be erroneously created by make from ./install.sh.
5059echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5060echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5061if test -z "$INSTALL"; then
5062if test "${ac_cv_path_install+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH
5067do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 # Account for people who put trailing slashes in PATH elements.
5071case $as_dir/ in
5072 ./ | .// | /cC/* | \
5073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5074 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5075 /usr/ucb/* ) ;;
5076 *)
5077 # OSF1 and SCO ODT 3.0 have their own names for install.
5078 # Don't use installbsd from OSF since it installs stuff as root
5079 # by default.
5080 for ac_prog in ginstall scoinst install; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5083 if test $ac_prog = install &&
5084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5085 # AIX install. It has an incompatible calling convention.
5086 :
5087 elif test $ac_prog = install &&
5088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5089 # program-specific install script used by HP pwplus--don't use.
5090 :
5091 else
5092 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5093 break 3
5094 fi
5095 fi
5096 done
5097 done
5098 ;;
5099esac
5100done
5101
5102
5103fi
5104 if test "${ac_cv_path_install+set}" = set; then
5105 INSTALL=$ac_cv_path_install
5106 else
5107 # As a last resort, use the slow shell script. We don't cache a
5108 # path for INSTALL within a source directory, because that will
5109 # break other packages using the cache if that directory is
5110 # removed, or if the path is relative.
5111 INSTALL=$ac_install_sh
5112 fi
5113fi
5114echo "$as_me:$LINENO: result: $INSTALL" >&5
5115echo "${ECHO_T}$INSTALL" >&6
5116
5117# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5118# It thinks the first close brace ends the variable substitution.
5119test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5120
5121test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5122
5123test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5124
5125
5126# Extract the first word of "bzip2", so it can be a program name with args.
5127set dummy bzip2; ac_word=$2
5128echo "$as_me:$LINENO: checking for $ac_word" >&5
5129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130if test "${ac_cv_path_BZIP2+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133 case $BZIP2 in
5134 [\\/]* | ?:[\\/]*)
5135 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5136 ;;
5137 *)
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149done
5150done
5151
5152 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5153 ;;
5154esac
5155fi
5156BZIP2=$ac_cv_path_BZIP2
5157
5158if test -n "$BZIP2"; then
5159 echo "$as_me:$LINENO: result: $BZIP2" >&5
5160echo "${ECHO_T}$BZIP2" >&6
5161else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164fi
5165
5166# Extract the first word of "dot", so it can be a program name with args.
5167set dummy dot; ac_word=$2
5168echo "$as_me:$LINENO: checking for $ac_word" >&5
5169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170if test "${ac_cv_path_DOT+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173 case $DOT in
5174 [\\/]* | ?:[\\/]*)
5175 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5176 ;;
5177 *)
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189done
5190done
5191
5192 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5193 ;;
5194esac
5195fi
5196DOT=$ac_cv_path_DOT
5197
5198if test -n "$DOT"; then
5199 echo "$as_me:$LINENO: result: $DOT" >&5
5200echo "${ECHO_T}$DOT" >&6
5201else
5202 echo "$as_me:$LINENO: result: no" >&5
5203echo "${ECHO_T}no" >&6
5204fi
5205
5206# Extract the first word of "doxygen", so it can be a program name with args.
5207set dummy doxygen; ac_word=$2
5208echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210if test "${ac_cv_path_DOXYGEN+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213 case $DOXYGEN in
5214 [\\/]* | ?:[\\/]*)
5215 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5216 ;;
5217 *)
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230done
5231
5232 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5233 ;;
5234esac
5235fi
5236DOXYGEN=$ac_cv_path_DOXYGEN
5237
5238if test -n "$DOXYGEN"; then
5239 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5240echo "${ECHO_T}$DOXYGEN" >&6
5241else
5242 echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246# Extract the first word of "etags", so it can be a program name with args.
5247set dummy etags; ac_word=$2
5248echo "$as_me:$LINENO: checking for $ac_word" >&5
5249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250if test "${ac_cv_path_ETAGS+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253 case $ETAGS in
5254 [\\/]* | ?:[\\/]*)
5255 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5256 ;;
5257 *)
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269done
5270done
5271
5272 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5273 ;;
5274esac
5275fi
5276ETAGS=$ac_cv_path_ETAGS
5277
5278if test -n "$ETAGS"; then
5279 echo "$as_me:$LINENO: result: $ETAGS" >&5
5280echo "${ECHO_T}$ETAGS" >&6
5281else
5282 echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
5284fi
5285
5286# Extract the first word of "groff", so it can be a program name with args.
5287set dummy groff; ac_word=$2
5288echo "$as_me:$LINENO: checking for $ac_word" >&5
5289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290if test "${ac_cv_path_GROFF+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293 case $GROFF in
5294 [\\/]* | ?:[\\/]*)
5295 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5296 ;;
5297 *)
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309done
5310done
5311
5312 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5313 ;;
5314esac
5315fi
5316GROFF=$ac_cv_path_GROFF
5317
5318if test -n "$GROFF"; then
5319 echo "$as_me:$LINENO: result: $GROFF" >&5
5320echo "${ECHO_T}$GROFF" >&6
5321else
5322 echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324fi
5325
5326# Extract the first word of "gzip", so it can be a program name with args.
5327set dummy gzip; ac_word=$2
5328echo "$as_me:$LINENO: checking for $ac_word" >&5
5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330if test "${ac_cv_path_GZIP+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 case $GZIP in
5334 [\\/]* | ?:[\\/]*)
5335 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5336 ;;
5337 *)
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339for as_dir in $PATH
5340do
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5348 fi
5349done
5350done
5351
5352 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5353 ;;
5354esac
5355fi
5356GZIP=$ac_cv_path_GZIP
5357
5358if test -n "$GZIP"; then
5359 echo "$as_me:$LINENO: result: $GZIP" >&5
5360echo "${ECHO_T}$GZIP" >&6
5361else
5362 echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6
5364fi
5365
5366# Extract the first word of "pod2html", so it can be a program name with args.
5367set dummy pod2html; ac_word=$2
5368echo "$as_me:$LINENO: checking for $ac_word" >&5
5369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370if test "${ac_cv_path_POD2HTML+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373 case $POD2HTML in
5374 [\\/]* | ?:[\\/]*)
5375 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5376 ;;
5377 *)
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389done
5390done
5391
5392 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5393 ;;
5394esac
5395fi
5396POD2HTML=$ac_cv_path_POD2HTML
5397
5398if test -n "$POD2HTML"; then
5399 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5400echo "${ECHO_T}$POD2HTML" >&6
5401else
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404fi
5405
5406# Extract the first word of "pod2man", so it can be a program name with args.
5407set dummy pod2man; ac_word=$2
5408echo "$as_me:$LINENO: checking for $ac_word" >&5
5409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410if test "${ac_cv_path_POD2MAN+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 case $POD2MAN in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5416 ;;
5417 *)
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429done
5430done
5431
5432 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5433 ;;
5434esac
5435fi
5436POD2MAN=$ac_cv_path_POD2MAN
5437
5438if test -n "$POD2MAN"; then
5439 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5440echo "${ECHO_T}$POD2MAN" >&6
5441else
5442 echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6
5444fi
5445
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005446# Extract the first word of "runtest", so it can be a program name with args.
5447set dummy runtest; ac_word=$2
5448echo "$as_me:$LINENO: checking for $ac_word" >&5
5449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450if test "${ac_cv_path_RUNTEST+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453 case $RUNTEST in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5456 ;;
5457 *)
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469done
5470done
5471
5472 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5473 ;;
5474esac
5475fi
5476RUNTEST=$ac_cv_path_RUNTEST
5477
5478if test -n "$RUNTEST"; then
5479 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5480echo "${ECHO_T}$RUNTEST" >&6
5481else
5482 echo "$as_me:$LINENO: result: no" >&5
5483echo "${ECHO_T}no" >&6
5484fi
5485
Reid Spencer0fcb9412004-11-30 08:11:54 +00005486
Reid Spencer0fcb9412004-11-30 08:11:54 +00005487no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005488echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5489echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005490
5491# Check whether --with-tclinclude or --without-tclinclude was given.
5492if test "${with_tclinclude+set}" = set; then
5493 withval="$with_tclinclude"
5494 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005495else
5496 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005497fi;
5498if test "${ac_cv_path_tclsh+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501
5502if test x"${with_tclinclude}" != x ; then
5503 if test -f ${with_tclinclude}/tclsh ; then
5504 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5505 elif test -f ${with_tclinclude}/src/tclsh ; then
5506 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5507 else
5508 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5509echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5510 { (exit 1); exit 1; }; }
5511 fi
5512fi
5513
Reid Spencer0fcb9412004-11-30 08:11:54 +00005514if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005515 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005516echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005517 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 +00005518do
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005521echo "$as_me:$LINENO: checking for $ac_word" >&5
5522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005523if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
Reid Spencercda35f82004-12-02 04:17:20 +00005526 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005527 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005528 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005529 ;;
5530 *)
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005538 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542done
5543done
5544
5545 ;;
5546esac
5547fi
Reid Spencercda35f82004-12-02 04:17:20 +00005548TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005549
Reid Spencercda35f82004-12-02 04:17:20 +00005550if test -n "$TCLSH"; then
5551 echo "$as_me:$LINENO: result: $TCLSH" >&5
5552echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005553else
5554 echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6
5556fi
5557
Reid Spencercda35f82004-12-02 04:17:20 +00005558 test -n "$TCLSH" && break
5559done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005560
Reid Spencercda35f82004-12-02 04:17:20 +00005561 if test x"${TCLSH}" = x ; then
5562 ac_cv_path_tclsh='';
5563 else
5564 ac_cv_path_tclsh="${TCLSH}";
5565 fi
5566else
5567 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5568echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5569 TCLSH="${ac_cv_path_tclsh}"
5570
5571fi
5572
5573fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005574
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005575# Extract the first word of "zip", so it can be a program name with args.
5576set dummy zip; ac_word=$2
5577echo "$as_me:$LINENO: checking for $ac_word" >&5
5578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5579if test "${ac_cv_path_ZIP+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582 case $ZIP in
5583 [\\/]* | ?:[\\/]*)
5584 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5585 ;;
5586 *)
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5597 fi
5598done
5599done
5600
5601 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5602 ;;
5603esac
5604fi
5605ZIP=$ac_cv_path_ZIP
5606
5607if test -n "$ZIP"; then
5608 echo "$as_me:$LINENO: result: $ZIP" >&5
5609echo "${ECHO_T}$ZIP" >&6
5610else
5611 echo "$as_me:$LINENO: result: no" >&5
5612echo "${ECHO_T}no" >&6
5613fi
5614
5615
5616echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5617echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5618if test "${llvm_cv_link_use_r+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005622ac_cpp='$CPP $CPPFLAGS'
5623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005627 oldcflags="$CFLAGS"
5628 CFLAGS="$CFLAGS -Wl,-R."
5629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005635
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005636int
5637main ()
5638{
5639int main() { return 0; }
5640 ;
5641 return 0;
5642}
John Criswell47fdd832003-07-14 16:52:07 +00005643_ACEOF
5644rm -f conftest.$ac_objext conftest$ac_exeext
5645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005646 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005652 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005653 { ac_try='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005666 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005667else
John Criswell47fdd832003-07-14 16:52:07 +00005668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005669sed 's/^/| /' conftest.$ac_ext >&5
5670
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005671llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005672fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005673rm -f conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005675 CFLAGS="$oldcflags"
5676 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005682
John Criswell7a73b802003-06-30 21:59:07 +00005683fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005684echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5685echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5686if test "$llvm_cv_link_use_r" = yes ; then
5687
5688cat >>confdefs.h <<\_ACEOF
5689#define HAVE_LINK_R 1
5690_ACEOF
5691
John Criswell47fdd832003-07-14 16:52:07 +00005692 fi
John Criswell47fdd832003-07-14 16:52:07 +00005693
John Criswell47fdd832003-07-14 16:52:07 +00005694
John Criswell47fdd832003-07-14 16:52:07 +00005695
John Criswell7a73b802003-06-30 21:59:07 +00005696
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005697echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5698echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5699if test "${ac_cv_c_const+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708
5709int
5710main ()
5711{
5712/* FIXME: Include the comments suggested by Paul. */
5713#ifndef __cplusplus
5714 /* Ultrix mips cc rejects this. */
5715 typedef int charset[2];
5716 const charset x;
5717 /* SunOS 4.1.1 cc rejects this. */
5718 char const *const *ccp;
5719 char **p;
5720 /* NEC SVR4.0.2 mips cc rejects this. */
5721 struct point {int x, y;};
5722 static struct point const zero = {0,0};
5723 /* AIX XL C 1.02.0.0 rejects this.
5724 It does not let you subtract one const X* pointer from another in
5725 an arm of an if-expression whose if-part is not a constant
5726 expression */
5727 const char *g = "string";
5728 ccp = &g + (g ? g-g : 0);
5729 /* HPUX 7.0 cc rejects these. */
5730 ++ccp;
5731 p = (char**) ccp;
5732 ccp = (char const *const *) p;
5733 { /* SCO 3.2v4 cc rejects this. */
5734 char *t;
5735 char const *s = 0 ? (char *) 0 : (char const *) 0;
5736
5737 *t++ = 0;
5738 }
5739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5740 int x[] = {25, 17};
5741 const int *foo = &x[0];
5742 ++foo;
5743 }
5744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5745 typedef const int *iptr;
5746 iptr p = 0;
5747 ++p;
5748 }
5749 { /* AIX XL C 1.02.0.0 rejects this saying
5750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5751 struct s { int j; const int *ap[3]; };
5752 struct s *b; b->j = 5;
5753 }
5754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5755 const int foo = 10;
5756 }
5757#endif
5758
5759 ;
5760 return 0;
5761}
5762_ACEOF
5763rm -f conftest.$ac_objext
5764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag"
5773 || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_cv_c_const=yes
5786else
5787 echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790ac_cv_c_const=no
5791fi
5792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793fi
5794echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5795echo "${ECHO_T}$ac_cv_c_const" >&6
5796if test $ac_cv_c_const = no; then
5797
5798cat >>confdefs.h <<\_ACEOF
5799#define const
5800_ACEOF
5801
5802fi
5803
5804
5805echo "$as_me:$LINENO: checking for egrep" >&5
5806echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5807if test "${ac_cv_prog_egrep+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5811 then ac_cv_prog_egrep='grep -E'
5812 else ac_cv_prog_egrep='egrep'
5813 fi
5814fi
5815echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5816echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5817 EGREP=$ac_cv_prog_egrep
5818
John Criswell7a73b802003-06-30 21:59:07 +00005819
5820echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5822if test "${ac_cv_header_stdc+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005826/* confdefs.h. */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005831#include <stdlib.h>
5832#include <stdarg.h>
5833#include <string.h>
5834#include <float.h>
5835
John Criswell0c38eaf2003-09-10 15:17:25 +00005836int
5837main ()
5838{
5839
5840 ;
5841 return 0;
5842}
John Criswell7a73b802003-06-30 21:59:07 +00005843_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005844rm -f conftest.$ac_objext
5845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005846 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005847 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005852 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005853 { ac_try='test -z "$ac_c_werror_flag"
5854 || test ! -s conftest.err'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005866 ac_cv_header_stdc=yes
5867else
5868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005872fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005874
5875if test $ac_cv_header_stdc = yes; then
5876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5877 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005878/* confdefs.h. */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005883#include <string.h>
5884
5885_ACEOF
5886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005887 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005888 :
5889else
5890 ac_cv_header_stdc=no
5891fi
5892rm -f conftest*
5893
5894fi
5895
5896if test $ac_cv_header_stdc = yes; then
5897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5898 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005904#include <stdlib.h>
5905
5906_ACEOF
5907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005908 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005909 :
5910else
5911 ac_cv_header_stdc=no
5912fi
5913rm -f conftest*
5914
5915fi
5916
5917if test $ac_cv_header_stdc = yes; then
5918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5919 if test "$cross_compiling" = yes; then
5920 :
5921else
5922 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005928#include <ctype.h>
5929#if ((' ' & 0x0FF) == 0x020)
5930# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5931# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5932#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005933# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005934 (('a' <= (c) && (c) <= 'i') \
5935 || ('j' <= (c) && (c) <= 'r') \
5936 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005937# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5938#endif
5939
5940#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5941int
5942main ()
5943{
5944 int i;
5945 for (i = 0; i < 256; i++)
5946 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005947 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005948 exit(2);
5949 exit (0);
5950}
5951_ACEOF
5952rm -f conftest$ac_exeext
5953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 :
5964else
5965 echo "$as_me: program exited with status $ac_status" >&5
5966echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005967sed 's/^/| /' conftest.$ac_ext >&5
5968
John Criswell7a73b802003-06-30 21:59:07 +00005969( exit $ac_status )
5970ac_cv_header_stdc=no
5971fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005973fi
5974fi
5975fi
5976echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5977echo "${ECHO_T}$ac_cv_header_stdc" >&6
5978if test $ac_cv_header_stdc = yes; then
5979
5980cat >>confdefs.h <<\_ACEOF
5981#define STDC_HEADERS 1
5982_ACEOF
5983
5984fi
5985
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005986
5987
5988
5989
5990
5991ac_header_dirent=no
5992for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5993 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5994echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5995echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5996if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999 cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h. */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h. */
6005#include <sys/types.h>
6006#include <$ac_hdr>
6007
6008int
6009main ()
6010{
6011if ((DIR *) 0)
6012return 0;
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 eval "$as_ac_Header=yes"
6040else
6041 echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044eval "$as_ac_Header=no"
6045fi
6046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
6048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6053_ACEOF
6054
6055ac_header_dirent=$ac_hdr; break
6056fi
6057
6058done
6059# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6060if test $ac_header_dirent = dirent.h; then
6061 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6062echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6063if test "${ac_cv_search_opendir+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066 ac_func_search_save_LIBS=$LIBS
6067ac_cv_search_opendir=no
6068cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h. */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h. */
6074
6075/* Override any gcc2 internal prototype to avoid an error. */
6076#ifdef __cplusplus
6077extern "C"
6078#endif
6079/* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6081char opendir ();
6082int
6083main ()
6084{
6085opendir ();
6086 ;
6087 return 0;
6088}
6089_ACEOF
6090rm -f conftest.$ac_objext conftest$ac_exeext
6091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -z "$ac_c_werror_flag"
6100 || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest$ac_exeext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_search_opendir="none required"
6113else
6114 echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117fi
6118rm -f conftest.err conftest.$ac_objext \
6119 conftest$ac_exeext conftest.$ac_ext
6120if test "$ac_cv_search_opendir" = no; then
6121 for ac_lib in dir; do
6122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6123 cat >conftest.$ac_ext <<_ACEOF
6124/* confdefs.h. */
6125_ACEOF
6126cat confdefs.h >>conftest.$ac_ext
6127cat >>conftest.$ac_ext <<_ACEOF
6128/* end confdefs.h. */
6129
6130/* Override any gcc2 internal prototype to avoid an error. */
6131#ifdef __cplusplus
6132extern "C"
6133#endif
6134/* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6136char opendir ();
6137int
6138main ()
6139{
6140opendir ();
6141 ;
6142 return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>conftest.er1
6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -z "$ac_c_werror_flag"
6155 || test ! -s conftest.err'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest$ac_exeext'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 ac_cv_search_opendir="-l$ac_lib"
6168break
6169else
6170 echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173fi
6174rm -f conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6176 done
6177fi
6178LIBS=$ac_func_search_save_LIBS
6179fi
6180echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6181echo "${ECHO_T}$ac_cv_search_opendir" >&6
6182if test "$ac_cv_search_opendir" != no; then
6183 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6184
6185fi
6186
6187else
6188 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6189echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6190if test "${ac_cv_search_opendir+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192else
6193 ac_func_search_save_LIBS=$LIBS
6194ac_cv_search_opendir=no
6195cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h. */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h. */
6201
6202/* Override any gcc2 internal prototype to avoid an error. */
6203#ifdef __cplusplus
6204extern "C"
6205#endif
6206/* We use char because int might match the return type of a gcc2
6207 builtin and then its argument prototype would still apply. */
6208char opendir ();
6209int
6210main ()
6211{
6212opendir ();
6213 ;
6214 return 0;
6215}
6216_ACEOF
6217rm -f conftest.$ac_objext conftest$ac_exeext
6218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219 (eval $ac_link) 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest$ac_exeext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 ac_cv_search_opendir="none required"
6240else
6241 echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
6243
6244fi
6245rm -f conftest.err conftest.$ac_objext \
6246 conftest$ac_exeext conftest.$ac_ext
6247if test "$ac_cv_search_opendir" = no; then
6248 for ac_lib in x; do
6249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6250 cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256
6257/* Override any gcc2 internal prototype to avoid an error. */
6258#ifdef __cplusplus
6259extern "C"
6260#endif
6261/* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6263char opendir ();
6264int
6265main ()
6266{
6267opendir ();
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext conftest$ac_exeext
6273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_search_opendir="-l$ac_lib"
6295break
6296else
6297 echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300fi
6301rm -f conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303 done
6304fi
6305LIBS=$ac_func_search_save_LIBS
6306fi
6307echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6308echo "${ECHO_T}$ac_cv_search_opendir" >&6
6309if test "$ac_cv_search_opendir" != no; then
6310 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6311
6312fi
6313
6314fi
6315
John Criswell7a73b802003-06-30 21:59:07 +00006316# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006327 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006328do
6329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330echo "$as_me:$LINENO: checking for $ac_header" >&5
6331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006336/* confdefs.h. */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006341$ac_includes_default
6342
6343#include <$ac_header>
6344_ACEOF
6345rm -f conftest.$ac_objext
6346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006347 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006348 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006354 { ac_try='test -z "$ac_c_werror_flag"
6355 || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 eval "$as_ac_Header=yes"
6368else
6369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006370sed 's/^/| /' conftest.$ac_ext >&5
6371
John Criswell7a73b802003-06-30 21:59:07 +00006372eval "$as_ac_Header=no"
6373fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006375fi
6376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378if test `eval echo '${'$as_ac_Header'}'` = yes; then
6379 cat >>confdefs.h <<_ACEOF
6380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381_ACEOF
6382
6383fi
6384
6385done
6386
6387
6388
6389for ac_header in dlfcn.h
6390do
6391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006392if eval "test \"\${$as_ac_Header+set}\" = set"; then
6393 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006397fi
6398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006400else
Brian Gaeke0a621332004-09-08 20:38:05 +00006401 # Is the header compilable?
6402echo "$as_me:$LINENO: checking $ac_header usability" >&5
6403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6404cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006405/* confdefs.h. */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006410$ac_includes_default
6411#include <$ac_header>
6412_ACEOF
6413rm -f conftest.$ac_objext
6414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006415 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006416 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006422 { ac_try='test -z "$ac_c_werror_flag"
6423 || test ! -s conftest.err'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006435 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006436else
6437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006438sed 's/^/| /' conftest.$ac_ext >&5
6439
Brian Gaeke0a621332004-09-08 20:38:05 +00006440ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006441fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6444echo "${ECHO_T}$ac_header_compiler" >&6
6445
6446# Is the header present?
6447echo "$as_me:$LINENO: checking $ac_header presence" >&5
6448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6449cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006450/* confdefs.h. */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h. */
6455#include <$ac_header>
6456_ACEOF
6457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } >/dev/null; then
6465 if test -s conftest.err; then
6466 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006468 else
6469 ac_cpp_err=
6470 fi
6471else
6472 ac_cpp_err=yes
6473fi
6474if test -z "$ac_cpp_err"; then
6475 ac_header_preproc=yes
6476else
6477 echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480 ac_header_preproc=no
6481fi
6482rm -f conftest.err conftest.$ac_ext
6483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6484echo "${ECHO_T}$ac_header_preproc" >&6
6485
6486# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6488 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6492echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6493 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006494 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006495 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6499echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6501echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6503echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6507echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006508 (
6509 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006510## ----------------------------------- ##
6511## Report this to llvmbugs@cs.uiuc.edu ##
6512## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006513_ASBOX
6514 ) |
6515 sed "s/^/$as_me: WARNING: /" >&2
6516 ;;
6517esac
6518echo "$as_me:$LINENO: checking for $ac_header" >&5
6519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6520if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006523 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006524fi
6525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006527
6528fi
John Criswell7a73b802003-06-30 21:59:07 +00006529if test `eval echo '${'$as_ac_Header'}'` = yes; then
6530 cat >>confdefs.h <<_ACEOF
6531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6532_ACEOF
6533
6534fi
6535
6536done
6537
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006538# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6539if test "${enable_ltdl_install+set}" = set; then
6540 enableval="$enable_ltdl_install"
6541
6542fi;
6543
6544
6545
6546if test x"${enable_ltdl_install-no}" != xno; then
6547 INSTALL_LTDL_TRUE=
6548 INSTALL_LTDL_FALSE='#'
6549else
6550 INSTALL_LTDL_TRUE='#'
6551 INSTALL_LTDL_FALSE=
6552fi
6553
6554
6555
6556if test x"${enable_ltdl_convenience-no}" != xno; then
6557 CONVENIENCE_LTDL_TRUE=
6558 CONVENIENCE_LTDL_FALSE='#'
6559else
6560 CONVENIENCE_LTDL_TRUE='#'
6561 CONVENIENCE_LTDL_FALSE=
6562fi
6563
6564
6565echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6566echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6567library_names_spec=
6568libname_spec='lib$name'
6569soname_spec=
6570shrext_cmds=".so"
6571postinstall_cmds=
6572postuninstall_cmds=
6573finish_cmds=
6574finish_eval=
6575shlibpath_var=
6576shlibpath_overrides_runpath=unknown
6577version_type=none
6578dynamic_linker="$host_os ld.so"
6579sys_lib_dlsearch_path_spec="/lib /usr/lib"
6580if test "$GCC" = yes; then
6581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6582 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6583 # if the path contains ";" then we assume it to be the separator
6584 # otherwise default to the standard path separator (i.e. ":") - it is
6585 # assumed that no part of a normal pathname contains ";" but that should
6586 # okay in the real world where ";" in dirpaths is itself problematic.
6587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6588 else
6589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6590 fi
6591else
6592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6593fi
6594need_lib_prefix=unknown
6595hardcode_into_libs=no
6596
6597# when you set need_version to no, make sure it does not cause -set_version
6598# flags to be left without arguments
6599need_version=unknown
6600
6601case $host_os in
6602aix3*)
6603 version_type=linux
6604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6605 shlibpath_var=LIBPATH
6606
6607 # AIX 3 has no versioning support, so we append a major version to the name.
6608 soname_spec='${libname}${release}${shared_ext}$major'
6609 ;;
6610
6611aix4* | aix5*)
6612 version_type=linux
6613 need_lib_prefix=no
6614 need_version=no
6615 hardcode_into_libs=yes
6616 if test "$host_cpu" = ia64; then
6617 # AIX 5 supports IA64
6618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6619 shlibpath_var=LD_LIBRARY_PATH
6620 else
6621 # With GCC up to 2.95.x, collect2 would create an import file
6622 # for dependence libraries. The import file would start with
6623 # the line `#! .'. This would cause the generated library to
6624 # depend on `.', always an invalid library. This was fixed in
6625 # development snapshots of GCC prior to 3.0.
6626 case $host_os in
6627 aix4 | aix4.[01] | aix4.[01].*)
6628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6629 echo ' yes '
6630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6631 :
6632 else
6633 can_build_shared=no
6634 fi
6635 ;;
6636 esac
6637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6638 # soname into executable. Probably we can add versioning support to
6639 # collect2, so additional links can be useful in future.
6640 if test "$aix_use_runtimelinking" = yes; then
6641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6642 # instead of lib<name>.a to let people know that these are not
6643 # typical AIX shared libraries.
6644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6645 else
6646 # We preserve .a as extension for shared libraries through AIX4.2
6647 # and later when we are not doing run time linking.
6648 library_names_spec='${libname}${release}.a $libname.a'
6649 soname_spec='${libname}${release}${shared_ext}$major'
6650 fi
6651 shlibpath_var=LIBPATH
6652 fi
6653 ;;
6654
6655amigaos*)
6656 library_names_spec='$libname.ixlibrary $libname.a'
6657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6658 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'
6659 ;;
6660
6661beos*)
6662 library_names_spec='${libname}${shared_ext}'
6663 dynamic_linker="$host_os ld.so"
6664 shlibpath_var=LIBRARY_PATH
6665 ;;
6666
6667bsdi[45]*)
6668 version_type=linux
6669 need_version=no
6670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6671 soname_spec='${libname}${release}${shared_ext}$major'
6672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6673 shlibpath_var=LD_LIBRARY_PATH
6674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6676 # the default ld.so.conf also contains /usr/contrib/lib and
6677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6678 # libtool to hard-code these into programs
6679 ;;
6680
6681cygwin* | mingw* | pw32*)
6682 version_type=windows
6683 shrext_cmds=".dll"
6684 need_version=no
6685 need_lib_prefix=no
6686
6687 case $GCC,$host_os in
6688 yes,cygwin* | yes,mingw* | yes,pw32*)
6689 library_names_spec='$libname.dll.a'
6690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6691 postinstall_cmds='base_file=`basename \${file}`~
6692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6693 dldir=$destdir/`dirname \$dlpath`~
6694 test -d \$dldir || mkdir -p \$dldir~
6695 $install_prog $dir/$dlname \$dldir/$dlname'
6696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6697 dlpath=$dir/\$dldll~
6698 $rm \$dlpath'
6699 shlibpath_overrides_runpath=yes
6700
6701 case $host_os in
6702 cygwin*)
6703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6705 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6706 ;;
6707 mingw*)
6708 # MinGW DLLs use traditional 'lib' prefix
6709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6711 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6712 # It is most probably a Windows format PATH printed by
6713 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6714 # path with ; separators, and with drive letters. We can handle the
6715 # drive letters (cygwin fileutils understands them), so leave them,
6716 # especially as we might pass files found there to a mingw objdump,
6717 # which wouldn't understand a cygwinified path. Ahh.
6718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6719 else
6720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6721 fi
6722 ;;
6723 pw32*)
6724 # pw32 DLLs use 'pw' prefix rather than 'lib'
6725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6726 ;;
6727 esac
6728 ;;
6729
6730 *)
6731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6732 ;;
6733 esac
6734 dynamic_linker='Win32 ld.exe'
6735 # FIXME: first we should search . and the directory the executable is in
6736 shlibpath_var=PATH
6737 ;;
6738
6739darwin* | rhapsody*)
6740 dynamic_linker="$host_os dyld"
6741 version_type=darwin
6742 need_lib_prefix=no
6743 need_version=no
6744 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6745 soname_spec='${libname}${release}${major}$shared_ext'
6746 shlibpath_overrides_runpath=yes
6747 shlibpath_var=DYLD_LIBRARY_PATH
6748 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6749 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6750 if test "$GCC" = yes; then
6751 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"`
6752 else
6753 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6754 fi
6755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6756 ;;
6757
6758dgux*)
6759 version_type=linux
6760 need_lib_prefix=no
6761 need_version=no
6762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6763 soname_spec='${libname}${release}${shared_ext}$major'
6764 shlibpath_var=LD_LIBRARY_PATH
6765 ;;
6766
6767freebsd1*)
6768 dynamic_linker=no
6769 ;;
6770
6771kfreebsd*-gnu)
6772 version_type=linux
6773 need_lib_prefix=no
6774 need_version=no
6775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6776 soname_spec='${libname}${release}${shared_ext}$major'
6777 shlibpath_var=LD_LIBRARY_PATH
6778 shlibpath_overrides_runpath=no
6779 hardcode_into_libs=yes
6780 dynamic_linker='GNU ld.so'
6781 ;;
6782
6783freebsd*)
6784 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6785 version_type=freebsd-$objformat
6786 case $version_type in
6787 freebsd-elf*)
6788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6789 need_version=no
6790 need_lib_prefix=no
6791 ;;
6792 freebsd-*)
6793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6794 need_version=yes
6795 ;;
6796 esac
6797 shlibpath_var=LD_LIBRARY_PATH
6798 case $host_os in
6799 freebsd2*)
6800 shlibpath_overrides_runpath=yes
6801 ;;
6802 freebsd3.01* | freebsdelf3.01*)
6803 shlibpath_overrides_runpath=yes
6804 hardcode_into_libs=yes
6805 ;;
6806 *) # from 3.2 on
6807 shlibpath_overrides_runpath=no
6808 hardcode_into_libs=yes
6809 ;;
6810 esac
6811 ;;
6812
6813gnu*)
6814 version_type=linux
6815 need_lib_prefix=no
6816 need_version=no
6817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6818 soname_spec='${libname}${release}${shared_ext}$major'
6819 shlibpath_var=LD_LIBRARY_PATH
6820 hardcode_into_libs=yes
6821 ;;
6822
6823hpux9* | hpux10* | hpux11*)
6824 # Give a soname corresponding to the major version so that dld.sl refuses to
6825 # link against other versions.
6826 version_type=sunos
6827 need_lib_prefix=no
6828 need_version=no
6829 case "$host_cpu" in
6830 ia64*)
6831 shrext_cmds='.so'
6832 hardcode_into_libs=yes
6833 dynamic_linker="$host_os dld.so"
6834 shlibpath_var=LD_LIBRARY_PATH
6835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6837 soname_spec='${libname}${release}${shared_ext}$major'
6838 if test "X$HPUX_IA64_MODE" = X32; then
6839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6840 else
6841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6842 fi
6843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6844 ;;
6845 hppa*64*)
6846 shrext_cmds='.sl'
6847 hardcode_into_libs=yes
6848 dynamic_linker="$host_os dld.sl"
6849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6852 soname_spec='${libname}${release}${shared_ext}$major'
6853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6855 ;;
6856 *)
6857 shrext_cmds='.sl'
6858 dynamic_linker="$host_os dld.sl"
6859 shlibpath_var=SHLIB_PATH
6860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6862 soname_spec='${libname}${release}${shared_ext}$major'
6863 ;;
6864 esac
6865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6866 postinstall_cmds='chmod 555 $lib'
6867 ;;
6868
6869irix5* | irix6* | nonstopux*)
6870 case $host_os in
6871 nonstopux*) version_type=nonstopux ;;
6872 *)
6873 if test "$lt_cv_prog_gnu_ld" = yes; then
6874 version_type=linux
6875 else
6876 version_type=irix
6877 fi ;;
6878 esac
6879 need_lib_prefix=no
6880 need_version=no
6881 soname_spec='${libname}${release}${shared_ext}$major'
6882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6883 case $host_os in
6884 irix5* | nonstopux*)
6885 libsuff= shlibsuff=
6886 ;;
6887 *)
6888 case $LD in # libtool.m4 will add one of these switches to LD
6889 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6890 libsuff= shlibsuff= libmagic=32-bit;;
6891 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6892 libsuff=32 shlibsuff=N32 libmagic=N32;;
6893 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6894 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6895 *) libsuff= shlibsuff= libmagic=never-match;;
6896 esac
6897 ;;
6898 esac
6899 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6900 shlibpath_overrides_runpath=no
6901 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6902 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6903 hardcode_into_libs=yes
6904 ;;
6905
6906# No shared lib support for Linux oldld, aout, or coff.
6907linux*oldld* | linux*aout* | linux*coff*)
6908 dynamic_linker=no
6909 ;;
6910
6911# This must be Linux ELF.
6912linux*)
6913 version_type=linux
6914 need_lib_prefix=no
6915 need_version=no
6916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917 soname_spec='${libname}${release}${shared_ext}$major'
6918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6919 shlibpath_var=LD_LIBRARY_PATH
6920 shlibpath_overrides_runpath=no
6921 # This implies no fast_install, which is unacceptable.
6922 # Some rework will be needed to allow for fast_install
6923 # before this can be enabled.
6924 hardcode_into_libs=yes
6925
6926 # Append ld.so.conf contents to the search path
6927 if test -f /etc/ld.so.conf; then
6928 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6930 fi
6931
6932 # We used to test for /lib/ld.so.1 and disable shared libraries on
6933 # powerpc, because MkLinux only supported shared libraries with the
6934 # GNU dynamic linker. Since this was broken with cross compilers,
6935 # most powerpc-linux boxes support dynamic linking these days and
6936 # people can always --disable-shared, the test was removed, and we
6937 # assume the GNU/Linux dynamic linker is in use.
6938 dynamic_linker='GNU/Linux ld.so'
6939 ;;
6940
6941knetbsd*-gnu)
6942 version_type=linux
6943 need_lib_prefix=no
6944 need_version=no
6945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6946 soname_spec='${libname}${release}${shared_ext}$major'
6947 shlibpath_var=LD_LIBRARY_PATH
6948 shlibpath_overrides_runpath=no
6949 hardcode_into_libs=yes
6950 dynamic_linker='GNU ld.so'
6951 ;;
6952
6953netbsd*)
6954 version_type=sunos
6955 need_lib_prefix=no
6956 need_version=no
6957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6960 dynamic_linker='NetBSD (a.out) ld.so'
6961 else
6962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6963 soname_spec='${libname}${release}${shared_ext}$major'
6964 dynamic_linker='NetBSD ld.elf_so'
6965 fi
6966 shlibpath_var=LD_LIBRARY_PATH
6967 shlibpath_overrides_runpath=yes
6968 hardcode_into_libs=yes
6969 ;;
6970
6971newsos6)
6972 version_type=linux
6973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6974 shlibpath_var=LD_LIBRARY_PATH
6975 shlibpath_overrides_runpath=yes
6976 ;;
6977
6978nto-qnx*)
6979 version_type=linux
6980 need_lib_prefix=no
6981 need_version=no
6982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983 soname_spec='${libname}${release}${shared_ext}$major'
6984 shlibpath_var=LD_LIBRARY_PATH
6985 shlibpath_overrides_runpath=yes
6986 ;;
6987
6988openbsd*)
6989 version_type=sunos
6990 need_lib_prefix=no
6991 need_version=no
6992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6994 shlibpath_var=LD_LIBRARY_PATH
6995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6996 case $host_os in
6997 openbsd2.[89] | openbsd2.[89].*)
6998 shlibpath_overrides_runpath=no
6999 ;;
7000 *)
7001 shlibpath_overrides_runpath=yes
7002 ;;
7003 esac
7004 else
7005 shlibpath_overrides_runpath=yes
7006 fi
7007 ;;
7008
7009os2*)
7010 libname_spec='$name'
7011 shrext_cmds=".dll"
7012 need_lib_prefix=no
7013 library_names_spec='$libname${shared_ext} $libname.a'
7014 dynamic_linker='OS/2 ld.exe'
7015 shlibpath_var=LIBPATH
7016 ;;
7017
7018osf3* | osf4* | osf5*)
7019 version_type=osf
7020 need_lib_prefix=no
7021 need_version=no
7022 soname_spec='${libname}${release}${shared_ext}$major'
7023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7024 shlibpath_var=LD_LIBRARY_PATH
7025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7027 ;;
7028
7029sco3.2v5*)
7030 version_type=osf
7031 soname_spec='${libname}${release}${shared_ext}$major'
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033 shlibpath_var=LD_LIBRARY_PATH
7034 ;;
7035
7036solaris*)
7037 version_type=linux
7038 need_lib_prefix=no
7039 need_version=no
7040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7041 soname_spec='${libname}${release}${shared_ext}$major'
7042 shlibpath_var=LD_LIBRARY_PATH
7043 shlibpath_overrides_runpath=yes
7044 hardcode_into_libs=yes
7045 # ldd complains unless libraries are executable
7046 postinstall_cmds='chmod +x $lib'
7047 ;;
7048
7049sunos4*)
7050 version_type=sunos
7051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7053 shlibpath_var=LD_LIBRARY_PATH
7054 shlibpath_overrides_runpath=yes
7055 if test "$with_gnu_ld" = yes; then
7056 need_lib_prefix=no
7057 fi
7058 need_version=yes
7059 ;;
7060
7061sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7062 version_type=linux
7063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7064 soname_spec='${libname}${release}${shared_ext}$major'
7065 shlibpath_var=LD_LIBRARY_PATH
7066 case $host_vendor in
7067 sni)
7068 shlibpath_overrides_runpath=no
7069 need_lib_prefix=no
7070 export_dynamic_flag_spec='${wl}-Blargedynsym'
7071 runpath_var=LD_RUN_PATH
7072 ;;
7073 siemens)
7074 need_lib_prefix=no
7075 ;;
7076 motorola)
7077 need_lib_prefix=no
7078 need_version=no
7079 shlibpath_overrides_runpath=no
7080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7081 ;;
7082 esac
7083 ;;
7084
7085sysv4*MP*)
7086 if test -d /usr/nec ;then
7087 version_type=linux
7088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7089 soname_spec='$libname${shared_ext}.$major'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 fi
7092 ;;
7093
7094uts4*)
7095 version_type=linux
7096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7097 soname_spec='${libname}${release}${shared_ext}$major'
7098 shlibpath_var=LD_LIBRARY_PATH
7099 ;;
7100
7101*)
7102 dynamic_linker=no
7103 ;;
7104esac
7105echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7106echo "${ECHO_T}$dynamic_linker" >&6
7107test "$dynamic_linker" = no && can_build_shared=no
7108
7109
7110echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7111echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7112if test "${libltdl_cv_shlibext+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115
7116module=yes
7117eval libltdl_cv_shlibext=$shrext_cmds
7118
7119fi
7120echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7121echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7122if test -n "$libltdl_cv_shlibext"; then
7123
7124cat >>confdefs.h <<_ACEOF
7125#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7126_ACEOF
7127
7128fi
7129
7130
7131echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7132echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7133if test "${libltdl_cv_shlibpath_var+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136 libltdl_cv_shlibpath_var="$shlibpath_var"
7137fi
7138echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7139echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7140if test -n "$libltdl_cv_shlibpath_var"; then
7141
7142cat >>confdefs.h <<_ACEOF
7143#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7144_ACEOF
7145
7146fi
7147
7148
7149echo "$as_me:$LINENO: checking for the default library search path" >&5
7150echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7151if test "${libltdl_cv_sys_search_path+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7155fi
7156echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7157echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7158if test -n "$libltdl_cv_sys_search_path"; then
7159 sys_search_path=
7160 for dir in $libltdl_cv_sys_search_path; do
7161 if test -z "$sys_search_path"; then
7162 sys_search_path="$dir"
7163 else
7164 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7165 fi
7166 done
7167
7168cat >>confdefs.h <<_ACEOF
7169#define LTDL_SYSSEARCHPATH "$sys_search_path"
7170_ACEOF
7171
7172fi
7173
7174echo "$as_me:$LINENO: checking for objdir" >&5
7175echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7176if test "${libltdl_cv_objdir+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179 libltdl_cv_objdir="$objdir"
7180 if test -n "$objdir"; then
7181 :
7182 else
7183 rm -f .libs 2>/dev/null
7184 mkdir .libs 2>/dev/null
7185 if test -d .libs; then
7186 libltdl_cv_objdir=.libs
7187 else
7188 # MS-DOS does not allow filenames that begin with a dot.
7189 libltdl_cv_objdir=_libs
7190 fi
7191 rmdir .libs 2>/dev/null
7192 fi
7193
7194fi
7195echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7196echo "${ECHO_T}$libltdl_cv_objdir" >&6
7197
7198cat >>confdefs.h <<_ACEOF
7199#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7200_ACEOF
7201
7202
7203echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7204echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7205if test "${lt_cv_path_NM+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208 if test -n "$NM"; then
7209 # Let the user override the test.
7210 lt_cv_path_NM="$NM"
7211else
7212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7213 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7214 IFS="$lt_save_ifs"
7215 test -z "$ac_dir" && ac_dir=.
7216 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7218 # Check to see if the nm accepts a BSD-compat flag.
7219 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7220 # nm: unknown option "B" ignored
7221 # Tru64's nm complains that /dev/null is an invalid object file
7222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7223 */dev/null* | *'Invalid file or object type'*)
7224 lt_cv_path_NM="$tmp_nm -B"
7225 break
7226 ;;
7227 *)
7228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7229 */dev/null*)
7230 lt_cv_path_NM="$tmp_nm -p"
7231 break
7232 ;;
7233 *)
7234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7235 continue # so that we can try to find one that supports BSD flags
7236 ;;
7237 esac
7238 esac
7239 fi
7240 done
7241 IFS="$lt_save_ifs"
7242 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7243fi
7244fi
7245echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7246echo "${ECHO_T}$lt_cv_path_NM" >&6
7247NM="$lt_cv_path_NM"
7248
7249
7250
7251
7252
7253# Check for command to grab the raw symbol name followed by C symbol from nm.
7254echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7255echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7256if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259
7260# These are sane defaults that work on at least a few old systems.
7261# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7262
7263# Character class describing NM global symbol codes.
7264symcode='[BCDEGRST]'
7265
7266# Regexp to match symbols that can be accessed directly from C.
7267sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7268
7269# Transform the above into a raw symbol and a C symbol.
7270symxfrm='\1 \2\3 \3'
7271
7272# Transform an extracted symbol line into a proper C declaration
7273lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7274
7275# Transform an extracted symbol line into symbol name and symbol address
7276lt_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'"
7277
7278# Define system-specific variables.
7279case $host_os in
7280aix*)
7281 symcode='[BCDT]'
7282 ;;
7283cygwin* | mingw* | pw32*)
7284 symcode='[ABCDGISTW]'
7285 ;;
7286hpux*) # Its linker distinguishes data from code symbols
7287 if test "$host_cpu" = ia64; then
7288 symcode='[ABCDEGRST]'
7289 fi
7290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7291 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'"
7292 ;;
7293linux*)
7294 if test "$host_cpu" = ia64; then
7295 symcode='[ABCDGIRSTW]'
7296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7297 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'"
7298 fi
7299 ;;
7300irix* | nonstopux*)
7301 symcode='[BCDEGRST]'
7302 ;;
7303osf*)
7304 symcode='[BCDEGQRST]'
7305 ;;
7306solaris* | sysv5*)
7307 symcode='[BDRT]'
7308 ;;
7309sysv4)
7310 symcode='[DFNSTU]'
7311 ;;
7312esac
7313
7314# Handle CRLF in mingw tool chain
7315opt_cr=
7316case $build_os in
7317mingw*)
7318 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7319 ;;
7320esac
7321
7322# If we're using GNU nm, then use its standard symbol codes.
7323case `$NM -V 2>&1` in
7324*GNU* | *'with BFD'*)
7325 symcode='[ABCDGIRSTW]' ;;
7326esac
7327
7328# Try without a prefix undercore, then with it.
7329for ac_symprfx in "" "_"; do
7330
7331 # Write the raw and C identifiers.
7332 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7333
7334 # Check to see that the pipe works correctly.
7335 pipe_works=no
7336
7337 rm -f conftest*
7338 cat > conftest.$ac_ext <<EOF
7339#ifdef __cplusplus
7340extern "C" {
7341#endif
7342char nm_test_var;
7343void nm_test_func(){}
7344#ifdef __cplusplus
7345}
7346#endif
7347int main(){nm_test_var='a';nm_test_func();return(0);}
7348EOF
7349
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; then
7355 # Now try to grab the symbols.
7356 nlist=conftest.nm
7357 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7358 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7359 ac_status=$?
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && test -s "$nlist"; then
7362 # Try sorting and uniquifying the output.
7363 if sort "$nlist" | uniq > "$nlist"T; then
7364 mv -f "$nlist"T "$nlist"
7365 else
7366 rm -f "$nlist"T
7367 fi
7368
7369 # Make sure that we snagged all the symbols we need.
7370 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7371 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7372 cat <<EOF > conftest.$ac_ext
7373#ifdef __cplusplus
7374extern "C" {
7375#endif
7376
7377EOF
7378 # Now generate the symbol file.
7379 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7380
7381 cat <<EOF >> conftest.$ac_ext
7382#if defined (__STDC__) && __STDC__
7383# define lt_ptr_t void *
7384#else
7385# define lt_ptr_t char *
7386# define const
7387#endif
7388
7389/* The mapping between symbol names and symbols. */
7390const struct {
7391 const char *name;
7392 lt_ptr_t address;
7393}
7394lt_preloaded_symbols[] =
7395{
7396EOF
7397 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7398 cat <<\EOF >> conftest.$ac_ext
7399 {0, (lt_ptr_t) 0}
7400};
7401
7402#ifdef __cplusplus
7403}
7404#endif
7405EOF
7406 # Now try linking the two files.
7407 mv conftest.$ac_objext conftstm.$ac_objext
7408 lt_save_LIBS="$LIBS"
7409 lt_save_CFLAGS="$CFLAGS"
7410 LIBS="conftstm.$ac_objext"
7411 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413 (eval $ac_link) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7417 pipe_works=yes
7418 fi
7419 LIBS="$lt_save_LIBS"
7420 CFLAGS="$lt_save_CFLAGS"
7421 else
7422 echo "cannot find nm_test_func in $nlist" >&5
7423 fi
7424 else
7425 echo "cannot find nm_test_var in $nlist" >&5
7426 fi
7427 else
7428 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7429 fi
7430 else
7431 echo "$progname: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 fi
7434 rm -f conftest* conftst*
7435
7436 # Do not use the global_symbol_pipe unless it works.
7437 if test "$pipe_works" = yes; then
7438 break
7439 else
7440 lt_cv_sys_global_symbol_pipe=
7441 fi
7442done
7443
7444fi
7445
7446if test -z "$lt_cv_sys_global_symbol_pipe"; then
7447 lt_cv_sys_global_symbol_to_cdecl=
7448fi
7449if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7450 echo "$as_me:$LINENO: result: failed" >&5
7451echo "${ECHO_T}failed" >&6
7452else
7453 echo "$as_me:$LINENO: result: ok" >&5
7454echo "${ECHO_T}ok" >&6
7455fi
7456
7457
7458echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7459echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7460if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7464 libltdl_cv_preloaded_symbols=yes
7465 else
7466 libltdl_cv_preloaded_symbols=no
7467 fi
7468
7469fi
7470echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7471echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7472if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7473
7474cat >>confdefs.h <<\_ACEOF
7475#define HAVE_PRELOADED_SYMBOLS 1
7476_ACEOF
7477
7478fi
7479
7480LIBADD_DL=
7481
7482ac_ext=c
7483ac_cpp='$CPP $CPPFLAGS'
7484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488
7489echo "$as_me:$LINENO: checking for shl_load" >&5
7490echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7491if test "${ac_cv_func_shl_load+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494 cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h. */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h. */
7500/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7502#define shl_load innocuous_shl_load
7503
7504/* System header to define __stub macros and hopefully few prototypes,
7505 which can conflict with char shl_load (); below.
7506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7507 <limits.h> exists even on freestanding compilers. */
7508
7509#ifdef __STDC__
7510# include <limits.h>
7511#else
7512# include <assert.h>
7513#endif
7514
7515#undef shl_load
7516
7517/* Override any gcc2 internal prototype to avoid an error. */
7518#ifdef __cplusplus
7519extern "C"
7520{
7521#endif
7522/* We use char because int might match the return type of a gcc2
7523 builtin and then its argument prototype would still apply. */
7524char shl_load ();
7525/* The GNU C library defines this for functions which it implements
7526 to always fail with ENOSYS. Some functions are actually named
7527 something starting with __ and the normal name is an alias. */
7528#if defined (__stub_shl_load) || defined (__stub___shl_load)
7529choke me
7530#else
7531char (*f) () = shl_load;
7532#endif
7533#ifdef __cplusplus
7534}
7535#endif
7536
7537int
7538main ()
7539{
7540return f != shl_load;
7541 ;
7542 return 0;
7543}
7544_ACEOF
7545rm -f conftest.$ac_objext conftest$ac_exeext
7546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7547 (eval $ac_link) 2>conftest.er1
7548 ac_status=$?
7549 grep -v '^ *+' conftest.er1 >conftest.err
7550 rm -f conftest.er1
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -z "$ac_c_werror_flag"
7555 || test ! -s conftest.err'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 (eval $ac_try) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; } &&
7561 { ac_try='test -s conftest$ac_exeext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 (eval $ac_try) 2>&5
7564 ac_status=$?
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_func_shl_load=yes
7568else
7569 echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572ac_cv_func_shl_load=no
7573fi
7574rm -f conftest.err conftest.$ac_objext \
7575 conftest$ac_exeext conftest.$ac_ext
7576fi
7577echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7578echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7579if test $ac_cv_func_shl_load = yes; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define HAVE_SHL_LOAD 1
7583_ACEOF
7584
7585else
7586 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7587echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7588if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 ac_check_lib_save_LIBS=$LIBS
7592LIBS="-ldld $LIBS"
7593cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h. */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */
7599
7600/* Override any gcc2 internal prototype to avoid an error. */
7601#ifdef __cplusplus
7602extern "C"
7603#endif
7604/* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7606char shl_load ();
7607int
7608main ()
7609{
7610shl_load ();
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext conftest$ac_exeext
7616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>conftest.er1
7618 ac_status=$?
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try='test -s conftest$ac_exeext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_lib_dld_shl_load=yes
7638else
7639 echo "$as_me: failed program was:" >&5
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
7642ac_cv_lib_dld_shl_load=no
7643fi
7644rm -f conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7646LIBS=$ac_check_lib_save_LIBS
7647fi
7648echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7649echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7650if test $ac_cv_lib_dld_shl_load = yes; then
7651
7652cat >>confdefs.h <<\_ACEOF
7653#define HAVE_SHL_LOAD 1
7654_ACEOF
7655
7656 LIBADD_DL="$LIBADD_DL -ldld"
7657else
7658 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7659echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7660if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663 ac_check_lib_save_LIBS=$LIBS
7664LIBS="-ldl $LIBS"
7665cat >conftest.$ac_ext <<_ACEOF
7666/* confdefs.h. */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
7670/* end confdefs.h. */
7671
7672/* Override any gcc2 internal prototype to avoid an error. */
7673#ifdef __cplusplus
7674extern "C"
7675#endif
7676/* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7678char dlopen ();
7679int
7680main ()
7681{
7682dlopen ();
7683 ;
7684 return 0;
7685}
7686_ACEOF
7687rm -f conftest.$ac_objext conftest$ac_exeext
7688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 ac_cv_lib_dl_dlopen=yes
7710else
7711 echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714ac_cv_lib_dl_dlopen=no
7715fi
7716rm -f conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7718LIBS=$ac_check_lib_save_LIBS
7719fi
7720echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7721echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7722if test $ac_cv_lib_dl_dlopen = yes; then
7723
7724cat >>confdefs.h <<\_ACEOF
7725#define HAVE_LIBDL 1
7726_ACEOF
7727
7728 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7729else
7730 cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736#if HAVE_DLFCN_H
7737# include <dlfcn.h>
7738#endif
7739
7740int
7741main ()
7742{
7743dlopen(0, 0);
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext conftest$ac_exeext
7749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest$ac_exeext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770
7771cat >>confdefs.h <<\_ACEOF
7772#define HAVE_LIBDL 1
7773_ACEOF
7774 libltdl_cv_func_dlopen="yes"
7775else
7776 echo "$as_me: failed program was:" >&5
7777sed 's/^/| /' conftest.$ac_ext >&5
7778
7779echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7780echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7781if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784 ac_check_lib_save_LIBS=$LIBS
7785LIBS="-lsvld $LIBS"
7786cat >conftest.$ac_ext <<_ACEOF
7787/* confdefs.h. */
7788_ACEOF
7789cat confdefs.h >>conftest.$ac_ext
7790cat >>conftest.$ac_ext <<_ACEOF
7791/* end confdefs.h. */
7792
7793/* Override any gcc2 internal prototype to avoid an error. */
7794#ifdef __cplusplus
7795extern "C"
7796#endif
7797/* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799char dlopen ();
7800int
7801main ()
7802{
7803dlopen ();
7804 ;
7805 return 0;
7806}
7807_ACEOF
7808rm -f conftest.$ac_objext conftest$ac_exeext
7809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810 (eval $ac_link) 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -z "$ac_c_werror_flag"
7818 || test ! -s conftest.err'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; } &&
7824 { ac_try='test -s conftest$ac_exeext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_cv_lib_svld_dlopen=yes
7831else
7832 echo "$as_me: failed program was:" >&5
7833sed 's/^/| /' conftest.$ac_ext >&5
7834
7835ac_cv_lib_svld_dlopen=no
7836fi
7837rm -f conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext conftest.$ac_ext
7839LIBS=$ac_check_lib_save_LIBS
7840fi
7841echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7842echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7843if test $ac_cv_lib_svld_dlopen = yes; then
7844
7845cat >>confdefs.h <<\_ACEOF
7846#define HAVE_LIBDL 1
7847_ACEOF
7848
7849 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7850else
7851 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7852echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7853if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 ac_check_lib_save_LIBS=$LIBS
7857LIBS="-ldld $LIBS"
7858cat >conftest.$ac_ext <<_ACEOF
7859/* confdefs.h. */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h. */
7864
7865/* Override any gcc2 internal prototype to avoid an error. */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869/* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871char dld_link ();
7872int
7873main ()
7874{
7875dld_link ();
7876 ;
7877 return 0;
7878}
7879_ACEOF
7880rm -f conftest.$ac_objext conftest$ac_exeext
7881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_lib_dld_dld_link=yes
7903else
7904 echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
7907ac_cv_lib_dld_dld_link=no
7908fi
7909rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911LIBS=$ac_check_lib_save_LIBS
7912fi
7913echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7914echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7915if test $ac_cv_lib_dld_dld_link = yes; then
7916
7917cat >>confdefs.h <<\_ACEOF
7918#define HAVE_DLD 1
7919_ACEOF
7920
7921 LIBADD_DL="$LIBADD_DL -ldld"
7922else
7923 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7924echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7925if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928 cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h. */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h. */
7934/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7936#define _dyld_func_lookup innocuous__dyld_func_lookup
7937
7938/* System header to define __stub macros and hopefully few prototypes,
7939 which can conflict with char _dyld_func_lookup (); below.
7940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7941 <limits.h> exists even on freestanding compilers. */
7942
7943#ifdef __STDC__
7944# include <limits.h>
7945#else
7946# include <assert.h>
7947#endif
7948
7949#undef _dyld_func_lookup
7950
7951/* Override any gcc2 internal prototype to avoid an error. */
7952#ifdef __cplusplus
7953extern "C"
7954{
7955#endif
7956/* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7958char _dyld_func_lookup ();
7959/* The GNU C library defines this for functions which it implements
7960 to always fail with ENOSYS. Some functions are actually named
7961 something starting with __ and the normal name is an alias. */
7962#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7963choke me
7964#else
7965char (*f) () = _dyld_func_lookup;
7966#endif
7967#ifdef __cplusplus
7968}
7969#endif
7970
7971int
7972main ()
7973{
7974return f != _dyld_func_lookup;
7975 ;
7976 return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext conftest$ac_exeext
7980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag"
7989 || test ! -s conftest.err'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 ac_cv_func__dyld_func_lookup=yes
8002else
8003 echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006ac_cv_func__dyld_func_lookup=no
8007fi
8008rm -f conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010fi
8011echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8012echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8013if test $ac_cv_func__dyld_func_lookup = yes; then
8014
8015cat >>confdefs.h <<\_ACEOF
8016#define HAVE_DYLD 1
8017_ACEOF
8018
8019fi
8020
8021
8022fi
8023
8024
8025fi
8026
8027
8028fi
8029rm -f conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8031
8032fi
8033
8034
8035fi
8036
8037
8038fi
8039
8040
8041if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8042then
8043 lt_save_LIBS="$LIBS"
8044 LIBS="$LIBS $LIBADD_DL"
8045
8046for ac_func in dlerror
8047do
8048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8049echo "$as_me:$LINENO: checking for $ac_func" >&5
8050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8051if eval "test \"\${$as_ac_var+set}\" = set"; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h. */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h. */
8060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8062#define $ac_func innocuous_$ac_func
8063
8064/* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char $ac_func (); below.
8066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067 <limits.h> exists even on freestanding compilers. */
8068
8069#ifdef __STDC__
8070# include <limits.h>
8071#else
8072# include <assert.h>
8073#endif
8074
8075#undef $ac_func
8076
8077/* Override any gcc2 internal prototype to avoid an error. */
8078#ifdef __cplusplus
8079extern "C"
8080{
8081#endif
8082/* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8084char $ac_func ();
8085/* The GNU C library defines this for functions which it implements
8086 to always fail with ENOSYS. Some functions are actually named
8087 something starting with __ and the normal name is an alias. */
8088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8089choke me
8090#else
8091char (*f) () = $ac_func;
8092#endif
8093#ifdef __cplusplus
8094}
8095#endif
8096
8097int
8098main ()
8099{
8100return f != $ac_func;
8101 ;
8102 return 0;
8103}
8104_ACEOF
8105rm -f conftest.$ac_objext conftest$ac_exeext
8106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 eval "$as_ac_var=yes"
8128else
8129 echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132eval "$as_ac_var=no"
8133fi
8134rm -f conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
8136fi
8137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8138echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8139if test `eval echo '${'$as_ac_var'}'` = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8142_ACEOF
8143
8144fi
8145done
8146
8147 LIBS="$lt_save_LIBS"
8148fi
8149ac_ext=c
8150ac_cpp='$CPP $CPPFLAGS'
8151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153ac_compiler_gnu=$ac_cv_c_compiler_gnu
8154
8155
8156
8157echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8158echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8159if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162 ac_cv_sys_symbol_underscore=no
8163 cat > conftest.$ac_ext <<EOF
8164void nm_test_func(){}
8165int main(){nm_test_func;return 0;}
8166EOF
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; then
8172 # Now try to grab the symbols.
8173 ac_nlist=conftest.nm
8174 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8175 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && test -s "$ac_nlist"; then
8179 # See whether the symbols have a leading underscore.
8180 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8181 ac_cv_sys_symbol_underscore=yes
8182 else
8183 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8184 :
8185 else
8186 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8187 fi
8188 fi
8189 else
8190 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8191 fi
8192 else
8193 echo "configure: failed program was:" >&5
8194 cat conftest.c >&5
8195 fi
8196 rm -rf conftest*
8197
8198fi
8199echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8200echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8201
8202
8203if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8204 if test x"$libltdl_cv_func_dlopen" = xyes ||
8205 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8206 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8207echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8208if test "${libltdl_cv_need_uscore+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211 libltdl_cv_need_uscore=unknown
8212 save_LIBS="$LIBS"
8213 LIBS="$LIBS $LIBADD_DL"
8214 if test "$cross_compiling" = yes; then :
8215 libltdl_cv_need_uscore=cross
8216else
8217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8218 lt_status=$lt_dlunknown
8219 cat > conftest.$ac_ext <<EOF
Reid Spencerf97c7032004-12-27 09:33:46 +00008220#line 8220 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221#include "confdefs.h"
8222
8223#if HAVE_DLFCN_H
8224#include <dlfcn.h>
8225#endif
8226
8227#include <stdio.h>
8228
8229#ifdef RTLD_GLOBAL
8230# define LT_DLGLOBAL RTLD_GLOBAL
8231#else
8232# ifdef DL_GLOBAL
8233# define LT_DLGLOBAL DL_GLOBAL
8234# else
8235# define LT_DLGLOBAL 0
8236# endif
8237#endif
8238
8239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8240 find out it does not work in some platform. */
8241#ifndef LT_DLLAZY_OR_NOW
8242# ifdef RTLD_LAZY
8243# define LT_DLLAZY_OR_NOW RTLD_LAZY
8244# else
8245# ifdef DL_LAZY
8246# define LT_DLLAZY_OR_NOW DL_LAZY
8247# else
8248# ifdef RTLD_NOW
8249# define LT_DLLAZY_OR_NOW RTLD_NOW
8250# else
8251# ifdef DL_NOW
8252# define LT_DLLAZY_OR_NOW DL_NOW
8253# else
8254# define LT_DLLAZY_OR_NOW 0
8255# endif
8256# endif
8257# endif
8258# endif
8259#endif
8260
8261#ifdef __cplusplus
8262extern "C" void exit (int);
8263#endif
8264
8265void fnord() { int i=42;}
8266int main ()
8267{
8268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8269 int status = $lt_dlunknown;
8270
8271 if (self)
8272 {
8273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8274 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8275 /* dlclose (self); */
8276 }
8277
8278 exit (status);
8279}
8280EOF
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8286 (./conftest; exit; ) 2>/dev/null
8287 lt_status=$?
8288 case x$lt_status in
8289 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8290 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8291 x$lt_unknown|x*) ;;
8292 esac
8293 else :
8294 # compilation failed
8295
8296 fi
8297fi
8298rm -fr conftest*
8299
8300 LIBS="$save_LIBS"
8301
8302fi
8303echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8304echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8305 fi
8306fi
8307
8308if test x"$libltdl_cv_need_uscore" = xyes; then
8309
8310cat >>confdefs.h <<\_ACEOF
8311#define NEED_USCORE 1
8312_ACEOF
8313
8314fi
8315
8316
8317echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8318echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8319if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322 # PORTME does your system automatically load deplibs for dlopen?
8323 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8324 # For now, we just catch OSes we know something about -- in the
8325 # future, we'll try test this programmatically.
8326 libltdl_cv_sys_dlopen_deplibs=unknown
8327 case "$host_os" in
8328 aix3*|aix4.1.*|aix4.2.*)
8329 # Unknown whether this is true for these versions of AIX, but
8330 # we want this `case' here to explicitly catch those versions.
8331 libltdl_cv_sys_dlopen_deplibs=unknown
8332 ;;
8333 aix[45]*)
8334 libltdl_cv_sys_dlopen_deplibs=yes
8335 ;;
8336 darwin*)
8337 # Assuming the user has installed a libdl from somewhere, this is true
8338 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8339 libltdl_cv_sys_dlopen_deplibs=yes
8340 ;;
8341 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8342 # GNU and its variants, using gnu ld.so (Glibc)
8343 libltdl_cv_sys_dlopen_deplibs=yes
8344 ;;
8345 hpux10*|hpux11*)
8346 libltdl_cv_sys_dlopen_deplibs=yes
8347 ;;
8348 irix[12345]*|irix6.[01]*)
8349 # Catch all versions of IRIX before 6.2, and indicate that we don't
8350 # know how it worked for any of those versions.
8351 libltdl_cv_sys_dlopen_deplibs=unknown
8352 ;;
8353 irix*)
8354 # The case above catches anything before 6.2, and it's known that
8355 # at 6.2 and later dlopen does load deplibs.
8356 libltdl_cv_sys_dlopen_deplibs=yes
8357 ;;
8358 netbsd*)
8359 libltdl_cv_sys_dlopen_deplibs=yes
8360 ;;
8361 openbsd*)
8362 libltdl_cv_sys_dlopen_deplibs=yes
8363 ;;
8364 osf[1234]*)
8365 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8366 # it did *not* use an RPATH in a shared library to find objects the
8367 # library depends on, so we explictly say `no'.
8368 libltdl_cv_sys_dlopen_deplibs=no
8369 ;;
8370 osf5.0|osf5.0a|osf5.1)
8371 # dlopen *does* load deplibs and with the right loader patch applied
8372 # it even uses RPATH in a shared library to search for shared objects
8373 # that the library depends on, but there's no easy way to know if that
8374 # patch is installed. Since this is the case, all we can really
8375 # say is unknown -- it depends on the patch being installed. If
8376 # it is, this changes to `yes'. Without it, it would be `no'.
8377 libltdl_cv_sys_dlopen_deplibs=unknown
8378 ;;
8379 osf*)
8380 # the two cases above should catch all versions of osf <= 5.1. Read
8381 # the comments above for what we know about them.
8382 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8383 # is used to find them so we can finally say `yes'.
8384 libltdl_cv_sys_dlopen_deplibs=yes
8385 ;;
8386 solaris*)
8387 libltdl_cv_sys_dlopen_deplibs=yes
8388 ;;
8389 esac
8390
8391fi
8392echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8393echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8394if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8395
8396cat >>confdefs.h <<\_ACEOF
8397#define LTDL_DLOPEN_DEPLIBS 1
8398_ACEOF
8399
8400fi
8401
8402
8403for ac_header in argz.h
8404do
8405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406if eval "test \"\${$as_ac_Header+set}\" = set"; then
8407 echo "$as_me:$LINENO: checking for $ac_header" >&5
8408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8409if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411fi
8412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8414else
8415 # Is the header compilable?
8416echo "$as_me:$LINENO: checking $ac_header usability" >&5
8417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8418cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h. */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h. */
8424$ac_includes_default
8425#include <$ac_header>
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429 (eval $ac_compile) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_header_compiler=yes
8450else
8451 echo "$as_me: failed program was:" >&5
8452sed 's/^/| /' conftest.$ac_ext >&5
8453
8454ac_header_compiler=no
8455fi
8456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458echo "${ECHO_T}$ac_header_compiler" >&6
8459
8460# Is the header present?
8461echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8463cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
8469#include <$ac_header>
8470_ACEOF
8471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } >/dev/null; then
8479 if test -s conftest.err; then
8480 ac_cpp_err=$ac_c_preproc_warn_flag
8481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8482 else
8483 ac_cpp_err=
8484 fi
8485else
8486 ac_cpp_err=yes
8487fi
8488if test -z "$ac_cpp_err"; then
8489 ac_header_preproc=yes
8490else
8491 echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_header_preproc=no
8495fi
8496rm -f conftest.err conftest.$ac_ext
8497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498echo "${ECHO_T}$ac_header_preproc" >&6
8499
8500# So? What about this header?
8501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8502 yes:no: )
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8507 ac_header_preproc=yes
8508 ;;
8509 no:yes:* )
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8513echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8517echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8522 (
8523 cat <<\_ASBOX
8524## ----------------------------------- ##
8525## Report this to llvmbugs@cs.uiuc.edu ##
8526## ----------------------------------- ##
8527_ASBOX
8528 ) |
8529 sed "s/^/$as_me: WARNING: /" >&2
8530 ;;
8531esac
8532echo "$as_me:$LINENO: checking for $ac_header" >&5
8533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8534if eval "test \"\${$as_ac_Header+set}\" = set"; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537 eval "$as_ac_Header=\$ac_header_preproc"
8538fi
8539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8541
8542fi
8543if test `eval echo '${'$as_ac_Header'}'` = yes; then
8544 cat >>confdefs.h <<_ACEOF
8545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8546_ACEOF
8547
8548fi
8549
8550done
8551
8552
8553echo "$as_me:$LINENO: checking for error_t" >&5
8554echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8555if test "${ac_cv_type_error_t+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558 cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564#if HAVE_ARGZ_H
8565# include <argz.h>
8566#endif
8567
8568int
8569main ()
8570{
8571if ((error_t *) 0)
8572 return 0;
8573if (sizeof (error_t))
8574 return 0;
8575 ;
8576 return 0;
8577}
8578_ACEOF
8579rm -f conftest.$ac_objext
8580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581 (eval $ac_compile) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_type_error_t=yes
8602else
8603 echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606ac_cv_type_error_t=no
8607fi
8608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8609fi
8610echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8611echo "${ECHO_T}$ac_cv_type_error_t" >&6
8612if test $ac_cv_type_error_t = yes; then
8613
8614cat >>confdefs.h <<_ACEOF
8615#define HAVE_ERROR_T 1
8616_ACEOF
8617
8618
8619else
8620
8621cat >>confdefs.h <<\_ACEOF
8622#define error_t int
8623_ACEOF
8624
8625fi
8626
8627
8628
8629
8630
8631
8632
8633for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8634do
8635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8636echo "$as_me:$LINENO: checking for $ac_func" >&5
8637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8638if eval "test \"\${$as_ac_var+set}\" = set"; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640else
8641 cat >conftest.$ac_ext <<_ACEOF
8642/* confdefs.h. */
8643_ACEOF
8644cat confdefs.h >>conftest.$ac_ext
8645cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h. */
8647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8649#define $ac_func innocuous_$ac_func
8650
8651/* System header to define __stub macros and hopefully few prototypes,
8652 which can conflict with char $ac_func (); below.
8653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8654 <limits.h> exists even on freestanding compilers. */
8655
8656#ifdef __STDC__
8657# include <limits.h>
8658#else
8659# include <assert.h>
8660#endif
8661
8662#undef $ac_func
8663
8664/* Override any gcc2 internal prototype to avoid an error. */
8665#ifdef __cplusplus
8666extern "C"
8667{
8668#endif
8669/* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8671char $ac_func ();
8672/* The GNU C library defines this for functions which it implements
8673 to always fail with ENOSYS. Some functions are actually named
8674 something starting with __ and the normal name is an alias. */
8675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8676choke me
8677#else
8678char (*f) () = $ac_func;
8679#endif
8680#ifdef __cplusplus
8681}
8682#endif
8683
8684int
8685main ()
8686{
8687return f != $ac_func;
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext conftest$ac_exeext
8693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
8701 { ac_try='test -z "$ac_c_werror_flag"
8702 || test ! -s conftest.err'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest$ac_exeext'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 eval "$as_ac_var=yes"
8715else
8716 echo "$as_me: failed program was:" >&5
8717sed 's/^/| /' conftest.$ac_ext >&5
8718
8719eval "$as_ac_var=no"
8720fi
8721rm -f conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8723fi
8724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8726if test `eval echo '${'$as_ac_var'}'` = yes; then
8727 cat >>confdefs.h <<_ACEOF
8728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8729_ACEOF
8730
8731fi
8732done
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8762 stdio.h unistd.h
8763do
8764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8765if eval "test \"\${$as_ac_Header+set}\" = set"; then
8766 echo "$as_me:$LINENO: checking for $ac_header" >&5
8767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8768if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770fi
8771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773else
8774 # Is the header compilable?
8775echo "$as_me:$LINENO: checking $ac_header usability" >&5
8776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8777cat >conftest.$ac_ext <<_ACEOF
8778/* confdefs.h. */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
8782/* end confdefs.h. */
8783$ac_includes_default
8784#include <$ac_header>
8785_ACEOF
8786rm -f conftest.$ac_objext
8787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788 (eval $ac_compile) 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -z "$ac_c_werror_flag"
8796 || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_header_compiler=yes
8809else
8810 echo "$as_me: failed program was:" >&5
8811sed 's/^/| /' conftest.$ac_ext >&5
8812
8813ac_header_compiler=no
8814fi
8815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8817echo "${ECHO_T}$ac_header_compiler" >&6
8818
8819# Is the header present?
8820echo "$as_me:$LINENO: checking $ac_header presence" >&5
8821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h. */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h. */
8828#include <$ac_header>
8829_ACEOF
8830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8832 ac_status=$?
8833 grep -v '^ *+' conftest.er1 >conftest.err
8834 rm -f conftest.er1
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } >/dev/null; then
8838 if test -s conftest.err; then
8839 ac_cpp_err=$ac_c_preproc_warn_flag
8840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8841 else
8842 ac_cpp_err=
8843 fi
8844else
8845 ac_cpp_err=yes
8846fi
8847if test -z "$ac_cpp_err"; then
8848 ac_header_preproc=yes
8849else
8850 echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_header_preproc=no
8854fi
8855rm -f conftest.err conftest.$ac_ext
8856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8857echo "${ECHO_T}$ac_header_preproc" >&6
8858
8859# So? What about this header?
8860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8861 yes:no: )
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8866 ac_header_preproc=yes
8867 ;;
8868 no:yes:* )
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8881 (
8882 cat <<\_ASBOX
8883## ----------------------------------- ##
8884## Report this to llvmbugs@cs.uiuc.edu ##
8885## ----------------------------------- ##
8886_ASBOX
8887 ) |
8888 sed "s/^/$as_me: WARNING: /" >&2
8889 ;;
8890esac
8891echo "$as_me:$LINENO: checking for $ac_header" >&5
8892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8893if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896 eval "$as_ac_Header=\$ac_header_preproc"
8897fi
8898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900
8901fi
8902if test `eval echo '${'$as_ac_Header'}'` = yes; then
8903 cat >>confdefs.h <<_ACEOF
8904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8905_ACEOF
8906
8907fi
8908
8909done
8910
8911
8912
8913
8914
8915for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8916do
8917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919 echo "$as_me:$LINENO: checking for $ac_header" >&5
8920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8921if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923fi
8924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8926else
8927 # Is the header compilable?
8928echo "$as_me:$LINENO: checking $ac_header usability" >&5
8929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8930cat >conftest.$ac_ext <<_ACEOF
8931/* confdefs.h. */
8932_ACEOF
8933cat confdefs.h >>conftest.$ac_ext
8934cat >>conftest.$ac_ext <<_ACEOF
8935/* end confdefs.h. */
8936$ac_includes_default
8937#include <$ac_header>
8938_ACEOF
8939rm -f conftest.$ac_objext
8940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try='test -z "$ac_c_werror_flag"
8949 || test ! -s conftest.err'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; } &&
8955 { ac_try='test -s conftest.$ac_objext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 ac_header_compiler=yes
8962else
8963 echo "$as_me: failed program was:" >&5
8964sed 's/^/| /' conftest.$ac_ext >&5
8965
8966ac_header_compiler=no
8967fi
8968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8970echo "${ECHO_T}$ac_header_compiler" >&6
8971
8972# Is the header present?
8973echo "$as_me:$LINENO: checking $ac_header presence" >&5
8974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8975cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h. */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h. */
8981#include <$ac_header>
8982_ACEOF
8983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } >/dev/null; then
8991 if test -s conftest.err; then
8992 ac_cpp_err=$ac_c_preproc_warn_flag
8993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8994 else
8995 ac_cpp_err=
8996 fi
8997else
8998 ac_cpp_err=yes
8999fi
9000if test -z "$ac_cpp_err"; then
9001 ac_header_preproc=yes
9002else
9003 echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 ac_header_preproc=no
9007fi
9008rm -f conftest.err conftest.$ac_ext
9009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9010echo "${ECHO_T}$ac_header_preproc" >&6
9011
9012# So? What about this header?
9013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9014 yes:no: )
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9019 ac_header_preproc=yes
9020 ;;
9021 no:yes:* )
9022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9034 (
9035 cat <<\_ASBOX
9036## ----------------------------------- ##
9037## Report this to llvmbugs@cs.uiuc.edu ##
9038## ----------------------------------- ##
9039_ASBOX
9040 ) |
9041 sed "s/^/$as_me: WARNING: /" >&2
9042 ;;
9043esac
9044echo "$as_me:$LINENO: checking for $ac_header" >&5
9045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9046if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048else
9049 eval "$as_ac_Header=\$ac_header_preproc"
9050fi
9051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9053
9054fi
9055if test `eval echo '${'$as_ac_Header'}'` = yes; then
9056 cat >>confdefs.h <<_ACEOF
9057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9058_ACEOF
9059
9060fi
9061
9062done
9063
9064
9065
9066for ac_header in string.h strings.h
9067do
9068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070 echo "$as_me:$LINENO: checking for $ac_header" >&5
9071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074fi
9075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077else
9078 # Is the header compilable?
9079echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081cat >conftest.$ac_ext <<_ACEOF
9082/* confdefs.h. */
9083_ACEOF
9084cat confdefs.h >>conftest.$ac_ext
9085cat >>conftest.$ac_ext <<_ACEOF
9086/* end confdefs.h. */
9087$ac_includes_default
9088#include <$ac_header>
9089_ACEOF
9090rm -f conftest.$ac_objext
9091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092 (eval $ac_compile) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag"
9100 || test ! -s conftest.err'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 (eval $ac_try) 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_header_compiler=yes
9113else
9114 echo "$as_me: failed program was:" >&5
9115sed 's/^/| /' conftest.$ac_ext >&5
9116
9117ac_header_compiler=no
9118fi
9119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121echo "${ECHO_T}$ac_header_compiler" >&6
9122
9123# Is the header present?
9124echo "$as_me:$LINENO: checking $ac_header presence" >&5
9125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h. */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h. */
9132#include <$ac_header>
9133_ACEOF
9134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } >/dev/null; then
9142 if test -s conftest.err; then
9143 ac_cpp_err=$ac_c_preproc_warn_flag
9144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9145 else
9146 ac_cpp_err=
9147 fi
9148else
9149 ac_cpp_err=yes
9150fi
9151if test -z "$ac_cpp_err"; then
9152 ac_header_preproc=yes
9153else
9154 echo "$as_me: failed program was:" >&5
9155sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 ac_header_preproc=no
9158fi
9159rm -f conftest.err conftest.$ac_ext
9160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9161echo "${ECHO_T}$ac_header_preproc" >&6
9162
9163# So? What about this header?
9164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9165 yes:no: )
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9170 ac_header_preproc=yes
9171 ;;
9172 no:yes:* )
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9185 (
9186 cat <<\_ASBOX
9187## ----------------------------------- ##
9188## Report this to llvmbugs@cs.uiuc.edu ##
9189## ----------------------------------- ##
9190_ASBOX
9191 ) |
9192 sed "s/^/$as_me: WARNING: /" >&2
9193 ;;
9194esac
9195echo "$as_me:$LINENO: checking for $ac_header" >&5
9196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9197if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199else
9200 eval "$as_ac_Header=\$ac_header_preproc"
9201fi
9202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204
9205fi
9206if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207 cat >>confdefs.h <<_ACEOF
9208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209_ACEOF
9210 break
9211fi
9212
9213done
9214
9215
9216
9217
9218for ac_func in strchr index
9219do
9220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9221echo "$as_me:$LINENO: checking for $ac_func" >&5
9222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9223if eval "test \"\${$as_ac_var+set}\" = set"; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225else
9226 cat >conftest.$ac_ext <<_ACEOF
9227/* confdefs.h. */
9228_ACEOF
9229cat confdefs.h >>conftest.$ac_ext
9230cat >>conftest.$ac_ext <<_ACEOF
9231/* end confdefs.h. */
9232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9234#define $ac_func innocuous_$ac_func
9235
9236/* System header to define __stub macros and hopefully few prototypes,
9237 which can conflict with char $ac_func (); below.
9238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9239 <limits.h> exists even on freestanding compilers. */
9240
9241#ifdef __STDC__
9242# include <limits.h>
9243#else
9244# include <assert.h>
9245#endif
9246
9247#undef $ac_func
9248
9249/* Override any gcc2 internal prototype to avoid an error. */
9250#ifdef __cplusplus
9251extern "C"
9252{
9253#endif
9254/* We use char because int might match the return type of a gcc2
9255 builtin and then its argument prototype would still apply. */
9256char $ac_func ();
9257/* The GNU C library defines this for functions which it implements
9258 to always fail with ENOSYS. Some functions are actually named
9259 something starting with __ and the normal name is an alias. */
9260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9261choke me
9262#else
9263char (*f) () = $ac_func;
9264#endif
9265#ifdef __cplusplus
9266}
9267#endif
9268
9269int
9270main ()
9271{
9272return f != $ac_func;
9273 ;
9274 return 0;
9275}
9276_ACEOF
9277rm -f conftest.$ac_objext conftest$ac_exeext
9278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag"
9287 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try='test -s conftest$ac_exeext'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 eval "$as_ac_var=yes"
9300else
9301 echo "$as_me: failed program was:" >&5
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
9304eval "$as_ac_var=no"
9305fi
9306rm -f conftest.err conftest.$ac_objext \
9307 conftest$ac_exeext conftest.$ac_ext
9308fi
9309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9311if test `eval echo '${'$as_ac_var'}'` = yes; then
9312 cat >>confdefs.h <<_ACEOF
9313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9314_ACEOF
9315 break
9316fi
9317done
9318
9319
9320
9321for ac_func in strrchr rindex
9322do
9323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9324echo "$as_me:$LINENO: checking for $ac_func" >&5
9325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9326if eval "test \"\${$as_ac_var+set}\" = set"; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9328else
9329 cat >conftest.$ac_ext <<_ACEOF
9330/* confdefs.h. */
9331_ACEOF
9332cat confdefs.h >>conftest.$ac_ext
9333cat >>conftest.$ac_ext <<_ACEOF
9334/* end confdefs.h. */
9335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9337#define $ac_func innocuous_$ac_func
9338
9339/* System header to define __stub macros and hopefully few prototypes,
9340 which can conflict with char $ac_func (); below.
9341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9342 <limits.h> exists even on freestanding compilers. */
9343
9344#ifdef __STDC__
9345# include <limits.h>
9346#else
9347# include <assert.h>
9348#endif
9349
9350#undef $ac_func
9351
9352/* Override any gcc2 internal prototype to avoid an error. */
9353#ifdef __cplusplus
9354extern "C"
9355{
9356#endif
9357/* We use char because int might match the return type of a gcc2
9358 builtin and then its argument prototype would still apply. */
9359char $ac_func ();
9360/* The GNU C library defines this for functions which it implements
9361 to always fail with ENOSYS. Some functions are actually named
9362 something starting with __ and the normal name is an alias. */
9363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9364choke me
9365#else
9366char (*f) () = $ac_func;
9367#endif
9368#ifdef __cplusplus
9369}
9370#endif
9371
9372int
9373main ()
9374{
9375return f != $ac_func;
9376 ;
9377 return 0;
9378}
9379_ACEOF
9380rm -f conftest.$ac_objext conftest$ac_exeext
9381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 eval "$as_ac_var=yes"
9403else
9404 echo "$as_me: failed program was:" >&5
9405sed 's/^/| /' conftest.$ac_ext >&5
9406
9407eval "$as_ac_var=no"
9408fi
9409rm -f conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411fi
9412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9414if test `eval echo '${'$as_ac_var'}'` = yes; then
9415 cat >>confdefs.h <<_ACEOF
9416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9417_ACEOF
9418 break
9419fi
9420done
9421
9422
9423
9424for ac_func in memcpy bcopy
9425do
9426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9427echo "$as_me:$LINENO: checking for $ac_func" >&5
9428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9429if eval "test \"\${$as_ac_var+set}\" = set"; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432 cat >conftest.$ac_ext <<_ACEOF
9433/* confdefs.h. */
9434_ACEOF
9435cat confdefs.h >>conftest.$ac_ext
9436cat >>conftest.$ac_ext <<_ACEOF
9437/* end confdefs.h. */
9438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9440#define $ac_func innocuous_$ac_func
9441
9442/* System header to define __stub macros and hopefully few prototypes,
9443 which can conflict with char $ac_func (); below.
9444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9445 <limits.h> exists even on freestanding compilers. */
9446
9447#ifdef __STDC__
9448# include <limits.h>
9449#else
9450# include <assert.h>
9451#endif
9452
9453#undef $ac_func
9454
9455/* Override any gcc2 internal prototype to avoid an error. */
9456#ifdef __cplusplus
9457extern "C"
9458{
9459#endif
9460/* We use char because int might match the return type of a gcc2
9461 builtin and then its argument prototype would still apply. */
9462char $ac_func ();
9463/* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9467choke me
9468#else
9469char (*f) () = $ac_func;
9470#endif
9471#ifdef __cplusplus
9472}
9473#endif
9474
9475int
9476main ()
9477{
9478return f != $ac_func;
9479 ;
9480 return 0;
9481}
9482_ACEOF
9483rm -f conftest.$ac_objext conftest$ac_exeext
9484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485 (eval $ac_link) 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -z "$ac_c_werror_flag"
9493 || test ! -s conftest.err'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest$ac_exeext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 eval "$as_ac_var=yes"
9506else
9507 echo "$as_me: failed program was:" >&5
9508sed 's/^/| /' conftest.$ac_ext >&5
9509
9510eval "$as_ac_var=no"
9511fi
9512rm -f conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514fi
9515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9517if test `eval echo '${'$as_ac_var'}'` = yes; then
9518 cat >>confdefs.h <<_ACEOF
9519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9520_ACEOF
9521 break
9522fi
9523done
9524
9525
9526
9527for ac_func in memmove strcmp
9528do
9529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530echo "$as_me:$LINENO: checking for $ac_func" >&5
9531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532if eval "test \"\${$as_ac_var+set}\" = set"; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535 cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h. */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h. */
9541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9543#define $ac_func innocuous_$ac_func
9544
9545/* System header to define __stub macros and hopefully few prototypes,
9546 which can conflict with char $ac_func (); below.
9547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9548 <limits.h> exists even on freestanding compilers. */
9549
9550#ifdef __STDC__
9551# include <limits.h>
9552#else
9553# include <assert.h>
9554#endif
9555
9556#undef $ac_func
9557
9558/* Override any gcc2 internal prototype to avoid an error. */
9559#ifdef __cplusplus
9560extern "C"
9561{
9562#endif
9563/* We use char because int might match the return type of a gcc2
9564 builtin and then its argument prototype would still apply. */
9565char $ac_func ();
9566/* The GNU C library defines this for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9570choke me
9571#else
9572char (*f) () = $ac_func;
9573#endif
9574#ifdef __cplusplus
9575}
9576#endif
9577
9578int
9579main ()
9580{
9581return f != $ac_func;
9582 ;
9583 return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext conftest$ac_exeext
9587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588 (eval $ac_link) 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -z "$ac_c_werror_flag"
9596 || test ! -s conftest.err'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 (eval $ac_try) 2>&5
9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest$ac_exeext'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 (eval $ac_try) 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 eval "$as_ac_var=yes"
9609else
9610 echo "$as_me: failed program was:" >&5
9611sed 's/^/| /' conftest.$ac_ext >&5
9612
9613eval "$as_ac_var=no"
9614fi
9615rm -f conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617fi
9618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9620if test `eval echo '${'$as_ac_var'}'` = yes; then
9621 cat >>confdefs.h <<_ACEOF
9622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9623_ACEOF
9624
9625fi
9626done
9627
9628
9629
9630
9631for ac_func in closedir opendir readdir
9632do
9633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9634echo "$as_me:$LINENO: checking for $ac_func" >&5
9635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9636if eval "test \"\${$as_ac_var+set}\" = set"; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639 cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h. */
9645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9647#define $ac_func innocuous_$ac_func
9648
9649/* System header to define __stub macros and hopefully few prototypes,
9650 which can conflict with char $ac_func (); below.
9651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9652 <limits.h> exists even on freestanding compilers. */
9653
9654#ifdef __STDC__
9655# include <limits.h>
9656#else
9657# include <assert.h>
9658#endif
9659
9660#undef $ac_func
9661
9662/* Override any gcc2 internal prototype to avoid an error. */
9663#ifdef __cplusplus
9664extern "C"
9665{
9666#endif
9667/* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9669char $ac_func ();
9670/* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
9673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9674choke me
9675#else
9676char (*f) () = $ac_func;
9677#endif
9678#ifdef __cplusplus
9679}
9680#endif
9681
9682int
9683main ()
9684{
9685return f != $ac_func;
9686 ;
9687 return 0;
9688}
9689_ACEOF
9690rm -f conftest.$ac_objext conftest$ac_exeext
9691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692 (eval $ac_link) 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest$ac_exeext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 eval "$as_ac_var=yes"
9713else
9714 echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717eval "$as_ac_var=no"
9718fi
9719rm -f conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext conftest.$ac_ext
9721fi
9722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9724if test `eval echo '${'$as_ac_var'}'` = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9727_ACEOF
9728
9729fi
9730done
9731
9732
9733# Check whether --enable-shared or --disable-shared was given.
9734if test "${enable_shared+set}" = set; then
9735 enableval="$enable_shared"
9736 p=${PACKAGE-default}
9737 case $enableval in
9738 yes) enable_shared=yes ;;
9739 no) enable_shared=no ;;
9740 *)
9741 enable_shared=no
9742 # Look at the argument we got. We use all the common list separators.
9743 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9744 for pkg in $enableval; do
9745 IFS="$lt_save_ifs"
9746 if test "X$pkg" = "X$p"; then
9747 enable_shared=yes
9748 fi
9749 done
9750 IFS="$lt_save_ifs"
9751 ;;
9752 esac
9753else
9754 enable_shared=yes
9755fi;
9756
9757# Check whether --enable-static or --disable-static was given.
9758if test "${enable_static+set}" = set; then
9759 enableval="$enable_static"
9760 p=${PACKAGE-default}
9761 case $enableval in
9762 yes) enable_static=yes ;;
9763 no) enable_static=no ;;
9764 *)
9765 enable_static=no
9766 # Look at the argument we got. We use all the common list separators.
9767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9768 for pkg in $enableval; do
9769 IFS="$lt_save_ifs"
9770 if test "X$pkg" = "X$p"; then
9771 enable_static=yes
9772 fi
9773 done
9774 IFS="$lt_save_ifs"
9775 ;;
9776 esac
9777else
9778 enable_static=yes
9779fi;
9780
9781# Check whether --enable-fast-install or --disable-fast-install was given.
9782if test "${enable_fast_install+set}" = set; then
9783 enableval="$enable_fast_install"
9784 p=${PACKAGE-default}
9785 case $enableval in
9786 yes) enable_fast_install=yes ;;
9787 no) enable_fast_install=no ;;
9788 *)
9789 enable_fast_install=no
9790 # Look at the argument we got. We use all the common list separators.
9791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9792 for pkg in $enableval; do
9793 IFS="$lt_save_ifs"
9794 if test "X$pkg" = "X$p"; then
9795 enable_fast_install=yes
9796 fi
9797 done
9798 IFS="$lt_save_ifs"
9799 ;;
9800 esac
9801else
9802 enable_fast_install=yes
9803fi;
9804
9805echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9806echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9807if test "${lt_cv_path_SED+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809else
9810 # Loop through the user's path and test for sed and gsed.
9811# Then use that list of sed's as ones to test for truncation.
9812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813for as_dir in $PATH
9814do
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
9817 for lt_ac_prog in sed gsed; do
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9820 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9821 fi
9822 done
9823 done
9824done
9825lt_ac_max=0
9826lt_ac_count=0
9827# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9828# along with /bin/sed that truncates output.
9829for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9830 test ! -f $lt_ac_sed && break
9831 cat /dev/null > conftest.in
9832 lt_ac_count=0
9833 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9834 # Check for GNU sed and select it if it is found.
9835 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9836 lt_cv_path_SED=$lt_ac_sed
9837 break
9838 fi
9839 while true; do
9840 cat conftest.in conftest.in >conftest.tmp
9841 mv conftest.tmp conftest.in
9842 cp conftest.in conftest.nl
9843 echo >>conftest.nl
9844 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9845 cmp -s conftest.out conftest.nl || break
9846 # 10000 chars as input seems more than enough
9847 test $lt_ac_count -gt 10 && break
9848 lt_ac_count=`expr $lt_ac_count + 1`
9849 if test $lt_ac_count -gt $lt_ac_max; then
9850 lt_ac_max=$lt_ac_count
9851 lt_cv_path_SED=$lt_ac_sed
9852 fi
9853 done
9854done
9855
9856fi
9857
9858SED=$lt_cv_path_SED
9859echo "$as_me:$LINENO: result: $SED" >&5
9860echo "${ECHO_T}$SED" >&6
9861
9862
9863# Check whether --with-gnu-ld or --without-gnu-ld was given.
9864if test "${with_gnu_ld+set}" = set; then
9865 withval="$with_gnu_ld"
9866 test "$withval" = no || with_gnu_ld=yes
9867else
9868 with_gnu_ld=no
9869fi;
9870ac_prog=ld
9871if test "$GCC" = yes; then
9872 # Check if gcc -print-prog-name=ld gives a path.
9873 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9874echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9875 case $host in
9876 *-*-mingw*)
9877 # gcc leaves a trailing carriage return which upsets mingw
9878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9879 *)
9880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9881 esac
9882 case $ac_prog in
9883 # Accept absolute paths.
9884 [\\/]* | ?:[\\/]*)
9885 re_direlt='/[^/][^/]*/\.\./'
9886 # Canonicalize the pathname of ld
9887 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9888 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9889 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9890 done
9891 test -z "$LD" && LD="$ac_prog"
9892 ;;
9893 "")
9894 # If it fails, then pretend we aren't using GCC.
9895 ac_prog=ld
9896 ;;
9897 *)
9898 # If it is relative, then search for the first ld in PATH.
9899 with_gnu_ld=unknown
9900 ;;
9901 esac
9902elif test "$with_gnu_ld" = yes; then
9903 echo "$as_me:$LINENO: checking for GNU ld" >&5
9904echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9905else
9906 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9907echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9908fi
9909if test "${lt_cv_path_LD+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9911else
9912 if test -z "$LD"; then
9913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9914 for ac_dir in $PATH; do
9915 IFS="$lt_save_ifs"
9916 test -z "$ac_dir" && ac_dir=.
9917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9918 lt_cv_path_LD="$ac_dir/$ac_prog"
9919 # Check to see if the program is GNU ld. I'd rather use --version,
9920 # but apparently some GNU ld's only accept -v.
9921 # Break only if it was the GNU/non-GNU ld that we prefer.
9922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9923 *GNU* | *'with BFD'*)
9924 test "$with_gnu_ld" != no && break
9925 ;;
9926 *)
9927 test "$with_gnu_ld" != yes && break
9928 ;;
9929 esac
9930 fi
9931 done
9932 IFS="$lt_save_ifs"
9933else
9934 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9935fi
9936fi
9937
9938LD="$lt_cv_path_LD"
9939if test -n "$LD"; then
9940 echo "$as_me:$LINENO: result: $LD" >&5
9941echo "${ECHO_T}$LD" >&6
9942else
9943 echo "$as_me:$LINENO: result: no" >&5
9944echo "${ECHO_T}no" >&6
9945fi
9946test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9947echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9948 { (exit 1); exit 1; }; }
9949echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9950echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9951if test "${lt_cv_prog_gnu_ld+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9955case `$LD -v 2>&1 </dev/null` in
9956*GNU* | *'with BFD'*)
9957 lt_cv_prog_gnu_ld=yes
9958 ;;
9959*)
9960 lt_cv_prog_gnu_ld=no
9961 ;;
9962esac
9963fi
9964echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9965echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9966with_gnu_ld=$lt_cv_prog_gnu_ld
9967
9968
9969echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9970echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9971if test "${lt_cv_ld_reload_flag+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974 lt_cv_ld_reload_flag='-r'
9975fi
9976echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9977echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9978reload_flag=$lt_cv_ld_reload_flag
9979case $reload_flag in
9980"" | " "*) ;;
9981*) reload_flag=" $reload_flag" ;;
9982esac
9983reload_cmds='$LD$reload_flag -o $output$reload_objs'
9984case $host_os in
9985 darwin*)
9986 if test "$GCC" = yes; then
9987 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9988 else
9989 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9990 fi
9991 ;;
9992esac
9993
9994echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9995echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9996if test "${lt_cv_deplibs_check_method+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998else
9999 lt_cv_file_magic_cmd='$MAGIC_CMD'
10000lt_cv_file_magic_test_file=
10001lt_cv_deplibs_check_method='unknown'
10002# Need to set the preceding variable on all platforms that support
10003# interlibrary dependencies.
10004# 'none' -- dependencies not supported.
10005# `unknown' -- same as none, but documents that we really don't know.
10006# 'pass_all' -- all dependencies passed with no checks.
10007# 'test_compile' -- check by making test program.
10008# 'file_magic [[regex]]' -- check by looking for files in library path
10009# which responds to the $file_magic_cmd with a given extended regex.
10010# If you have `file' or equivalent on your system and you're not sure
10011# whether `pass_all' will *always* work, you probably want this one.
10012
10013case $host_os in
10014aix4* | aix5*)
10015 lt_cv_deplibs_check_method=pass_all
10016 ;;
10017
10018beos*)
10019 lt_cv_deplibs_check_method=pass_all
10020 ;;
10021
10022bsdi[45]*)
10023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10024 lt_cv_file_magic_cmd='/usr/bin/file -L'
10025 lt_cv_file_magic_test_file=/shlib/libc.so
10026 ;;
10027
10028cygwin*)
10029 # func_win32_libid is a shell function defined in ltmain.sh
10030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10031 lt_cv_file_magic_cmd='func_win32_libid'
10032 ;;
10033
10034mingw* | pw32*)
10035 # Base MSYS/MinGW do not provide the 'file' command needed by
10036 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10037 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10038 lt_cv_file_magic_cmd='$OBJDUMP -f'
10039 ;;
10040
10041darwin* | rhapsody*)
10042 lt_cv_deplibs_check_method=pass_all
10043 ;;
10044
10045freebsd* | kfreebsd*-gnu)
10046 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10047 case $host_cpu in
10048 i*86 )
10049 # Not sure whether the presence of OpenBSD here was a mistake.
10050 # Let's accept both of them until this is cleared up.
10051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10052 lt_cv_file_magic_cmd=/usr/bin/file
10053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10054 ;;
10055 esac
10056 else
10057 lt_cv_deplibs_check_method=pass_all
10058 fi
10059 ;;
10060
10061gnu*)
10062 lt_cv_deplibs_check_method=pass_all
10063 ;;
10064
10065hpux10.20* | hpux11*)
10066 lt_cv_file_magic_cmd=/usr/bin/file
10067 case "$host_cpu" in
10068 ia64*)
10069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10071 ;;
10072 hppa*64*)
10073 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]'
10074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10075 ;;
10076 *)
10077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10079 ;;
10080 esac
10081 ;;
10082
10083irix5* | irix6* | nonstopux*)
10084 case $LD in
10085 *-32|*"-32 ") libmagic=32-bit;;
10086 *-n32|*"-n32 ") libmagic=N32;;
10087 *-64|*"-64 ") libmagic=64-bit;;
10088 *) libmagic=never-match;;
10089 esac
10090 lt_cv_deplibs_check_method=pass_all
10091 ;;
10092
10093# This must be Linux ELF.
10094linux*)
10095 lt_cv_deplibs_check_method=pass_all
10096 ;;
10097
10098netbsd*)
10099 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10101 else
10102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10103 fi
10104 ;;
10105
10106newos6*)
10107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10108 lt_cv_file_magic_cmd=/usr/bin/file
10109 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10110 ;;
10111
10112nto-qnx*)
10113 lt_cv_deplibs_check_method=unknown
10114 ;;
10115
10116openbsd*)
10117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10119 else
10120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10121 fi
10122 ;;
10123
10124osf3* | osf4* | osf5*)
10125 lt_cv_deplibs_check_method=pass_all
10126 ;;
10127
10128sco3.2v5*)
10129 lt_cv_deplibs_check_method=pass_all
10130 ;;
10131
10132solaris*)
10133 lt_cv_deplibs_check_method=pass_all
10134 ;;
10135
10136sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137 case $host_vendor in
10138 motorola)
10139 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]'
10140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10141 ;;
10142 ncr)
10143 lt_cv_deplibs_check_method=pass_all
10144 ;;
10145 sequent)
10146 lt_cv_file_magic_cmd='/bin/file'
10147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10148 ;;
10149 sni)
10150 lt_cv_file_magic_cmd='/bin/file'
10151 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10152 lt_cv_file_magic_test_file=/lib/libc.so
10153 ;;
10154 siemens)
10155 lt_cv_deplibs_check_method=pass_all
10156 ;;
10157 esac
10158 ;;
10159
10160sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10161 lt_cv_deplibs_check_method=pass_all
10162 ;;
10163esac
10164
10165fi
10166echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10167echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10168file_magic_cmd=$lt_cv_file_magic_cmd
10169deplibs_check_method=$lt_cv_deplibs_check_method
10170test -z "$deplibs_check_method" && deplibs_check_method=unknown
10171
10172
10173
10174# If no C compiler was specified, use CC.
10175LTCC=${LTCC-"$CC"}
10176
10177# Allow CC to be a program name with arguments.
10178compiler=$CC
10179
10180# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10181if test "${enable_libtool_lock+set}" = set; then
10182 enableval="$enable_libtool_lock"
10183
10184fi;
10185test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10186
10187# Some flags need to be propagated to the compiler or linker for good
10188# libtool support.
10189case $host in
10190ia64-*-hpux*)
10191 # Find out which ABI we are using.
10192 echo 'int i;' > conftest.$ac_ext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; then
10198 case `/usr/bin/file conftest.$ac_objext` in
10199 *ELF-32*)
10200 HPUX_IA64_MODE="32"
10201 ;;
10202 *ELF-64*)
10203 HPUX_IA64_MODE="64"
10204 ;;
10205 esac
10206 fi
10207 rm -rf conftest*
10208 ;;
10209*-*-irix6*)
10210 # Find out which ABI we are using.
Reid Spencerf97c7032004-12-27 09:33:46 +000010211 echo '#line 10211 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213 (eval $ac_compile) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; then
10217 if test "$lt_cv_prog_gnu_ld" = yes; then
10218 case `/usr/bin/file conftest.$ac_objext` in
10219 *32-bit*)
10220 LD="${LD-ld} -melf32bsmip"
10221 ;;
10222 *N32*)
10223 LD="${LD-ld} -melf32bmipn32"
10224 ;;
10225 *64-bit*)
10226 LD="${LD-ld} -melf64bmip"
10227 ;;
10228 esac
10229 else
10230 case `/usr/bin/file conftest.$ac_objext` in
10231 *32-bit*)
10232 LD="${LD-ld} -32"
10233 ;;
10234 *N32*)
10235 LD="${LD-ld} -n32"
10236 ;;
10237 *64-bit*)
10238 LD="${LD-ld} -64"
10239 ;;
10240 esac
10241 fi
10242 fi
10243 rm -rf conftest*
10244 ;;
10245
10246x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10247 # Find out which ABI we are using.
10248 echo 'int i;' > conftest.$ac_ext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; then
10254 case "`/usr/bin/file conftest.o`" in
10255 *32-bit*)
10256 case $host in
10257 x86_64-*linux*)
10258 LD="${LD-ld} -m elf_i386"
10259 ;;
10260 ppc64-*linux*|powerpc64-*linux*)
10261 LD="${LD-ld} -m elf32ppclinux"
10262 ;;
10263 s390x-*linux*)
10264 LD="${LD-ld} -m elf_s390"
10265 ;;
10266 sparc64-*linux*)
10267 LD="${LD-ld} -m elf32_sparc"
10268 ;;
10269 esac
10270 ;;
10271 *64-bit*)
10272 case $host in
10273 x86_64-*linux*)
10274 LD="${LD-ld} -m elf_x86_64"
10275 ;;
10276 ppc*-*linux*|powerpc*-*linux*)
10277 LD="${LD-ld} -m elf64ppc"
10278 ;;
10279 s390*-*linux*)
10280 LD="${LD-ld} -m elf64_s390"
10281 ;;
10282 sparc*-*linux*)
10283 LD="${LD-ld} -m elf64_sparc"
10284 ;;
10285 esac
10286 ;;
10287 esac
10288 fi
10289 rm -rf conftest*
10290 ;;
10291
10292*-*-sco3.2v5*)
10293 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10294 SAVE_CFLAGS="$CFLAGS"
10295 CFLAGS="$CFLAGS -belf"
10296 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10297echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10298if test "${lt_cv_cc_needs_belf+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300else
10301 ac_ext=c
10302ac_cpp='$CPP $CPPFLAGS'
10303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306
10307 cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h. */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
10313
10314_ACEOF
10315rm -f conftest.$ac_objext conftest$ac_exeext
10316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317 (eval $ac_link) 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag"
10325 || test ! -s conftest.err'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest$ac_exeext'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 lt_cv_cc_needs_belf=yes
10338else
10339 echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342lt_cv_cc_needs_belf=no
10343fi
10344rm -f conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 ac_ext=c
10347ac_cpp='$CPP $CPPFLAGS'
10348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10350ac_compiler_gnu=$ac_cv_c_compiler_gnu
10351
10352fi
10353echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10354echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10355 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10356 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10357 CFLAGS="$SAVE_CFLAGS"
10358 fi
10359 ;;
10360
10361esac
10362
10363need_locks="$enable_libtool_lock"
10364
10365
Reid Spencer2706f8c2004-09-19 23:53:36 +000010366
10367
10368if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10369 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10370 (test "X$CXX" != "Xg++"))) ; then
10371 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010372ac_cpp='$CXXCPP $CPPFLAGS'
10373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10376echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10377echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10378if test -z "$CXXCPP"; then
10379 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
John Criswell47fdd832003-07-14 16:52:07 +000010382 # Double quotes because CXXCPP needs to be expanded
10383 for CXXCPP in "$CXX -E" "/lib/cpp"
10384 do
10385 ac_preproc_ok=false
10386for ac_cxx_preproc_warn_flag in '' yes
10387do
10388 # Use a header file that comes with gcc, so configuring glibc
10389 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010392 # On the NeXT, cc -E runs the code through the compiler's parser,
10393 # not just through cpp. "Syntax error" is here to catch this case.
10394 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010395/* confdefs.h. */
10396_ACEOF
10397cat confdefs.h >>conftest.$ac_ext
10398cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h. */
10400#ifdef __STDC__
10401# include <limits.h>
10402#else
10403# include <assert.h>
10404#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010405 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010406_ACEOF
10407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010410 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null; then
10415 if test -s conftest.err; then
10416 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010418 else
John Criswell47fdd832003-07-14 16:52:07 +000010419 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010420 fi
John Criswell47fdd832003-07-14 16:52:07 +000010421else
10422 ac_cpp_err=yes
10423fi
10424if test -z "$ac_cpp_err"; then
10425 :
10426else
10427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010428sed 's/^/| /' conftest.$ac_ext >&5
10429
John Criswell47fdd832003-07-14 16:52:07 +000010430 # Broken: fails on valid input.
10431continue
10432fi
10433rm -f conftest.err conftest.$ac_ext
10434
10435 # OK, works on sane cases. Now check whether non-existent headers
10436 # can be detected and how.
10437 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010438/* confdefs.h. */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010443#include <ac_nonexistent.h>
10444_ACEOF
10445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010448 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } >/dev/null; then
10453 if test -s conftest.err; then
10454 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010455 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010456 else
10457 ac_cpp_err=
10458 fi
10459else
10460 ac_cpp_err=yes
10461fi
10462if test -z "$ac_cpp_err"; then
10463 # Broken: success on invalid input.
10464continue
10465else
10466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010467sed 's/^/| /' conftest.$ac_ext >&5
10468
John Criswell47fdd832003-07-14 16:52:07 +000010469 # Passes both tests.
10470ac_preproc_ok=:
10471break
10472fi
10473rm -f conftest.err conftest.$ac_ext
10474
10475done
10476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10477rm -f conftest.err conftest.$ac_ext
10478if $ac_preproc_ok; then
10479 break
John Criswell7a73b802003-06-30 21:59:07 +000010480fi
10481
John Criswell47fdd832003-07-14 16:52:07 +000010482 done
10483 ac_cv_prog_CXXCPP=$CXXCPP
10484
10485fi
10486 CXXCPP=$ac_cv_prog_CXXCPP
10487else
10488 ac_cv_prog_CXXCPP=$CXXCPP
10489fi
10490echo "$as_me:$LINENO: result: $CXXCPP" >&5
10491echo "${ECHO_T}$CXXCPP" >&6
10492ac_preproc_ok=false
10493for ac_cxx_preproc_warn_flag in '' yes
10494do
10495 # Use a header file that comes with gcc, so configuring glibc
10496 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010499 # On the NeXT, cc -E runs the code through the compiler's parser,
10500 # not just through cpp. "Syntax error" is here to catch this case.
10501 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010502/* confdefs.h. */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h. */
10507#ifdef __STDC__
10508# include <limits.h>
10509#else
10510# include <assert.h>
10511#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010512 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010513_ACEOF
10514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10516 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010517 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } >/dev/null; then
10522 if test -s conftest.err; then
10523 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010525 else
10526 ac_cpp_err=
10527 fi
10528else
10529 ac_cpp_err=yes
10530fi
10531if test -z "$ac_cpp_err"; then
10532 :
10533else
10534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010535sed 's/^/| /' conftest.$ac_ext >&5
10536
John Criswell47fdd832003-07-14 16:52:07 +000010537 # Broken: fails on valid input.
10538continue
10539fi
10540rm -f conftest.err conftest.$ac_ext
10541
10542 # OK, works on sane cases. Now check whether non-existent headers
10543 # can be detected and how.
10544 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010545/* confdefs.h. */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010550#include <ac_nonexistent.h>
10551_ACEOF
10552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10554 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010555 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } >/dev/null; then
10560 if test -s conftest.err; then
10561 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010562 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010563 else
10564 ac_cpp_err=
10565 fi
10566else
10567 ac_cpp_err=yes
10568fi
10569if test -z "$ac_cpp_err"; then
10570 # Broken: success on invalid input.
10571continue
10572else
10573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010574sed 's/^/| /' conftest.$ac_ext >&5
10575
John Criswell47fdd832003-07-14 16:52:07 +000010576 # Passes both tests.
10577ac_preproc_ok=:
10578break
10579fi
10580rm -f conftest.err conftest.$ac_ext
10581
10582done
10583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10584rm -f conftest.err conftest.$ac_ext
10585if $ac_preproc_ok; then
10586 :
10587else
John Criswell0c38eaf2003-09-10 15:17:25 +000010588 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10589See \`config.log' for more details." >&5
10590echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10591See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010592 { (exit 1); exit 1; }; }
10593fi
10594
10595ac_ext=cc
10596ac_cpp='$CXXCPP $CPPFLAGS'
10597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10600
Reid Spencer2706f8c2004-09-19 23:53:36 +000010601fi
10602
John Criswell47fdd832003-07-14 16:52:07 +000010603
10604ac_ext=f
10605ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10606ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10607ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10608if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010609 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 +000010610 do
10611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10613echo "$as_me:$LINENO: checking for $ac_word" >&5
10614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10615if test "${ac_cv_prog_F77+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617else
10618 if test -n "$F77"; then
10619 ac_cv_prog_F77="$F77" # Let the user override the test.
10620else
10621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622for as_dir in $PATH
10623do
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10628 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 break 2
10631 fi
10632done
10633done
10634
10635fi
10636fi
10637F77=$ac_cv_prog_F77
10638if test -n "$F77"; then
10639 echo "$as_me:$LINENO: result: $F77" >&5
10640echo "${ECHO_T}$F77" >&6
10641else
10642 echo "$as_me:$LINENO: result: no" >&5
10643echo "${ECHO_T}no" >&6
10644fi
10645
10646 test -n "$F77" && break
10647 done
10648fi
10649if test -z "$F77"; then
10650 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010651 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 +000010652do
10653 # Extract the first word of "$ac_prog", so it can be a program name with args.
10654set dummy $ac_prog; ac_word=$2
10655echo "$as_me:$LINENO: checking for $ac_word" >&5
10656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660 if test -n "$ac_ct_F77"; then
10661 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670 ac_cv_prog_ac_ct_F77="$ac_prog"
10671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10673 fi
10674done
10675done
10676
10677fi
10678fi
10679ac_ct_F77=$ac_cv_prog_ac_ct_F77
10680if test -n "$ac_ct_F77"; then
10681 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10682echo "${ECHO_T}$ac_ct_F77" >&6
10683else
10684 echo "$as_me:$LINENO: result: no" >&5
10685echo "${ECHO_T}no" >&6
10686fi
10687
10688 test -n "$ac_ct_F77" && break
10689done
10690
10691 F77=$ac_ct_F77
10692fi
10693
10694
10695# Provide some information about the compiler.
Reid Spencerf97c7032004-12-27 09:33:46 +000010696echo "$as_me:10696:" \
John Criswell47fdd832003-07-14 16:52:07 +000010697 "checking for Fortran 77 compiler version" >&5
10698ac_compiler=`set X $ac_compile; echo $2`
10699{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10700 (eval $ac_compiler --version </dev/null >&5) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }
10704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10705 (eval $ac_compiler -v </dev/null >&5) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }
10709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10710 (eval $ac_compiler -V </dev/null >&5) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010714rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010715
10716# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010717# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010718ac_save_ext=$ac_ext
10719ac_ext=F
10720echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10721echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10722if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724else
10725 cat >conftest.$ac_ext <<_ACEOF
10726 program main
10727#ifndef __GNUC__
10728 choke me
10729#endif
10730
10731 end
10732_ACEOF
10733rm -f conftest.$ac_objext
10734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010735 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010742 { ac_try='test -z "$ac_f77_werror_flag"
10743 || test ! -s conftest.err'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; } &&
10749 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_compiler_gnu=yes
10756else
10757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010758sed 's/^/| /' conftest.$ac_ext >&5
10759
John Criswell47fdd832003-07-14 16:52:07 +000010760ac_compiler_gnu=no
10761fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010763ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10764
10765fi
10766echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10767echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10768ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010769ac_test_FFLAGS=${FFLAGS+set}
10770ac_save_FFLAGS=$FFLAGS
10771FFLAGS=
10772echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10773echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10774if test "${ac_cv_prog_f77_g+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777 FFLAGS=-g
10778cat >conftest.$ac_ext <<_ACEOF
10779 program main
10780
10781 end
10782_ACEOF
10783rm -f conftest.$ac_objext
10784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010785 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010792 { ac_try='test -z "$ac_f77_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_prog_f77_g=yes
10806else
10807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010808sed 's/^/| /' conftest.$ac_ext >&5
10809
John Criswell47fdd832003-07-14 16:52:07 +000010810ac_cv_prog_f77_g=no
10811fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010813
10814fi
10815echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10816echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10817if test "$ac_test_FFLAGS" = set; then
10818 FFLAGS=$ac_save_FFLAGS
10819elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010820 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010821 FFLAGS="-g -O2"
10822 else
10823 FFLAGS="-g"
10824 fi
10825else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010826 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010827 FFLAGS="-O2"
10828 else
10829 FFLAGS=
10830 fi
10831fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010832
10833G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010834ac_ext=c
10835ac_cpp='$CPP $CPPFLAGS'
10836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838ac_compiler_gnu=$ac_cv_c_compiler_gnu
10839
10840
10841
10842# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10843
10844# find the maximum length of command line arguments
10845echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10846echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10847if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010851 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010852
10853 case $build_os in
10854 msdosdjgpp*)
10855 # On DJGPP, this test can blow up pretty badly due to problems in libc
10856 # (any single argument exceeding 2000 bytes causes a buffer overrun
10857 # during glob expansion). Even if it were fixed, the result of this
10858 # check would be larger than it should be.
10859 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10860 ;;
10861
10862 gnu*)
10863 # Under GNU Hurd, this test is not required because there is
10864 # no limit to the length of command line arguments.
10865 # Libtool will interpret -1 as no limit whatsoever
10866 lt_cv_sys_max_cmd_len=-1;
10867 ;;
10868
10869 cygwin* | mingw*)
10870 # On Win9x/ME, this test blows up -- it succeeds, but takes
10871 # about 5 minutes as the teststring grows exponentially.
10872 # Worse, since 9x/ME are not pre-emptively multitasking,
10873 # you end up with a "frozen" computer, even though with patience
10874 # the test eventually succeeds (with a max line length of 256k).
10875 # Instead, let's just punt: use the minimum linelength reported by
10876 # all of the supported platforms: 8192 (on NT/2K/XP).
10877 lt_cv_sys_max_cmd_len=8192;
10878 ;;
10879
Reid Spencer2706f8c2004-09-19 23:53:36 +000010880 amigaos*)
10881 # On AmigaOS with pdksh, this test takes hours, literally.
10882 # So we just punt and use a minimum line length of 8192.
10883 lt_cv_sys_max_cmd_len=8192;
10884 ;;
10885
10886 netbsd* | freebsd* | openbsd* | darwin* )
10887 # This has been around since 386BSD, at least. Likely further.
10888 if test -x /sbin/sysctl; then
10889 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10890 elif test -x /usr/sbin/sysctl; then
10891 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10892 else
10893 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10894 fi
10895 # And add a safety zone
10896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10897 ;;
10898
John Criswell47fdd832003-07-14 16:52:07 +000010899 *)
10900 # If test is not a shell built-in, we'll probably end up computing a
10901 # maximum length that is only half of the actual maximum length, but
10902 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010903 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10904 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10905 = "XX$teststring") >/dev/null 2>&1 &&
10906 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010907 lt_cv_sys_max_cmd_len=$new_result &&
10908 test $i != 17 # 1/2 MB should be enough
10909 do
10910 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010911 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010912 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010913 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010914 # Add a significant safety factor because C++ compilers can tack on massive
10915 # amounts of additional arguments before passing them to the linker.
10916 # It appears as though 1/2 is a usable value.
10917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10918 ;;
10919 esac
10920
10921fi
10922
10923if test -n $lt_cv_sys_max_cmd_len ; then
10924 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10925echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10926else
10927 echo "$as_me:$LINENO: result: none" >&5
10928echo "${ECHO_T}none" >&6
10929fi
10930
10931
10932
10933
10934# Check for command to grab the raw symbol name followed by C symbol from nm.
10935echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10936echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10937if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939else
10940
10941# These are sane defaults that work on at least a few old systems.
10942# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10943
10944# Character class describing NM global symbol codes.
10945symcode='[BCDEGRST]'
10946
10947# Regexp to match symbols that can be accessed directly from C.
10948sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10949
10950# Transform the above into a raw symbol and a C symbol.
10951symxfrm='\1 \2\3 \3'
10952
10953# Transform an extracted symbol line into a proper C declaration
10954lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10955
10956# Transform an extracted symbol line into symbol name and symbol address
10957lt_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'"
10958
10959# Define system-specific variables.
10960case $host_os in
10961aix*)
10962 symcode='[BCDT]'
10963 ;;
10964cygwin* | mingw* | pw32*)
10965 symcode='[ABCDGISTW]'
10966 ;;
10967hpux*) # Its linker distinguishes data from code symbols
10968 if test "$host_cpu" = ia64; then
10969 symcode='[ABCDEGRST]'
10970 fi
10971 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10972 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'"
10973 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010974linux*)
10975 if test "$host_cpu" = ia64; then
10976 symcode='[ABCDGIRSTW]'
10977 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10978 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'"
10979 fi
10980 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010981irix* | nonstopux*)
10982 symcode='[BCDEGRST]'
10983 ;;
10984osf*)
10985 symcode='[BCDEGQRST]'
10986 ;;
10987solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010988 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010989 ;;
10990sysv4)
10991 symcode='[DFNSTU]'
10992 ;;
10993esac
10994
10995# Handle CRLF in mingw tool chain
10996opt_cr=
10997case $build_os in
10998mingw*)
10999 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11000 ;;
11001esac
11002
11003# If we're using GNU nm, then use its standard symbol codes.
11004case `$NM -V 2>&1` in
11005*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011006 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011007esac
11008
11009# Try without a prefix undercore, then with it.
11010for ac_symprfx in "" "_"; do
11011
11012 # Write the raw and C identifiers.
11013 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11014
11015 # Check to see that the pipe works correctly.
11016 pipe_works=no
11017
11018 rm -f conftest*
11019 cat > conftest.$ac_ext <<EOF
11020#ifdef __cplusplus
11021extern "C" {
11022#endif
11023char nm_test_var;
11024void nm_test_func(){}
11025#ifdef __cplusplus
11026}
11027#endif
11028int main(){nm_test_var='a';nm_test_func();return(0);}
11029EOF
11030
11031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; then
11036 # Now try to grab the symbols.
11037 nlist=conftest.nm
11038 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11039 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && test -s "$nlist"; then
11043 # Try sorting and uniquifying the output.
11044 if sort "$nlist" | uniq > "$nlist"T; then
11045 mv -f "$nlist"T "$nlist"
11046 else
11047 rm -f "$nlist"T
11048 fi
11049
11050 # Make sure that we snagged all the symbols we need.
11051 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11052 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11053 cat <<EOF > conftest.$ac_ext
11054#ifdef __cplusplus
11055extern "C" {
11056#endif
11057
11058EOF
11059 # Now generate the symbol file.
11060 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11061
11062 cat <<EOF >> conftest.$ac_ext
11063#if defined (__STDC__) && __STDC__
11064# define lt_ptr_t void *
11065#else
11066# define lt_ptr_t char *
11067# define const
11068#endif
11069
11070/* The mapping between symbol names and symbols. */
11071const struct {
11072 const char *name;
11073 lt_ptr_t address;
11074}
11075lt_preloaded_symbols[] =
11076{
11077EOF
11078 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11079 cat <<\EOF >> conftest.$ac_ext
11080 {0, (lt_ptr_t) 0}
11081};
11082
11083#ifdef __cplusplus
11084}
11085#endif
11086EOF
11087 # Now try linking the two files.
11088 mv conftest.$ac_objext conftstm.$ac_objext
11089 lt_save_LIBS="$LIBS"
11090 lt_save_CFLAGS="$CFLAGS"
11091 LIBS="conftstm.$ac_objext"
11092 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094 (eval $ac_link) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11098 pipe_works=yes
11099 fi
11100 LIBS="$lt_save_LIBS"
11101 CFLAGS="$lt_save_CFLAGS"
11102 else
11103 echo "cannot find nm_test_func in $nlist" >&5
11104 fi
11105 else
11106 echo "cannot find nm_test_var in $nlist" >&5
11107 fi
11108 else
11109 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11110 fi
11111 else
11112 echo "$progname: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 fi
11115 rm -f conftest* conftst*
11116
11117 # Do not use the global_symbol_pipe unless it works.
11118 if test "$pipe_works" = yes; then
11119 break
11120 else
11121 lt_cv_sys_global_symbol_pipe=
11122 fi
11123done
11124
11125fi
11126
11127if test -z "$lt_cv_sys_global_symbol_pipe"; then
11128 lt_cv_sys_global_symbol_to_cdecl=
11129fi
11130if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11131 echo "$as_me:$LINENO: result: failed" >&5
11132echo "${ECHO_T}failed" >&6
11133else
11134 echo "$as_me:$LINENO: result: ok" >&5
11135echo "${ECHO_T}ok" >&6
11136fi
11137
11138echo "$as_me:$LINENO: checking for objdir" >&5
11139echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11140if test "${lt_cv_objdir+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142else
11143 rm -f .libs 2>/dev/null
11144mkdir .libs 2>/dev/null
11145if test -d .libs; then
11146 lt_cv_objdir=.libs
11147else
11148 # MS-DOS does not allow filenames that begin with a dot.
11149 lt_cv_objdir=_libs
11150fi
11151rmdir .libs 2>/dev/null
11152fi
11153echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11154echo "${ECHO_T}$lt_cv_objdir" >&6
11155objdir=$lt_cv_objdir
11156
11157
11158
11159
11160
11161case $host_os in
11162aix3*)
11163 # AIX sometimes has problems with the GCC collect2 program. For some
11164 # reason, if we set the COLLECT_NAMES environment variable, the problems
11165 # vanish in a puff of smoke.
11166 if test "X${COLLECT_NAMES+set}" != Xset; then
11167 COLLECT_NAMES=
11168 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011169 fi
11170 ;;
11171esac
11172
John Criswell47fdd832003-07-14 16:52:07 +000011173# Sed substitution that helps us do robust quoting. It backslashifies
11174# metacharacters that are still active within double-quoted strings.
11175Xsed='sed -e s/^X//'
11176sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11177
11178# Same as above, but do not quote variable references.
11179double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11180
11181# Sed substitution to delay expansion of an escaped shell variable in a
11182# double_quote_subst'ed string.
11183delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11184
11185# Sed substitution to avoid accidental globbing in evaled expressions
11186no_glob_subst='s/\*/\\\*/g'
11187
11188# Constants:
11189rm="rm -f"
11190
11191# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011192default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011193can_build_shared=yes
11194
11195# All known linkers require a `.a' archive for static linking (except M$VC,
11196# which needs '.lib').
11197libext=a
11198ltmain="$ac_aux_dir/ltmain.sh"
11199ofile="$default_ofile"
11200with_gnu_ld="$lt_cv_prog_gnu_ld"
11201
11202if test -n "$ac_tool_prefix"; then
11203 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11204set dummy ${ac_tool_prefix}ar; ac_word=$2
11205echo "$as_me:$LINENO: checking for $ac_word" >&5
11206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11207if test "${ac_cv_prog_AR+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210 if test -n "$AR"; then
11211 ac_cv_prog_AR="$AR" # Let the user override the test.
11212else
11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $PATH
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_prog_AR="${ac_tool_prefix}ar"
11221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224done
11225done
11226
11227fi
11228fi
11229AR=$ac_cv_prog_AR
11230if test -n "$AR"; then
11231 echo "$as_me:$LINENO: result: $AR" >&5
11232echo "${ECHO_T}$AR" >&6
11233else
11234 echo "$as_me:$LINENO: result: no" >&5
11235echo "${ECHO_T}no" >&6
11236fi
11237
11238fi
11239if test -z "$ac_cv_prog_AR"; then
11240 ac_ct_AR=$AR
11241 # Extract the first word of "ar", so it can be a program name with args.
11242set dummy ar; ac_word=$2
11243echo "$as_me:$LINENO: checking for $ac_word" >&5
11244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11245if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248 if test -n "$ac_ct_AR"; then
11249 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11250else
11251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258 ac_cv_prog_ac_ct_AR="ar"
11259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11261 fi
11262done
11263done
11264
11265 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11266fi
11267fi
11268ac_ct_AR=$ac_cv_prog_ac_ct_AR
11269if test -n "$ac_ct_AR"; then
11270 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11271echo "${ECHO_T}$ac_ct_AR" >&6
11272else
11273 echo "$as_me:$LINENO: result: no" >&5
11274echo "${ECHO_T}no" >&6
11275fi
11276
11277 AR=$ac_ct_AR
11278else
11279 AR="$ac_cv_prog_AR"
11280fi
11281
John Criswell7a73b802003-06-30 21:59:07 +000011282if test -n "$ac_tool_prefix"; then
11283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11284set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11285echo "$as_me:$LINENO: checking for $ac_word" >&5
11286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11287if test "${ac_cv_prog_RANLIB+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289else
11290 if test -n "$RANLIB"; then
11291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11292else
11293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294for as_dir in $PATH
11295do
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11303 fi
11304done
11305done
11306
11307fi
11308fi
11309RANLIB=$ac_cv_prog_RANLIB
11310if test -n "$RANLIB"; then
11311 echo "$as_me:$LINENO: result: $RANLIB" >&5
11312echo "${ECHO_T}$RANLIB" >&6
11313else
11314 echo "$as_me:$LINENO: result: no" >&5
11315echo "${ECHO_T}no" >&6
11316fi
11317
11318fi
11319if test -z "$ac_cv_prog_RANLIB"; then
11320 ac_ct_RANLIB=$RANLIB
11321 # Extract the first word of "ranlib", so it can be a program name with args.
11322set dummy ranlib; ac_word=$2
11323echo "$as_me:$LINENO: checking for $ac_word" >&5
11324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11325if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 if test -n "$ac_ct_RANLIB"; then
11329 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11338 ac_cv_prog_ac_ct_RANLIB="ranlib"
11339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11341 fi
11342done
11343done
11344
11345 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11346fi
11347fi
11348ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11349if test -n "$ac_ct_RANLIB"; then
11350 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11351echo "${ECHO_T}$ac_ct_RANLIB" >&6
11352else
11353 echo "$as_me:$LINENO: result: no" >&5
11354echo "${ECHO_T}no" >&6
11355fi
11356
11357 RANLIB=$ac_ct_RANLIB
11358else
11359 RANLIB="$ac_cv_prog_RANLIB"
11360fi
11361
11362if test -n "$ac_tool_prefix"; then
11363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11364set dummy ${ac_tool_prefix}strip; ac_word=$2
11365echo "$as_me:$LINENO: checking for $ac_word" >&5
11366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367if test "${ac_cv_prog_STRIP+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370 if test -n "$STRIP"; then
11371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385done
11386
11387fi
11388fi
11389STRIP=$ac_cv_prog_STRIP
11390if test -n "$STRIP"; then
11391 echo "$as_me:$LINENO: result: $STRIP" >&5
11392echo "${ECHO_T}$STRIP" >&6
11393else
11394 echo "$as_me:$LINENO: result: no" >&5
11395echo "${ECHO_T}no" >&6
11396fi
11397
11398fi
11399if test -z "$ac_cv_prog_STRIP"; then
11400 ac_ct_STRIP=$STRIP
11401 # Extract the first word of "strip", so it can be a program name with args.
11402set dummy strip; ac_word=$2
11403echo "$as_me:$LINENO: checking for $ac_word" >&5
11404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11405if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407else
11408 if test -n "$ac_ct_STRIP"; then
11409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11410else
11411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412for as_dir in $PATH
11413do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418 ac_cv_prog_ac_ct_STRIP="strip"
11419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11421 fi
11422done
11423done
11424
11425 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11426fi
11427fi
11428ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11429if test -n "$ac_ct_STRIP"; then
11430 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11431echo "${ECHO_T}$ac_ct_STRIP" >&6
11432else
11433 echo "$as_me:$LINENO: result: no" >&5
11434echo "${ECHO_T}no" >&6
11435fi
11436
11437 STRIP=$ac_ct_STRIP
11438else
11439 STRIP="$ac_cv_prog_STRIP"
11440fi
11441
11442
John Criswell7a73b802003-06-30 21:59:07 +000011443old_CC="$CC"
11444old_CFLAGS="$CFLAGS"
11445
11446# Set sane defaults for various variables
11447test -z "$AR" && AR=ar
11448test -z "$AR_FLAGS" && AR_FLAGS=cru
11449test -z "$AS" && AS=as
11450test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011451test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011452test -z "$DLLTOOL" && DLLTOOL=dlltool
11453test -z "$LD" && LD=ld
11454test -z "$LN_S" && LN_S="ln -s"
11455test -z "$MAGIC_CMD" && MAGIC_CMD=file
11456test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011457test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011458test -z "$OBJDUMP" && OBJDUMP=objdump
11459test -z "$RANLIB" && RANLIB=:
11460test -z "$STRIP" && STRIP=:
11461test -z "$ac_objext" && ac_objext=o
11462
John Criswell7a73b802003-06-30 21:59:07 +000011463# Determine commands to create old-style static archives.
11464old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11465old_postinstall_cmds='chmod 644 $oldlib'
11466old_postuninstall_cmds=
11467
11468if test -n "$RANLIB"; then
11469 case $host_os in
11470 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011471 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011472 ;;
11473 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011474 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011475 ;;
11476 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011477 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011478fi
11479
Reid Spencer2706f8c2004-09-19 23:53:36 +000011480cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11481
John Criswell47fdd832003-07-14 16:52:07 +000011482# Only perform the check for file, if the check method requires it
11483case $deplibs_check_method in
11484file_magic*)
11485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11486 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11487echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11488if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011490else
John Criswell47fdd832003-07-14 16:52:07 +000011491 case $MAGIC_CMD in
11492[\\/*] | ?:[\\/]*)
11493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11494 ;;
11495*)
11496 lt_save_MAGIC_CMD="$MAGIC_CMD"
11497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11499 for ac_dir in $ac_dummy; do
11500 IFS="$lt_save_ifs"
11501 test -z "$ac_dir" && ac_dir=.
11502 if test -f $ac_dir/${ac_tool_prefix}file; then
11503 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11504 if test -n "$file_magic_test_file"; then
11505 case $deplibs_check_method in
11506 "file_magic "*)
11507 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11510 $EGREP "$file_magic_regex" > /dev/null; then
11511 :
11512 else
11513 cat <<EOF 1>&2
11514
11515*** Warning: the command libtool uses to detect shared libraries,
11516*** $file_magic_cmd, produces output that libtool cannot recognize.
11517*** The result is that libtool may fail to recognize shared libraries
11518*** as such. This will affect the creation of libtool libraries that
11519*** depend on shared libraries, but programs linked with such libtool
11520*** libraries will work regardless of this problem. Nevertheless, you
11521*** may want to report the problem to your system manager and/or to
11522*** bug-libtool@gnu.org
11523
11524EOF
11525 fi ;;
11526 esac
11527 fi
11528 break
11529 fi
11530 done
11531 IFS="$lt_save_ifs"
11532 MAGIC_CMD="$lt_save_MAGIC_CMD"
11533 ;;
11534esac
John Criswell7a73b802003-06-30 21:59:07 +000011535fi
John Criswell7a73b802003-06-30 21:59:07 +000011536
John Criswell47fdd832003-07-14 16:52:07 +000011537MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11538if test -n "$MAGIC_CMD"; then
11539 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11540echo "${ECHO_T}$MAGIC_CMD" >&6
11541else
11542 echo "$as_me:$LINENO: result: no" >&5
11543echo "${ECHO_T}no" >&6
11544fi
John Criswell7a73b802003-06-30 21:59:07 +000011545
John Criswell47fdd832003-07-14 16:52:07 +000011546if test -z "$lt_cv_path_MAGIC_CMD"; then
11547 if test -n "$ac_tool_prefix"; then
11548 echo "$as_me:$LINENO: checking for file" >&5
11549echo $ECHO_N "checking for file... $ECHO_C" >&6
11550if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553 case $MAGIC_CMD in
11554[\\/*] | ?:[\\/]*)
11555 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11556 ;;
11557*)
11558 lt_save_MAGIC_CMD="$MAGIC_CMD"
11559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11560 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11561 for ac_dir in $ac_dummy; do
11562 IFS="$lt_save_ifs"
11563 test -z "$ac_dir" && ac_dir=.
11564 if test -f $ac_dir/file; then
11565 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11566 if test -n "$file_magic_test_file"; then
11567 case $deplibs_check_method in
11568 "file_magic "*)
11569 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11571 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11572 $EGREP "$file_magic_regex" > /dev/null; then
11573 :
11574 else
11575 cat <<EOF 1>&2
11576
11577*** Warning: the command libtool uses to detect shared libraries,
11578*** $file_magic_cmd, produces output that libtool cannot recognize.
11579*** The result is that libtool may fail to recognize shared libraries
11580*** as such. This will affect the creation of libtool libraries that
11581*** depend on shared libraries, but programs linked with such libtool
11582*** libraries will work regardless of this problem. Nevertheless, you
11583*** may want to report the problem to your system manager and/or to
11584*** bug-libtool@gnu.org
11585
11586EOF
11587 fi ;;
11588 esac
11589 fi
11590 break
11591 fi
11592 done
11593 IFS="$lt_save_ifs"
11594 MAGIC_CMD="$lt_save_MAGIC_CMD"
11595 ;;
11596esac
11597fi
11598
11599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11600if test -n "$MAGIC_CMD"; then
11601 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11602echo "${ECHO_T}$MAGIC_CMD" >&6
11603else
11604 echo "$as_me:$LINENO: result: no" >&5
11605echo "${ECHO_T}no" >&6
11606fi
11607
11608 else
11609 MAGIC_CMD=:
11610 fi
11611fi
11612
11613 fi
11614 ;;
11615esac
11616
Reid Spencer17795972004-11-18 09:47:37 +000011617enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011618enable_win32_dll=no
11619
11620# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11621if test "${enable_libtool_lock+set}" = set; then
11622 enableval="$enable_libtool_lock"
11623
11624fi;
11625test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11626
John Criswell7a73b802003-06-30 21:59:07 +000011627
11628# Check whether --with-pic or --without-pic was given.
11629if test "${with_pic+set}" = set; then
11630 withval="$with_pic"
11631 pic_mode="$withval"
11632else
11633 pic_mode=default
11634fi;
11635test -z "$pic_mode" && pic_mode=default
11636
John Criswell47fdd832003-07-14 16:52:07 +000011637# Use C for the default configuration in the libtool script
11638tagname=
11639lt_save_CC="$CC"
11640ac_ext=c
11641ac_cpp='$CPP $CPPFLAGS'
11642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644ac_compiler_gnu=$ac_cv_c_compiler_gnu
11645
11646
11647# Source file extension for C test sources.
11648ac_ext=c
11649
11650# Object file extension for compiled C test sources.
11651objext=o
11652objext=$objext
11653
11654# Code to be used in simple compile tests
11655lt_simple_compile_test_code="int some_variable = 0;\n"
11656
11657# Code to be used in simple link tests
11658lt_simple_link_test_code='int main(){return(0);}\n'
11659
11660
11661# If no C compiler was specified, use CC.
11662LTCC=${LTCC-"$CC"}
11663
11664# Allow CC to be a program name with arguments.
11665compiler=$CC
11666
11667
11668#
11669# Check for any special shared library compilation flags.
11670#
11671lt_prog_cc_shlib=
11672if test "$GCC" = no; then
11673 case $host_os in
11674 sco3.2v5*)
11675 lt_prog_cc_shlib='-belf'
11676 ;;
11677 esac
11678fi
11679if test -n "$lt_prog_cc_shlib"; then
11680 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11681echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11682 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11683 else
11684 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11685echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11686 lt_cv_prog_cc_can_build_shared=no
11687 fi
11688fi
11689
11690
11691#
11692# Check to make sure the static flag actually works.
11693#
11694echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11695echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11696if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698else
John Criswell47fdd832003-07-14 16:52:07 +000011699 lt_prog_compiler_static_works=no
11700 save_LDFLAGS="$LDFLAGS"
11701 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11702 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11704 # The compiler can only warn and ignore the option if not recognized
11705 # So say no if there are warnings
11706 if test -s conftest.err; then
11707 # Append any errors to the config.log.
11708 cat conftest.err 1>&5
11709 else
11710 lt_prog_compiler_static_works=yes
11711 fi
11712 fi
11713 $rm conftest*
11714 LDFLAGS="$save_LDFLAGS"
11715
11716fi
11717echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11718echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11719
11720if test x"$lt_prog_compiler_static_works" = xyes; then
11721 :
11722else
11723 lt_prog_compiler_static=
11724fi
11725
11726
11727
John Criswell47fdd832003-07-14 16:52:07 +000011728
11729lt_prog_compiler_no_builtin_flag=
11730
11731if test "$GCC" = yes; then
11732 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11733
Reid Spencer2706f8c2004-09-19 23:53:36 +000011734
11735echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011736echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11737if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 lt_cv_prog_compiler_rtti_exceptions=no
11741 ac_outfile=conftest.$ac_objext
11742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11743 lt_compiler_flag="-fno-rtti -fno-exceptions"
11744 # Insert the option either (1) after the last *FLAGS variable, or
11745 # (2) before a word containing "conftest.", or (3) at the end.
11746 # Note that $ac_compile itself does not contain backslashes and begins
11747 # with a dollar sign (not a hyphen), so the echo should work correctly.
11748 # The option is referenced via a variable to avoid confusing sed.
11749 lt_compile=`echo "$ac_compile" | $SED \
11750 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11752 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000011753 (eval echo "\"\$as_me:11753: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011754 (eval "$lt_compile" 2>conftest.err)
11755 ac_status=$?
11756 cat conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000011757 echo "$as_me:11757: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011758 if (exit $ac_status) && test -s "$ac_outfile"; then
11759 # The compiler can only warn and ignore the option if not recognized
11760 # So say no if there are warnings
11761 if test ! -s conftest.err; then
11762 lt_cv_prog_compiler_rtti_exceptions=yes
11763 fi
11764 fi
11765 $rm conftest*
11766
11767fi
11768echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11769echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11770
11771if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11772 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11773else
11774 :
11775fi
11776
11777fi
11778
11779lt_prog_compiler_wl=
11780lt_prog_compiler_pic=
11781lt_prog_compiler_static=
11782
11783echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11784echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011785
11786 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011787 lt_prog_compiler_wl='-Wl,'
11788 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011789
11790 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011791 aix*)
11792 # All AIX code is PIC.
11793 if test "$host_cpu" = ia64; then
11794 # AIX 5 now supports IA64 processor
11795 lt_prog_compiler_static='-Bstatic'
11796 fi
John Criswell7a73b802003-06-30 21:59:07 +000011797 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011798
John Criswell7a73b802003-06-30 21:59:07 +000011799 amigaos*)
11800 # FIXME: we need at least 68020 code to build shared libraries, but
11801 # adding the `-m68020' flag to GCC prevents building anything better,
11802 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011803 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011804 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011805
11806 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011807 # PIC is the default for these OSes.
11808 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011809
11810 mingw* | pw32* | os2*)
11811 # This hack is so that the source file can tell whether it is being
11812 # built for inclusion in a dll (and should export symbols for example).
11813 lt_prog_compiler_pic='-DDLL_EXPORT'
11814 ;;
11815
John Criswell7a73b802003-06-30 21:59:07 +000011816 darwin* | rhapsody*)
11817 # PIC is the default on this platform
11818 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011819 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011820 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011821
11822 msdosdjgpp*)
11823 # Just because we use GCC doesn't mean we suddenly get shared libraries
11824 # on systems that don't support them.
11825 lt_prog_compiler_can_build_shared=no
11826 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011827 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011828
John Criswell7a73b802003-06-30 21:59:07 +000011829 sysv4*MP*)
11830 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011831 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011832 fi
11833 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011834
11835 hpux*)
11836 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11837 # not for PA HP-UX.
11838 case "$host_cpu" in
11839 hppa*64*|ia64*)
11840 # +Z the default
11841 ;;
11842 *)
11843 lt_prog_compiler_pic='-fPIC'
11844 ;;
11845 esac
11846 ;;
11847
John Criswell7a73b802003-06-30 21:59:07 +000011848 *)
John Criswell47fdd832003-07-14 16:52:07 +000011849 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011850 ;;
11851 esac
11852 else
John Criswell47fdd832003-07-14 16:52:07 +000011853 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011854 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011855 aix*)
11856 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011857 if test "$host_cpu" = ia64; then
11858 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011859 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011860 else
John Criswell47fdd832003-07-14 16:52:07 +000011861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011862 fi
11863 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011864 darwin*)
11865 # PIC is the default on this platform
11866 # Common symbols not allowed in MH_DYLIB files
11867 case "$cc_basename" in
11868 xlc*)
11869 lt_prog_compiler_pic='-qnocommon'
11870 lt_prog_compiler_wl='-Wl,'
11871 ;;
11872 esac
11873 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011874
John Criswell47fdd832003-07-14 16:52:07 +000011875 mingw* | pw32* | os2*)
11876 # This hack is so that the source file can tell whether it is being
11877 # built for inclusion in a dll (and should export symbols for example).
11878 lt_prog_compiler_pic='-DDLL_EXPORT'
11879 ;;
11880
John Criswell7a73b802003-06-30 21:59:07 +000011881 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011882 lt_prog_compiler_wl='-Wl,'
11883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11884 # not for PA HP-UX.
11885 case "$host_cpu" in
11886 hppa*64*|ia64*)
11887 # +Z the default
11888 ;;
11889 *)
11890 lt_prog_compiler_pic='+Z'
11891 ;;
11892 esac
11893 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11894 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011895 ;;
11896
John Criswell47fdd832003-07-14 16:52:07 +000011897 irix5* | irix6* | nonstopux*)
11898 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011899 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011900 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011901 ;;
11902
11903 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011904 lt_prog_compiler_pic='-KPIC'
11905 lt_prog_compiler_static='-Bstatic'
11906 ;;
11907
11908 linux*)
11909 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011910 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011911 lt_prog_compiler_wl='-Wl,'
11912 lt_prog_compiler_pic='-KPIC'
11913 lt_prog_compiler_static='-static'
11914 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011915 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011916 lt_prog_compiler_wl='-Wl,'
11917 # All Alpha code is PIC.
11918 lt_prog_compiler_static='-non_shared'
11919 ;;
11920 esac
John Criswell7a73b802003-06-30 21:59:07 +000011921 ;;
11922
11923 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011924 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011925 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011926 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011927 ;;
11928
11929 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011930 lt_prog_compiler_pic='-Kpic'
11931 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011932 ;;
11933
11934 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011935 lt_prog_compiler_wl='-Wl,'
11936 lt_prog_compiler_pic='-KPIC'
11937 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011938 ;;
11939
11940 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011941 lt_prog_compiler_wl='-Qoption ld '
11942 lt_prog_compiler_pic='-PIC'
11943 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011944 ;;
11945
11946 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011947 lt_prog_compiler_wl='-Wl,'
11948 lt_prog_compiler_pic='-KPIC'
11949 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011950 ;;
11951
11952 sysv4*MP*)
11953 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011954 lt_prog_compiler_pic='-Kconform_pic'
11955 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011956 fi
11957 ;;
11958
John Criswell47fdd832003-07-14 16:52:07 +000011959 uts4*)
11960 lt_prog_compiler_pic='-pic'
11961 lt_prog_compiler_static='-Bstatic'
11962 ;;
11963
John Criswell7a73b802003-06-30 21:59:07 +000011964 *)
John Criswell47fdd832003-07-14 16:52:07 +000011965 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011966 ;;
11967 esac
11968 fi
11969
John Criswell47fdd832003-07-14 16:52:07 +000011970echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11971echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011972
John Criswell47fdd832003-07-14 16:52:07 +000011973#
11974# Check to make sure the PIC flag actually works.
11975#
11976if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011977
11978echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011979echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11980if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
John Criswell47fdd832003-07-14 16:52:07 +000011983 lt_prog_compiler_pic_works=no
11984 ac_outfile=conftest.$ac_objext
11985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11986 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11987 # Insert the option either (1) after the last *FLAGS variable, or
11988 # (2) before a word containing "conftest.", or (3) at the end.
11989 # Note that $ac_compile itself does not contain backslashes and begins
11990 # with a dollar sign (not a hyphen), so the echo should work correctly.
11991 # The option is referenced via a variable to avoid confusing sed.
11992 lt_compile=`echo "$ac_compile" | $SED \
11993 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11995 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000011996 (eval echo "\"\$as_me:11996: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011997 (eval "$lt_compile" 2>conftest.err)
11998 ac_status=$?
11999 cat conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000012000 echo "$as_me:12000: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012001 if (exit $ac_status) && test -s "$ac_outfile"; then
12002 # The compiler can only warn and ignore the option if not recognized
12003 # So say no if there are warnings
12004 if test ! -s conftest.err; then
12005 lt_prog_compiler_pic_works=yes
12006 fi
12007 fi
12008 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012009
John Criswell47fdd832003-07-14 16:52:07 +000012010fi
12011echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12012echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012013
John Criswell47fdd832003-07-14 16:52:07 +000012014if test x"$lt_prog_compiler_pic_works" = xyes; then
12015 case $lt_prog_compiler_pic in
12016 "" | " "*) ;;
12017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12018 esac
John Criswell7a73b802003-06-30 21:59:07 +000012019else
John Criswell47fdd832003-07-14 16:52:07 +000012020 lt_prog_compiler_pic=
12021 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012022fi
12023
John Criswell7a73b802003-06-30 21:59:07 +000012024fi
John Criswell47fdd832003-07-14 16:52:07 +000012025case "$host_os" in
12026 # For platforms which do not support PIC, -DPIC is meaningless:
12027 *djgpp*)
12028 lt_prog_compiler_pic=
12029 ;;
12030 *)
12031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12032 ;;
12033esac
John Criswell7a73b802003-06-30 21:59:07 +000012034
John Criswell7a73b802003-06-30 21:59:07 +000012035echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12036echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012037if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012038 echo $ECHO_N "(cached) $ECHO_C" >&6
12039else
John Criswell47fdd832003-07-14 16:52:07 +000012040 lt_cv_prog_compiler_c_o=no
12041 $rm -r conftest 2>/dev/null
12042 mkdir conftest
12043 cd conftest
12044 mkdir out
12045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012046
John Criswell47fdd832003-07-14 16:52:07 +000012047 lt_compiler_flag="-o out/conftest2.$ac_objext"
12048 # Insert the option either (1) after the last *FLAGS variable, or
12049 # (2) before a word containing "conftest.", or (3) at the end.
12050 # Note that $ac_compile itself does not contain backslashes and begins
12051 # with a dollar sign (not a hyphen), so the echo should work correctly.
12052 lt_compile=`echo "$ac_compile" | $SED \
12053 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12055 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000012056 (eval echo "\"\$as_me:12056: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012057 (eval "$lt_compile" 2>out/conftest.err)
12058 ac_status=$?
12059 cat out/conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000012060 echo "$as_me:12060: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12062 then
12063 # The compiler can only warn and ignore the option if not recognized
12064 # So say no if there are warnings
12065 if test ! -s out/conftest.err; then
12066 lt_cv_prog_compiler_c_o=yes
12067 fi
12068 fi
12069 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012070 $rm conftest*
12071 # SGI C++ compiler will create directory out/ii_files/ for
12072 # template instantiation
12073 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12074 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012075 cd ..
12076 rmdir conftest
12077 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012078
12079fi
John Criswell47fdd832003-07-14 16:52:07 +000012080echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12081echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012082
John Criswell7a73b802003-06-30 21:59:07 +000012083
John Criswell7a73b802003-06-30 21:59:07 +000012084hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012085if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012086 # do not overwrite the value of need_locks provided by the user
12087 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12088echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12089 hard_links=yes
12090 $rm conftest*
12091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12092 touch conftest.a
12093 ln conftest.a conftest.b 2>&5 || hard_links=no
12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095 echo "$as_me:$LINENO: result: $hard_links" >&5
12096echo "${ECHO_T}$hard_links" >&6
12097 if test "$hard_links" = no; then
12098 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12099echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12100 need_locks=warn
12101 fi
12102else
12103 need_locks=no
12104fi
John Criswell7a73b802003-06-30 21:59:07 +000012105
John Criswell47fdd832003-07-14 16:52:07 +000012106echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12107echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12108
12109 runpath_var=
12110 allow_undefined_flag=
12111 enable_shared_with_static_runtimes=no
12112 archive_cmds=
12113 archive_expsym_cmds=
12114 old_archive_From_new_cmds=
12115 old_archive_from_expsyms_cmds=
12116 export_dynamic_flag_spec=
12117 whole_archive_flag_spec=
12118 thread_safe_flag_spec=
12119 hardcode_libdir_flag_spec=
12120 hardcode_libdir_flag_spec_ld=
12121 hardcode_libdir_separator=
12122 hardcode_direct=no
12123 hardcode_minus_L=no
12124 hardcode_shlibpath_var=unsupported
12125 link_all_deplibs=unknown
12126 hardcode_automatic=no
12127 module_cmds=
12128 module_expsym_cmds=
12129 always_export_symbols=no
12130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12131 # include_expsyms should be a list of space-separated symbols to be *always*
12132 # included in the symbol list
12133 include_expsyms=
12134 # exclude_expsyms can be an extended regexp of symbols to exclude
12135 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12136 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12137 # as well as any symbol that contains `d'.
12138 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12140 # platforms (ab)use it in PIC code, but their linkers get confused if
12141 # the symbol is explicitly referenced. Since portable code cannot
12142 # rely on this symbol name, it's probably fine to never include it in
12143 # preloaded symbol tables.
12144 extract_expsyms_cmds=
12145
12146 case $host_os in
12147 cygwin* | mingw* | pw32*)
12148 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12149 # When not using gcc, we currently assume that we are using
12150 # Microsoft Visual C++.
12151 if test "$GCC" != yes; then
12152 with_gnu_ld=no
12153 fi
12154 ;;
12155 openbsd*)
12156 with_gnu_ld=no
12157 ;;
12158 esac
12159
12160 ld_shlibs=yes
12161 if test "$with_gnu_ld" = yes; then
12162 # If archive_cmds runs LD, not CC, wlarc should be empty
12163 wlarc='${wl}'
12164
12165 # See if GNU ld supports shared libraries.
12166 case $host_os in
12167 aix3* | aix4* | aix5*)
12168 # On AIX/PPC, the GNU linker is very broken
12169 if test "$host_cpu" != ia64; then
12170 ld_shlibs=no
12171 cat <<EOF 1>&2
12172
12173*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12174*** to be unable to reliably create shared libraries on AIX.
12175*** Therefore, libtool is disabling shared libraries support. If you
12176*** really care for shared libraries, you may want to modify your PATH
12177*** so that a non-GNU linker is found, and then restart.
12178
12179EOF
12180 fi
12181 ;;
12182
12183 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012184 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 +000012185 hardcode_libdir_flag_spec='-L$libdir'
12186 hardcode_minus_L=yes
12187
12188 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12189 # that the semantics of dynamic libraries on AmigaOS, at least up
12190 # to version 4, is to share data among multiple programs linked
12191 # with the same dynamic library. Since this doesn't match the
12192 # behavior of shared libraries on other platforms, we can't use
12193 # them.
12194 ld_shlibs=no
12195 ;;
12196
12197 beos*)
12198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12199 allow_undefined_flag=unsupported
12200 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12201 # support --undefined. This deserves some investigation. FIXME
12202 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203 else
12204 ld_shlibs=no
12205 fi
12206 ;;
12207
12208 cygwin* | mingw* | pw32*)
12209 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12210 # as there is no search path for DLLs.
12211 hardcode_libdir_flag_spec='-L$libdir'
12212 allow_undefined_flag=unsupported
12213 always_export_symbols=no
12214 enable_shared_with_static_runtimes=yes
12215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12216
12217 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12219 # If the export-symbols file already is a .def file (1st line
12220 # is EXPORTS), use it as is; otherwise, prepend...
12221 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12222 cp $export_symbols $output_objdir/$soname.def;
12223 else
12224 echo EXPORTS > $output_objdir/$soname.def;
12225 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012226 fi~
12227 $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 +000012228 else
12229 ld_shlibs=no
12230 fi
12231 ;;
12232
12233 netbsd*)
12234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12236 wlarc=
12237 else
12238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12240 fi
12241 ;;
12242
12243 solaris* | sysv5*)
12244 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12245 ld_shlibs=no
12246 cat <<EOF 1>&2
12247
12248*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12249*** create shared libraries on Solaris systems. Therefore, libtool
12250*** is disabling shared libraries support. We urge you to upgrade GNU
12251*** binutils to release 2.9.1 or newer. Another option is to modify
12252*** your PATH or compiler configuration so that the native linker is
12253*** used, and then restart.
12254
12255EOF
12256 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12259 else
12260 ld_shlibs=no
12261 fi
12262 ;;
12263
12264 sunos4*)
12265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12266 wlarc=
12267 hardcode_direct=yes
12268 hardcode_shlibpath_var=no
12269 ;;
12270
Reid Spencer2706f8c2004-09-19 23:53:36 +000012271 linux*)
12272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12273 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12274 archive_cmds="$tmp_archive_cmds"
12275 supports_anon_versioning=no
12276 case `$LD -v 2>/dev/null` in
12277 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12278 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12279 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12280 *\ 2.11.*) ;; # other 2.11 versions
12281 *) supports_anon_versioning=yes ;;
12282 esac
12283 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012284 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12285cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12286$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012287 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12288 else
12289 archive_expsym_cmds="$tmp_archive_cmds"
12290 fi
12291 else
12292 ld_shlibs=no
12293 fi
12294 ;;
12295
John Criswell47fdd832003-07-14 16:52:07 +000012296 *)
12297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12300 else
12301 ld_shlibs=no
12302 fi
12303 ;;
12304 esac
12305
12306 if test "$ld_shlibs" = yes; then
12307 runpath_var=LD_RUN_PATH
12308 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12309 export_dynamic_flag_spec='${wl}--export-dynamic'
12310 # ancient GNU ld didn't support --whole-archive et. al.
12311 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12312 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12313 else
12314 whole_archive_flag_spec=
12315 fi
12316 fi
12317 else
12318 # PORTME fill in a description of your system's linker (not GNU ld)
12319 case $host_os in
12320 aix3*)
12321 allow_undefined_flag=unsupported
12322 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012323 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 +000012324 # Note: this linker hardcodes the directories in LIBPATH if there
12325 # are no directories specified by -L.
12326 hardcode_minus_L=yes
12327 if test "$GCC" = yes && test -z "$link_static_flag"; then
12328 # Neither direct hardcoding nor static linking is supported with a
12329 # broken collect2.
12330 hardcode_direct=unsupported
12331 fi
12332 ;;
12333
12334 aix4* | aix5*)
12335 if test "$host_cpu" = ia64; then
12336 # On IA64, the linker does run time linking by default, so we don't
12337 # have to do anything special.
12338 aix_use_runtimelinking=no
12339 exp_sym_flag='-Bexport'
12340 no_entry_flag=""
12341 else
12342 # If we're using GNU nm, then we don't want the "-C" option.
12343 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12344 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12345 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'
12346 else
12347 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'
12348 fi
12349 aix_use_runtimelinking=no
12350
12351 # Test if we are trying to use run time linking or normal
12352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12353 # need to do runtime linking.
12354 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12355 for ld_flag in $LDFLAGS; do
12356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12357 aix_use_runtimelinking=yes
12358 break
12359 fi
12360 done
12361 esac
12362
12363 exp_sym_flag='-bexport'
12364 no_entry_flag='-bnoentry'
12365 fi
12366
12367 # When large executables or shared objects are built, AIX ld can
12368 # have problems creating the table of contents. If linking a library
12369 # or program results in "error TOC overflow" add -mminimal-toc to
12370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12372
12373 archive_cmds=''
12374 hardcode_direct=yes
12375 hardcode_libdir_separator=':'
12376 link_all_deplibs=yes
12377
12378 if test "$GCC" = yes; then
12379 case $host_os in aix4.012|aix4.012.*)
12380 # We only want to do this on AIX 4.2 and lower, the check
12381 # below for broken collect2 doesn't work under 4.3+
12382 collect2name=`${CC} -print-prog-name=collect2`
12383 if test -f "$collect2name" && \
12384 strings "$collect2name" | grep resolve_lib_name >/dev/null
12385 then
12386 # We have reworked collect2
12387 hardcode_direct=yes
12388 else
12389 # We have old collect2
12390 hardcode_direct=unsupported
12391 # It fails to find uninstalled libraries when the uninstalled
12392 # path is not listed in the libpath. Setting hardcode_minus_L
12393 # to unsupported forces relinking
12394 hardcode_minus_L=yes
12395 hardcode_libdir_flag_spec='-L$libdir'
12396 hardcode_libdir_separator=
12397 fi
12398 esac
12399 shared_flag='-shared'
12400 else
12401 # not using gcc
12402 if test "$host_cpu" = ia64; then
12403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12404 # chokes on -Wl,-G. The following line is correct:
12405 shared_flag='-G'
12406 else
12407 if test "$aix_use_runtimelinking" = yes; then
12408 shared_flag='${wl}-G'
12409 else
12410 shared_flag='${wl}-bM:SRE'
12411 fi
12412 fi
12413 fi
12414
12415 # It seems that -bexpall does not export symbols beginning with
12416 # underscore (_), so it is better to generate a list of symbols to export.
12417 always_export_symbols=yes
12418 if test "$aix_use_runtimelinking" = yes; then
12419 # Warning - without using the other runtime loading flags (-brtl),
12420 # -berok will link without error, but may produce a broken library.
12421 allow_undefined_flag='-berok'
12422 # Determine the default libpath from the value encoded in an empty executable.
12423 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012424/* confdefs.h. */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012429
John Criswell7a73b802003-06-30 21:59:07 +000012430int
12431main ()
12432{
John Criswell47fdd832003-07-14 16:52:07 +000012433
John Criswell7a73b802003-06-30 21:59:07 +000012434 ;
12435 return 0;
12436}
12437_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012438rm -f conftest.$ac_objext conftest$ac_exeext
12439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012440 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012447 { ac_try='test -z "$ac_c_werror_flag"
12448 || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012460
John Criswell47fdd832003-07-14 16:52:07 +000012461aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12462}'`
12463# Check for a 64-bit object if we didn't find anything.
12464if 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; }
12465}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012466else
12467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012468sed 's/^/| /' conftest.$ac_ext >&5
12469
John Criswell7a73b802003-06-30 21:59:07 +000012470fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012471rm -f conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012474
John Criswell47fdd832003-07-14 16:52:07 +000012475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12476 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"
12477 else
12478 if test "$host_cpu" = ia64; then
12479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12480 allow_undefined_flag="-z nodefs"
12481 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"
12482 else
12483 # Determine the default libpath from the value encoded in an empty executable.
12484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012490
John Criswell47fdd832003-07-14 16:52:07 +000012491int
12492main ()
12493{
John Criswell7a73b802003-06-30 21:59:07 +000012494
John Criswell47fdd832003-07-14 16:52:07 +000012495 ;
12496 return 0;
12497}
12498_ACEOF
12499rm -f conftest.$ac_objext conftest$ac_exeext
12500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012501 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012502 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012503 grep -v '^ *+' conftest.er1 >conftest.err
12504 rm -f conftest.er1
12505 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012508 { ac_try='test -z "$ac_c_werror_flag"
12509 || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012521
John Criswell47fdd832003-07-14 16:52:07 +000012522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12523}'`
12524# Check for a 64-bit object if we didn't find anything.
12525if 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; }
12526}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012527else
John Criswell47fdd832003-07-14 16:52:07 +000012528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012529sed 's/^/| /' conftest.$ac_ext >&5
12530
John Criswell47fdd832003-07-14 16:52:07 +000012531fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012532rm -f conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012535
John Criswell47fdd832003-07-14 16:52:07 +000012536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12537 # Warning - without using the other run time loading flags,
12538 # -berok will link without error, but may produce a broken library.
12539 no_undefined_flag=' ${wl}-bernotok'
12540 allow_undefined_flag=' ${wl}-berok'
12541 # -bexpall does not export symbols beginning with underscore (_)
12542 always_export_symbols=yes
12543 # Exported symbols can be pulled into shared objects from archives
12544 whole_archive_flag_spec=' '
12545 archive_cmds_need_lc=yes
12546 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012547 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 +000012548 fi
12549 fi
John Criswell7a73b802003-06-30 21:59:07 +000012550 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012551
12552 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012553 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 +000012554 hardcode_libdir_flag_spec='-L$libdir'
12555 hardcode_minus_L=yes
12556 # see comment about different semantics on the GNU ld section
12557 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012558 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012559
Reid Spencer2706f8c2004-09-19 23:53:36 +000012560 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012561 export_dynamic_flag_spec=-rdynamic
12562 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012563
John Criswell47fdd832003-07-14 16:52:07 +000012564 cygwin* | mingw* | pw32*)
12565 # When not using gcc, we currently assume that we are using
12566 # Microsoft Visual C++.
12567 # hardcode_libdir_flag_spec is actually meaningless, as there is
12568 # no search path for DLLs.
12569 hardcode_libdir_flag_spec=' '
12570 allow_undefined_flag=unsupported
12571 # Tell ltmain to make .lib files, not .a files.
12572 libext=lib
12573 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012574 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012575 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012576 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012577 # The linker will automatically build a .lib file if we build a DLL.
12578 old_archive_From_new_cmds='true'
12579 # FIXME: Should let the user specify the lib program.
12580 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12581 fix_srcfile_path='`cygpath -w "$srcfile"`'
12582 enable_shared_with_static_runtimes=yes
12583 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012584
John Criswell47fdd832003-07-14 16:52:07 +000012585 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012586 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012587 rhapsody* | darwin1.[012])
12588 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12589 ;;
12590 *) # Darwin 1.3 on
12591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12592 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12593 else
12594 case ${MACOSX_DEPLOYMENT_TARGET} in
12595 10.[012])
12596 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12597 ;;
12598 10.*)
12599 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12600 ;;
12601 esac
12602 fi
12603 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012604 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012605 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012606 hardcode_direct=no
12607 hardcode_automatic=yes
12608 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012609 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012610 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012611 if test "$GCC" = yes ; then
12612 output_verbose_link_cmd='echo'
12613 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12614 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12615 # 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 +000012616 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}'
12617 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 +000012618 else
12619 case "$cc_basename" in
12620 xlc*)
12621 output_verbose_link_cmd='echo'
12622 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12623 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12624 # 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 +000012625 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}'
12626 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 +000012627 ;;
12628 *)
12629 ld_shlibs=no
12630 ;;
12631 esac
John Criswell7a73b802003-06-30 21:59:07 +000012632 fi
John Criswell47fdd832003-07-14 16:52:07 +000012633 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012634
John Criswell47fdd832003-07-14 16:52:07 +000012635 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012637 hardcode_libdir_flag_spec='-L$libdir'
12638 hardcode_shlibpath_var=no
12639 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012640
John Criswell47fdd832003-07-14 16:52:07 +000012641 freebsd1*)
12642 ld_shlibs=no
12643 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012644
John Criswell47fdd832003-07-14 16:52:07 +000012645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12646 # support. Future versions do this automatically, but an explicit c++rt0.o
12647 # does not break anything, and helps significantly (at the cost of a little
12648 # extra space).
12649 freebsd2.2*)
12650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12651 hardcode_libdir_flag_spec='-R$libdir'
12652 hardcode_direct=yes
12653 hardcode_shlibpath_var=no
12654 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012655
John Criswell47fdd832003-07-14 16:52:07 +000012656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12657 freebsd2*)
12658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12659 hardcode_direct=yes
12660 hardcode_minus_L=yes
12661 hardcode_shlibpath_var=no
12662 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012663
John Criswell47fdd832003-07-14 16:52:07 +000012664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012665 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012666 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12667 hardcode_libdir_flag_spec='-R$libdir'
12668 hardcode_direct=yes
12669 hardcode_shlibpath_var=no
12670 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012671
John Criswell47fdd832003-07-14 16:52:07 +000012672 hpux9*)
12673 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012674 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 +000012675 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012676 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 +000012677 fi
12678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12679 hardcode_libdir_separator=:
12680 hardcode_direct=yes
12681
12682 # hardcode_minus_L: Not really in the search PATH,
12683 # but as the default location of the library.
12684 hardcode_minus_L=yes
12685 export_dynamic_flag_spec='${wl}-E'
12686 ;;
12687
12688 hpux10* | hpux11*)
12689 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12690 case "$host_cpu" in
12691 hppa*64*|ia64*)
12692 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12693 ;;
12694 *)
12695 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12696 ;;
12697 esac
12698 else
12699 case "$host_cpu" in
12700 hppa*64*|ia64*)
12701 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12702 ;;
12703 *)
12704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12705 ;;
12706 esac
12707 fi
12708 if test "$with_gnu_ld" = no; then
12709 case "$host_cpu" in
12710 hppa*64*)
12711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12712 hardcode_libdir_flag_spec_ld='+b $libdir'
12713 hardcode_libdir_separator=:
12714 hardcode_direct=no
12715 hardcode_shlibpath_var=no
12716 ;;
12717 ia64*)
12718 hardcode_libdir_flag_spec='-L$libdir'
12719 hardcode_direct=no
12720 hardcode_shlibpath_var=no
12721
12722 # hardcode_minus_L: Not really in the search PATH,
12723 # but as the default location of the library.
12724 hardcode_minus_L=yes
12725 ;;
12726 *)
12727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12728 hardcode_libdir_separator=:
12729 hardcode_direct=yes
12730 export_dynamic_flag_spec='${wl}-E'
12731
12732 # hardcode_minus_L: Not really in the search PATH,
12733 # but as the default location of the library.
12734 hardcode_minus_L=yes
12735 ;;
12736 esac
12737 fi
12738 ;;
12739
12740 irix5* | irix6* | nonstopux*)
12741 if test "$GCC" = yes; then
12742 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'
12743 else
12744 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'
12745 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12746 fi
12747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12748 hardcode_libdir_separator=:
12749 link_all_deplibs=yes
12750 ;;
12751
12752 netbsd*)
12753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12755 else
12756 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12757 fi
12758 hardcode_libdir_flag_spec='-R$libdir'
12759 hardcode_direct=yes
12760 hardcode_shlibpath_var=no
12761 ;;
12762
12763 newsos6)
12764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12765 hardcode_direct=yes
12766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12767 hardcode_libdir_separator=:
12768 hardcode_shlibpath_var=no
12769 ;;
12770
12771 openbsd*)
12772 hardcode_direct=yes
12773 hardcode_shlibpath_var=no
12774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012776 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 +000012777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12778 export_dynamic_flag_spec='${wl}-E'
12779 else
12780 case $host_os in
12781 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12783 hardcode_libdir_flag_spec='-R$libdir'
12784 ;;
12785 *)
12786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12788 ;;
12789 esac
12790 fi
12791 ;;
12792
12793 os2*)
12794 hardcode_libdir_flag_spec='-L$libdir'
12795 hardcode_minus_L=yes
12796 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012797 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 +000012798 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12799 ;;
12800
12801 osf3*)
12802 if test "$GCC" = yes; then
12803 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12804 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'
12805 else
12806 allow_undefined_flag=' -expect_unresolved \*'
12807 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'
12808 fi
12809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12810 hardcode_libdir_separator=:
12811 ;;
12812
12813 osf4* | osf5*) # as osf3* with the addition of -msym flag
12814 if test "$GCC" = yes; then
12815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12816 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12818 else
12819 allow_undefined_flag=' -expect_unresolved \*'
12820 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 +000012821 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12822 $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'
12823
John Criswell47fdd832003-07-14 16:52:07 +000012824 # Both c and cxx compiler support -rpath directly
12825 hardcode_libdir_flag_spec='-rpath $libdir'
12826 fi
12827 hardcode_libdir_separator=:
12828 ;;
12829
12830 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012833 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012834 runpath_var=LD_RUN_PATH
12835 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012836 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012837
John Criswell47fdd832003-07-14 16:52:07 +000012838 solaris*)
12839 no_undefined_flag=' -z text'
12840 if test "$GCC" = yes; then
12841 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012842 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12843 $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 +000012844 else
12845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012846 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12847 $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 +000012848 fi
12849 hardcode_libdir_flag_spec='-R$libdir'
12850 hardcode_shlibpath_var=no
12851 case $host_os in
12852 solaris2.[0-5] | solaris2.[0-5].*) ;;
12853 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12854 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12855 esac
12856 link_all_deplibs=yes
12857 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012858
John Criswell47fdd832003-07-14 16:52:07 +000012859 sunos4*)
12860 if test "x$host_vendor" = xsequent; then
12861 # Use $CC to link under sequent, because it throws in some extra .o
12862 # files that make .init and .fini sections work.
12863 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12864 else
12865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12866 fi
12867 hardcode_libdir_flag_spec='-L$libdir'
12868 hardcode_direct=yes
12869 hardcode_minus_L=yes
12870 hardcode_shlibpath_var=no
12871 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012872
John Criswell47fdd832003-07-14 16:52:07 +000012873 sysv4)
12874 case $host_vendor in
12875 sni)
12876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12877 hardcode_direct=yes # is this really true???
12878 ;;
12879 siemens)
12880 ## LD is ld it makes a PLAMLIB
12881 ## CC just makes a GrossModule.
12882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12883 reload_cmds='$CC -r -o $output$reload_objs'
12884 hardcode_direct=no
12885 ;;
12886 motorola)
12887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12889 ;;
12890 esac
12891 runpath_var='LD_RUN_PATH'
12892 hardcode_shlibpath_var=no
12893 ;;
12894
12895 sysv4.3*)
12896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_shlibpath_var=no
12898 export_dynamic_flag_spec='-Bexport'
12899 ;;
12900
12901 sysv4*MP*)
12902 if test -d /usr/nec; then
12903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12904 hardcode_shlibpath_var=no
12905 runpath_var=LD_RUN_PATH
12906 hardcode_runpath_var=yes
12907 ld_shlibs=yes
12908 fi
12909 ;;
12910
12911 sysv4.2uw2*)
12912 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12913 hardcode_direct=yes
12914 hardcode_minus_L=no
12915 hardcode_shlibpath_var=no
12916 hardcode_runpath_var=yes
12917 runpath_var=LD_RUN_PATH
12918 ;;
12919
12920 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12921 no_undefined_flag='${wl}-z ${wl}text'
12922 if test "$GCC" = yes; then
12923 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12924 else
12925 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12926 fi
12927 runpath_var='LD_RUN_PATH'
12928 hardcode_shlibpath_var=no
12929 ;;
12930
12931 sysv5*)
12932 no_undefined_flag=' -z text'
12933 # $CC -shared without GNU ld will not create a library from C++
12934 # object files and a static libstdc++, better avoid it by now
12935 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012936 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12937 $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 +000012938 hardcode_libdir_flag_spec=
12939 hardcode_shlibpath_var=no
12940 runpath_var='LD_RUN_PATH'
12941 ;;
12942
12943 uts4*)
12944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12945 hardcode_libdir_flag_spec='-L$libdir'
12946 hardcode_shlibpath_var=no
12947 ;;
12948
12949 *)
12950 ld_shlibs=no
12951 ;;
12952 esac
12953 fi
12954
John Criswell7a73b802003-06-30 21:59:07 +000012955echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12956echo "${ECHO_T}$ld_shlibs" >&6
12957test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012958
John Criswell47fdd832003-07-14 16:52:07 +000012959variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12960if test "$GCC" = yes; then
12961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12962fi
12963
12964#
12965# Do we need to explicitly link libc?
12966#
12967case "x$archive_cmds_need_lc" in
12968x|xyes)
12969 # Assume -lc should be added
12970 archive_cmds_need_lc=yes
12971
12972 if test "$enable_shared" = yes && test "$GCC" = yes; then
12973 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012974 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012975 # FIXME: we may have to deal with multi-command sequences.
12976 ;;
12977 '$CC '*)
12978 # Test whether the compiler implicitly links with -lc since on some
12979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12980 # to ld, don't add -lc before -lgcc.
12981 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12982echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12983 $rm conftest*
12984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12985
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } 2>conftest.err; then
12991 soname=conftest
12992 lib=conftest
12993 libobjs=conftest.$ac_objext
12994 deplibs=
12995 wl=$lt_prog_compiler_wl
12996 compiler_flags=-v
12997 linker_flags=-v
12998 verstring=
12999 output_objdir=.
13000 libname=conftest
13001 lt_save_allow_undefined_flag=$allow_undefined_flag
13002 allow_undefined_flag=
13003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13004 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }
13008 then
13009 archive_cmds_need_lc=no
13010 else
13011 archive_cmds_need_lc=yes
13012 fi
13013 allow_undefined_flag=$lt_save_allow_undefined_flag
13014 else
13015 cat conftest.err 1>&5
13016 fi
13017 $rm conftest*
13018 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13019echo "${ECHO_T}$archive_cmds_need_lc" >&6
13020 ;;
13021 esac
13022 fi
13023 ;;
13024esac
13025
John Criswell7a73b802003-06-30 21:59:07 +000013026echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13027echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13028library_names_spec=
13029libname_spec='lib$name'
13030soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013031shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013032postinstall_cmds=
13033postuninstall_cmds=
13034finish_cmds=
13035finish_eval=
13036shlibpath_var=
13037shlibpath_overrides_runpath=unknown
13038version_type=none
13039dynamic_linker="$host_os ld.so"
13040sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013041if test "$GCC" = yes; then
13042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13044 # if the path contains ";" then we assume it to be the separator
13045 # otherwise default to the standard path separator (i.e. ":") - it is
13046 # assumed that no part of a normal pathname contains ";" but that should
13047 # okay in the real world where ";" in dirpaths is itself problematic.
13048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13049 else
13050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13051 fi
13052else
13053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13054fi
13055need_lib_prefix=unknown
13056hardcode_into_libs=no
13057
13058# when you set need_version to no, make sure it does not cause -set_version
13059# flags to be left without arguments
13060need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013061
13062case $host_os in
13063aix3*)
13064 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013066 shlibpath_var=LIBPATH
13067
John Criswell47fdd832003-07-14 16:52:07 +000013068 # AIX 3 has no versioning support, so we append a major version to the name.
13069 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013070 ;;
13071
13072aix4* | aix5*)
13073 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013074 need_lib_prefix=no
13075 need_version=no
13076 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013077 if test "$host_cpu" = ia64; then
13078 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013080 shlibpath_var=LD_LIBRARY_PATH
13081 else
13082 # With GCC up to 2.95.x, collect2 would create an import file
13083 # for dependence libraries. The import file would start with
13084 # the line `#! .'. This would cause the generated library to
13085 # depend on `.', always an invalid library. This was fixed in
13086 # development snapshots of GCC prior to 3.0.
13087 case $host_os in
13088 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13090 echo ' yes '
13091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13092 :
13093 else
13094 can_build_shared=no
13095 fi
13096 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013097 esac
John Criswell47fdd832003-07-14 16:52:07 +000013098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13099 # soname into executable. Probably we can add versioning support to
13100 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013101 if test "$aix_use_runtimelinking" = yes; then
13102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13103 # instead of lib<name>.a to let people know that these are not
13104 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013106 else
13107 # We preserve .a as extension for shared libraries through AIX4.2
13108 # and later when we are not doing run time linking.
13109 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013110 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013111 fi
13112 shlibpath_var=LIBPATH
13113 fi
13114 ;;
13115
13116amigaos*)
13117 library_names_spec='$libname.ixlibrary $libname.a'
13118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013119 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 +000013120 ;;
13121
13122beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013123 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013124 dynamic_linker="$host_os ld.so"
13125 shlibpath_var=LIBRARY_PATH
13126 ;;
13127
Reid Spencer2706f8c2004-09-19 23:53:36 +000013128bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013129 version_type=linux
13130 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13134 shlibpath_var=LD_LIBRARY_PATH
13135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013137 # the default ld.so.conf also contains /usr/contrib/lib and
13138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13139 # libtool to hard-code these into programs
13140 ;;
13141
13142cygwin* | mingw* | pw32*)
13143 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013144 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013145 need_version=no
13146 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013147
John Criswell7a73b802003-06-30 21:59:07 +000013148 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013149 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013150 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013152 postinstall_cmds='base_file=`basename \${file}`~
13153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13154 dldir=$destdir/`dirname \$dlpath`~
13155 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013156 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13158 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013159 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013160 shlibpath_overrides_runpath=yes
13161
13162 case $host_os in
13163 cygwin*)
13164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13165 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 +000013166 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013167 ;;
13168 mingw*)
13169 # MinGW DLLs use traditional 'lib' prefix
13170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13172 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13173 # It is most probably a Windows format PATH printed by
13174 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13175 # path with ; separators, and with drive letters. We can handle the
13176 # drive letters (cygwin fileutils understands them), so leave them,
13177 # especially as we might pass files found there to a mingw objdump,
13178 # which wouldn't understand a cygwinified path. Ahh.
13179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13180 else
13181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13182 fi
13183 ;;
13184 pw32*)
13185 # pw32 DLLs use 'pw' prefix rather than 'lib'
13186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13187 ;;
13188 esac
John Criswell7a73b802003-06-30 21:59:07 +000013189 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013190
John Criswell7a73b802003-06-30 21:59:07 +000013191 *)
John Criswell47fdd832003-07-14 16:52:07 +000013192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013193 ;;
13194 esac
13195 dynamic_linker='Win32 ld.exe'
13196 # FIXME: first we should search . and the directory the executable is in
13197 shlibpath_var=PATH
13198 ;;
13199
13200darwin* | rhapsody*)
13201 dynamic_linker="$host_os dyld"
13202 version_type=darwin
13203 need_lib_prefix=no
13204 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013205 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013206 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013207 shlibpath_overrides_runpath=yes
13208 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013209 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013210 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013211 if test "$GCC" = yes; then
13212 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"`
13213 else
13214 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013215 fi
13216 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13217 ;;
13218
13219dgux*)
13220 version_type=linux
13221 need_lib_prefix=no
13222 need_version=no
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13224 soname_spec='${libname}${release}${shared_ext}$major'
13225 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013226 ;;
13227
13228freebsd1*)
13229 dynamic_linker=no
13230 ;;
13231
Reid Spencer2706f8c2004-09-19 23:53:36 +000013232kfreebsd*-gnu)
13233 version_type=linux
13234 need_lib_prefix=no
13235 need_version=no
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 shlibpath_var=LD_LIBRARY_PATH
13239 shlibpath_overrides_runpath=no
13240 hardcode_into_libs=yes
13241 dynamic_linker='GNU ld.so'
13242 ;;
13243
John Criswell7a73b802003-06-30 21:59:07 +000013244freebsd*)
13245 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13246 version_type=freebsd-$objformat
13247 case $version_type in
13248 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013250 need_version=no
13251 need_lib_prefix=no
13252 ;;
13253 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013255 need_version=yes
13256 ;;
13257 esac
13258 shlibpath_var=LD_LIBRARY_PATH
13259 case $host_os in
13260 freebsd2*)
13261 shlibpath_overrides_runpath=yes
13262 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013263 freebsd3.01* | freebsdelf3.01*)
13264 shlibpath_overrides_runpath=yes
13265 hardcode_into_libs=yes
13266 ;;
13267 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013268 shlibpath_overrides_runpath=no
13269 hardcode_into_libs=yes
13270 ;;
13271 esac
13272 ;;
13273
13274gnu*)
13275 version_type=linux
13276 need_lib_prefix=no
13277 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013280 shlibpath_var=LD_LIBRARY_PATH
13281 hardcode_into_libs=yes
13282 ;;
13283
13284hpux9* | hpux10* | hpux11*)
13285 # Give a soname corresponding to the major version so that dld.sl refuses to
13286 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013287 version_type=sunos
13288 need_lib_prefix=no
13289 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013290 case "$host_cpu" in
13291 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013292 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013293 hardcode_into_libs=yes
13294 dynamic_linker="$host_os dld.so"
13295 shlibpath_var=LD_LIBRARY_PATH
13296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 if test "X$HPUX_IA64_MODE" = X32; then
13300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13301 else
13302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13303 fi
13304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13305 ;;
13306 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013307 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013308 hardcode_into_libs=yes
13309 dynamic_linker="$host_os dld.sl"
13310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13316 ;;
13317 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013318 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013319 dynamic_linker="$host_os dld.sl"
13320 shlibpath_var=SHLIB_PATH
13321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13323 soname_spec='${libname}${release}${shared_ext}$major'
13324 ;;
13325 esac
John Criswell7a73b802003-06-30 21:59:07 +000013326 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13327 postinstall_cmds='chmod 555 $lib'
13328 ;;
13329
John Criswell47fdd832003-07-14 16:52:07 +000013330irix5* | irix6* | nonstopux*)
13331 case $host_os in
13332 nonstopux*) version_type=nonstopux ;;
13333 *)
13334 if test "$lt_cv_prog_gnu_ld" = yes; then
13335 version_type=linux
13336 else
13337 version_type=irix
13338 fi ;;
13339 esac
John Criswell7a73b802003-06-30 21:59:07 +000013340 need_lib_prefix=no
13341 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013342 soname_spec='${libname}${release}${shared_ext}$major'
13343 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 +000013344 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013345 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013346 libsuff= shlibsuff=
13347 ;;
13348 *)
13349 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13351 libsuff= shlibsuff= libmagic=32-bit;;
13352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13353 libsuff=32 shlibsuff=N32 libmagic=N32;;
13354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013356 *) libsuff= shlibsuff= libmagic=never-match;;
13357 esac
13358 ;;
13359 esac
13360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13361 shlibpath_overrides_runpath=no
13362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013364 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013365 ;;
13366
13367# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013368linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013369 dynamic_linker=no
13370 ;;
13371
13372# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013373linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013374 version_type=linux
13375 need_lib_prefix=no
13376 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 shlibpath_overrides_runpath=no
13382 # This implies no fast_install, which is unacceptable.
13383 # Some rework will be needed to allow for fast_install
13384 # before this can be enabled.
13385 hardcode_into_libs=yes
13386
Reid Spencer2706f8c2004-09-19 23:53:36 +000013387 # Append ld.so.conf contents to the search path
13388 if test -f /etc/ld.so.conf; then
13389 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13390 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13391 fi
13392
John Criswell7a73b802003-06-30 21:59:07 +000013393 # We used to test for /lib/ld.so.1 and disable shared libraries on
13394 # powerpc, because MkLinux only supported shared libraries with the
13395 # GNU dynamic linker. Since this was broken with cross compilers,
13396 # most powerpc-linux boxes support dynamic linking these days and
13397 # people can always --disable-shared, the test was removed, and we
13398 # assume the GNU/Linux dynamic linker is in use.
13399 dynamic_linker='GNU/Linux ld.so'
13400 ;;
13401
Reid Spencer2706f8c2004-09-19 23:53:36 +000013402knetbsd*-gnu)
13403 version_type=linux
13404 need_lib_prefix=no
13405 need_version=no
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=no
13410 hardcode_into_libs=yes
13411 dynamic_linker='GNU ld.so'
13412 ;;
13413
John Criswell7a73b802003-06-30 21:59:07 +000013414netbsd*)
13415 version_type=sunos
13416 need_lib_prefix=no
13417 need_version=no
13418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13421 dynamic_linker='NetBSD (a.out) ld.so'
13422 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013424 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013425 dynamic_linker='NetBSD ld.elf_so'
13426 fi
13427 shlibpath_var=LD_LIBRARY_PATH
13428 shlibpath_overrides_runpath=yes
13429 hardcode_into_libs=yes
13430 ;;
13431
13432newsos6)
13433 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=yes
13437 ;;
13438
Reid Spencer2706f8c2004-09-19 23:53:36 +000013439nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013440 version_type=linux
13441 need_lib_prefix=no
13442 need_version=no
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=yes
13447 ;;
13448
13449openbsd*)
13450 version_type=sunos
13451 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013452 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13455 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013456 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 +000013457 case $host_os in
13458 openbsd2.[89] | openbsd2.[89].*)
13459 shlibpath_overrides_runpath=no
13460 ;;
13461 *)
13462 shlibpath_overrides_runpath=yes
13463 ;;
13464 esac
John Criswell7a73b802003-06-30 21:59:07 +000013465 else
13466 shlibpath_overrides_runpath=yes
13467 fi
John Criswell7a73b802003-06-30 21:59:07 +000013468 ;;
13469
13470os2*)
13471 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013472 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013473 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013474 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013475 dynamic_linker='OS/2 ld.exe'
13476 shlibpath_var=LIBPATH
13477 ;;
13478
13479osf3* | osf4* | osf5*)
13480 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013481 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013482 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013483 soname_spec='${libname}${release}${shared_ext}$major'
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013485 shlibpath_var=LD_LIBRARY_PATH
13486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13488 ;;
13489
13490sco3.2v5*)
13491 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013492 soname_spec='${libname}${release}${shared_ext}$major'
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013494 shlibpath_var=LD_LIBRARY_PATH
13495 ;;
13496
13497solaris*)
13498 version_type=linux
13499 need_lib_prefix=no
13500 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013503 shlibpath_var=LD_LIBRARY_PATH
13504 shlibpath_overrides_runpath=yes
13505 hardcode_into_libs=yes
13506 # ldd complains unless libraries are executable
13507 postinstall_cmds='chmod +x $lib'
13508 ;;
13509
13510sunos4*)
13511 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13514 shlibpath_var=LD_LIBRARY_PATH
13515 shlibpath_overrides_runpath=yes
13516 if test "$with_gnu_ld" = yes; then
13517 need_lib_prefix=no
13518 fi
13519 need_version=yes
13520 ;;
13521
13522sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13523 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13525 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013526 shlibpath_var=LD_LIBRARY_PATH
13527 case $host_vendor in
13528 sni)
13529 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013530 need_lib_prefix=no
13531 export_dynamic_flag_spec='${wl}-Blargedynsym'
13532 runpath_var=LD_RUN_PATH
13533 ;;
13534 siemens)
13535 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013536 ;;
13537 motorola)
13538 need_lib_prefix=no
13539 need_version=no
13540 shlibpath_overrides_runpath=no
13541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13542 ;;
13543 esac
13544 ;;
13545
John Criswell7a73b802003-06-30 21:59:07 +000013546sysv4*MP*)
13547 if test -d /usr/nec ;then
13548 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13550 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013551 shlibpath_var=LD_LIBRARY_PATH
13552 fi
13553 ;;
13554
John Criswell47fdd832003-07-14 16:52:07 +000013555uts4*)
13556 version_type=linux
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 soname_spec='${libname}${release}${shared_ext}$major'
13559 shlibpath_var=LD_LIBRARY_PATH
13560 ;;
13561
John Criswell7a73b802003-06-30 21:59:07 +000013562*)
13563 dynamic_linker=no
13564 ;;
13565esac
13566echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13567echo "${ECHO_T}$dynamic_linker" >&6
13568test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013569
Reid Spencer2706f8c2004-09-19 23:53:36 +000013570echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13571echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13572hardcode_action=
13573if test -n "$hardcode_libdir_flag_spec" || \
13574 test -n "$runpath_var" || \
13575 test "X$hardcode_automatic" = "Xyes" ; then
13576
13577 # We can hardcode non-existant directories.
13578 if test "$hardcode_direct" != no &&
13579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13580 # have to relink, otherwise we might link with an installed library
13581 # when we should be linking with a yet-to-be-installed one
13582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13583 test "$hardcode_minus_L" != no; then
13584 # Linking always hardcodes the temporary library directory.
13585 hardcode_action=relink
13586 else
13587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13588 hardcode_action=immediate
13589 fi
13590else
13591 # We cannot hardcode anything, or else we can only hardcode existing
13592 # directories.
13593 hardcode_action=unsupported
13594fi
13595echo "$as_me:$LINENO: result: $hardcode_action" >&5
13596echo "${ECHO_T}$hardcode_action" >&6
13597
13598if test "$hardcode_action" = relink; then
13599 # Fast installation is not supported
13600 enable_fast_install=no
13601elif test "$shlibpath_overrides_runpath" = yes ||
13602 test "$enable_shared" = no; then
13603 # Fast installation is not necessary
13604 enable_fast_install=needless
13605fi
13606
13607striplib=
13608old_striplib=
13609echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13610echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13611if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13614 echo "$as_me:$LINENO: result: yes" >&5
13615echo "${ECHO_T}yes" >&6
13616else
13617# FIXME - insert some real tests, host_os isn't really good enough
13618 case $host_os in
13619 darwin*)
13620 if test -n "$STRIP" ; then
13621 striplib="$STRIP -x"
13622 echo "$as_me:$LINENO: result: yes" >&5
13623echo "${ECHO_T}yes" >&6
13624 else
13625 echo "$as_me:$LINENO: result: no" >&5
13626echo "${ECHO_T}no" >&6
13627fi
13628 ;;
13629 *)
13630 echo "$as_me:$LINENO: result: no" >&5
13631echo "${ECHO_T}no" >&6
13632 ;;
13633 esac
13634fi
13635
John Criswell7a73b802003-06-30 21:59:07 +000013636if test "x$enable_dlopen" != xyes; then
13637 enable_dlopen=unknown
13638 enable_dlopen_self=unknown
13639 enable_dlopen_self_static=unknown
13640else
13641 lt_cv_dlopen=no
13642 lt_cv_dlopen_libs=
13643
13644 case $host_os in
13645 beos*)
13646 lt_cv_dlopen="load_add_on"
13647 lt_cv_dlopen_libs=
13648 lt_cv_dlopen_self=yes
13649 ;;
13650
John Criswell47fdd832003-07-14 16:52:07 +000013651 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013652 lt_cv_dlopen="LoadLibrary"
13653 lt_cv_dlopen_libs=
13654 ;;
13655
John Criswell47fdd832003-07-14 16:52:07 +000013656 cygwin*)
13657 lt_cv_dlopen="dlopen"
13658 lt_cv_dlopen_libs=
13659 ;;
13660
13661 darwin*)
13662 # if libdl is installed we need to link against it
13663 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13664echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13665if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668 ac_check_lib_save_LIBS=$LIBS
13669LIBS="-ldl $LIBS"
13670cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013676
13677/* Override any gcc2 internal prototype to avoid an error. */
13678#ifdef __cplusplus
13679extern "C"
13680#endif
13681/* We use char because int might match the return type of a gcc2
13682 builtin and then its argument prototype would still apply. */
13683char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013684int
13685main ()
13686{
13687dlopen ();
13688 ;
13689 return 0;
13690}
13691_ACEOF
13692rm -f conftest.$ac_objext conftest$ac_exeext
13693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013694 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013701 { ac_try='test -z "$ac_c_werror_flag"
13702 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_lib_dl_dlopen=yes
13715else
13716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013717sed 's/^/| /' conftest.$ac_ext >&5
13718
John Criswell47fdd832003-07-14 16:52:07 +000013719ac_cv_lib_dl_dlopen=no
13720fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013721rm -f conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013723LIBS=$ac_check_lib_save_LIBS
13724fi
13725echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13726echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13727if test $ac_cv_lib_dl_dlopen = yes; then
13728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13729else
13730
13731 lt_cv_dlopen="dyld"
13732 lt_cv_dlopen_libs=
13733 lt_cv_dlopen_self=yes
13734
13735fi
13736
13737 ;;
13738
John Criswell7a73b802003-06-30 21:59:07 +000013739 *)
13740 echo "$as_me:$LINENO: checking for shl_load" >&5
13741echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13742if test "${ac_cv_func_shl_load+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744else
13745 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013746/* confdefs.h. */
13747_ACEOF
13748cat confdefs.h >>conftest.$ac_ext
13749cat >>conftest.$ac_ext <<_ACEOF
13750/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013751/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13753#define shl_load innocuous_shl_load
13754
John Criswell7a73b802003-06-30 21:59:07 +000013755/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013756 which can conflict with char shl_load (); below.
13757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13758 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013759
John Criswell0c38eaf2003-09-10 15:17:25 +000013760#ifdef __STDC__
13761# include <limits.h>
13762#else
13763# include <assert.h>
13764#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013765
13766#undef shl_load
13767
John Criswell7a73b802003-06-30 21:59:07 +000013768/* Override any gcc2 internal prototype to avoid an error. */
13769#ifdef __cplusplus
13770extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013771{
John Criswell7a73b802003-06-30 21:59:07 +000013772#endif
13773/* We use char because int might match the return type of a gcc2
13774 builtin and then its argument prototype would still apply. */
13775char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013776/* The GNU C library defines this for functions which it implements
13777 to always fail with ENOSYS. Some functions are actually named
13778 something starting with __ and the normal name is an alias. */
13779#if defined (__stub_shl_load) || defined (__stub___shl_load)
13780choke me
13781#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013782char (*f) () = shl_load;
13783#endif
13784#ifdef __cplusplus
13785}
John Criswell7a73b802003-06-30 21:59:07 +000013786#endif
13787
John Criswell0c38eaf2003-09-10 15:17:25 +000013788int
13789main ()
13790{
13791return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013792 ;
13793 return 0;
13794}
13795_ACEOF
13796rm -f conftest.$ac_objext conftest$ac_exeext
13797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013798 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013799 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013805 { ac_try='test -z "$ac_c_werror_flag"
13806 || test ! -s conftest.err'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_func_shl_load=yes
13819else
13820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013821sed 's/^/| /' conftest.$ac_ext >&5
13822
John Criswell7a73b802003-06-30 21:59:07 +000013823ac_cv_func_shl_load=no
13824fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013825rm -f conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013827fi
13828echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13829echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13830if test $ac_cv_func_shl_load = yes; then
13831 lt_cv_dlopen="shl_load"
13832else
13833 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13834echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13835if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838 ac_check_lib_save_LIBS=$LIBS
13839LIBS="-ldld $LIBS"
13840cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013841/* confdefs.h. */
13842_ACEOF
13843cat confdefs.h >>conftest.$ac_ext
13844cat >>conftest.$ac_ext <<_ACEOF
13845/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013846
13847/* Override any gcc2 internal prototype to avoid an error. */
13848#ifdef __cplusplus
13849extern "C"
13850#endif
13851/* We use char because int might match the return type of a gcc2
13852 builtin and then its argument prototype would still apply. */
13853char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013854int
13855main ()
13856{
13857shl_load ();
13858 ;
13859 return 0;
13860}
13861_ACEOF
13862rm -f conftest.$ac_objext conftest$ac_exeext
13863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013864 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013871 { ac_try='test -z "$ac_c_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_cv_lib_dld_shl_load=yes
13885else
13886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013887sed 's/^/| /' conftest.$ac_ext >&5
13888
John Criswell7a73b802003-06-30 21:59:07 +000013889ac_cv_lib_dld_shl_load=no
13890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013891rm -f conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013893LIBS=$ac_check_lib_save_LIBS
13894fi
13895echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13896echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13897if test $ac_cv_lib_dld_shl_load = yes; then
13898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13899else
13900 echo "$as_me:$LINENO: checking for dlopen" >&5
13901echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13902if test "${ac_cv_func_dlopen+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013911/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13913#define dlopen innocuous_dlopen
13914
John Criswell7a73b802003-06-30 21:59:07 +000013915/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013916 which can conflict with char dlopen (); below.
13917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013919
John Criswell0c38eaf2003-09-10 15:17:25 +000013920#ifdef __STDC__
13921# include <limits.h>
13922#else
13923# include <assert.h>
13924#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013925
13926#undef dlopen
13927
John Criswell7a73b802003-06-30 21:59:07 +000013928/* Override any gcc2 internal prototype to avoid an error. */
13929#ifdef __cplusplus
13930extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013931{
John Criswell7a73b802003-06-30 21:59:07 +000013932#endif
13933/* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13935char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013936/* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939#if defined (__stub_dlopen) || defined (__stub___dlopen)
13940choke me
13941#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013942char (*f) () = dlopen;
13943#endif
13944#ifdef __cplusplus
13945}
John Criswell7a73b802003-06-30 21:59:07 +000013946#endif
13947
John Criswell0c38eaf2003-09-10 15:17:25 +000013948int
13949main ()
13950{
13951return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013952 ;
13953 return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext conftest$ac_exeext
13957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013958 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013959 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_cv_func_dlopen=yes
13979else
13980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013981sed 's/^/| /' conftest.$ac_ext >&5
13982
John Criswell7a73b802003-06-30 21:59:07 +000013983ac_cv_func_dlopen=no
13984fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013985rm -f conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013987fi
13988echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13989echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13990if test $ac_cv_func_dlopen = yes; then
13991 lt_cv_dlopen="dlopen"
13992else
13993 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13994echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13995if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997else
13998 ac_check_lib_save_LIBS=$LIBS
13999LIBS="-ldl $LIBS"
14000cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014006
14007/* Override any gcc2 internal prototype to avoid an error. */
14008#ifdef __cplusplus
14009extern "C"
14010#endif
14011/* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14013char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014014int
14015main ()
14016{
14017dlopen ();
14018 ;
14019 return 0;
14020}
14021_ACEOF
14022rm -f conftest.$ac_objext conftest$ac_exeext
14023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014024 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_lib_dl_dlopen=yes
14045else
14046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014047sed 's/^/| /' conftest.$ac_ext >&5
14048
John Criswell7a73b802003-06-30 21:59:07 +000014049ac_cv_lib_dl_dlopen=no
14050fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014051rm -f conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014053LIBS=$ac_check_lib_save_LIBS
14054fi
14055echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14056echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14057if test $ac_cv_lib_dl_dlopen = yes; then
14058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14059else
14060 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14061echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14062if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064else
14065 ac_check_lib_save_LIBS=$LIBS
14066LIBS="-lsvld $LIBS"
14067cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014068/* confdefs.h. */
14069_ACEOF
14070cat confdefs.h >>conftest.$ac_ext
14071cat >>conftest.$ac_ext <<_ACEOF
14072/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014073
14074/* Override any gcc2 internal prototype to avoid an error. */
14075#ifdef __cplusplus
14076extern "C"
14077#endif
14078/* We use char because int might match the return type of a gcc2
14079 builtin and then its argument prototype would still apply. */
14080char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014081int
14082main ()
14083{
14084dlopen ();
14085 ;
14086 return 0;
14087}
14088_ACEOF
14089rm -f conftest.$ac_objext conftest$ac_exeext
14090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014091 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014092 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014093 grep -v '^ *+' conftest.er1 >conftest.err
14094 rm -f conftest.er1
14095 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014098 { ac_try='test -z "$ac_c_werror_flag"
14099 || test ! -s conftest.err'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14111 ac_cv_lib_svld_dlopen=yes
14112else
14113 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014114sed 's/^/| /' conftest.$ac_ext >&5
14115
John Criswell7a73b802003-06-30 21:59:07 +000014116ac_cv_lib_svld_dlopen=no
14117fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014118rm -f conftest.err conftest.$ac_objext \
14119 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014120LIBS=$ac_check_lib_save_LIBS
14121fi
14122echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14123echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14124if test $ac_cv_lib_svld_dlopen = yes; then
14125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14126else
14127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14128echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14129if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131else
14132 ac_check_lib_save_LIBS=$LIBS
14133LIBS="-ldld $LIBS"
14134cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014135/* confdefs.h. */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
14139/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014140
14141/* Override any gcc2 internal prototype to avoid an error. */
14142#ifdef __cplusplus
14143extern "C"
14144#endif
14145/* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014148int
14149main ()
14150{
14151dld_link ();
14152 ;
14153 return 0;
14154}
14155_ACEOF
14156rm -f conftest.$ac_objext conftest$ac_exeext
14157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014158 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014159 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_lib_dld_dld_link=yes
14179else
14180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014181sed 's/^/| /' conftest.$ac_ext >&5
14182
John Criswell7a73b802003-06-30 21:59:07 +000014183ac_cv_lib_dld_dld_link=no
14184fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014185rm -f conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014187LIBS=$ac_check_lib_save_LIBS
14188fi
14189echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14190echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14191if test $ac_cv_lib_dld_dld_link = yes; then
14192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14193fi
14194
14195
14196fi
14197
14198
14199fi
14200
14201
14202fi
14203
14204
14205fi
14206
14207
14208fi
14209
14210 ;;
14211 esac
14212
14213 if test "x$lt_cv_dlopen" != xno; then
14214 enable_dlopen=yes
14215 else
14216 enable_dlopen=no
14217 fi
14218
14219 case $lt_cv_dlopen in
14220 dlopen)
14221 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014223
14224 save_LDFLAGS="$LDFLAGS"
14225 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14226
14227 save_LIBS="$LIBS"
14228 LIBS="$lt_cv_dlopen_libs $LIBS"
14229
14230 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14231echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14232if test "${lt_cv_dlopen_self+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234else
14235 if test "$cross_compiling" = yes; then :
14236 lt_cv_dlopen_self=cross
14237else
John Criswell47fdd832003-07-14 16:52:07 +000014238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014239 lt_status=$lt_dlunknown
14240 cat > conftest.$ac_ext <<EOF
Reid Spencerf97c7032004-12-27 09:33:46 +000014241#line 14241 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014242#include "confdefs.h"
14243
14244#if HAVE_DLFCN_H
14245#include <dlfcn.h>
14246#endif
14247
14248#include <stdio.h>
14249
14250#ifdef RTLD_GLOBAL
14251# define LT_DLGLOBAL RTLD_GLOBAL
14252#else
14253# ifdef DL_GLOBAL
14254# define LT_DLGLOBAL DL_GLOBAL
14255# else
14256# define LT_DLGLOBAL 0
14257# endif
14258#endif
14259
14260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14261 find out it does not work in some platform. */
14262#ifndef LT_DLLAZY_OR_NOW
14263# ifdef RTLD_LAZY
14264# define LT_DLLAZY_OR_NOW RTLD_LAZY
14265# else
14266# ifdef DL_LAZY
14267# define LT_DLLAZY_OR_NOW DL_LAZY
14268# else
14269# ifdef RTLD_NOW
14270# define LT_DLLAZY_OR_NOW RTLD_NOW
14271# else
14272# ifdef DL_NOW
14273# define LT_DLLAZY_OR_NOW DL_NOW
14274# else
14275# define LT_DLLAZY_OR_NOW 0
14276# endif
14277# endif
14278# endif
14279# endif
14280#endif
14281
14282#ifdef __cplusplus
14283extern "C" void exit (int);
14284#endif
14285
14286void fnord() { int i=42;}
14287int main ()
14288{
14289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14290 int status = $lt_dlunknown;
14291
14292 if (self)
14293 {
14294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14296 /* dlclose (self); */
14297 }
14298
14299 exit (status);
14300}
14301EOF
14302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14303 (eval $ac_link) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14307 (./conftest; exit; ) 2>/dev/null
14308 lt_status=$?
14309 case x$lt_status in
14310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14312 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14313 esac
14314 else :
14315 # compilation failed
14316 lt_cv_dlopen_self=no
14317 fi
14318fi
14319rm -fr conftest*
14320
14321
14322fi
14323echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14324echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14325
14326 if test "x$lt_cv_dlopen_self" = xyes; then
14327 LDFLAGS="$LDFLAGS $link_static_flag"
14328 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14329echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14330if test "${lt_cv_dlopen_self_static+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14332else
14333 if test "$cross_compiling" = yes; then :
14334 lt_cv_dlopen_self_static=cross
14335else
John Criswell47fdd832003-07-14 16:52:07 +000014336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014337 lt_status=$lt_dlunknown
14338 cat > conftest.$ac_ext <<EOF
Reid Spencerf97c7032004-12-27 09:33:46 +000014339#line 14339 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014340#include "confdefs.h"
14341
14342#if HAVE_DLFCN_H
14343#include <dlfcn.h>
14344#endif
14345
14346#include <stdio.h>
14347
14348#ifdef RTLD_GLOBAL
14349# define LT_DLGLOBAL RTLD_GLOBAL
14350#else
14351# ifdef DL_GLOBAL
14352# define LT_DLGLOBAL DL_GLOBAL
14353# else
14354# define LT_DLGLOBAL 0
14355# endif
14356#endif
14357
14358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14359 find out it does not work in some platform. */
14360#ifndef LT_DLLAZY_OR_NOW
14361# ifdef RTLD_LAZY
14362# define LT_DLLAZY_OR_NOW RTLD_LAZY
14363# else
14364# ifdef DL_LAZY
14365# define LT_DLLAZY_OR_NOW DL_LAZY
14366# else
14367# ifdef RTLD_NOW
14368# define LT_DLLAZY_OR_NOW RTLD_NOW
14369# else
14370# ifdef DL_NOW
14371# define LT_DLLAZY_OR_NOW DL_NOW
14372# else
14373# define LT_DLLAZY_OR_NOW 0
14374# endif
14375# endif
14376# endif
14377# endif
14378#endif
14379
14380#ifdef __cplusplus
14381extern "C" void exit (int);
14382#endif
14383
14384void fnord() { int i=42;}
14385int main ()
14386{
14387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14388 int status = $lt_dlunknown;
14389
14390 if (self)
14391 {
14392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14393 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14394 /* dlclose (self); */
14395 }
14396
14397 exit (status);
14398}
14399EOF
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401 (eval $ac_link) 2>&5
14402 ac_status=$?
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14405 (./conftest; exit; ) 2>/dev/null
14406 lt_status=$?
14407 case x$lt_status in
14408 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14409 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14410 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14411 esac
14412 else :
14413 # compilation failed
14414 lt_cv_dlopen_self_static=no
14415 fi
14416fi
14417rm -fr conftest*
14418
14419
14420fi
14421echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14422echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14423 fi
14424
14425 CPPFLAGS="$save_CPPFLAGS"
14426 LDFLAGS="$save_LDFLAGS"
14427 LIBS="$save_LIBS"
14428 ;;
14429 esac
14430
14431 case $lt_cv_dlopen_self in
14432 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14433 *) enable_dlopen_self=unknown ;;
14434 esac
14435
14436 case $lt_cv_dlopen_self_static in
14437 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14438 *) enable_dlopen_self_static=unknown ;;
14439 esac
14440fi
14441
14442
John Criswell47fdd832003-07-14 16:52:07 +000014443# Report which librarie types wil actually be built
14444echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14445echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14446echo "$as_me:$LINENO: result: $can_build_shared" >&5
14447echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014448
John Criswell47fdd832003-07-14 16:52:07 +000014449echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14450echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14451test "$can_build_shared" = "no" && enable_shared=no
14452
14453# On AIX, shared libraries and static libraries use the same namespace, and
14454# are all built from PIC.
14455case "$host_os" in
14456aix3*)
14457 test "$enable_shared" = yes && enable_static=no
14458 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014459 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014460 postinstall_cmds='$RANLIB $lib'
14461 fi
14462 ;;
14463
Reid Spencer2706f8c2004-09-19 23:53:36 +000014464aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014465 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14466 test "$enable_shared" = yes && enable_static=no
14467 fi
John Criswell7a73b802003-06-30 21:59:07 +000014468 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014469esac
14470echo "$as_me:$LINENO: result: $enable_shared" >&5
14471echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014472
John Criswell47fdd832003-07-14 16:52:07 +000014473echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14474echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14475# Make sure either enable_shared or enable_static is yes.
14476test "$enable_shared" = yes || enable_static=yes
14477echo "$as_me:$LINENO: result: $enable_static" >&5
14478echo "${ECHO_T}$enable_static" >&6
14479
14480# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014481# libtool distribution, otherwise you forgot to ship ltmain.sh
14482# with your package, and you will get complaints that there are
14483# no rules to generate ltmain.sh.
14484if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014485 # See if we are running on zsh, and set the options which allow our commands through
14486 # without removal of \ escapes.
14487 if test -n "${ZSH_VERSION+set}" ; then
14488 setopt NO_GLOB_SUBST
14489 fi
John Criswell7a73b802003-06-30 21:59:07 +000014490 # Now quote all the things that may contain metacharacters while being
14491 # careful not to overquote the AC_SUBSTed values. We take copies of the
14492 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14494 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14497 deplibs_check_method reload_flag reload_cmds need_locks \
14498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14499 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014501 old_postinstall_cmds old_postuninstall_cmds \
14502 compiler \
14503 CC \
14504 LD \
14505 lt_prog_compiler_wl \
14506 lt_prog_compiler_pic \
14507 lt_prog_compiler_static \
14508 lt_prog_compiler_no_builtin_flag \
14509 export_dynamic_flag_spec \
14510 thread_safe_flag_spec \
14511 whole_archive_flag_spec \
14512 enable_shared_with_static_runtimes \
14513 old_archive_cmds \
14514 old_archive_from_new_cmds \
14515 predep_objects \
14516 postdep_objects \
14517 predeps \
14518 postdeps \
14519 compiler_lib_search_path \
14520 archive_cmds \
14521 archive_expsym_cmds \
14522 postinstall_cmds \
14523 postuninstall_cmds \
14524 old_archive_from_expsyms_cmds \
14525 allow_undefined_flag \
14526 no_undefined_flag \
14527 export_symbols_cmds \
14528 hardcode_libdir_flag_spec \
14529 hardcode_libdir_flag_spec_ld \
14530 hardcode_libdir_separator \
14531 hardcode_automatic \
14532 module_cmds \
14533 module_expsym_cmds \
14534 lt_cv_prog_compiler_c_o \
14535 exclude_expsyms \
14536 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014537
14538 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014539 old_archive_cmds | \
14540 old_archive_from_new_cmds | \
14541 archive_cmds | \
14542 archive_expsym_cmds | \
14543 module_cmds | \
14544 module_expsym_cmds | \
14545 old_archive_from_expsyms_cmds | \
14546 export_symbols_cmds | \
14547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014548 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014549 old_postinstall_cmds | old_postuninstall_cmds | \
14550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014551 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014552 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 +000014553 ;;
14554 *)
14555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14556 ;;
14557 esac
14558 done
14559
John Criswell47fdd832003-07-14 16:52:07 +000014560 case $lt_echo in
14561 *'\$0 --fallback-echo"')
14562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14563 ;;
14564 esac
14565
14566cfgfile="${ofile}T"
14567 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14568 $rm -f "$cfgfile"
14569 { echo "$as_me:$LINENO: creating $ofile" >&5
14570echo "$as_me: creating $ofile" >&6;}
14571
14572 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014573#! $SHELL
14574
John Criswell47fdd832003-07-14 16:52:07 +000014575# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014576# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14577# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14578#
John Criswell47fdd832003-07-14 16:52:07 +000014579# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14580# Free Software Foundation, Inc.
14581#
14582# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014583# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14584#
14585# This program is free software; you can redistribute it and/or modify
14586# it under the terms of the GNU General Public License as published by
14587# the Free Software Foundation; either version 2 of the License, or
14588# (at your option) any later version.
14589#
14590# This program is distributed in the hope that it will be useful, but
14591# WITHOUT ANY WARRANTY; without even the implied warranty of
14592# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14593# General Public License for more details.
14594#
14595# You should have received a copy of the GNU General Public License
14596# along with this program; if not, write to the Free Software
14597# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14598#
14599# As a special exception to the GNU General Public License, if you
14600# distribute this file as part of a program that contains a
14601# configuration script generated by Autoconf, you may include it under
14602# the same distribution terms that you use for the rest of that program.
14603
John Criswell47fdd832003-07-14 16:52:07 +000014604# A sed program that does not truncate output.
14605SED=$lt_SED
14606
John Criswell7a73b802003-06-30 21:59:07 +000014607# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014608Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014609
14610# The HP-UX ksh and POSIX shell print the target directory to stdout
14611# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014612(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014613
John Criswell47fdd832003-07-14 16:52:07 +000014614# The names of the tagged configurations supported by this script.
14615available_tags=
14616
John Criswell7a73b802003-06-30 21:59:07 +000014617# ### BEGIN LIBTOOL CONFIG
14618
14619# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14620
14621# Shell to use when invoking shell scripts.
14622SHELL=$lt_SHELL
14623
14624# Whether or not to build shared libraries.
14625build_libtool_libs=$enable_shared
14626
14627# Whether or not to build static libraries.
14628build_old_libs=$enable_static
14629
14630# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014631build_libtool_need_lc=$archive_cmds_need_lc
14632
14633# Whether or not to disallow shared libs when runtime libs are static
14634allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014635
14636# Whether or not to optimize for fast installation.
14637fast_install=$enable_fast_install
14638
14639# The host system.
14640host_alias=$host_alias
14641host=$host
14642
14643# An echo program that does not interpret backslashes.
14644echo=$lt_echo
14645
14646# The archiver.
14647AR=$lt_AR
14648AR_FLAGS=$lt_AR_FLAGS
14649
John Criswell47fdd832003-07-14 16:52:07 +000014650# A C compiler.
14651LTCC=$lt_LTCC
14652
14653# A language-specific compiler.
14654CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014655
14656# Is the compiler the GNU C compiler?
14657with_gcc=$GCC
14658
John Criswell47fdd832003-07-14 16:52:07 +000014659# An ERE matcher.
14660EGREP=$lt_EGREP
14661
John Criswell7a73b802003-06-30 21:59:07 +000014662# The linker used to build libraries.
14663LD=$lt_LD
14664
14665# Whether we need hard or soft links.
14666LN_S=$lt_LN_S
14667
14668# A BSD-compatible nm program.
14669NM=$lt_NM
14670
14671# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014672STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014673
14674# Used to examine libraries when file_magic_cmd begins "file"
14675MAGIC_CMD=$MAGIC_CMD
14676
14677# Used on cygwin: DLL creation program.
14678DLLTOOL="$DLLTOOL"
14679
14680# Used on cygwin: object dumper.
14681OBJDUMP="$OBJDUMP"
14682
14683# Used on cygwin: assembler.
14684AS="$AS"
14685
14686# The name of the directory that contains temporary libtool files.
14687objdir=$objdir
14688
14689# How to create reloadable object files.
14690reload_flag=$lt_reload_flag
14691reload_cmds=$lt_reload_cmds
14692
14693# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014694wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014695
14696# Object file suffix (normally "o").
14697objext="$ac_objext"
14698
14699# Old archive suffix (normally "a").
14700libext="$libext"
14701
John Criswell47fdd832003-07-14 16:52:07 +000014702# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014703shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014704
John Criswell7a73b802003-06-30 21:59:07 +000014705# Executable file suffix (normally "").
14706exeext="$exeext"
14707
14708# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014709pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014710pic_mode=$pic_mode
14711
John Criswell47fdd832003-07-14 16:52:07 +000014712# What is the maximum length of a command?
14713max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014714
John Criswell47fdd832003-07-14 16:52:07 +000014715# Does compiler simultaneously support -c and -o options?
14716compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014717
14718# Must we lock files when doing compilation ?
14719need_locks=$lt_need_locks
14720
14721# Do we need the lib prefix for modules?
14722need_lib_prefix=$need_lib_prefix
14723
14724# Do we need a version for libraries?
14725need_version=$need_version
14726
14727# Whether dlopen is supported.
14728dlopen_support=$enable_dlopen
14729
14730# Whether dlopen of programs is supported.
14731dlopen_self=$enable_dlopen_self
14732
14733# Whether dlopen of statically linked programs is supported.
14734dlopen_self_static=$enable_dlopen_self_static
14735
14736# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014737link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014738
14739# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014741
14742# Compiler flag to allow reflexive dlopens.
14743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14744
14745# Compiler flag to generate shared objects directly from archives.
14746whole_archive_flag_spec=$lt_whole_archive_flag_spec
14747
14748# Compiler flag to generate thread-safe objects.
14749thread_safe_flag_spec=$lt_thread_safe_flag_spec
14750
14751# Library versioning type.
14752version_type=$version_type
14753
14754# Format of library name prefix.
14755libname_spec=$lt_libname_spec
14756
14757# List of archive names. First name is the real one, the rest are links.
14758# The last name is the one that the linker finds with -lNAME.
14759library_names_spec=$lt_library_names_spec
14760
14761# The coded name of the library, if different from the real name.
14762soname_spec=$lt_soname_spec
14763
14764# Commands used to build and install an old-style archive.
14765RANLIB=$lt_RANLIB
14766old_archive_cmds=$lt_old_archive_cmds
14767old_postinstall_cmds=$lt_old_postinstall_cmds
14768old_postuninstall_cmds=$lt_old_postuninstall_cmds
14769
14770# Create an old-style archive from a shared archive.
14771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14772
14773# Create a temporary old-style archive to link instead of a shared archive.
14774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14775
14776# Commands used to build and install a shared archive.
14777archive_cmds=$lt_archive_cmds
14778archive_expsym_cmds=$lt_archive_expsym_cmds
14779postinstall_cmds=$lt_postinstall_cmds
14780postuninstall_cmds=$lt_postuninstall_cmds
14781
John Criswell47fdd832003-07-14 16:52:07 +000014782# Commands used to build a loadable module (assumed same as above if empty)
14783module_cmds=$lt_module_cmds
14784module_expsym_cmds=$lt_module_expsym_cmds
14785
John Criswell7a73b802003-06-30 21:59:07 +000014786# Commands to strip libraries.
14787old_striplib=$lt_old_striplib
14788striplib=$lt_striplib
14789
John Criswell47fdd832003-07-14 16:52:07 +000014790# Dependencies to place before the objects being linked to create a
14791# shared library.
14792predep_objects=$lt_predep_objects
14793
14794# Dependencies to place after the objects being linked to create a
14795# shared library.
14796postdep_objects=$lt_postdep_objects
14797
14798# Dependencies to place before the objects being linked to create a
14799# shared library.
14800predeps=$lt_predeps
14801
14802# Dependencies to place after the objects being linked to create a
14803# shared library.
14804postdeps=$lt_postdeps
14805
14806# The library search path used internally by the compiler when linking
14807# a shared library.
14808compiler_lib_search_path=$lt_compiler_lib_search_path
14809
John Criswell7a73b802003-06-30 21:59:07 +000014810# Method to check whether dependent libraries are shared objects.
14811deplibs_check_method=$lt_deplibs_check_method
14812
14813# Command to use when deplibs_check_method == file_magic.
14814file_magic_cmd=$lt_file_magic_cmd
14815
14816# Flag that allows shared libraries with undefined symbols to be built.
14817allow_undefined_flag=$lt_allow_undefined_flag
14818
14819# Flag that forces no undefined symbols.
14820no_undefined_flag=$lt_no_undefined_flag
14821
14822# Commands used to finish a libtool library installation in a directory.
14823finish_cmds=$lt_finish_cmds
14824
14825# Same as above, but a single script fragment to be evaled but not shown.
14826finish_eval=$lt_finish_eval
14827
14828# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014830
14831# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014833
14834# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014836
14837# This is the shared library runtime path variable.
14838runpath_var=$runpath_var
14839
14840# This is the shared library path variable.
14841shlibpath_var=$shlibpath_var
14842
14843# Is shlibpath searched before the hard-coded library search path?
14844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14845
14846# How to hardcode a shared library path into an executable.
14847hardcode_action=$hardcode_action
14848
14849# Whether we should hardcode library paths into libraries.
14850hardcode_into_libs=$hardcode_into_libs
14851
14852# Flag to hardcode \$libdir into a binary during linking.
14853# This must work even if \$libdir does not exist.
14854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14855
John Criswell47fdd832003-07-14 16:52:07 +000014856# If ld is used when linking, flag to hardcode \$libdir into
14857# a binary during linking. This must work even if \$libdir does
14858# not exist.
14859hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14860
John Criswell7a73b802003-06-30 21:59:07 +000014861# Whether we need a single -rpath flag with a separated argument.
14862hardcode_libdir_separator=$lt_hardcode_libdir_separator
14863
John Criswell47fdd832003-07-14 16:52:07 +000014864# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014865# resulting binary.
14866hardcode_direct=$hardcode_direct
14867
14868# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14869# resulting binary.
14870hardcode_minus_L=$hardcode_minus_L
14871
14872# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14873# the resulting binary.
14874hardcode_shlibpath_var=$hardcode_shlibpath_var
14875
John Criswell47fdd832003-07-14 16:52:07 +000014876# Set to yes if building a shared library automatically hardcodes DIR into the library
14877# and all subsequent libraries and executables linked against it.
14878hardcode_automatic=$hardcode_automatic
14879
John Criswell7a73b802003-06-30 21:59:07 +000014880# Variables whose values should be saved in libtool wrapper scripts and
14881# restored at relink time.
14882variables_saved_for_relink="$variables_saved_for_relink"
14883
14884# Whether libtool must link a program against all its dependency libraries.
14885link_all_deplibs=$link_all_deplibs
14886
14887# Compile-time system search path for libraries
14888sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14889
14890# Run-time system search path for libraries
14891sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14892
14893# Fix the shell variable \$srcfile for the compiler.
14894fix_srcfile_path="$fix_srcfile_path"
14895
14896# Set to yes if exported symbols are required.
14897always_export_symbols=$always_export_symbols
14898
14899# The commands to list exported symbols.
14900export_symbols_cmds=$lt_export_symbols_cmds
14901
14902# The commands to extract the exported symbol list from a shared archive.
14903extract_expsyms_cmds=$lt_extract_expsyms_cmds
14904
14905# Symbols that should not be listed in the preloaded symbols.
14906exclude_expsyms=$lt_exclude_expsyms
14907
14908# Symbols that must always be exported.
14909include_expsyms=$lt_include_expsyms
14910
14911# ### END LIBTOOL CONFIG
14912
14913__EOF__
14914
John Criswell47fdd832003-07-14 16:52:07 +000014915
John Criswell7a73b802003-06-30 21:59:07 +000014916 case $host_os in
14917 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014918 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014919
14920# AIX sometimes has problems with the GCC collect2 program. For some
14921# reason, if we set the COLLECT_NAMES environment variable, the problems
14922# vanish in a puff of smoke.
14923if test "X${COLLECT_NAMES+set}" != Xset; then
14924 COLLECT_NAMES=
14925 export COLLECT_NAMES
14926fi
14927EOF
14928 ;;
14929 esac
14930
John Criswell7a73b802003-06-30 21:59:07 +000014931 # We use sed instead of cat because bash on DJGPP gets confused if
14932 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14933 # text mode, it properly converts lines to CR/LF. This bash problem
14934 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014935 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014936
John Criswell47fdd832003-07-14 16:52:07 +000014937 mv -f "$cfgfile" "$ofile" || \
14938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014939 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014940
14941else
14942 # If there is no Makefile yet, we rely on a make rule to execute
14943 # `config.status --recheck' to rerun these tests and create the
14944 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14946 if test -f "$ltmain_in"; then
14947 test -f Makefile && make "$ltmain"
14948 fi
John Criswell7a73b802003-06-30 21:59:07 +000014949fi
John Criswell7a73b802003-06-30 21:59:07 +000014950
14951
John Criswell47fdd832003-07-14 16:52:07 +000014952ac_ext=c
14953ac_cpp='$CPP $CPPFLAGS'
14954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956ac_compiler_gnu=$ac_cv_c_compiler_gnu
14957
14958CC="$lt_save_CC"
14959
14960
14961# Check whether --with-tags or --without-tags was given.
14962if test "${with_tags+set}" = set; then
14963 withval="$with_tags"
14964 tagnames="$withval"
14965fi;
14966
14967if test -f "$ltmain" && test -n "$tagnames"; then
14968 if test ! -f "${ofile}"; then
14969 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14970echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14971 fi
14972
14973 if test -z "$LTCC"; then
14974 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14975 if test -z "$LTCC"; then
14976 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14977echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14978 else
14979 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14980echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14981 fi
14982 fi
14983
14984 # Extract list of available tagged configurations in $ofile.
14985 # Note that this assumes the entire list is on one line.
14986 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14987
14988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989 for tagname in $tagnames; do
14990 IFS="$lt_save_ifs"
14991 # Check whether tagname contains only valid characters
14992 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14993 "") ;;
14994 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14995echo "$as_me: error: invalid tag name: $tagname" >&2;}
14996 { (exit 1); exit 1; }; }
14997 ;;
14998 esac
14999
15000 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15001 then
15002 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15003echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15004 { (exit 1); exit 1; }; }
15005 fi
15006
15007 # Update the list of available tags.
15008 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015009 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015010
15011 case $tagname in
15012 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015013 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15014 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15015 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015016 ac_ext=cc
15017ac_cpp='$CXXCPP $CPPFLAGS'
15018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15021
15022
15023
15024
15025archive_cmds_need_lc_CXX=no
15026allow_undefined_flag_CXX=
15027always_export_symbols_CXX=no
15028archive_expsym_cmds_CXX=
15029export_dynamic_flag_spec_CXX=
15030hardcode_direct_CXX=no
15031hardcode_libdir_flag_spec_CXX=
15032hardcode_libdir_flag_spec_ld_CXX=
15033hardcode_libdir_separator_CXX=
15034hardcode_minus_L_CXX=no
15035hardcode_automatic_CXX=no
15036module_cmds_CXX=
15037module_expsym_cmds_CXX=
15038link_all_deplibs_CXX=unknown
15039old_archive_cmds_CXX=$old_archive_cmds
15040no_undefined_flag_CXX=
15041whole_archive_flag_spec_CXX=
15042enable_shared_with_static_runtimes_CXX=no
15043
15044# Dependencies to place before and after the object being linked:
15045predep_objects_CXX=
15046postdep_objects_CXX=
15047predeps_CXX=
15048postdeps_CXX=
15049compiler_lib_search_path_CXX=
15050
15051# Source file extension for C++ test sources.
15052ac_ext=cc
15053
15054# Object file extension for compiled C++ test sources.
15055objext=o
15056objext_CXX=$objext
15057
15058# Code to be used in simple compile tests
15059lt_simple_compile_test_code="int some_variable = 0;\n"
15060
15061# Code to be used in simple link tests
15062lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15063
15064# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15065
15066# If no C compiler was specified, use CC.
15067LTCC=${LTCC-"$CC"}
15068
15069# Allow CC to be a program name with arguments.
15070compiler=$CC
15071
15072
15073# Allow CC to be a program name with arguments.
15074lt_save_CC=$CC
15075lt_save_LD=$LD
15076lt_save_GCC=$GCC
15077GCC=$GXX
15078lt_save_with_gnu_ld=$with_gnu_ld
15079lt_save_path_LD=$lt_cv_path_LD
15080if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15081 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15082else
15083 unset lt_cv_prog_gnu_ld
15084fi
15085if test -n "${lt_cv_path_LDCXX+set}"; then
15086 lt_cv_path_LD=$lt_cv_path_LDCXX
15087else
15088 unset lt_cv_path_LD
15089fi
15090test -z "${LDCXX+set}" || LD=$LDCXX
15091CC=${CXX-"c++"}
15092compiler=$CC
15093compiler_CXX=$CC
15094cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15095
15096# We don't want -fno-exception wen compiling C++ code, so set the
15097# no_builtin_flag separately
15098if test "$GXX" = yes; then
15099 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15100else
15101 lt_prog_compiler_no_builtin_flag_CXX=
15102fi
15103
15104if test "$GXX" = yes; then
15105 # Set up default GNU C++ configuration
15106
15107
15108# Check whether --with-gnu-ld or --without-gnu-ld was given.
15109if test "${with_gnu_ld+set}" = set; then
15110 withval="$with_gnu_ld"
15111 test "$withval" = no || with_gnu_ld=yes
15112else
15113 with_gnu_ld=no
15114fi;
15115ac_prog=ld
15116if test "$GCC" = yes; then
15117 # Check if gcc -print-prog-name=ld gives a path.
15118 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15119echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15120 case $host in
15121 *-*-mingw*)
15122 # gcc leaves a trailing carriage return which upsets mingw
15123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15124 *)
15125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15126 esac
15127 case $ac_prog in
15128 # Accept absolute paths.
15129 [\\/]* | ?:[\\/]*)
15130 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015131 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015132 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15133 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15134 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15135 done
15136 test -z "$LD" && LD="$ac_prog"
15137 ;;
15138 "")
15139 # If it fails, then pretend we aren't using GCC.
15140 ac_prog=ld
15141 ;;
15142 *)
15143 # If it is relative, then search for the first ld in PATH.
15144 with_gnu_ld=unknown
15145 ;;
15146 esac
15147elif test "$with_gnu_ld" = yes; then
15148 echo "$as_me:$LINENO: checking for GNU ld" >&5
15149echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15150else
15151 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15152echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15153fi
15154if test "${lt_cv_path_LD+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156else
15157 if test -z "$LD"; then
15158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15159 for ac_dir in $PATH; do
15160 IFS="$lt_save_ifs"
15161 test -z "$ac_dir" && ac_dir=.
15162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15163 lt_cv_path_LD="$ac_dir/$ac_prog"
15164 # Check to see if the program is GNU ld. I'd rather use --version,
15165 # but apparently some GNU ld's only accept -v.
15166 # Break only if it was the GNU/non-GNU ld that we prefer.
15167 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15168 *GNU* | *'with BFD'*)
15169 test "$with_gnu_ld" != no && break
15170 ;;
15171 *)
15172 test "$with_gnu_ld" != yes && break
15173 ;;
15174 esac
15175 fi
15176 done
15177 IFS="$lt_save_ifs"
15178else
15179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15180fi
15181fi
15182
15183LD="$lt_cv_path_LD"
15184if test -n "$LD"; then
15185 echo "$as_me:$LINENO: result: $LD" >&5
15186echo "${ECHO_T}$LD" >&6
15187else
15188 echo "$as_me:$LINENO: result: no" >&5
15189echo "${ECHO_T}no" >&6
15190fi
15191test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15192echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15193 { (exit 1); exit 1; }; }
15194echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15195echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15196if test "${lt_cv_prog_gnu_ld+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15198else
15199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015200case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015201*GNU* | *'with BFD'*)
15202 lt_cv_prog_gnu_ld=yes
15203 ;;
15204*)
15205 lt_cv_prog_gnu_ld=no
15206 ;;
15207esac
15208fi
15209echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15210echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15211with_gnu_ld=$lt_cv_prog_gnu_ld
15212
15213
15214
15215 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15216 # archiving commands below assume that GNU ld is being used.
15217 if test "$with_gnu_ld" = yes; then
15218 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15219 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'
15220
15221 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15223
15224 # If archive_cmds runs LD, not CC, wlarc should be empty
15225 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15226 # investigate it a little bit more. (MM)
15227 wlarc='${wl}'
15228
15229 # ancient GNU ld didn't support --whole-archive et. al.
15230 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15231 grep 'no-whole-archive' > /dev/null; then
15232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15233 else
15234 whole_archive_flag_spec_CXX=
15235 fi
15236 else
15237 with_gnu_ld=no
15238 wlarc=
15239
15240 # A generic and very simple default shared library creation
15241 # command for GNU C++ for the case where it uses the native
15242 # linker, instead of GNU ld. If possible, this setting should
15243 # overridden to take advantage of the native linker features on
15244 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015245 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015246 fi
15247
15248 # Commands to make compiler produce verbose output that lists
15249 # what "hidden" libraries, object files and flags are used when
15250 # linking a shared library.
15251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15252
15253else
15254 GXX=no
15255 with_gnu_ld=no
15256 wlarc=
15257fi
15258
15259# PORTME: fill in a description of your system's C++ link characteristics
15260echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15261echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15262ld_shlibs_CXX=yes
15263case $host_os in
15264 aix3*)
15265 # FIXME: insert proper C++ library support
15266 ld_shlibs_CXX=no
15267 ;;
15268 aix4* | aix5*)
15269 if test "$host_cpu" = ia64; then
15270 # On IA64, the linker does run time linking by default, so we don't
15271 # have to do anything special.
15272 aix_use_runtimelinking=no
15273 exp_sym_flag='-Bexport'
15274 no_entry_flag=""
15275 else
15276 aix_use_runtimelinking=no
15277
15278 # Test if we are trying to use run time linking or normal
15279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15280 # need to do runtime linking.
15281 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15282 for ld_flag in $LDFLAGS; do
15283 case $ld_flag in
15284 *-brtl*)
15285 aix_use_runtimelinking=yes
15286 break
15287 ;;
15288 esac
15289 done
15290 esac
15291
15292 exp_sym_flag='-bexport'
15293 no_entry_flag='-bnoentry'
15294 fi
15295
15296 # When large executables or shared objects are built, AIX ld can
15297 # have problems creating the table of contents. If linking a library
15298 # or program results in "error TOC overflow" add -mminimal-toc to
15299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15301
15302 archive_cmds_CXX=''
15303 hardcode_direct_CXX=yes
15304 hardcode_libdir_separator_CXX=':'
15305 link_all_deplibs_CXX=yes
15306
15307 if test "$GXX" = yes; then
15308 case $host_os in aix4.012|aix4.012.*)
15309 # We only want to do this on AIX 4.2 and lower, the check
15310 # below for broken collect2 doesn't work under 4.3+
15311 collect2name=`${CC} -print-prog-name=collect2`
15312 if test -f "$collect2name" && \
15313 strings "$collect2name" | grep resolve_lib_name >/dev/null
15314 then
15315 # We have reworked collect2
15316 hardcode_direct_CXX=yes
15317 else
15318 # We have old collect2
15319 hardcode_direct_CXX=unsupported
15320 # It fails to find uninstalled libraries when the uninstalled
15321 # path is not listed in the libpath. Setting hardcode_minus_L
15322 # to unsupported forces relinking
15323 hardcode_minus_L_CXX=yes
15324 hardcode_libdir_flag_spec_CXX='-L$libdir'
15325 hardcode_libdir_separator_CXX=
15326 fi
15327 esac
15328 shared_flag='-shared'
15329 else
15330 # not using gcc
15331 if test "$host_cpu" = ia64; then
15332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15333 # chokes on -Wl,-G. The following line is correct:
15334 shared_flag='-G'
15335 else
15336 if test "$aix_use_runtimelinking" = yes; then
15337 shared_flag='${wl}-G'
15338 else
15339 shared_flag='${wl}-bM:SRE'
15340 fi
15341 fi
15342 fi
15343
15344 # It seems that -bexpall does not export symbols beginning with
15345 # underscore (_), so it is better to generate a list of symbols to export.
15346 always_export_symbols_CXX=yes
15347 if test "$aix_use_runtimelinking" = yes; then
15348 # Warning - without using the other runtime loading flags (-brtl),
15349 # -berok will link without error, but may produce a broken library.
15350 allow_undefined_flag_CXX='-berok'
15351 # Determine the default libpath from the value encoded in an empty executable.
15352 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015353/* confdefs.h. */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015358
John Criswell47fdd832003-07-14 16:52:07 +000015359int
15360main ()
15361{
15362
15363 ;
15364 return 0;
15365}
15366_ACEOF
15367rm -f conftest.$ac_objext conftest$ac_exeext
15368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015369 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015370 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015376 { ac_try='test -z "$ac_cxx_werror_flag"
15377 || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389
15390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15391}'`
15392# Check for a 64-bit object if we didn't find anything.
15393if 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; }
15394}'`; fi
15395else
15396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015397sed 's/^/| /' conftest.$ac_ext >&5
15398
John Criswell47fdd832003-07-14 16:52:07 +000015399fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015400rm -f conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015402if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15403
15404 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15405
15406 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"
15407 else
15408 if test "$host_cpu" = ia64; then
15409 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15410 allow_undefined_flag_CXX="-z nodefs"
15411 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"
15412 else
15413 # Determine the default libpath from the value encoded in an empty executable.
15414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015415/* confdefs.h. */
15416_ACEOF
15417cat confdefs.h >>conftest.$ac_ext
15418cat >>conftest.$ac_ext <<_ACEOF
15419/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015420
John Criswell47fdd832003-07-14 16:52:07 +000015421int
15422main ()
15423{
15424
15425 ;
15426 return 0;
15427}
15428_ACEOF
15429rm -f conftest.$ac_objext conftest$ac_exeext
15430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015431 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015438 { ac_try='test -z "$ac_cxx_werror_flag"
15439 || test ! -s conftest.err'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; } &&
15445 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451
15452aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15453}'`
15454# Check for a 64-bit object if we didn't find anything.
15455if 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; }
15456}'`; fi
15457else
15458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015459sed 's/^/| /' conftest.$ac_ext >&5
15460
John Criswell47fdd832003-07-14 16:52:07 +000015461fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015462rm -f conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015464if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15465
15466 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15467 # Warning - without using the other run time loading flags,
15468 # -berok will link without error, but may produce a broken library.
15469 no_undefined_flag_CXX=' ${wl}-bernotok'
15470 allow_undefined_flag_CXX=' ${wl}-berok'
15471 # -bexpall does not export symbols beginning with underscore (_)
15472 always_export_symbols_CXX=yes
15473 # Exported symbols can be pulled into shared objects from archives
15474 whole_archive_flag_spec_CXX=' '
15475 archive_cmds_need_lc_CXX=yes
15476 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015477 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 +000015478 fi
15479 fi
15480 ;;
15481 chorus*)
15482 case $cc_basename in
15483 *)
15484 # FIXME: insert proper C++ library support
15485 ld_shlibs_CXX=no
15486 ;;
15487 esac
15488 ;;
15489
Reid Spencer2706f8c2004-09-19 23:53:36 +000015490
John Criswell47fdd832003-07-14 16:52:07 +000015491 cygwin* | mingw* | pw32*)
15492 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15493 # as there is no search path for DLLs.
15494 hardcode_libdir_flag_spec_CXX='-L$libdir'
15495 allow_undefined_flag_CXX=unsupported
15496 always_export_symbols_CXX=no
15497 enable_shared_with_static_runtimes_CXX=yes
15498
15499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15500 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'
15501 # If the export-symbols file already is a .def file (1st line
15502 # is EXPORTS), use it as is; otherwise, prepend...
15503 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15504 cp $export_symbols $output_objdir/$soname.def;
15505 else
15506 echo EXPORTS > $output_objdir/$soname.def;
15507 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015508 fi~
15509 $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 +000015510 else
15511 ld_shlibs_CXX=no
15512 fi
15513 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015514 darwin* | rhapsody*)
15515 case "$host_os" in
15516 rhapsody* | darwin1.[012])
15517 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15518 ;;
15519 *) # Darwin 1.3 on
15520 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15521 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15522 else
15523 case ${MACOSX_DEPLOYMENT_TARGET} in
15524 10.[012])
15525 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15526 ;;
15527 10.*)
15528 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15529 ;;
15530 esac
15531 fi
15532 ;;
15533 esac
15534 archive_cmds_need_lc_CXX=no
15535 hardcode_direct_CXX=no
15536 hardcode_automatic_CXX=yes
15537 hardcode_shlibpath_var_CXX=unsupported
15538 whole_archive_flag_spec_CXX=''
15539 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015540
Reid Spencer2706f8c2004-09-19 23:53:36 +000015541 if test "$GXX" = yes ; then
15542 lt_int_apple_cc_single_mod=no
15543 output_verbose_link_cmd='echo'
15544 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15545 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015546 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015547 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015548 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 +000015549 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015550 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 +000015551 fi
15552 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15554 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015555 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 +000015556 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015557 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 +000015558 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015559 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 +000015560 else
15561 case "$cc_basename" in
15562 xlc*)
15563 output_verbose_link_cmd='echo'
15564 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'
15565 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15566 # 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 +000015567 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}'
15568 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 +000015569 ;;
15570 *)
15571 ld_shlibs_CXX=no
15572 ;;
15573 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015574 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015575 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015576
15577 dgux*)
15578 case $cc_basename in
15579 ec++)
15580 # FIXME: insert proper C++ library support
15581 ld_shlibs_CXX=no
15582 ;;
15583 ghcx)
15584 # Green Hills C++ Compiler
15585 # FIXME: insert proper C++ library support
15586 ld_shlibs_CXX=no
15587 ;;
15588 *)
15589 # FIXME: insert proper C++ library support
15590 ld_shlibs_CXX=no
15591 ;;
15592 esac
15593 ;;
15594 freebsd12*)
15595 # C++ shared libraries reported to be fairly broken before switch to ELF
15596 ld_shlibs_CXX=no
15597 ;;
15598 freebsd-elf*)
15599 archive_cmds_need_lc_CXX=no
15600 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015601 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015602 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15603 # conventions
15604 ld_shlibs_CXX=yes
15605 ;;
15606 gnu*)
15607 ;;
15608 hpux9*)
15609 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15610 hardcode_libdir_separator_CXX=:
15611 export_dynamic_flag_spec_CXX='${wl}-E'
15612 hardcode_direct_CXX=yes
15613 hardcode_minus_L_CXX=yes # Not in the search PATH,
15614 # but as the default
15615 # location of the library.
15616
15617 case $cc_basename in
15618 CC)
15619 # FIXME: insert proper C++ library support
15620 ld_shlibs_CXX=no
15621 ;;
15622 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015623 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 +000015624 # Commands to make compiler produce verbose output that lists
15625 # what "hidden" libraries, object files and flags are used when
15626 # linking a shared library.
15627 #
15628 # There doesn't appear to be a way to prevent this compiler from
15629 # explicitly linking system object files so we need to strip them
15630 # from the output so that they don't get included in the library
15631 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015632 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 +000015633 ;;
15634 *)
15635 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015636 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 +000015637 else
15638 # FIXME: insert proper C++ library support
15639 ld_shlibs_CXX=no
15640 fi
15641 ;;
15642 esac
15643 ;;
15644 hpux10*|hpux11*)
15645 if test $with_gnu_ld = no; then
15646 case "$host_cpu" in
15647 hppa*64*)
15648 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15649 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15650 hardcode_libdir_separator_CXX=:
15651 ;;
15652 ia64*)
15653 hardcode_libdir_flag_spec_CXX='-L$libdir'
15654 ;;
15655 *)
15656 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15657 hardcode_libdir_separator_CXX=:
15658 export_dynamic_flag_spec_CXX='${wl}-E'
15659 ;;
15660 esac
15661 fi
15662 case "$host_cpu" in
15663 hppa*64*)
15664 hardcode_direct_CXX=no
15665 hardcode_shlibpath_var_CXX=no
15666 ;;
15667 ia64*)
15668 hardcode_direct_CXX=no
15669 hardcode_shlibpath_var_CXX=no
15670 hardcode_minus_L_CXX=yes # Not in the search PATH,
15671 # but as the default
15672 # location of the library.
15673 ;;
15674 *)
15675 hardcode_direct_CXX=yes
15676 hardcode_minus_L_CXX=yes # Not in the search PATH,
15677 # but as the default
15678 # location of the library.
15679 ;;
15680 esac
15681
15682 case $cc_basename in
15683 CC)
15684 # FIXME: insert proper C++ library support
15685 ld_shlibs_CXX=no
15686 ;;
15687 aCC)
15688 case "$host_cpu" in
15689 hppa*64*|ia64*)
15690 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15691 ;;
15692 *)
15693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15694 ;;
15695 esac
15696 # Commands to make compiler produce verbose output that lists
15697 # what "hidden" libraries, object files and flags are used when
15698 # linking a shared library.
15699 #
15700 # There doesn't appear to be a way to prevent this compiler from
15701 # explicitly linking system object files so we need to strip them
15702 # from the output so that they don't get included in the library
15703 # dependencies.
15704 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'
15705 ;;
15706 *)
15707 if test "$GXX" = yes; then
15708 if test $with_gnu_ld = no; then
15709 case "$host_cpu" in
15710 ia64*|hppa*64*)
15711 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15712 ;;
15713 *)
15714 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'
15715 ;;
15716 esac
15717 fi
15718 else
15719 # FIXME: insert proper C++ library support
15720 ld_shlibs_CXX=no
15721 fi
15722 ;;
15723 esac
15724 ;;
15725 irix5* | irix6*)
15726 case $cc_basename in
15727 CC)
15728 # SGI C++
15729 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'
15730
15731 # Archives containing C++ object files must be created using
15732 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15733 # necessary to make sure instantiated templates are included
15734 # in the archive.
15735 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15736 ;;
15737 *)
15738 if test "$GXX" = yes; then
15739 if test "$with_gnu_ld" = no; then
15740 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'
15741 else
15742 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'
15743 fi
15744 fi
15745 link_all_deplibs_CXX=yes
15746 ;;
15747 esac
15748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15749 hardcode_libdir_separator_CXX=:
15750 ;;
15751 linux*)
15752 case $cc_basename in
15753 KCC)
15754 # Kuck and Associates, Inc. (KAI) C++ Compiler
15755
15756 # KCC will only create a shared library if the output file
15757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15758 # to its proper name (with version) after linking.
15759 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'
15760 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'
15761 # Commands to make compiler produce verbose output that lists
15762 # what "hidden" libraries, object files and flags are used when
15763 # linking a shared library.
15764 #
15765 # There doesn't appear to be a way to prevent this compiler from
15766 # explicitly linking system object files so we need to strip them
15767 # from the output so that they don't get included in the library
15768 # dependencies.
15769 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'
15770
15771 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15773
15774 # Archives containing C++ object files must be created using
15775 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15776 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15777 ;;
15778 icpc)
15779 # Intel C++
15780 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015781 # version 8.0 and above of icpc choke on multiply defined symbols
15782 # if we add $predep_objects and $postdep_objects, however 7.1 and
15783 # earlier do not add the objects themselves.
15784 case `$CC -V 2>&1` in
15785 *"Version 7."*)
15786 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15787 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'
15788 ;;
15789 *) # Version 8.0 or newer
15790 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15792 ;;
15793 esac
John Criswell47fdd832003-07-14 16:52:07 +000015794 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15797 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15798 ;;
15799 cxx)
15800 # Compaq C++
15801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802 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'
15803
15804 runpath_var=LD_RUN_PATH
15805 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15806 hardcode_libdir_separator_CXX=:
15807
15808 # Commands to make compiler produce verbose output that lists
15809 # what "hidden" libraries, object files and flags are used when
15810 # linking a shared library.
15811 #
15812 # There doesn't appear to be a way to prevent this compiler from
15813 # explicitly linking system object files so we need to strip them
15814 # from the output so that they don't get included in the library
15815 # dependencies.
15816 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'
15817 ;;
15818 esac
15819 ;;
15820 lynxos*)
15821 # FIXME: insert proper C++ library support
15822 ld_shlibs_CXX=no
15823 ;;
15824 m88k*)
15825 # FIXME: insert proper C++ library support
15826 ld_shlibs_CXX=no
15827 ;;
15828 mvs*)
15829 case $cc_basename in
15830 cxx)
15831 # FIXME: insert proper C++ library support
15832 ld_shlibs_CXX=no
15833 ;;
15834 *)
15835 # FIXME: insert proper C++ library support
15836 ld_shlibs_CXX=no
15837 ;;
15838 esac
15839 ;;
15840 netbsd*)
15841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15842 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15843 wlarc=
15844 hardcode_libdir_flag_spec_CXX='-R$libdir'
15845 hardcode_direct_CXX=yes
15846 hardcode_shlibpath_var_CXX=no
15847 fi
15848 # Workaround some broken pre-1.5 toolchains
15849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15850 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015851 openbsd2*)
15852 # C++ shared libraries are fairly broken
15853 ld_shlibs_CXX=no
15854 ;;
15855 openbsd*)
15856 hardcode_direct_CXX=yes
15857 hardcode_shlibpath_var_CXX=no
15858 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15861 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15862 export_dynamic_flag_spec_CXX='${wl}-E'
15863 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15864 fi
15865 output_verbose_link_cmd='echo'
15866 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015867 osf3*)
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
15877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15878 hardcode_libdir_separator_CXX=:
15879
15880 # Archives containing C++ object files must be created using
15881 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15882 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15883
15884 ;;
15885 RCC)
15886 # Rational C++ 2.4.1
15887 # FIXME: insert proper C++ library support
15888 ld_shlibs_CXX=no
15889 ;;
15890 cxx)
15891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15892 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'
15893
15894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15895 hardcode_libdir_separator_CXX=:
15896
15897 # Commands to make compiler produce verbose output that lists
15898 # what "hidden" libraries, object files and flags are used when
15899 # linking a shared library.
15900 #
15901 # There doesn't appear to be a way to prevent this compiler from
15902 # explicitly linking system object files so we need to strip them
15903 # from the output so that they don't get included in the library
15904 # dependencies.
15905 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'
15906 ;;
15907 *)
15908 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15909 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15910 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'
15911
15912 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15913 hardcode_libdir_separator_CXX=:
15914
15915 # Commands to make compiler produce verbose output that lists
15916 # what "hidden" libraries, object files and flags are used when
15917 # linking a shared library.
15918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15919
15920 else
15921 # FIXME: insert proper C++ library support
15922 ld_shlibs_CXX=no
15923 fi
15924 ;;
15925 esac
15926 ;;
15927 osf4* | osf5*)
15928 case $cc_basename in
15929 KCC)
15930 # Kuck and Associates, Inc. (KAI) C++ Compiler
15931
15932 # KCC will only create a shared library if the output file
15933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15934 # to its proper name (with version) after linking.
15935 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'
15936
15937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15938 hardcode_libdir_separator_CXX=:
15939
15940 # Archives containing C++ object files must be created using
15941 # the KAI C++ compiler.
15942 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15943 ;;
15944 RCC)
15945 # Rational C++ 2.4.1
15946 # FIXME: insert proper C++ library support
15947 ld_shlibs_CXX=no
15948 ;;
15949 cxx)
15950 allow_undefined_flag_CXX=' -expect_unresolved \*'
15951 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 +000015952 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15953 echo "-hidden">> $lib.exp~
15954 $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~
15955 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015956
15957 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15958 hardcode_libdir_separator_CXX=:
15959
15960 # Commands to make compiler produce verbose output that lists
15961 # what "hidden" libraries, object files and flags are used when
15962 # linking a shared library.
15963 #
15964 # There doesn't appear to be a way to prevent this compiler from
15965 # explicitly linking system object files so we need to strip them
15966 # from the output so that they don't get included in the library
15967 # dependencies.
15968 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'
15969 ;;
15970 *)
15971 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15973 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'
15974
15975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15976 hardcode_libdir_separator_CXX=:
15977
15978 # Commands to make compiler produce verbose output that lists
15979 # what "hidden" libraries, object files and flags are used when
15980 # linking a shared library.
15981 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15982
15983 else
15984 # FIXME: insert proper C++ library support
15985 ld_shlibs_CXX=no
15986 fi
15987 ;;
15988 esac
15989 ;;
15990 psos*)
15991 # FIXME: insert proper C++ library support
15992 ld_shlibs_CXX=no
15993 ;;
15994 sco*)
15995 archive_cmds_need_lc_CXX=no
15996 case $cc_basename in
15997 CC)
15998 # FIXME: insert proper C++ library support
15999 ld_shlibs_CXX=no
16000 ;;
16001 *)
16002 # FIXME: insert proper C++ library support
16003 ld_shlibs_CXX=no
16004 ;;
16005 esac
16006 ;;
16007 sunos4*)
16008 case $cc_basename in
16009 CC)
16010 # Sun C++ 4.x
16011 # FIXME: insert proper C++ library support
16012 ld_shlibs_CXX=no
16013 ;;
16014 lcc)
16015 # Lucid
16016 # FIXME: insert proper C++ library support
16017 ld_shlibs_CXX=no
16018 ;;
16019 *)
16020 # FIXME: insert proper C++ library support
16021 ld_shlibs_CXX=no
16022 ;;
16023 esac
16024 ;;
16025 solaris*)
16026 case $cc_basename in
16027 CC)
16028 # Sun C++ 4.2, 5.x and Centerline C++
16029 no_undefined_flag_CXX=' -zdefs'
16030 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 +000016031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16032 $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 +000016033
16034 hardcode_libdir_flag_spec_CXX='-R$libdir'
16035 hardcode_shlibpath_var_CXX=no
16036 case $host_os in
16037 solaris2.0-5 | solaris2.0-5.*) ;;
16038 *)
16039 # The C++ compiler is used as linker so we must use $wl
16040 # flag to pass the commands to the underlying system
16041 # linker.
16042 # Supported since Solaris 2.6 (maybe 2.5.1?)
16043 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16044 ;;
16045 esac
16046 link_all_deplibs_CXX=yes
16047
16048 # Commands to make compiler produce verbose output that lists
16049 # what "hidden" libraries, object files and flags are used when
16050 # linking a shared library.
16051 #
16052 # There doesn't appear to be a way to prevent this compiler from
16053 # explicitly linking system object files so we need to strip them
16054 # from the output so that they don't get included in the library
16055 # dependencies.
16056 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'
16057
16058 # Archives containing C++ object files must be created using
16059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16060 # necessary to make sure instantiated templates are included
16061 # in the archive.
16062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16063 ;;
16064 gcx)
16065 # Green Hills C++ Compiler
16066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16067
16068 # The C++ compiler must be used to create the archive.
16069 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16070 ;;
16071 *)
16072 # GNU C++ compiler with Solaris linker
16073 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16074 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16075 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016076 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 +000016077 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16078 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16079
John Criswell47fdd832003-07-14 16:52:07 +000016080 # Commands to make compiler produce verbose output that lists
16081 # what "hidden" libraries, object files and flags are used when
16082 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016083 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016084 else
16085 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16086 # platform.
16087 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 +000016088 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089 $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 +000016090
16091 # Commands to make compiler produce verbose output that lists
16092 # what "hidden" libraries, object files and flags are used when
16093 # linking a shared library.
16094 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16095 fi
16096
16097 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16098 fi
16099 ;;
16100 esac
16101 ;;
16102 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16103 archive_cmds_need_lc_CXX=no
16104 ;;
16105 tandem*)
16106 case $cc_basename in
16107 NCC)
16108 # NonStop-UX NCC 3.20
16109 # FIXME: insert proper C++ library support
16110 ld_shlibs_CXX=no
16111 ;;
16112 *)
16113 # FIXME: insert proper C++ library support
16114 ld_shlibs_CXX=no
16115 ;;
16116 esac
16117 ;;
16118 vxworks*)
16119 # FIXME: insert proper C++ library support
16120 ld_shlibs_CXX=no
16121 ;;
16122 *)
16123 # FIXME: insert proper C++ library support
16124 ld_shlibs_CXX=no
16125 ;;
16126esac
16127echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16128echo "${ECHO_T}$ld_shlibs_CXX" >&6
16129test "$ld_shlibs_CXX" = no && can_build_shared=no
16130
16131GCC_CXX="$GXX"
16132LD_CXX="$LD"
16133
John Criswell47fdd832003-07-14 16:52:07 +000016134
16135cat > conftest.$ac_ext <<EOF
16136class Foo
16137{
16138public:
16139 Foo (void) { a = 0; }
16140private:
16141 int a;
16142};
16143EOF
16144
16145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146 (eval $ac_compile) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; then
16150 # Parse the compiler output and extract the necessary
16151 # objects, libraries and library flags.
16152
16153 # Sentinel used to keep track of whether or not we are before
16154 # the conftest object file.
16155 pre_test_object_deps_done=no
16156
16157 # The `*' in the case matches for architectures that use `case' in
16158 # $output_verbose_cmd can trigger glob expansion during the loop
16159 # eval without this substitution.
16160 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16161
16162 for p in `eval $output_verbose_link_cmd`; do
16163 case $p in
16164
16165 -L* | -R* | -l*)
16166 # Some compilers place space between "-{L,R}" and the path.
16167 # Remove the space.
16168 if test $p = "-L" \
16169 || test $p = "-R"; then
16170 prev=$p
16171 continue
16172 else
16173 prev=
16174 fi
16175
16176 if test "$pre_test_object_deps_done" = no; then
16177 case $p in
16178 -L* | -R*)
16179 # Internal compiler library paths should come after those
16180 # provided the user. The postdeps already come after the
16181 # user supplied libs so there is no need to process them.
16182 if test -z "$compiler_lib_search_path_CXX"; then
16183 compiler_lib_search_path_CXX="${prev}${p}"
16184 else
16185 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16186 fi
16187 ;;
16188 # The "-l" case would never come before the object being
16189 # linked, so don't bother handling this case.
16190 esac
16191 else
16192 if test -z "$postdeps_CXX"; then
16193 postdeps_CXX="${prev}${p}"
16194 else
16195 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16196 fi
16197 fi
16198 ;;
16199
16200 *.$objext)
16201 # This assumes that the test object file only shows up
16202 # once in the compiler output.
16203 if test "$p" = "conftest.$objext"; then
16204 pre_test_object_deps_done=yes
16205 continue
16206 fi
16207
16208 if test "$pre_test_object_deps_done" = no; then
16209 if test -z "$predep_objects_CXX"; then
16210 predep_objects_CXX="$p"
16211 else
16212 predep_objects_CXX="$predep_objects_CXX $p"
16213 fi
16214 else
16215 if test -z "$postdep_objects_CXX"; then
16216 postdep_objects_CXX="$p"
16217 else
16218 postdep_objects_CXX="$postdep_objects_CXX $p"
16219 fi
16220 fi
16221 ;;
16222
16223 *) ;; # Ignore the rest.
16224
16225 esac
16226 done
16227
16228 # Clean up.
16229 rm -f a.out a.exe
16230else
16231 echo "libtool.m4: error: problem compiling CXX test program"
16232fi
16233
16234$rm -f confest.$objext
16235
16236case " $postdeps_CXX " in
16237*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16238esac
16239
16240lt_prog_compiler_wl_CXX=
16241lt_prog_compiler_pic_CXX=
16242lt_prog_compiler_static_CXX=
16243
16244echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16245echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16246
16247 # C++ specific cases for pic, static, wl, etc.
16248 if test "$GXX" = yes; then
16249 lt_prog_compiler_wl_CXX='-Wl,'
16250 lt_prog_compiler_static_CXX='-static'
16251
16252 case $host_os in
16253 aix*)
16254 # All AIX code is PIC.
16255 if test "$host_cpu" = ia64; then
16256 # AIX 5 now supports IA64 processor
16257 lt_prog_compiler_static_CXX='-Bstatic'
16258 fi
16259 ;;
16260 amigaos*)
16261 # FIXME: we need at least 68020 code to build shared libraries, but
16262 # adding the `-m68020' flag to GCC prevents building anything better,
16263 # like `-m68040'.
16264 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16265 ;;
16266 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16267 # PIC is the default for these OSes.
16268 ;;
16269 mingw* | os2* | pw32*)
16270 # This hack is so that the source file can tell whether it is being
16271 # built for inclusion in a dll (and should export symbols for example).
16272 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16273 ;;
16274 darwin* | rhapsody*)
16275 # PIC is the default on this platform
16276 # Common symbols not allowed in MH_DYLIB files
16277 lt_prog_compiler_pic_CXX='-fno-common'
16278 ;;
16279 *djgpp*)
16280 # DJGPP does not support shared libraries at all
16281 lt_prog_compiler_pic_CXX=
16282 ;;
16283 sysv4*MP*)
16284 if test -d /usr/nec; then
16285 lt_prog_compiler_pic_CXX=-Kconform_pic
16286 fi
16287 ;;
16288 hpux*)
16289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16290 # not for PA HP-UX.
16291 case "$host_cpu" in
16292 hppa*64*|ia64*)
16293 ;;
16294 *)
16295 lt_prog_compiler_pic_CXX='-fPIC'
16296 ;;
16297 esac
16298 ;;
16299 *)
16300 lt_prog_compiler_pic_CXX='-fPIC'
16301 ;;
16302 esac
16303 else
16304 case $host_os in
16305 aix4* | aix5*)
16306 # All AIX code is PIC.
16307 if test "$host_cpu" = ia64; then
16308 # AIX 5 now supports IA64 processor
16309 lt_prog_compiler_static_CXX='-Bstatic'
16310 else
16311 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16312 fi
16313 ;;
16314 chorus*)
16315 case $cc_basename in
16316 cxch68)
16317 # Green Hills C++ Compiler
16318 # _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"
16319 ;;
16320 esac
16321 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016322 darwin*)
16323 # PIC is the default on this platform
16324 # Common symbols not allowed in MH_DYLIB files
16325 case "$cc_basename" in
16326 xlc*)
16327 lt_prog_compiler_pic_CXX='-qnocommon'
16328 lt_prog_compiler_wl_CXX='-Wl,'
16329 ;;
16330 esac
16331 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016332 dgux*)
16333 case $cc_basename in
16334 ec++)
16335 lt_prog_compiler_pic_CXX='-KPIC'
16336 ;;
16337 ghcx)
16338 # Green Hills C++ Compiler
16339 lt_prog_compiler_pic_CXX='-pic'
16340 ;;
16341 *)
16342 ;;
16343 esac
16344 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016345 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016346 # FreeBSD uses GNU C++
16347 ;;
16348 hpux9* | hpux10* | hpux11*)
16349 case $cc_basename in
16350 CC)
16351 lt_prog_compiler_wl_CXX='-Wl,'
16352 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16353 if test "$host_cpu" != ia64; then
16354 lt_prog_compiler_pic_CXX='+Z'
16355 fi
16356 ;;
16357 aCC)
16358 lt_prog_compiler_wl_CXX='-Wl,'
16359 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16360 case "$host_cpu" in
16361 hppa*64*|ia64*)
16362 # +Z the default
16363 ;;
16364 *)
16365 lt_prog_compiler_pic_CXX='+Z'
16366 ;;
16367 esac
16368 ;;
16369 *)
16370 ;;
16371 esac
16372 ;;
16373 irix5* | irix6* | nonstopux*)
16374 case $cc_basename in
16375 CC)
16376 lt_prog_compiler_wl_CXX='-Wl,'
16377 lt_prog_compiler_static_CXX='-non_shared'
16378 # CC pic flag -KPIC is the default.
16379 ;;
16380 *)
16381 ;;
16382 esac
16383 ;;
16384 linux*)
16385 case $cc_basename in
16386 KCC)
16387 # KAI C++ Compiler
16388 lt_prog_compiler_wl_CXX='--backend -Wl,'
16389 lt_prog_compiler_pic_CXX='-fPIC'
16390 ;;
16391 icpc)
16392 # Intel C++
16393 lt_prog_compiler_wl_CXX='-Wl,'
16394 lt_prog_compiler_pic_CXX='-KPIC'
16395 lt_prog_compiler_static_CXX='-static'
16396 ;;
16397 cxx)
16398 # Compaq C++
16399 # Make sure the PIC flag is empty. It appears that all Alpha
16400 # Linux and Compaq Tru64 Unix objects are PIC.
16401 lt_prog_compiler_pic_CXX=
16402 lt_prog_compiler_static_CXX='-non_shared'
16403 ;;
16404 *)
16405 ;;
16406 esac
16407 ;;
16408 lynxos*)
16409 ;;
16410 m88k*)
16411 ;;
16412 mvs*)
16413 case $cc_basename in
16414 cxx)
16415 lt_prog_compiler_pic_CXX='-W c,exportall'
16416 ;;
16417 *)
16418 ;;
16419 esac
16420 ;;
16421 netbsd*)
16422 ;;
16423 osf3* | osf4* | osf5*)
16424 case $cc_basename in
16425 KCC)
16426 lt_prog_compiler_wl_CXX='--backend -Wl,'
16427 ;;
16428 RCC)
16429 # Rational C++ 2.4.1
16430 lt_prog_compiler_pic_CXX='-pic'
16431 ;;
16432 cxx)
16433 # Digital/Compaq C++
16434 lt_prog_compiler_wl_CXX='-Wl,'
16435 # Make sure the PIC flag is empty. It appears that all Alpha
16436 # Linux and Compaq Tru64 Unix objects are PIC.
16437 lt_prog_compiler_pic_CXX=
16438 lt_prog_compiler_static_CXX='-non_shared'
16439 ;;
16440 *)
16441 ;;
16442 esac
16443 ;;
16444 psos*)
16445 ;;
16446 sco*)
16447 case $cc_basename in
16448 CC)
16449 lt_prog_compiler_pic_CXX='-fPIC'
16450 ;;
16451 *)
16452 ;;
16453 esac
16454 ;;
16455 solaris*)
16456 case $cc_basename in
16457 CC)
16458 # Sun C++ 4.2, 5.x and Centerline C++
16459 lt_prog_compiler_pic_CXX='-KPIC'
16460 lt_prog_compiler_static_CXX='-Bstatic'
16461 lt_prog_compiler_wl_CXX='-Qoption ld '
16462 ;;
16463 gcx)
16464 # Green Hills C++ Compiler
16465 lt_prog_compiler_pic_CXX='-PIC'
16466 ;;
16467 *)
16468 ;;
16469 esac
16470 ;;
16471 sunos4*)
16472 case $cc_basename in
16473 CC)
16474 # Sun C++ 4.x
16475 lt_prog_compiler_pic_CXX='-pic'
16476 lt_prog_compiler_static_CXX='-Bstatic'
16477 ;;
16478 lcc)
16479 # Lucid
16480 lt_prog_compiler_pic_CXX='-pic'
16481 ;;
16482 *)
16483 ;;
16484 esac
16485 ;;
16486 tandem*)
16487 case $cc_basename in
16488 NCC)
16489 # NonStop-UX NCC 3.20
16490 lt_prog_compiler_pic_CXX='-KPIC'
16491 ;;
16492 *)
16493 ;;
16494 esac
16495 ;;
16496 unixware*)
16497 ;;
16498 vxworks*)
16499 ;;
16500 *)
16501 lt_prog_compiler_can_build_shared_CXX=no
16502 ;;
16503 esac
16504 fi
16505
16506echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16507echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16508
16509#
16510# Check to make sure the PIC flag actually works.
16511#
16512if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016513
16514echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016515echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16516if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16518else
16519 lt_prog_compiler_pic_works_CXX=no
16520 ac_outfile=conftest.$ac_objext
16521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16522 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16523 # Insert the option either (1) after the last *FLAGS variable, or
16524 # (2) before a word containing "conftest.", or (3) at the end.
16525 # Note that $ac_compile itself does not contain backslashes and begins
16526 # with a dollar sign (not a hyphen), so the echo should work correctly.
16527 # The option is referenced via a variable to avoid confusing sed.
16528 lt_compile=`echo "$ac_compile" | $SED \
16529 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16531 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000016532 (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016533 (eval "$lt_compile" 2>conftest.err)
16534 ac_status=$?
16535 cat conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000016536 echo "$as_me:16536: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016537 if (exit $ac_status) && test -s "$ac_outfile"; then
16538 # The compiler can only warn and ignore the option if not recognized
16539 # So say no if there are warnings
16540 if test ! -s conftest.err; then
16541 lt_prog_compiler_pic_works_CXX=yes
16542 fi
16543 fi
16544 $rm conftest*
16545
16546fi
16547echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16548echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16549
16550if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16551 case $lt_prog_compiler_pic_CXX in
16552 "" | " "*) ;;
16553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16554 esac
16555else
16556 lt_prog_compiler_pic_CXX=
16557 lt_prog_compiler_can_build_shared_CXX=no
16558fi
16559
16560fi
16561case "$host_os" in
16562 # For platforms which do not support PIC, -DPIC is meaningless:
16563 *djgpp*)
16564 lt_prog_compiler_pic_CXX=
16565 ;;
16566 *)
16567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16568 ;;
16569esac
16570
16571echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16572echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16573if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16575else
16576 lt_cv_prog_compiler_c_o_CXX=no
16577 $rm -r conftest 2>/dev/null
16578 mkdir conftest
16579 cd conftest
16580 mkdir out
16581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16582
John Criswell47fdd832003-07-14 16:52:07 +000016583 lt_compiler_flag="-o out/conftest2.$ac_objext"
16584 # Insert the option either (1) after the last *FLAGS variable, or
16585 # (2) before a word containing "conftest.", or (3) at the end.
16586 # Note that $ac_compile itself does not contain backslashes and begins
16587 # with a dollar sign (not a hyphen), so the echo should work correctly.
16588 lt_compile=`echo "$ac_compile" | $SED \
16589 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000016592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016593 (eval "$lt_compile" 2>out/conftest.err)
16594 ac_status=$?
16595 cat out/conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000016596 echo "$as_me:16596: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16598 then
16599 # The compiler can only warn and ignore the option if not recognized
16600 # So say no if there are warnings
16601 if test ! -s out/conftest.err; then
16602 lt_cv_prog_compiler_c_o_CXX=yes
16603 fi
16604 fi
16605 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016606 $rm conftest*
16607 # SGI C++ compiler will create directory out/ii_files/ for
16608 # template instantiation
16609 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16610 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016611 cd ..
16612 rmdir conftest
16613 $rm conftest*
16614
16615fi
16616echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16617echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16618
16619
16620hard_links="nottested"
16621if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16622 # do not overwrite the value of need_locks provided by the user
16623 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16624echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16625 hard_links=yes
16626 $rm conftest*
16627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16628 touch conftest.a
16629 ln conftest.a conftest.b 2>&5 || hard_links=no
16630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631 echo "$as_me:$LINENO: result: $hard_links" >&5
16632echo "${ECHO_T}$hard_links" >&6
16633 if test "$hard_links" = no; then
16634 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16635echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16636 need_locks=warn
16637 fi
16638else
16639 need_locks=no
16640fi
16641
16642echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16643echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16644
16645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16646 case $host_os in
16647 aix4* | aix5*)
16648 # If we're using GNU nm, then we don't want the "-C" option.
16649 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16650 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16651 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'
16652 else
16653 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'
16654 fi
16655 ;;
16656 pw32*)
16657 export_symbols_cmds_CXX="$ltdll_cmds"
16658 ;;
16659 cygwin* | mingw*)
16660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16661 ;;
16662 *)
16663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16664 ;;
16665 esac
16666
16667echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16668echo "${ECHO_T}$ld_shlibs_CXX" >&6
16669test "$ld_shlibs_CXX" = no && can_build_shared=no
16670
16671variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16672if test "$GCC" = yes; then
16673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16674fi
16675
16676#
16677# Do we need to explicitly link libc?
16678#
16679case "x$archive_cmds_need_lc_CXX" in
16680x|xyes)
16681 # Assume -lc should be added
16682 archive_cmds_need_lc_CXX=yes
16683
16684 if test "$enable_shared" = yes && test "$GCC" = yes; then
16685 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016686 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016687 # FIXME: we may have to deal with multi-command sequences.
16688 ;;
16689 '$CC '*)
16690 # Test whether the compiler implicitly links with -lc since on some
16691 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16692 # to ld, don't add -lc before -lgcc.
16693 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16694echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16695 $rm conftest*
16696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16697
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699 (eval $ac_compile) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } 2>conftest.err; then
16703 soname=conftest
16704 lib=conftest
16705 libobjs=conftest.$ac_objext
16706 deplibs=
16707 wl=$lt_prog_compiler_wl_CXX
16708 compiler_flags=-v
16709 linker_flags=-v
16710 verstring=
16711 output_objdir=.
16712 libname=conftest
16713 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16714 allow_undefined_flag_CXX=
16715 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16716 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }
16720 then
16721 archive_cmds_need_lc_CXX=no
16722 else
16723 archive_cmds_need_lc_CXX=yes
16724 fi
16725 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16726 else
16727 cat conftest.err 1>&5
16728 fi
16729 $rm conftest*
16730 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16731echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16732 ;;
16733 esac
16734 fi
16735 ;;
16736esac
16737
John Criswell47fdd832003-07-14 16:52:07 +000016738echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16739echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16740library_names_spec=
16741libname_spec='lib$name'
16742soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016743shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016744postinstall_cmds=
16745postuninstall_cmds=
16746finish_cmds=
16747finish_eval=
16748shlibpath_var=
16749shlibpath_overrides_runpath=unknown
16750version_type=none
16751dynamic_linker="$host_os ld.so"
16752sys_lib_dlsearch_path_spec="/lib /usr/lib"
16753if test "$GCC" = yes; then
16754 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16755 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16756 # if the path contains ";" then we assume it to be the separator
16757 # otherwise default to the standard path separator (i.e. ":") - it is
16758 # assumed that no part of a normal pathname contains ";" but that should
16759 # okay in the real world where ";" in dirpaths is itself problematic.
16760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16761 else
16762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16763 fi
16764else
16765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16766fi
16767need_lib_prefix=unknown
16768hardcode_into_libs=no
16769
16770# when you set need_version to no, make sure it does not cause -set_version
16771# flags to be left without arguments
16772need_version=unknown
16773
16774case $host_os in
16775aix3*)
16776 version_type=linux
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16778 shlibpath_var=LIBPATH
16779
16780 # AIX 3 has no versioning support, so we append a major version to the name.
16781 soname_spec='${libname}${release}${shared_ext}$major'
16782 ;;
16783
16784aix4* | aix5*)
16785 version_type=linux
16786 need_lib_prefix=no
16787 need_version=no
16788 hardcode_into_libs=yes
16789 if test "$host_cpu" = ia64; then
16790 # AIX 5 supports IA64
16791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 else
16794 # With GCC up to 2.95.x, collect2 would create an import file
16795 # for dependence libraries. The import file would start with
16796 # the line `#! .'. This would cause the generated library to
16797 # depend on `.', always an invalid library. This was fixed in
16798 # development snapshots of GCC prior to 3.0.
16799 case $host_os in
16800 aix4 | aix4.[01] | aix4.[01].*)
16801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16802 echo ' yes '
16803 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16804 :
16805 else
16806 can_build_shared=no
16807 fi
16808 ;;
16809 esac
16810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16811 # soname into executable. Probably we can add versioning support to
16812 # collect2, so additional links can be useful in future.
16813 if test "$aix_use_runtimelinking" = yes; then
16814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16815 # instead of lib<name>.a to let people know that these are not
16816 # typical AIX shared libraries.
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 else
16819 # We preserve .a as extension for shared libraries through AIX4.2
16820 # and later when we are not doing run time linking.
16821 library_names_spec='${libname}${release}.a $libname.a'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 fi
16824 shlibpath_var=LIBPATH
16825 fi
16826 ;;
16827
16828amigaos*)
16829 library_names_spec='$libname.ixlibrary $libname.a'
16830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016831 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 +000016832 ;;
16833
16834beos*)
16835 library_names_spec='${libname}${shared_ext}'
16836 dynamic_linker="$host_os ld.so"
16837 shlibpath_var=LIBRARY_PATH
16838 ;;
16839
Reid Spencer2706f8c2004-09-19 23:53:36 +000016840bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016841 version_type=linux
16842 need_version=no
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844 soname_spec='${libname}${release}${shared_ext}$major'
16845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16849 # the default ld.so.conf also contains /usr/contrib/lib and
16850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16851 # libtool to hard-code these into programs
16852 ;;
16853
16854cygwin* | mingw* | pw32*)
16855 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016856 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016857 need_version=no
16858 need_lib_prefix=no
16859
16860 case $GCC,$host_os in
16861 yes,cygwin* | yes,mingw* | yes,pw32*)
16862 library_names_spec='$libname.dll.a'
16863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016864 postinstall_cmds='base_file=`basename \${file}`~
16865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16866 dldir=$destdir/`dirname \$dlpath`~
16867 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016868 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16870 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016871 $rm \$dlpath'
16872 shlibpath_overrides_runpath=yes
16873
16874 case $host_os in
16875 cygwin*)
16876 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16877 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 +000016878 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016879 ;;
16880 mingw*)
16881 # MinGW DLLs use traditional 'lib' prefix
16882 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16884 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16885 # It is most probably a Windows format PATH printed by
16886 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16887 # path with ; separators, and with drive letters. We can handle the
16888 # drive letters (cygwin fileutils understands them), so leave them,
16889 # especially as we might pass files found there to a mingw objdump,
16890 # which wouldn't understand a cygwinified path. Ahh.
16891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16892 else
16893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16894 fi
16895 ;;
16896 pw32*)
16897 # pw32 DLLs use 'pw' prefix rather than 'lib'
16898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16899 ;;
16900 esac
16901 ;;
16902
16903 *)
16904 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16905 ;;
16906 esac
16907 dynamic_linker='Win32 ld.exe'
16908 # FIXME: first we should search . and the directory the executable is in
16909 shlibpath_var=PATH
16910 ;;
16911
16912darwin* | rhapsody*)
16913 dynamic_linker="$host_os dyld"
16914 version_type=darwin
16915 need_lib_prefix=no
16916 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016917 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016918 soname_spec='${libname}${release}${major}$shared_ext'
16919 shlibpath_overrides_runpath=yes
16920 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016921 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016922 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016923 if test "$GCC" = yes; then
16924 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"`
16925 else
16926 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016927 fi
16928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16929 ;;
16930
16931dgux*)
16932 version_type=linux
16933 need_lib_prefix=no
16934 need_version=no
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16936 soname_spec='${libname}${release}${shared_ext}$major'
16937 shlibpath_var=LD_LIBRARY_PATH
16938 ;;
16939
16940freebsd1*)
16941 dynamic_linker=no
16942 ;;
16943
Reid Spencer2706f8c2004-09-19 23:53:36 +000016944kfreebsd*-gnu)
16945 version_type=linux
16946 need_lib_prefix=no
16947 need_version=no
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 shlibpath_overrides_runpath=no
16952 hardcode_into_libs=yes
16953 dynamic_linker='GNU ld.so'
16954 ;;
16955
John Criswell47fdd832003-07-14 16:52:07 +000016956freebsd*)
16957 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16958 version_type=freebsd-$objformat
16959 case $version_type in
16960 freebsd-elf*)
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16962 need_version=no
16963 need_lib_prefix=no
16964 ;;
16965 freebsd-*)
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16967 need_version=yes
16968 ;;
16969 esac
16970 shlibpath_var=LD_LIBRARY_PATH
16971 case $host_os in
16972 freebsd2*)
16973 shlibpath_overrides_runpath=yes
16974 ;;
16975 freebsd3.01* | freebsdelf3.01*)
16976 shlibpath_overrides_runpath=yes
16977 hardcode_into_libs=yes
16978 ;;
16979 *) # from 3.2 on
16980 shlibpath_overrides_runpath=no
16981 hardcode_into_libs=yes
16982 ;;
16983 esac
16984 ;;
16985
16986gnu*)
16987 version_type=linux
16988 need_lib_prefix=no
16989 need_version=no
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16991 soname_spec='${libname}${release}${shared_ext}$major'
16992 shlibpath_var=LD_LIBRARY_PATH
16993 hardcode_into_libs=yes
16994 ;;
16995
16996hpux9* | hpux10* | hpux11*)
16997 # Give a soname corresponding to the major version so that dld.sl refuses to
16998 # link against other versions.
16999 version_type=sunos
17000 need_lib_prefix=no
17001 need_version=no
17002 case "$host_cpu" in
17003 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017004 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017005 hardcode_into_libs=yes
17006 dynamic_linker="$host_os dld.so"
17007 shlibpath_var=LD_LIBRARY_PATH
17008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 if test "X$HPUX_IA64_MODE" = X32; then
17012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17013 else
17014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17015 fi
17016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17017 ;;
17018 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017019 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017020 hardcode_into_libs=yes
17021 dynamic_linker="$host_os dld.sl"
17022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17028 ;;
17029 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017030 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017031 dynamic_linker="$host_os dld.sl"
17032 shlibpath_var=SHLIB_PATH
17033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 ;;
17037 esac
17038 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17039 postinstall_cmds='chmod 555 $lib'
17040 ;;
17041
17042irix5* | irix6* | nonstopux*)
17043 case $host_os in
17044 nonstopux*) version_type=nonstopux ;;
17045 *)
17046 if test "$lt_cv_prog_gnu_ld" = yes; then
17047 version_type=linux
17048 else
17049 version_type=irix
17050 fi ;;
17051 esac
17052 need_lib_prefix=no
17053 need_version=no
17054 soname_spec='${libname}${release}${shared_ext}$major'
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17056 case $host_os in
17057 irix5* | nonstopux*)
17058 libsuff= shlibsuff=
17059 ;;
17060 *)
17061 case $LD in # libtool.m4 will add one of these switches to LD
17062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17063 libsuff= shlibsuff= libmagic=32-bit;;
17064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17065 libsuff=32 shlibsuff=N32 libmagic=N32;;
17066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17068 *) libsuff= shlibsuff= libmagic=never-match;;
17069 esac
17070 ;;
17071 esac
17072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17073 shlibpath_overrides_runpath=no
17074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17076 hardcode_into_libs=yes
17077 ;;
17078
17079# No shared lib support for Linux oldld, aout, or coff.
17080linux*oldld* | linux*aout* | linux*coff*)
17081 dynamic_linker=no
17082 ;;
17083
17084# This must be Linux ELF.
17085linux*)
17086 version_type=linux
17087 need_lib_prefix=no
17088 need_version=no
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17092 shlibpath_var=LD_LIBRARY_PATH
17093 shlibpath_overrides_runpath=no
17094 # This implies no fast_install, which is unacceptable.
17095 # Some rework will be needed to allow for fast_install
17096 # before this can be enabled.
17097 hardcode_into_libs=yes
17098
Reid Spencer2706f8c2004-09-19 23:53:36 +000017099 # Append ld.so.conf contents to the search path
17100 if test -f /etc/ld.so.conf; then
17101 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17102 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17103 fi
17104
John Criswell47fdd832003-07-14 16:52:07 +000017105 # We used to test for /lib/ld.so.1 and disable shared libraries on
17106 # powerpc, because MkLinux only supported shared libraries with the
17107 # GNU dynamic linker. Since this was broken with cross compilers,
17108 # most powerpc-linux boxes support dynamic linking these days and
17109 # people can always --disable-shared, the test was removed, and we
17110 # assume the GNU/Linux dynamic linker is in use.
17111 dynamic_linker='GNU/Linux ld.so'
17112 ;;
17113
Reid Spencer2706f8c2004-09-19 23:53:36 +000017114knetbsd*-gnu)
17115 version_type=linux
17116 need_lib_prefix=no
17117 need_version=no
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 shlibpath_overrides_runpath=no
17122 hardcode_into_libs=yes
17123 dynamic_linker='GNU ld.so'
17124 ;;
17125
John Criswell47fdd832003-07-14 16:52:07 +000017126netbsd*)
17127 version_type=sunos
17128 need_lib_prefix=no
17129 need_version=no
17130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17133 dynamic_linker='NetBSD (a.out) ld.so'
17134 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017136 soname_spec='${libname}${release}${shared_ext}$major'
17137 dynamic_linker='NetBSD ld.elf_so'
17138 fi
17139 shlibpath_var=LD_LIBRARY_PATH
17140 shlibpath_overrides_runpath=yes
17141 hardcode_into_libs=yes
17142 ;;
17143
17144newsos6)
17145 version_type=linux
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17149 ;;
17150
Reid Spencer2706f8c2004-09-19 23:53:36 +000017151nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017152 version_type=linux
17153 need_lib_prefix=no
17154 need_version=no
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=yes
17159 ;;
17160
17161openbsd*)
17162 version_type=sunos
17163 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017164 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17169 case $host_os in
17170 openbsd2.[89] | openbsd2.[89].*)
17171 shlibpath_overrides_runpath=no
17172 ;;
17173 *)
17174 shlibpath_overrides_runpath=yes
17175 ;;
17176 esac
17177 else
17178 shlibpath_overrides_runpath=yes
17179 fi
17180 ;;
17181
17182os2*)
17183 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017184 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017185 need_lib_prefix=no
17186 library_names_spec='$libname${shared_ext} $libname.a'
17187 dynamic_linker='OS/2 ld.exe'
17188 shlibpath_var=LIBPATH
17189 ;;
17190
17191osf3* | osf4* | osf5*)
17192 version_type=osf
17193 need_lib_prefix=no
17194 need_version=no
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17200 ;;
17201
17202sco3.2v5*)
17203 version_type=osf
17204 soname_spec='${libname}${release}${shared_ext}$major'
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 ;;
17208
17209solaris*)
17210 version_type=linux
17211 need_lib_prefix=no
17212 need_version=no
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=yes
17217 hardcode_into_libs=yes
17218 # ldd complains unless libraries are executable
17219 postinstall_cmds='chmod +x $lib'
17220 ;;
17221
17222sunos4*)
17223 version_type=sunos
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=yes
17228 if test "$with_gnu_ld" = yes; then
17229 need_lib_prefix=no
17230 fi
17231 need_version=yes
17232 ;;
17233
17234sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17235 version_type=linux
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 case $host_vendor in
17240 sni)
17241 shlibpath_overrides_runpath=no
17242 need_lib_prefix=no
17243 export_dynamic_flag_spec='${wl}-Blargedynsym'
17244 runpath_var=LD_RUN_PATH
17245 ;;
17246 siemens)
17247 need_lib_prefix=no
17248 ;;
17249 motorola)
17250 need_lib_prefix=no
17251 need_version=no
17252 shlibpath_overrides_runpath=no
17253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17254 ;;
17255 esac
17256 ;;
17257
17258sysv4*MP*)
17259 if test -d /usr/nec ;then
17260 version_type=linux
17261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17262 soname_spec='$libname${shared_ext}.$major'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 fi
17265 ;;
17266
17267uts4*)
17268 version_type=linux
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 ;;
17273
17274*)
17275 dynamic_linker=no
17276 ;;
17277esac
17278echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17279echo "${ECHO_T}$dynamic_linker" >&6
17280test "$dynamic_linker" = no && can_build_shared=no
17281
Reid Spencer2706f8c2004-09-19 23:53:36 +000017282echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17283echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17284hardcode_action_CXX=
17285if test -n "$hardcode_libdir_flag_spec_CXX" || \
17286 test -n "$runpath_var_CXX" || \
17287 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17288
17289 # We can hardcode non-existant directories.
17290 if test "$hardcode_direct_CXX" != no &&
17291 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17292 # have to relink, otherwise we might link with an installed library
17293 # when we should be linking with a yet-to-be-installed one
17294 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17295 test "$hardcode_minus_L_CXX" != no; then
17296 # Linking always hardcodes the temporary library directory.
17297 hardcode_action_CXX=relink
17298 else
17299 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17300 hardcode_action_CXX=immediate
17301 fi
17302else
17303 # We cannot hardcode anything, or else we can only hardcode existing
17304 # directories.
17305 hardcode_action_CXX=unsupported
17306fi
17307echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17308echo "${ECHO_T}$hardcode_action_CXX" >&6
17309
17310if test "$hardcode_action_CXX" = relink; then
17311 # Fast installation is not supported
17312 enable_fast_install=no
17313elif test "$shlibpath_overrides_runpath" = yes ||
17314 test "$enable_shared" = no; then
17315 # Fast installation is not necessary
17316 enable_fast_install=needless
17317fi
17318
17319striplib=
17320old_striplib=
17321echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17322echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17323if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17325 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17326 echo "$as_me:$LINENO: result: yes" >&5
17327echo "${ECHO_T}yes" >&6
17328else
17329# FIXME - insert some real tests, host_os isn't really good enough
17330 case $host_os in
17331 darwin*)
17332 if test -n "$STRIP" ; then
17333 striplib="$STRIP -x"
17334 echo "$as_me:$LINENO: result: yes" >&5
17335echo "${ECHO_T}yes" >&6
17336 else
17337 echo "$as_me:$LINENO: result: no" >&5
17338echo "${ECHO_T}no" >&6
17339fi
17340 ;;
17341 *)
17342 echo "$as_me:$LINENO: result: no" >&5
17343echo "${ECHO_T}no" >&6
17344 ;;
17345 esac
17346fi
17347
John Criswell47fdd832003-07-14 16:52:07 +000017348if test "x$enable_dlopen" != xyes; then
17349 enable_dlopen=unknown
17350 enable_dlopen_self=unknown
17351 enable_dlopen_self_static=unknown
17352else
17353 lt_cv_dlopen=no
17354 lt_cv_dlopen_libs=
17355
17356 case $host_os in
17357 beos*)
17358 lt_cv_dlopen="load_add_on"
17359 lt_cv_dlopen_libs=
17360 lt_cv_dlopen_self=yes
17361 ;;
17362
17363 mingw* | pw32*)
17364 lt_cv_dlopen="LoadLibrary"
17365 lt_cv_dlopen_libs=
17366 ;;
17367
17368 cygwin*)
17369 lt_cv_dlopen="dlopen"
17370 lt_cv_dlopen_libs=
17371 ;;
17372
17373 darwin*)
17374 # if libdl is installed we need to link against it
17375 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17376echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17377if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17379else
17380 ac_check_lib_save_LIBS=$LIBS
17381LIBS="-ldl $LIBS"
17382cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017383/* confdefs.h. */
17384_ACEOF
17385cat confdefs.h >>conftest.$ac_ext
17386cat >>conftest.$ac_ext <<_ACEOF
17387/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017388
17389/* Override any gcc2 internal prototype to avoid an error. */
17390#ifdef __cplusplus
17391extern "C"
17392#endif
17393/* We use char because int might match the return type of a gcc2
17394 builtin and then its argument prototype would still apply. */
17395char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017396int
17397main ()
17398{
17399dlopen ();
17400 ;
17401 return 0;
17402}
17403_ACEOF
17404rm -f conftest.$ac_objext conftest$ac_exeext
17405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017406 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017407 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017413 { ac_try='test -z "$ac_cxx_werror_flag"
17414 || test ! -s conftest.err'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_lib_dl_dlopen=yes
17427else
17428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017429sed 's/^/| /' conftest.$ac_ext >&5
17430
John Criswell47fdd832003-07-14 16:52:07 +000017431ac_cv_lib_dl_dlopen=no
17432fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433rm -f conftest.err conftest.$ac_objext \
17434 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017435LIBS=$ac_check_lib_save_LIBS
17436fi
17437echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17438echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17439if test $ac_cv_lib_dl_dlopen = yes; then
17440 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17441else
17442
17443 lt_cv_dlopen="dyld"
17444 lt_cv_dlopen_libs=
17445 lt_cv_dlopen_self=yes
17446
17447fi
17448
17449 ;;
17450
17451 *)
17452 echo "$as_me:$LINENO: checking for shl_load" >&5
17453echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17454if test "${ac_cv_func_shl_load+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456else
17457 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017458/* confdefs.h. */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017463/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17465#define shl_load innocuous_shl_load
17466
John Criswell47fdd832003-07-14 16:52:07 +000017467/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017468 which can conflict with char shl_load (); below.
17469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17470 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017471
John Criswell0c38eaf2003-09-10 15:17:25 +000017472#ifdef __STDC__
17473# include <limits.h>
17474#else
17475# include <assert.h>
17476#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017477
17478#undef shl_load
17479
John Criswell47fdd832003-07-14 16:52:07 +000017480/* Override any gcc2 internal prototype to avoid an error. */
17481#ifdef __cplusplus
17482extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017483{
John Criswell47fdd832003-07-14 16:52:07 +000017484#endif
17485/* We use char because int might match the return type of a gcc2
17486 builtin and then its argument prototype would still apply. */
17487char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017488/* The GNU C library defines this for functions which it implements
17489 to always fail with ENOSYS. Some functions are actually named
17490 something starting with __ and the normal name is an alias. */
17491#if defined (__stub_shl_load) || defined (__stub___shl_load)
17492choke me
17493#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017494char (*f) () = shl_load;
17495#endif
17496#ifdef __cplusplus
17497}
John Criswell47fdd832003-07-14 16:52:07 +000017498#endif
17499
John Criswell0c38eaf2003-09-10 15:17:25 +000017500int
17501main ()
17502{
17503return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext conftest$ac_exeext
17509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017510 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017511 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017517 { ac_try='test -z "$ac_cxx_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_cv_func_shl_load=yes
17531else
17532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017533sed 's/^/| /' conftest.$ac_ext >&5
17534
John Criswell47fdd832003-07-14 16:52:07 +000017535ac_cv_func_shl_load=no
17536fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017537rm -f conftest.err conftest.$ac_objext \
17538 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017539fi
17540echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17541echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17542if test $ac_cv_func_shl_load = yes; then
17543 lt_cv_dlopen="shl_load"
17544else
17545 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17546echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17547if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17549else
17550 ac_check_lib_save_LIBS=$LIBS
17551LIBS="-ldld $LIBS"
17552cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017558
17559/* Override any gcc2 internal prototype to avoid an error. */
17560#ifdef __cplusplus
17561extern "C"
17562#endif
17563/* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17565char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017566int
17567main ()
17568{
17569shl_load ();
17570 ;
17571 return 0;
17572}
17573_ACEOF
17574rm -f conftest.$ac_objext conftest$ac_exeext
17575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017576 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017583 { ac_try='test -z "$ac_cxx_werror_flag"
17584 || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_lib_dld_shl_load=yes
17597else
17598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017599sed 's/^/| /' conftest.$ac_ext >&5
17600
John Criswell47fdd832003-07-14 16:52:07 +000017601ac_cv_lib_dld_shl_load=no
17602fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017603rm -f conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017605LIBS=$ac_check_lib_save_LIBS
17606fi
17607echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17608echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17609if test $ac_cv_lib_dld_shl_load = yes; then
17610 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17611else
17612 echo "$as_me:$LINENO: checking for dlopen" >&5
17613echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17614if test "${ac_cv_func_dlopen+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17616else
17617 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017623/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17625#define dlopen innocuous_dlopen
17626
John Criswell47fdd832003-07-14 16:52:07 +000017627/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017628 which can conflict with char dlopen (); below.
17629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017631
John Criswell0c38eaf2003-09-10 15:17:25 +000017632#ifdef __STDC__
17633# include <limits.h>
17634#else
17635# include <assert.h>
17636#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017637
17638#undef dlopen
17639
John Criswell47fdd832003-07-14 16:52:07 +000017640/* Override any gcc2 internal prototype to avoid an error. */
17641#ifdef __cplusplus
17642extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017643{
John Criswell47fdd832003-07-14 16:52:07 +000017644#endif
17645/* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17647char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017648/* The GNU C library defines this for functions which it implements
17649 to always fail with ENOSYS. Some functions are actually named
17650 something starting with __ and the normal name is an alias. */
17651#if defined (__stub_dlopen) || defined (__stub___dlopen)
17652choke me
17653#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017654char (*f) () = dlopen;
17655#endif
17656#ifdef __cplusplus
17657}
John Criswell47fdd832003-07-14 16:52:07 +000017658#endif
17659
John Criswell0c38eaf2003-09-10 15:17:25 +000017660int
17661main ()
17662{
17663return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017664 ;
17665 return 0;
17666}
17667_ACEOF
17668rm -f conftest.$ac_objext conftest$ac_exeext
17669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017670 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017677 { ac_try='test -z "$ac_cxx_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_func_dlopen=yes
17691else
17692 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017693sed 's/^/| /' conftest.$ac_ext >&5
17694
John Criswell47fdd832003-07-14 16:52:07 +000017695ac_cv_func_dlopen=no
17696fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017697rm -f conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017699fi
17700echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17701echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17702if test $ac_cv_func_dlopen = yes; then
17703 lt_cv_dlopen="dlopen"
17704else
17705 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17706echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17707if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17709else
17710 ac_check_lib_save_LIBS=$LIBS
17711LIBS="-ldl $LIBS"
17712cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017713/* confdefs.h. */
17714_ACEOF
17715cat confdefs.h >>conftest.$ac_ext
17716cat >>conftest.$ac_ext <<_ACEOF
17717/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017718
17719/* Override any gcc2 internal prototype to avoid an error. */
17720#ifdef __cplusplus
17721extern "C"
17722#endif
17723/* We use char because int might match the return type of a gcc2
17724 builtin and then its argument prototype would still apply. */
17725char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017726int
17727main ()
17728{
17729dlopen ();
17730 ;
17731 return 0;
17732}
17733_ACEOF
17734rm -f conftest.$ac_objext conftest$ac_exeext
17735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017736 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017743 { ac_try='test -z "$ac_cxx_werror_flag"
17744 || test ! -s conftest.err'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_lib_dl_dlopen=yes
17757else
17758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017759sed 's/^/| /' conftest.$ac_ext >&5
17760
John Criswell47fdd832003-07-14 16:52:07 +000017761ac_cv_lib_dl_dlopen=no
17762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763rm -f conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017765LIBS=$ac_check_lib_save_LIBS
17766fi
17767echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17768echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17769if test $ac_cv_lib_dl_dlopen = yes; then
17770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17771else
17772 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17773echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17774if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777 ac_check_lib_save_LIBS=$LIBS
17778LIBS="-lsvld $LIBS"
17779cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017785
17786/* Override any gcc2 internal prototype to avoid an error. */
17787#ifdef __cplusplus
17788extern "C"
17789#endif
17790/* We use char because int might match the return type of a gcc2
17791 builtin and then its argument prototype would still apply. */
17792char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017793int
17794main ()
17795{
17796dlopen ();
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext conftest$ac_exeext
17802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017803 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017810 { ac_try='test -z "$ac_cxx_werror_flag"
17811 || test ! -s conftest.err'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_cv_lib_svld_dlopen=yes
17824else
17825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017826sed 's/^/| /' conftest.$ac_ext >&5
17827
John Criswell47fdd832003-07-14 16:52:07 +000017828ac_cv_lib_svld_dlopen=no
17829fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017830rm -f conftest.err conftest.$ac_objext \
17831 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017832LIBS=$ac_check_lib_save_LIBS
17833fi
17834echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17835echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17836if test $ac_cv_lib_svld_dlopen = yes; then
17837 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17838else
17839 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17840echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17841if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843else
17844 ac_check_lib_save_LIBS=$LIBS
17845LIBS="-ldld $LIBS"
17846cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017847/* confdefs.h. */
17848_ACEOF
17849cat confdefs.h >>conftest.$ac_ext
17850cat >>conftest.$ac_ext <<_ACEOF
17851/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017852
17853/* Override any gcc2 internal prototype to avoid an error. */
17854#ifdef __cplusplus
17855extern "C"
17856#endif
17857/* We use char because int might match the return type of a gcc2
17858 builtin and then its argument prototype would still apply. */
17859char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017860int
17861main ()
17862{
17863dld_link ();
17864 ;
17865 return 0;
17866}
17867_ACEOF
17868rm -f conftest.$ac_objext conftest$ac_exeext
17869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017870 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017871 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017877 { ac_try='test -z "$ac_cxx_werror_flag"
17878 || test ! -s conftest.err'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 ac_cv_lib_dld_dld_link=yes
17891else
17892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017893sed 's/^/| /' conftest.$ac_ext >&5
17894
John Criswell47fdd832003-07-14 16:52:07 +000017895ac_cv_lib_dld_dld_link=no
17896fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017897rm -f conftest.err conftest.$ac_objext \
17898 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017899LIBS=$ac_check_lib_save_LIBS
17900fi
17901echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17902echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17903if test $ac_cv_lib_dld_dld_link = yes; then
17904 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17905fi
17906
17907
17908fi
17909
17910
17911fi
17912
17913
17914fi
17915
17916
17917fi
17918
17919
17920fi
17921
17922 ;;
17923 esac
17924
17925 if test "x$lt_cv_dlopen" != xno; then
17926 enable_dlopen=yes
17927 else
17928 enable_dlopen=no
17929 fi
17930
17931 case $lt_cv_dlopen in
17932 dlopen)
17933 save_CPPFLAGS="$CPPFLAGS"
17934 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17935
17936 save_LDFLAGS="$LDFLAGS"
17937 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17938
17939 save_LIBS="$LIBS"
17940 LIBS="$lt_cv_dlopen_libs $LIBS"
17941
17942 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17943echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17944if test "${lt_cv_dlopen_self+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946else
17947 if test "$cross_compiling" = yes; then :
17948 lt_cv_dlopen_self=cross
17949else
17950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17951 lt_status=$lt_dlunknown
17952 cat > conftest.$ac_ext <<EOF
Reid Spencerf97c7032004-12-27 09:33:46 +000017953#line 17953 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017954#include "confdefs.h"
17955
17956#if HAVE_DLFCN_H
17957#include <dlfcn.h>
17958#endif
17959
17960#include <stdio.h>
17961
17962#ifdef RTLD_GLOBAL
17963# define LT_DLGLOBAL RTLD_GLOBAL
17964#else
17965# ifdef DL_GLOBAL
17966# define LT_DLGLOBAL DL_GLOBAL
17967# else
17968# define LT_DLGLOBAL 0
17969# endif
17970#endif
17971
17972/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17973 find out it does not work in some platform. */
17974#ifndef LT_DLLAZY_OR_NOW
17975# ifdef RTLD_LAZY
17976# define LT_DLLAZY_OR_NOW RTLD_LAZY
17977# else
17978# ifdef DL_LAZY
17979# define LT_DLLAZY_OR_NOW DL_LAZY
17980# else
17981# ifdef RTLD_NOW
17982# define LT_DLLAZY_OR_NOW RTLD_NOW
17983# else
17984# ifdef DL_NOW
17985# define LT_DLLAZY_OR_NOW DL_NOW
17986# else
17987# define LT_DLLAZY_OR_NOW 0
17988# endif
17989# endif
17990# endif
17991# endif
17992#endif
17993
17994#ifdef __cplusplus
17995extern "C" void exit (int);
17996#endif
17997
17998void fnord() { int i=42;}
17999int main ()
18000{
18001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18002 int status = $lt_dlunknown;
18003
18004 if (self)
18005 {
18006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18007 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18008 /* dlclose (self); */
18009 }
18010
18011 exit (status);
18012}
18013EOF
18014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18015 (eval $ac_link) 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18019 (./conftest; exit; ) 2>/dev/null
18020 lt_status=$?
18021 case x$lt_status in
18022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18024 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18025 esac
18026 else :
18027 # compilation failed
18028 lt_cv_dlopen_self=no
18029 fi
18030fi
18031rm -fr conftest*
18032
18033
18034fi
18035echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18036echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18037
18038 if test "x$lt_cv_dlopen_self" = xyes; then
18039 LDFLAGS="$LDFLAGS $link_static_flag"
18040 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18041echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18042if test "${lt_cv_dlopen_self_static+set}" = set; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044else
18045 if test "$cross_compiling" = yes; then :
18046 lt_cv_dlopen_self_static=cross
18047else
18048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18049 lt_status=$lt_dlunknown
18050 cat > conftest.$ac_ext <<EOF
Reid Spencerf97c7032004-12-27 09:33:46 +000018051#line 18051 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018052#include "confdefs.h"
18053
18054#if HAVE_DLFCN_H
18055#include <dlfcn.h>
18056#endif
18057
18058#include <stdio.h>
18059
18060#ifdef RTLD_GLOBAL
18061# define LT_DLGLOBAL RTLD_GLOBAL
18062#else
18063# ifdef DL_GLOBAL
18064# define LT_DLGLOBAL DL_GLOBAL
18065# else
18066# define LT_DLGLOBAL 0
18067# endif
18068#endif
18069
18070/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18071 find out it does not work in some platform. */
18072#ifndef LT_DLLAZY_OR_NOW
18073# ifdef RTLD_LAZY
18074# define LT_DLLAZY_OR_NOW RTLD_LAZY
18075# else
18076# ifdef DL_LAZY
18077# define LT_DLLAZY_OR_NOW DL_LAZY
18078# else
18079# ifdef RTLD_NOW
18080# define LT_DLLAZY_OR_NOW RTLD_NOW
18081# else
18082# ifdef DL_NOW
18083# define LT_DLLAZY_OR_NOW DL_NOW
18084# else
18085# define LT_DLLAZY_OR_NOW 0
18086# endif
18087# endif
18088# endif
18089# endif
18090#endif
18091
18092#ifdef __cplusplus
18093extern "C" void exit (int);
18094#endif
18095
18096void fnord() { int i=42;}
18097int main ()
18098{
18099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18100 int status = $lt_dlunknown;
18101
18102 if (self)
18103 {
18104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18106 /* dlclose (self); */
18107 }
18108
18109 exit (status);
18110}
18111EOF
18112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113 (eval $ac_link) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18117 (./conftest; exit; ) 2>/dev/null
18118 lt_status=$?
18119 case x$lt_status in
18120 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18121 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18122 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18123 esac
18124 else :
18125 # compilation failed
18126 lt_cv_dlopen_self_static=no
18127 fi
18128fi
18129rm -fr conftest*
18130
18131
18132fi
18133echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18134echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18135 fi
18136
18137 CPPFLAGS="$save_CPPFLAGS"
18138 LDFLAGS="$save_LDFLAGS"
18139 LIBS="$save_LIBS"
18140 ;;
18141 esac
18142
18143 case $lt_cv_dlopen_self in
18144 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18145 *) enable_dlopen_self=unknown ;;
18146 esac
18147
18148 case $lt_cv_dlopen_self_static in
18149 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18150 *) enable_dlopen_self_static=unknown ;;
18151 esac
18152fi
18153
18154
18155# The else clause should only fire when bootstrapping the
18156# libtool distribution, otherwise you forgot to ship ltmain.sh
18157# with your package, and you will get complaints that there are
18158# no rules to generate ltmain.sh.
18159if test -f "$ltmain"; then
18160 # See if we are running on zsh, and set the options which allow our commands through
18161 # without removal of \ escapes.
18162 if test -n "${ZSH_VERSION+set}" ; then
18163 setopt NO_GLOB_SUBST
18164 fi
18165 # Now quote all the things that may contain metacharacters while being
18166 # careful not to overquote the AC_SUBSTed values. We take copies of the
18167 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018168 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18169 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018170 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18171 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18172 deplibs_check_method reload_flag reload_cmds need_locks \
18173 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18174 lt_cv_sys_global_symbol_to_c_name_address \
18175 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18176 old_postinstall_cmds old_postuninstall_cmds \
18177 compiler_CXX \
18178 CC_CXX \
18179 LD_CXX \
18180 lt_prog_compiler_wl_CXX \
18181 lt_prog_compiler_pic_CXX \
18182 lt_prog_compiler_static_CXX \
18183 lt_prog_compiler_no_builtin_flag_CXX \
18184 export_dynamic_flag_spec_CXX \
18185 thread_safe_flag_spec_CXX \
18186 whole_archive_flag_spec_CXX \
18187 enable_shared_with_static_runtimes_CXX \
18188 old_archive_cmds_CXX \
18189 old_archive_from_new_cmds_CXX \
18190 predep_objects_CXX \
18191 postdep_objects_CXX \
18192 predeps_CXX \
18193 postdeps_CXX \
18194 compiler_lib_search_path_CXX \
18195 archive_cmds_CXX \
18196 archive_expsym_cmds_CXX \
18197 postinstall_cmds_CXX \
18198 postuninstall_cmds_CXX \
18199 old_archive_from_expsyms_cmds_CXX \
18200 allow_undefined_flag_CXX \
18201 no_undefined_flag_CXX \
18202 export_symbols_cmds_CXX \
18203 hardcode_libdir_flag_spec_CXX \
18204 hardcode_libdir_flag_spec_ld_CXX \
18205 hardcode_libdir_separator_CXX \
18206 hardcode_automatic_CXX \
18207 module_cmds_CXX \
18208 module_expsym_cmds_CXX \
18209 lt_cv_prog_compiler_c_o_CXX \
18210 exclude_expsyms_CXX \
18211 include_expsyms_CXX; do
18212
18213 case $var in
18214 old_archive_cmds_CXX | \
18215 old_archive_from_new_cmds_CXX | \
18216 archive_cmds_CXX | \
18217 archive_expsym_cmds_CXX | \
18218 module_cmds_CXX | \
18219 module_expsym_cmds_CXX | \
18220 old_archive_from_expsyms_cmds_CXX | \
18221 export_symbols_cmds_CXX | \
18222 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18223 postinstall_cmds | postuninstall_cmds | \
18224 old_postinstall_cmds | old_postuninstall_cmds | \
18225 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18226 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018227 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 +000018228 ;;
18229 *)
18230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18231 ;;
18232 esac
18233 done
18234
18235 case $lt_echo in
18236 *'\$0 --fallback-echo"')
18237 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18238 ;;
18239 esac
18240
18241cfgfile="$ofile"
18242
18243 cat <<__EOF__ >> "$cfgfile"
18244# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18245
18246# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18247
18248# Shell to use when invoking shell scripts.
18249SHELL=$lt_SHELL
18250
18251# Whether or not to build shared libraries.
18252build_libtool_libs=$enable_shared
18253
18254# Whether or not to build static libraries.
18255build_old_libs=$enable_static
18256
18257# Whether or not to add -lc for building shared libraries.
18258build_libtool_need_lc=$archive_cmds_need_lc_CXX
18259
18260# Whether or not to disallow shared libs when runtime libs are static
18261allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18262
18263# Whether or not to optimize for fast installation.
18264fast_install=$enable_fast_install
18265
18266# The host system.
18267host_alias=$host_alias
18268host=$host
18269
18270# An echo program that does not interpret backslashes.
18271echo=$lt_echo
18272
18273# The archiver.
18274AR=$lt_AR
18275AR_FLAGS=$lt_AR_FLAGS
18276
18277# A C compiler.
18278LTCC=$lt_LTCC
18279
18280# A language-specific compiler.
18281CC=$lt_compiler_CXX
18282
18283# Is the compiler the GNU C compiler?
18284with_gcc=$GCC_CXX
18285
18286# An ERE matcher.
18287EGREP=$lt_EGREP
18288
18289# The linker used to build libraries.
18290LD=$lt_LD_CXX
18291
18292# Whether we need hard or soft links.
18293LN_S=$lt_LN_S
18294
18295# A BSD-compatible nm program.
18296NM=$lt_NM
18297
18298# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018299STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018300
18301# Used to examine libraries when file_magic_cmd begins "file"
18302MAGIC_CMD=$MAGIC_CMD
18303
18304# Used on cygwin: DLL creation program.
18305DLLTOOL="$DLLTOOL"
18306
18307# Used on cygwin: object dumper.
18308OBJDUMP="$OBJDUMP"
18309
18310# Used on cygwin: assembler.
18311AS="$AS"
18312
18313# The name of the directory that contains temporary libtool files.
18314objdir=$objdir
18315
18316# How to create reloadable object files.
18317reload_flag=$lt_reload_flag
18318reload_cmds=$lt_reload_cmds
18319
18320# How to pass a linker flag through the compiler.
18321wl=$lt_lt_prog_compiler_wl_CXX
18322
18323# Object file suffix (normally "o").
18324objext="$ac_objext"
18325
18326# Old archive suffix (normally "a").
18327libext="$libext"
18328
18329# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018330shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018331
18332# Executable file suffix (normally "").
18333exeext="$exeext"
18334
18335# Additional compiler flags for building library objects.
18336pic_flag=$lt_lt_prog_compiler_pic_CXX
18337pic_mode=$pic_mode
18338
18339# What is the maximum length of a command?
18340max_cmd_len=$lt_cv_sys_max_cmd_len
18341
18342# Does compiler simultaneously support -c and -o options?
18343compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18344
18345# Must we lock files when doing compilation ?
18346need_locks=$lt_need_locks
18347
18348# Do we need the lib prefix for modules?
18349need_lib_prefix=$need_lib_prefix
18350
18351# Do we need a version for libraries?
18352need_version=$need_version
18353
18354# Whether dlopen is supported.
18355dlopen_support=$enable_dlopen
18356
18357# Whether dlopen of programs is supported.
18358dlopen_self=$enable_dlopen_self
18359
18360# Whether dlopen of statically linked programs is supported.
18361dlopen_self_static=$enable_dlopen_self_static
18362
18363# Compiler flag to prevent dynamic linking.
18364link_static_flag=$lt_lt_prog_compiler_static_CXX
18365
18366# Compiler flag to turn off builtin functions.
18367no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18368
18369# Compiler flag to allow reflexive dlopens.
18370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18371
18372# Compiler flag to generate shared objects directly from archives.
18373whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18374
18375# Compiler flag to generate thread-safe objects.
18376thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18377
18378# Library versioning type.
18379version_type=$version_type
18380
18381# Format of library name prefix.
18382libname_spec=$lt_libname_spec
18383
18384# List of archive names. First name is the real one, the rest are links.
18385# The last name is the one that the linker finds with -lNAME.
18386library_names_spec=$lt_library_names_spec
18387
18388# The coded name of the library, if different from the real name.
18389soname_spec=$lt_soname_spec
18390
18391# Commands used to build and install an old-style archive.
18392RANLIB=$lt_RANLIB
18393old_archive_cmds=$lt_old_archive_cmds_CXX
18394old_postinstall_cmds=$lt_old_postinstall_cmds
18395old_postuninstall_cmds=$lt_old_postuninstall_cmds
18396
18397# Create an old-style archive from a shared archive.
18398old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18399
18400# Create a temporary old-style archive to link instead of a shared archive.
18401old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18402
18403# Commands used to build and install a shared archive.
18404archive_cmds=$lt_archive_cmds_CXX
18405archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18406postinstall_cmds=$lt_postinstall_cmds
18407postuninstall_cmds=$lt_postuninstall_cmds
18408
18409# Commands used to build a loadable module (assumed same as above if empty)
18410module_cmds=$lt_module_cmds_CXX
18411module_expsym_cmds=$lt_module_expsym_cmds_CXX
18412
18413# Commands to strip libraries.
18414old_striplib=$lt_old_striplib
18415striplib=$lt_striplib
18416
18417# Dependencies to place before the objects being linked to create a
18418# shared library.
18419predep_objects=$lt_predep_objects_CXX
18420
18421# Dependencies to place after the objects being linked to create a
18422# shared library.
18423postdep_objects=$lt_postdep_objects_CXX
18424
18425# Dependencies to place before the objects being linked to create a
18426# shared library.
18427predeps=$lt_predeps_CXX
18428
18429# Dependencies to place after the objects being linked to create a
18430# shared library.
18431postdeps=$lt_postdeps_CXX
18432
18433# The library search path used internally by the compiler when linking
18434# a shared library.
18435compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18436
18437# Method to check whether dependent libraries are shared objects.
18438deplibs_check_method=$lt_deplibs_check_method
18439
18440# Command to use when deplibs_check_method == file_magic.
18441file_magic_cmd=$lt_file_magic_cmd
18442
18443# Flag that allows shared libraries with undefined symbols to be built.
18444allow_undefined_flag=$lt_allow_undefined_flag_CXX
18445
18446# Flag that forces no undefined symbols.
18447no_undefined_flag=$lt_no_undefined_flag_CXX
18448
18449# Commands used to finish a libtool library installation in a directory.
18450finish_cmds=$lt_finish_cmds
18451
18452# Same as above, but a single script fragment to be evaled but not shown.
18453finish_eval=$lt_finish_eval
18454
18455# Take the output of nm and produce a listing of raw symbols and C names.
18456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18457
18458# Transform the output of nm in a proper C declaration
18459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18460
18461# Transform the output of nm in a C name address pair
18462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18463
18464# This is the shared library runtime path variable.
18465runpath_var=$runpath_var
18466
18467# This is the shared library path variable.
18468shlibpath_var=$shlibpath_var
18469
18470# Is shlibpath searched before the hard-coded library search path?
18471shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18472
18473# How to hardcode a shared library path into an executable.
18474hardcode_action=$hardcode_action_CXX
18475
18476# Whether we should hardcode library paths into libraries.
18477hardcode_into_libs=$hardcode_into_libs
18478
18479# Flag to hardcode \$libdir into a binary during linking.
18480# This must work even if \$libdir does not exist.
18481hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18482
18483# If ld is used when linking, flag to hardcode \$libdir into
18484# a binary during linking. This must work even if \$libdir does
18485# not exist.
18486hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18487
18488# Whether we need a single -rpath flag with a separated argument.
18489hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18490
18491# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18492# resulting binary.
18493hardcode_direct=$hardcode_direct_CXX
18494
18495# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18496# resulting binary.
18497hardcode_minus_L=$hardcode_minus_L_CXX
18498
18499# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18500# the resulting binary.
18501hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18502
18503# Set to yes if building a shared library automatically hardcodes DIR into the library
18504# and all subsequent libraries and executables linked against it.
18505hardcode_automatic=$hardcode_automatic_CXX
18506
18507# Variables whose values should be saved in libtool wrapper scripts and
18508# restored at relink time.
18509variables_saved_for_relink="$variables_saved_for_relink"
18510
18511# Whether libtool must link a program against all its dependency libraries.
18512link_all_deplibs=$link_all_deplibs_CXX
18513
18514# Compile-time system search path for libraries
18515sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18516
18517# Run-time system search path for libraries
18518sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18519
18520# Fix the shell variable \$srcfile for the compiler.
18521fix_srcfile_path="$fix_srcfile_path_CXX"
18522
18523# Set to yes if exported symbols are required.
18524always_export_symbols=$always_export_symbols_CXX
18525
18526# The commands to list exported symbols.
18527export_symbols_cmds=$lt_export_symbols_cmds_CXX
18528
18529# The commands to extract the exported symbol list from a shared archive.
18530extract_expsyms_cmds=$lt_extract_expsyms_cmds
18531
18532# Symbols that should not be listed in the preloaded symbols.
18533exclude_expsyms=$lt_exclude_expsyms_CXX
18534
18535# Symbols that must always be exported.
18536include_expsyms=$lt_include_expsyms_CXX
18537
18538# ### END LIBTOOL TAG CONFIG: $tagname
18539
18540__EOF__
18541
18542
18543else
18544 # If there is no Makefile yet, we rely on a make rule to execute
18545 # `config.status --recheck' to rerun these tests and create the
18546 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18548 if test -f "$ltmain_in"; then
18549 test -f Makefile && make "$ltmain"
18550 fi
John Criswell47fdd832003-07-14 16:52:07 +000018551fi
18552
18553
18554ac_ext=c
18555ac_cpp='$CPP $CPPFLAGS'
18556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558ac_compiler_gnu=$ac_cv_c_compiler_gnu
18559
18560CC=$lt_save_CC
18561LDCXX=$LD
18562LD=$lt_save_LD
18563GCC=$lt_save_GCC
18564with_gnu_ldcxx=$with_gnu_ld
18565with_gnu_ld=$lt_save_with_gnu_ld
18566lt_cv_path_LDCXX=$lt_cv_path_LD
18567lt_cv_path_LD=$lt_save_path_LD
18568lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18569lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18570
18571 else
18572 tagname=""
18573 fi
18574 ;;
18575
18576 F77)
18577 if test -n "$F77" && test "X$F77" != "Xno"; then
18578
18579ac_ext=f
18580ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18581ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18582ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18583
18584
18585archive_cmds_need_lc_F77=no
18586allow_undefined_flag_F77=
18587always_export_symbols_F77=no
18588archive_expsym_cmds_F77=
18589export_dynamic_flag_spec_F77=
18590hardcode_direct_F77=no
18591hardcode_libdir_flag_spec_F77=
18592hardcode_libdir_flag_spec_ld_F77=
18593hardcode_libdir_separator_F77=
18594hardcode_minus_L_F77=no
18595hardcode_automatic_F77=no
18596module_cmds_F77=
18597module_expsym_cmds_F77=
18598link_all_deplibs_F77=unknown
18599old_archive_cmds_F77=$old_archive_cmds
18600no_undefined_flag_F77=
18601whole_archive_flag_spec_F77=
18602enable_shared_with_static_runtimes_F77=no
18603
18604# Source file extension for f77 test sources.
18605ac_ext=f
18606
18607# Object file extension for compiled f77 test sources.
18608objext=o
18609objext_F77=$objext
18610
18611# Code to be used in simple compile tests
18612lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18613
18614# Code to be used in simple link tests
18615lt_simple_link_test_code=" program t\n end\n"
18616
18617# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18618
18619# If no C compiler was specified, use CC.
18620LTCC=${LTCC-"$CC"}
18621
18622# Allow CC to be a program name with arguments.
18623compiler=$CC
18624
18625
18626# Allow CC to be a program name with arguments.
18627lt_save_CC="$CC"
18628CC=${F77-"f77"}
18629compiler=$CC
18630compiler_F77=$CC
18631cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18632
18633echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18634echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18635echo "$as_me:$LINENO: result: $can_build_shared" >&5
18636echo "${ECHO_T}$can_build_shared" >&6
18637
18638echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18639echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18640test "$can_build_shared" = "no" && enable_shared=no
18641
18642# On AIX, shared libraries and static libraries use the same namespace, and
18643# are all built from PIC.
18644case "$host_os" in
18645aix3*)
18646 test "$enable_shared" = yes && enable_static=no
18647 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018648 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018649 postinstall_cmds='$RANLIB $lib'
18650 fi
18651 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018652aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018653 test "$enable_shared" = yes && enable_static=no
18654 ;;
18655esac
18656echo "$as_me:$LINENO: result: $enable_shared" >&5
18657echo "${ECHO_T}$enable_shared" >&6
18658
18659echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18660echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18661# Make sure either enable_shared or enable_static is yes.
18662test "$enable_shared" = yes || enable_static=yes
18663echo "$as_me:$LINENO: result: $enable_static" >&5
18664echo "${ECHO_T}$enable_static" >&6
18665
18666test "$ld_shlibs_F77" = no && can_build_shared=no
18667
18668GCC_F77="$G77"
18669LD_F77="$LD"
18670
18671lt_prog_compiler_wl_F77=
18672lt_prog_compiler_pic_F77=
18673lt_prog_compiler_static_F77=
18674
18675echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18676echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18677
18678 if test "$GCC" = yes; then
18679 lt_prog_compiler_wl_F77='-Wl,'
18680 lt_prog_compiler_static_F77='-static'
18681
18682 case $host_os in
18683 aix*)
18684 # All AIX code is PIC.
18685 if test "$host_cpu" = ia64; then
18686 # AIX 5 now supports IA64 processor
18687 lt_prog_compiler_static_F77='-Bstatic'
18688 fi
18689 ;;
18690
18691 amigaos*)
18692 # FIXME: we need at least 68020 code to build shared libraries, but
18693 # adding the `-m68020' flag to GCC prevents building anything better,
18694 # like `-m68040'.
18695 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18696 ;;
18697
18698 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18699 # PIC is the default for these OSes.
18700 ;;
18701
18702 mingw* | pw32* | os2*)
18703 # This hack is so that the source file can tell whether it is being
18704 # built for inclusion in a dll (and should export symbols for example).
18705 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18706 ;;
18707
18708 darwin* | rhapsody*)
18709 # PIC is the default on this platform
18710 # Common symbols not allowed in MH_DYLIB files
18711 lt_prog_compiler_pic_F77='-fno-common'
18712 ;;
18713
18714 msdosdjgpp*)
18715 # Just because we use GCC doesn't mean we suddenly get shared libraries
18716 # on systems that don't support them.
18717 lt_prog_compiler_can_build_shared_F77=no
18718 enable_shared=no
18719 ;;
18720
18721 sysv4*MP*)
18722 if test -d /usr/nec; then
18723 lt_prog_compiler_pic_F77=-Kconform_pic
18724 fi
18725 ;;
18726
18727 hpux*)
18728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18729 # not for PA HP-UX.
18730 case "$host_cpu" in
18731 hppa*64*|ia64*)
18732 # +Z the default
18733 ;;
18734 *)
18735 lt_prog_compiler_pic_F77='-fPIC'
18736 ;;
18737 esac
18738 ;;
18739
18740 *)
18741 lt_prog_compiler_pic_F77='-fPIC'
18742 ;;
18743 esac
18744 else
18745 # PORTME Check for flag to pass linker flags through the system compiler.
18746 case $host_os in
18747 aix*)
18748 lt_prog_compiler_wl_F77='-Wl,'
18749 if test "$host_cpu" = ia64; then
18750 # AIX 5 now supports IA64 processor
18751 lt_prog_compiler_static_F77='-Bstatic'
18752 else
18753 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18754 fi
18755 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018756 darwin*)
18757 # PIC is the default on this platform
18758 # Common symbols not allowed in MH_DYLIB files
18759 case "$cc_basename" in
18760 xlc*)
18761 lt_prog_compiler_pic_F77='-qnocommon'
18762 lt_prog_compiler_wl_F77='-Wl,'
18763 ;;
18764 esac
18765 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018766
18767 mingw* | pw32* | os2*)
18768 # This hack is so that the source file can tell whether it is being
18769 # built for inclusion in a dll (and should export symbols for example).
18770 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18771 ;;
18772
18773 hpux9* | hpux10* | hpux11*)
18774 lt_prog_compiler_wl_F77='-Wl,'
18775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18776 # not for PA HP-UX.
18777 case "$host_cpu" in
18778 hppa*64*|ia64*)
18779 # +Z the default
18780 ;;
18781 *)
18782 lt_prog_compiler_pic_F77='+Z'
18783 ;;
18784 esac
18785 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18786 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18787 ;;
18788
18789 irix5* | irix6* | nonstopux*)
18790 lt_prog_compiler_wl_F77='-Wl,'
18791 # PIC (with -KPIC) is the default.
18792 lt_prog_compiler_static_F77='-non_shared'
18793 ;;
18794
18795 newsos6)
18796 lt_prog_compiler_pic_F77='-KPIC'
18797 lt_prog_compiler_static_F77='-Bstatic'
18798 ;;
18799
18800 linux*)
18801 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018802 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018803 lt_prog_compiler_wl_F77='-Wl,'
18804 lt_prog_compiler_pic_F77='-KPIC'
18805 lt_prog_compiler_static_F77='-static'
18806 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018807 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018808 lt_prog_compiler_wl_F77='-Wl,'
18809 # All Alpha code is PIC.
18810 lt_prog_compiler_static_F77='-non_shared'
18811 ;;
18812 esac
18813 ;;
18814
18815 osf3* | osf4* | osf5*)
18816 lt_prog_compiler_wl_F77='-Wl,'
18817 # All OSF/1 code is PIC.
18818 lt_prog_compiler_static_F77='-non_shared'
18819 ;;
18820
18821 sco3.2v5*)
18822 lt_prog_compiler_pic_F77='-Kpic'
18823 lt_prog_compiler_static_F77='-dn'
18824 ;;
18825
18826 solaris*)
18827 lt_prog_compiler_wl_F77='-Wl,'
18828 lt_prog_compiler_pic_F77='-KPIC'
18829 lt_prog_compiler_static_F77='-Bstatic'
18830 ;;
18831
18832 sunos4*)
18833 lt_prog_compiler_wl_F77='-Qoption ld '
18834 lt_prog_compiler_pic_F77='-PIC'
18835 lt_prog_compiler_static_F77='-Bstatic'
18836 ;;
18837
18838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18839 lt_prog_compiler_wl_F77='-Wl,'
18840 lt_prog_compiler_pic_F77='-KPIC'
18841 lt_prog_compiler_static_F77='-Bstatic'
18842 ;;
18843
18844 sysv4*MP*)
18845 if test -d /usr/nec ;then
18846 lt_prog_compiler_pic_F77='-Kconform_pic'
18847 lt_prog_compiler_static_F77='-Bstatic'
18848 fi
18849 ;;
18850
18851 uts4*)
18852 lt_prog_compiler_pic_F77='-pic'
18853 lt_prog_compiler_static_F77='-Bstatic'
18854 ;;
18855
18856 *)
18857 lt_prog_compiler_can_build_shared_F77=no
18858 ;;
18859 esac
18860 fi
18861
18862echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18863echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18864
18865#
18866# Check to make sure the PIC flag actually works.
18867#
18868if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018869
18870echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018871echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18872if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18874else
18875 lt_prog_compiler_pic_works_F77=no
18876 ac_outfile=conftest.$ac_objext
18877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18878 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18879 # Insert the option either (1) after the last *FLAGS variable, or
18880 # (2) before a word containing "conftest.", or (3) at the end.
18881 # Note that $ac_compile itself does not contain backslashes and begins
18882 # with a dollar sign (not a hyphen), so the echo should work correctly.
18883 # The option is referenced via a variable to avoid confusing sed.
18884 lt_compile=`echo "$ac_compile" | $SED \
18885 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18887 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000018888 (eval echo "\"\$as_me:18888: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018889 (eval "$lt_compile" 2>conftest.err)
18890 ac_status=$?
18891 cat conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000018892 echo "$as_me:18892: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018893 if (exit $ac_status) && test -s "$ac_outfile"; then
18894 # The compiler can only warn and ignore the option if not recognized
18895 # So say no if there are warnings
18896 if test ! -s conftest.err; then
18897 lt_prog_compiler_pic_works_F77=yes
18898 fi
18899 fi
18900 $rm conftest*
18901
18902fi
18903echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18904echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18905
18906if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18907 case $lt_prog_compiler_pic_F77 in
18908 "" | " "*) ;;
18909 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18910 esac
18911else
18912 lt_prog_compiler_pic_F77=
18913 lt_prog_compiler_can_build_shared_F77=no
18914fi
18915
18916fi
18917case "$host_os" in
18918 # For platforms which do not support PIC, -DPIC is meaningless:
18919 *djgpp*)
18920 lt_prog_compiler_pic_F77=
18921 ;;
18922 *)
18923 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18924 ;;
18925esac
18926
18927echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18928echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18929if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932 lt_cv_prog_compiler_c_o_F77=no
18933 $rm -r conftest 2>/dev/null
18934 mkdir conftest
18935 cd conftest
18936 mkdir out
18937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18938
John Criswell47fdd832003-07-14 16:52:07 +000018939 lt_compiler_flag="-o out/conftest2.$ac_objext"
18940 # Insert the option either (1) after the last *FLAGS variable, or
18941 # (2) before a word containing "conftest.", or (3) at the end.
18942 # Note that $ac_compile itself does not contain backslashes and begins
18943 # with a dollar sign (not a hyphen), so the echo should work correctly.
18944 lt_compile=`echo "$ac_compile" | $SED \
18945 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18947 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000018948 (eval echo "\"\$as_me:18948: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018949 (eval "$lt_compile" 2>out/conftest.err)
18950 ac_status=$?
18951 cat out/conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000018952 echo "$as_me:18952: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18954 then
18955 # The compiler can only warn and ignore the option if not recognized
18956 # So say no if there are warnings
18957 if test ! -s out/conftest.err; then
18958 lt_cv_prog_compiler_c_o_F77=yes
18959 fi
18960 fi
18961 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018962 $rm conftest*
18963 # SGI C++ compiler will create directory out/ii_files/ for
18964 # template instantiation
18965 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18966 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018967 cd ..
18968 rmdir conftest
18969 $rm conftest*
18970
18971fi
18972echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18973echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18974
18975
18976hard_links="nottested"
18977if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18978 # do not overwrite the value of need_locks provided by the user
18979 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18980echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18981 hard_links=yes
18982 $rm conftest*
18983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18984 touch conftest.a
18985 ln conftest.a conftest.b 2>&5 || hard_links=no
18986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18987 echo "$as_me:$LINENO: result: $hard_links" >&5
18988echo "${ECHO_T}$hard_links" >&6
18989 if test "$hard_links" = no; then
18990 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18991echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18992 need_locks=warn
18993 fi
18994else
18995 need_locks=no
18996fi
18997
18998echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18999echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19000
19001 runpath_var=
19002 allow_undefined_flag_F77=
19003 enable_shared_with_static_runtimes_F77=no
19004 archive_cmds_F77=
19005 archive_expsym_cmds_F77=
19006 old_archive_From_new_cmds_F77=
19007 old_archive_from_expsyms_cmds_F77=
19008 export_dynamic_flag_spec_F77=
19009 whole_archive_flag_spec_F77=
19010 thread_safe_flag_spec_F77=
19011 hardcode_libdir_flag_spec_F77=
19012 hardcode_libdir_flag_spec_ld_F77=
19013 hardcode_libdir_separator_F77=
19014 hardcode_direct_F77=no
19015 hardcode_minus_L_F77=no
19016 hardcode_shlibpath_var_F77=unsupported
19017 link_all_deplibs_F77=unknown
19018 hardcode_automatic_F77=no
19019 module_cmds_F77=
19020 module_expsym_cmds_F77=
19021 always_export_symbols_F77=no
19022 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19023 # include_expsyms should be a list of space-separated symbols to be *always*
19024 # included in the symbol list
19025 include_expsyms_F77=
19026 # exclude_expsyms can be an extended regexp of symbols to exclude
19027 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19028 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19029 # as well as any symbol that contains `d'.
19030 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19032 # platforms (ab)use it in PIC code, but their linkers get confused if
19033 # the symbol is explicitly referenced. Since portable code cannot
19034 # rely on this symbol name, it's probably fine to never include it in
19035 # preloaded symbol tables.
19036 extract_expsyms_cmds=
19037
19038 case $host_os in
19039 cygwin* | mingw* | pw32*)
19040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19041 # When not using gcc, we currently assume that we are using
19042 # Microsoft Visual C++.
19043 if test "$GCC" != yes; then
19044 with_gnu_ld=no
19045 fi
19046 ;;
19047 openbsd*)
19048 with_gnu_ld=no
19049 ;;
19050 esac
19051
19052 ld_shlibs_F77=yes
19053 if test "$with_gnu_ld" = yes; then
19054 # If archive_cmds runs LD, not CC, wlarc should be empty
19055 wlarc='${wl}'
19056
19057 # See if GNU ld supports shared libraries.
19058 case $host_os in
19059 aix3* | aix4* | aix5*)
19060 # On AIX/PPC, the GNU linker is very broken
19061 if test "$host_cpu" != ia64; then
19062 ld_shlibs_F77=no
19063 cat <<EOF 1>&2
19064
19065*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19066*** to be unable to reliably create shared libraries on AIX.
19067*** Therefore, libtool is disabling shared libraries support. If you
19068*** really care for shared libraries, you may want to modify your PATH
19069*** so that a non-GNU linker is found, and then restart.
19070
19071EOF
19072 fi
19073 ;;
19074
19075 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019076 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 +000019077 hardcode_libdir_flag_spec_F77='-L$libdir'
19078 hardcode_minus_L_F77=yes
19079
19080 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19081 # that the semantics of dynamic libraries on AmigaOS, at least up
19082 # to version 4, is to share data among multiple programs linked
19083 # with the same dynamic library. Since this doesn't match the
19084 # behavior of shared libraries on other platforms, we can't use
19085 # them.
19086 ld_shlibs_F77=no
19087 ;;
19088
19089 beos*)
19090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19091 allow_undefined_flag_F77=unsupported
19092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19093 # support --undefined. This deserves some investigation. FIXME
19094 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19095 else
19096 ld_shlibs_F77=no
19097 fi
19098 ;;
19099
19100 cygwin* | mingw* | pw32*)
19101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19102 # as there is no search path for DLLs.
19103 hardcode_libdir_flag_spec_F77='-L$libdir'
19104 allow_undefined_flag_F77=unsupported
19105 always_export_symbols_F77=no
19106 enable_shared_with_static_runtimes_F77=yes
19107 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19108
19109 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19110 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19111 # If the export-symbols file already is a .def file (1st line
19112 # is EXPORTS), use it as is; otherwise, prepend...
19113 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19114 cp $export_symbols $output_objdir/$soname.def;
19115 else
19116 echo EXPORTS > $output_objdir/$soname.def;
19117 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019118 fi~
19119 $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 +000019120 else
19121 ld_shlibs=no
19122 fi
19123 ;;
19124
19125 netbsd*)
19126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19127 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19128 wlarc=
19129 else
19130 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19131 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19132 fi
19133 ;;
19134
19135 solaris* | sysv5*)
19136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19137 ld_shlibs_F77=no
19138 cat <<EOF 1>&2
19139
19140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19141*** create shared libraries on Solaris systems. Therefore, libtool
19142*** is disabling shared libraries support. We urge you to upgrade GNU
19143*** binutils to release 2.9.1 or newer. Another option is to modify
19144*** your PATH or compiler configuration so that the native linker is
19145*** used, and then restart.
19146
19147EOF
19148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19149 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19150 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19151 else
19152 ld_shlibs_F77=no
19153 fi
19154 ;;
19155
19156 sunos4*)
19157 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19158 wlarc=
19159 hardcode_direct_F77=yes
19160 hardcode_shlibpath_var_F77=no
19161 ;;
19162
Reid Spencer2706f8c2004-09-19 23:53:36 +000019163 linux*)
19164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19165 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166 archive_cmds_F77="$tmp_archive_cmds"
19167 supports_anon_versioning=no
19168 case `$LD -v 2>/dev/null` in
19169 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19172 *\ 2.11.*) ;; # other 2.11 versions
19173 *) supports_anon_versioning=yes ;;
19174 esac
19175 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019176 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19177cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19178$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019179 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19180 else
19181 archive_expsym_cmds_F77="$tmp_archive_cmds"
19182 fi
19183 else
19184 ld_shlibs_F77=no
19185 fi
19186 ;;
19187
John Criswell47fdd832003-07-14 16:52:07 +000019188 *)
19189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19190 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19192 else
19193 ld_shlibs_F77=no
19194 fi
19195 ;;
19196 esac
19197
19198 if test "$ld_shlibs_F77" = yes; then
19199 runpath_var=LD_RUN_PATH
19200 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19201 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19202 # ancient GNU ld didn't support --whole-archive et. al.
19203 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19204 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19205 else
19206 whole_archive_flag_spec_F77=
19207 fi
19208 fi
19209 else
19210 # PORTME fill in a description of your system's linker (not GNU ld)
19211 case $host_os in
19212 aix3*)
19213 allow_undefined_flag_F77=unsupported
19214 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019215 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 +000019216 # Note: this linker hardcodes the directories in LIBPATH if there
19217 # are no directories specified by -L.
19218 hardcode_minus_L_F77=yes
19219 if test "$GCC" = yes && test -z "$link_static_flag"; then
19220 # Neither direct hardcoding nor static linking is supported with a
19221 # broken collect2.
19222 hardcode_direct_F77=unsupported
19223 fi
19224 ;;
19225
19226 aix4* | aix5*)
19227 if test "$host_cpu" = ia64; then
19228 # On IA64, the linker does run time linking by default, so we don't
19229 # have to do anything special.
19230 aix_use_runtimelinking=no
19231 exp_sym_flag='-Bexport'
19232 no_entry_flag=""
19233 else
19234 # If we're using GNU nm, then we don't want the "-C" option.
19235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19237 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'
19238 else
19239 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'
19240 fi
19241 aix_use_runtimelinking=no
19242
19243 # Test if we are trying to use run time linking or normal
19244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19245 # need to do runtime linking.
19246 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19247 for ld_flag in $LDFLAGS; do
19248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19249 aix_use_runtimelinking=yes
19250 break
19251 fi
19252 done
19253 esac
19254
19255 exp_sym_flag='-bexport'
19256 no_entry_flag='-bnoentry'
19257 fi
19258
19259 # When large executables or shared objects are built, AIX ld can
19260 # have problems creating the table of contents. If linking a library
19261 # or program results in "error TOC overflow" add -mminimal-toc to
19262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19264
19265 archive_cmds_F77=''
19266 hardcode_direct_F77=yes
19267 hardcode_libdir_separator_F77=':'
19268 link_all_deplibs_F77=yes
19269
19270 if test "$GCC" = yes; then
19271 case $host_os in aix4.012|aix4.012.*)
19272 # We only want to do this on AIX 4.2 and lower, the check
19273 # below for broken collect2 doesn't work under 4.3+
19274 collect2name=`${CC} -print-prog-name=collect2`
19275 if test -f "$collect2name" && \
19276 strings "$collect2name" | grep resolve_lib_name >/dev/null
19277 then
19278 # We have reworked collect2
19279 hardcode_direct_F77=yes
19280 else
19281 # We have old collect2
19282 hardcode_direct_F77=unsupported
19283 # It fails to find uninstalled libraries when the uninstalled
19284 # path is not listed in the libpath. Setting hardcode_minus_L
19285 # to unsupported forces relinking
19286 hardcode_minus_L_F77=yes
19287 hardcode_libdir_flag_spec_F77='-L$libdir'
19288 hardcode_libdir_separator_F77=
19289 fi
19290 esac
19291 shared_flag='-shared'
19292 else
19293 # not using gcc
19294 if test "$host_cpu" = ia64; then
19295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19296 # chokes on -Wl,-G. The following line is correct:
19297 shared_flag='-G'
19298 else
19299 if test "$aix_use_runtimelinking" = yes; then
19300 shared_flag='${wl}-G'
19301 else
19302 shared_flag='${wl}-bM:SRE'
19303 fi
19304 fi
19305 fi
19306
19307 # It seems that -bexpall does not export symbols beginning with
19308 # underscore (_), so it is better to generate a list of symbols to export.
19309 always_export_symbols_F77=yes
19310 if test "$aix_use_runtimelinking" = yes; then
19311 # Warning - without using the other runtime loading flags (-brtl),
19312 # -berok will link without error, but may produce a broken library.
19313 allow_undefined_flag_F77='-berok'
19314 # Determine the default libpath from the value encoded in an empty executable.
19315 cat >conftest.$ac_ext <<_ACEOF
19316 program main
19317
19318 end
19319_ACEOF
19320rm -f conftest.$ac_objext conftest$ac_exeext
19321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019322 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019323 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019329 { ac_try='test -z "$ac_f77_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342
19343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19344}'`
19345# Check for a 64-bit object if we didn't find anything.
19346if 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; }
19347}'`; fi
19348else
19349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019350sed 's/^/| /' conftest.$ac_ext >&5
19351
John Criswell47fdd832003-07-14 16:52:07 +000019352fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019353rm -f conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019355if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19356
19357 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19358 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"
19359 else
19360 if test "$host_cpu" = ia64; then
19361 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19362 allow_undefined_flag_F77="-z nodefs"
19363 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"
19364 else
19365 # Determine the default libpath from the value encoded in an empty executable.
19366 cat >conftest.$ac_ext <<_ACEOF
19367 program main
19368
19369 end
19370_ACEOF
19371rm -f conftest.$ac_objext conftest$ac_exeext
19372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019373 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019374 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019380 { ac_try='test -z "$ac_f77_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393
19394aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19395}'`
19396# Check for a 64-bit object if we didn't find anything.
19397if 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; }
19398}'`; fi
19399else
19400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019401sed 's/^/| /' conftest.$ac_ext >&5
19402
John Criswell47fdd832003-07-14 16:52:07 +000019403fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019404rm -f conftest.err conftest.$ac_objext \
19405 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019406if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19407
19408 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19409 # Warning - without using the other run time loading flags,
19410 # -berok will link without error, but may produce a broken library.
19411 no_undefined_flag_F77=' ${wl}-bernotok'
19412 allow_undefined_flag_F77=' ${wl}-berok'
19413 # -bexpall does not export symbols beginning with underscore (_)
19414 always_export_symbols_F77=yes
19415 # Exported symbols can be pulled into shared objects from archives
19416 whole_archive_flag_spec_F77=' '
19417 archive_cmds_need_lc_F77=yes
19418 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019419 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 +000019420 fi
19421 fi
19422 ;;
19423
19424 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019425 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 +000019426 hardcode_libdir_flag_spec_F77='-L$libdir'
19427 hardcode_minus_L_F77=yes
19428 # see comment about different semantics on the GNU ld section
19429 ld_shlibs_F77=no
19430 ;;
19431
Reid Spencer2706f8c2004-09-19 23:53:36 +000019432 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019433 export_dynamic_flag_spec_F77=-rdynamic
19434 ;;
19435
19436 cygwin* | mingw* | pw32*)
19437 # When not using gcc, we currently assume that we are using
19438 # Microsoft Visual C++.
19439 # hardcode_libdir_flag_spec is actually meaningless, as there is
19440 # no search path for DLLs.
19441 hardcode_libdir_flag_spec_F77=' '
19442 allow_undefined_flag_F77=unsupported
19443 # Tell ltmain to make .lib files, not .a files.
19444 libext=lib
19445 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019446 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019447 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019448 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 +000019449 # The linker will automatically build a .lib file if we build a DLL.
19450 old_archive_From_new_cmds_F77='true'
19451 # FIXME: Should let the user specify the lib program.
19452 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19453 fix_srcfile_path='`cygpath -w "$srcfile"`'
19454 enable_shared_with_static_runtimes_F77=yes
19455 ;;
19456
19457 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019458 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019459 rhapsody* | darwin1.[012])
19460 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19461 ;;
19462 *) # Darwin 1.3 on
19463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19464 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19465 else
19466 case ${MACOSX_DEPLOYMENT_TARGET} in
19467 10.[012])
19468 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19469 ;;
19470 10.*)
19471 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19472 ;;
19473 esac
19474 fi
19475 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019476 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019477 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019478 hardcode_direct_F77=no
19479 hardcode_automatic_F77=yes
19480 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019481 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019482 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019483 if test "$GCC" = yes ; then
19484 output_verbose_link_cmd='echo'
19485 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19486 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19487 # 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 +000019488 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}'
19489 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 +000019490 else
19491 case "$cc_basename" in
19492 xlc*)
19493 output_verbose_link_cmd='echo'
19494 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19495 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19496 # 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 +000019497 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}'
19498 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 +000019499 ;;
19500 *)
19501 ld_shlibs_F77=no
19502 ;;
19503 esac
John Criswell47fdd832003-07-14 16:52:07 +000019504 fi
19505 ;;
19506
19507 dgux*)
19508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19509 hardcode_libdir_flag_spec_F77='-L$libdir'
19510 hardcode_shlibpath_var_F77=no
19511 ;;
19512
19513 freebsd1*)
19514 ld_shlibs_F77=no
19515 ;;
19516
19517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19518 # support. Future versions do this automatically, but an explicit c++rt0.o
19519 # does not break anything, and helps significantly (at the cost of a little
19520 # extra space).
19521 freebsd2.2*)
19522 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19523 hardcode_libdir_flag_spec_F77='-R$libdir'
19524 hardcode_direct_F77=yes
19525 hardcode_shlibpath_var_F77=no
19526 ;;
19527
19528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19529 freebsd2*)
19530 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19531 hardcode_direct_F77=yes
19532 hardcode_minus_L_F77=yes
19533 hardcode_shlibpath_var_F77=no
19534 ;;
19535
19536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019537 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019538 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19539 hardcode_libdir_flag_spec_F77='-R$libdir'
19540 hardcode_direct_F77=yes
19541 hardcode_shlibpath_var_F77=no
19542 ;;
19543
19544 hpux9*)
19545 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019546 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 +000019547 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019548 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 +000019549 fi
19550 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19551 hardcode_libdir_separator_F77=:
19552 hardcode_direct_F77=yes
19553
19554 # hardcode_minus_L: Not really in the search PATH,
19555 # but as the default location of the library.
19556 hardcode_minus_L_F77=yes
19557 export_dynamic_flag_spec_F77='${wl}-E'
19558 ;;
19559
19560 hpux10* | hpux11*)
19561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19562 case "$host_cpu" in
19563 hppa*64*|ia64*)
19564 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19565 ;;
19566 *)
19567 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19568 ;;
19569 esac
19570 else
19571 case "$host_cpu" in
19572 hppa*64*|ia64*)
19573 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19574 ;;
19575 *)
19576 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19577 ;;
19578 esac
19579 fi
19580 if test "$with_gnu_ld" = no; then
19581 case "$host_cpu" in
19582 hppa*64*)
19583 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19584 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19585 hardcode_libdir_separator_F77=:
19586 hardcode_direct_F77=no
19587 hardcode_shlibpath_var_F77=no
19588 ;;
19589 ia64*)
19590 hardcode_libdir_flag_spec_F77='-L$libdir'
19591 hardcode_direct_F77=no
19592 hardcode_shlibpath_var_F77=no
19593
19594 # hardcode_minus_L: Not really in the search PATH,
19595 # but as the default location of the library.
19596 hardcode_minus_L_F77=yes
19597 ;;
19598 *)
19599 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19600 hardcode_libdir_separator_F77=:
19601 hardcode_direct_F77=yes
19602 export_dynamic_flag_spec_F77='${wl}-E'
19603
19604 # hardcode_minus_L: Not really in the search PATH,
19605 # but as the default location of the library.
19606 hardcode_minus_L_F77=yes
19607 ;;
19608 esac
19609 fi
19610 ;;
19611
19612 irix5* | irix6* | nonstopux*)
19613 if test "$GCC" = yes; then
19614 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'
19615 else
19616 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'
19617 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19618 fi
19619 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620 hardcode_libdir_separator_F77=:
19621 link_all_deplibs_F77=yes
19622 ;;
19623
19624 netbsd*)
19625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19626 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19627 else
19628 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19629 fi
19630 hardcode_libdir_flag_spec_F77='-R$libdir'
19631 hardcode_direct_F77=yes
19632 hardcode_shlibpath_var_F77=no
19633 ;;
19634
19635 newsos6)
19636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19637 hardcode_direct_F77=yes
19638 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19639 hardcode_libdir_separator_F77=:
19640 hardcode_shlibpath_var_F77=no
19641 ;;
19642
19643 openbsd*)
19644 hardcode_direct_F77=yes
19645 hardcode_shlibpath_var_F77=no
19646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19647 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019648 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 +000019649 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19650 export_dynamic_flag_spec_F77='${wl}-E'
19651 else
19652 case $host_os in
19653 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19654 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19655 hardcode_libdir_flag_spec_F77='-R$libdir'
19656 ;;
19657 *)
19658 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19659 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19660 ;;
19661 esac
19662 fi
19663 ;;
19664
19665 os2*)
19666 hardcode_libdir_flag_spec_F77='-L$libdir'
19667 hardcode_minus_L_F77=yes
19668 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019669 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 +000019670 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19671 ;;
19672
19673 osf3*)
19674 if test "$GCC" = yes; then
19675 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19676 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'
19677 else
19678 allow_undefined_flag_F77=' -expect_unresolved \*'
19679 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'
19680 fi
19681 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19682 hardcode_libdir_separator_F77=:
19683 ;;
19684
19685 osf4* | osf5*) # as osf3* with the addition of -msym flag
19686 if test "$GCC" = yes; then
19687 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19688 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19690 else
19691 allow_undefined_flag_F77=' -expect_unresolved \*'
19692 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 +000019693 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~
19694 $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'
19695
John Criswell47fdd832003-07-14 16:52:07 +000019696 # Both c and cxx compiler support -rpath directly
19697 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19698 fi
19699 hardcode_libdir_separator_F77=:
19700 ;;
19701
19702 sco3.2v5*)
19703 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19704 hardcode_shlibpath_var_F77=no
19705 export_dynamic_flag_spec_F77='${wl}-Bexport'
19706 runpath_var=LD_RUN_PATH
19707 hardcode_runpath_var=yes
19708 ;;
19709
19710 solaris*)
19711 no_undefined_flag_F77=' -z text'
19712 if test "$GCC" = yes; then
19713 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019714 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19715 $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 +000019716 else
19717 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019718 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19719 $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 +000019720 fi
19721 hardcode_libdir_flag_spec_F77='-R$libdir'
19722 hardcode_shlibpath_var_F77=no
19723 case $host_os in
19724 solaris2.[0-5] | solaris2.[0-5].*) ;;
19725 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19726 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19727 esac
19728 link_all_deplibs_F77=yes
19729 ;;
19730
19731 sunos4*)
19732 if test "x$host_vendor" = xsequent; then
19733 # Use $CC to link under sequent, because it throws in some extra .o
19734 # files that make .init and .fini sections work.
19735 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19736 else
19737 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19738 fi
19739 hardcode_libdir_flag_spec_F77='-L$libdir'
19740 hardcode_direct_F77=yes
19741 hardcode_minus_L_F77=yes
19742 hardcode_shlibpath_var_F77=no
19743 ;;
19744
19745 sysv4)
19746 case $host_vendor in
19747 sni)
19748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19749 hardcode_direct_F77=yes # is this really true???
19750 ;;
19751 siemens)
19752 ## LD is ld it makes a PLAMLIB
19753 ## CC just makes a GrossModule.
19754 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19755 reload_cmds_F77='$CC -r -o $output$reload_objs'
19756 hardcode_direct_F77=no
19757 ;;
19758 motorola)
19759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19760 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19761 ;;
19762 esac
19763 runpath_var='LD_RUN_PATH'
19764 hardcode_shlibpath_var_F77=no
19765 ;;
19766
19767 sysv4.3*)
19768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_shlibpath_var_F77=no
19770 export_dynamic_flag_spec_F77='-Bexport'
19771 ;;
19772
19773 sysv4*MP*)
19774 if test -d /usr/nec; then
19775 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19776 hardcode_shlibpath_var_F77=no
19777 runpath_var=LD_RUN_PATH
19778 hardcode_runpath_var=yes
19779 ld_shlibs_F77=yes
19780 fi
19781 ;;
19782
19783 sysv4.2uw2*)
19784 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19785 hardcode_direct_F77=yes
19786 hardcode_minus_L_F77=no
19787 hardcode_shlibpath_var_F77=no
19788 hardcode_runpath_var=yes
19789 runpath_var=LD_RUN_PATH
19790 ;;
19791
19792 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19793 no_undefined_flag_F77='${wl}-z ${wl}text'
19794 if test "$GCC" = yes; then
19795 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19796 else
19797 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19798 fi
19799 runpath_var='LD_RUN_PATH'
19800 hardcode_shlibpath_var_F77=no
19801 ;;
19802
19803 sysv5*)
19804 no_undefined_flag_F77=' -z text'
19805 # $CC -shared without GNU ld will not create a library from C++
19806 # object files and a static libstdc++, better avoid it by now
19807 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019808 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19809 $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 +000019810 hardcode_libdir_flag_spec_F77=
19811 hardcode_shlibpath_var_F77=no
19812 runpath_var='LD_RUN_PATH'
19813 ;;
19814
19815 uts4*)
19816 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19817 hardcode_libdir_flag_spec_F77='-L$libdir'
19818 hardcode_shlibpath_var_F77=no
19819 ;;
19820
19821 *)
19822 ld_shlibs_F77=no
19823 ;;
19824 esac
19825 fi
19826
19827echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19828echo "${ECHO_T}$ld_shlibs_F77" >&6
19829test "$ld_shlibs_F77" = no && can_build_shared=no
19830
19831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19832if test "$GCC" = yes; then
19833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19834fi
19835
19836#
19837# Do we need to explicitly link libc?
19838#
19839case "x$archive_cmds_need_lc_F77" in
19840x|xyes)
19841 # Assume -lc should be added
19842 archive_cmds_need_lc_F77=yes
19843
19844 if test "$enable_shared" = yes && test "$GCC" = yes; then
19845 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019846 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019847 # FIXME: we may have to deal with multi-command sequences.
19848 ;;
19849 '$CC '*)
19850 # Test whether the compiler implicitly links with -lc since on some
19851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19852 # to ld, don't add -lc before -lgcc.
19853 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19854echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19855 $rm conftest*
19856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19857
19858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859 (eval $ac_compile) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } 2>conftest.err; then
19863 soname=conftest
19864 lib=conftest
19865 libobjs=conftest.$ac_objext
19866 deplibs=
19867 wl=$lt_prog_compiler_wl_F77
19868 compiler_flags=-v
19869 linker_flags=-v
19870 verstring=
19871 output_objdir=.
19872 libname=conftest
19873 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19874 allow_undefined_flag_F77=
19875 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19876 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }
19880 then
19881 archive_cmds_need_lc_F77=no
19882 else
19883 archive_cmds_need_lc_F77=yes
19884 fi
19885 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19886 else
19887 cat conftest.err 1>&5
19888 fi
19889 $rm conftest*
19890 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19891echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19892 ;;
19893 esac
19894 fi
19895 ;;
19896esac
19897
John Criswell47fdd832003-07-14 16:52:07 +000019898echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19899echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19900library_names_spec=
19901libname_spec='lib$name'
19902soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019903shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019904postinstall_cmds=
19905postuninstall_cmds=
19906finish_cmds=
19907finish_eval=
19908shlibpath_var=
19909shlibpath_overrides_runpath=unknown
19910version_type=none
19911dynamic_linker="$host_os ld.so"
19912sys_lib_dlsearch_path_spec="/lib /usr/lib"
19913if test "$GCC" = yes; then
19914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19915 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19916 # if the path contains ";" then we assume it to be the separator
19917 # otherwise default to the standard path separator (i.e. ":") - it is
19918 # assumed that no part of a normal pathname contains ";" but that should
19919 # okay in the real world where ";" in dirpaths is itself problematic.
19920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19921 else
19922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19923 fi
19924else
19925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19926fi
19927need_lib_prefix=unknown
19928hardcode_into_libs=no
19929
19930# when you set need_version to no, make sure it does not cause -set_version
19931# flags to be left without arguments
19932need_version=unknown
19933
19934case $host_os in
19935aix3*)
19936 version_type=linux
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19938 shlibpath_var=LIBPATH
19939
19940 # AIX 3 has no versioning support, so we append a major version to the name.
19941 soname_spec='${libname}${release}${shared_ext}$major'
19942 ;;
19943
19944aix4* | aix5*)
19945 version_type=linux
19946 need_lib_prefix=no
19947 need_version=no
19948 hardcode_into_libs=yes
19949 if test "$host_cpu" = ia64; then
19950 # AIX 5 supports IA64
19951 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19952 shlibpath_var=LD_LIBRARY_PATH
19953 else
19954 # With GCC up to 2.95.x, collect2 would create an import file
19955 # for dependence libraries. The import file would start with
19956 # the line `#! .'. This would cause the generated library to
19957 # depend on `.', always an invalid library. This was fixed in
19958 # development snapshots of GCC prior to 3.0.
19959 case $host_os in
19960 aix4 | aix4.[01] | aix4.[01].*)
19961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19962 echo ' yes '
19963 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19964 :
19965 else
19966 can_build_shared=no
19967 fi
19968 ;;
19969 esac
19970 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19971 # soname into executable. Probably we can add versioning support to
19972 # collect2, so additional links can be useful in future.
19973 if test "$aix_use_runtimelinking" = yes; then
19974 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19975 # instead of lib<name>.a to let people know that these are not
19976 # typical AIX shared libraries.
19977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19978 else
19979 # We preserve .a as extension for shared libraries through AIX4.2
19980 # and later when we are not doing run time linking.
19981 library_names_spec='${libname}${release}.a $libname.a'
19982 soname_spec='${libname}${release}${shared_ext}$major'
19983 fi
19984 shlibpath_var=LIBPATH
19985 fi
19986 ;;
19987
19988amigaos*)
19989 library_names_spec='$libname.ixlibrary $libname.a'
19990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019991 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 +000019992 ;;
19993
19994beos*)
19995 library_names_spec='${libname}${shared_ext}'
19996 dynamic_linker="$host_os ld.so"
19997 shlibpath_var=LIBRARY_PATH
19998 ;;
19999
Reid Spencer2706f8c2004-09-19 23:53:36 +000020000bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020001 version_type=linux
20002 need_version=no
20003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004 soname_spec='${libname}${release}${shared_ext}$major'
20005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20006 shlibpath_var=LD_LIBRARY_PATH
20007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20009 # the default ld.so.conf also contains /usr/contrib/lib and
20010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20011 # libtool to hard-code these into programs
20012 ;;
20013
20014cygwin* | mingw* | pw32*)
20015 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020016 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020017 need_version=no
20018 need_lib_prefix=no
20019
20020 case $GCC,$host_os in
20021 yes,cygwin* | yes,mingw* | yes,pw32*)
20022 library_names_spec='$libname.dll.a'
20023 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020024 postinstall_cmds='base_file=`basename \${file}`~
20025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20026 dldir=$destdir/`dirname \$dlpath`~
20027 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020028 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20030 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020031 $rm \$dlpath'
20032 shlibpath_overrides_runpath=yes
20033
20034 case $host_os in
20035 cygwin*)
20036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20037 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 +000020038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020039 ;;
20040 mingw*)
20041 # MinGW DLLs use traditional 'lib' prefix
20042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20045 # It is most probably a Windows format PATH printed by
20046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20047 # path with ; separators, and with drive letters. We can handle the
20048 # drive letters (cygwin fileutils understands them), so leave them,
20049 # especially as we might pass files found there to a mingw objdump,
20050 # which wouldn't understand a cygwinified path. Ahh.
20051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20052 else
20053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20054 fi
20055 ;;
20056 pw32*)
20057 # pw32 DLLs use 'pw' prefix rather than 'lib'
20058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20059 ;;
20060 esac
20061 ;;
20062
20063 *)
20064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20065 ;;
20066 esac
20067 dynamic_linker='Win32 ld.exe'
20068 # FIXME: first we should search . and the directory the executable is in
20069 shlibpath_var=PATH
20070 ;;
20071
20072darwin* | rhapsody*)
20073 dynamic_linker="$host_os dyld"
20074 version_type=darwin
20075 need_lib_prefix=no
20076 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020078 soname_spec='${libname}${release}${major}$shared_ext'
20079 shlibpath_overrides_runpath=yes
20080 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020081 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020082 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020083 if test "$GCC" = yes; then
20084 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"`
20085 else
20086 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020087 fi
20088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20089 ;;
20090
20091dgux*)
20092 version_type=linux
20093 need_lib_prefix=no
20094 need_version=no
20095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20096 soname_spec='${libname}${release}${shared_ext}$major'
20097 shlibpath_var=LD_LIBRARY_PATH
20098 ;;
20099
20100freebsd1*)
20101 dynamic_linker=no
20102 ;;
20103
Reid Spencer2706f8c2004-09-19 23:53:36 +000020104kfreebsd*-gnu)
20105 version_type=linux
20106 need_lib_prefix=no
20107 need_version=no
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20109 soname_spec='${libname}${release}${shared_ext}$major'
20110 shlibpath_var=LD_LIBRARY_PATH
20111 shlibpath_overrides_runpath=no
20112 hardcode_into_libs=yes
20113 dynamic_linker='GNU ld.so'
20114 ;;
20115
John Criswell47fdd832003-07-14 16:52:07 +000020116freebsd*)
20117 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20118 version_type=freebsd-$objformat
20119 case $version_type in
20120 freebsd-elf*)
20121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20122 need_version=no
20123 need_lib_prefix=no
20124 ;;
20125 freebsd-*)
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20127 need_version=yes
20128 ;;
20129 esac
20130 shlibpath_var=LD_LIBRARY_PATH
20131 case $host_os in
20132 freebsd2*)
20133 shlibpath_overrides_runpath=yes
20134 ;;
20135 freebsd3.01* | freebsdelf3.01*)
20136 shlibpath_overrides_runpath=yes
20137 hardcode_into_libs=yes
20138 ;;
20139 *) # from 3.2 on
20140 shlibpath_overrides_runpath=no
20141 hardcode_into_libs=yes
20142 ;;
20143 esac
20144 ;;
20145
20146gnu*)
20147 version_type=linux
20148 need_lib_prefix=no
20149 need_version=no
20150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20151 soname_spec='${libname}${release}${shared_ext}$major'
20152 shlibpath_var=LD_LIBRARY_PATH
20153 hardcode_into_libs=yes
20154 ;;
20155
20156hpux9* | hpux10* | hpux11*)
20157 # Give a soname corresponding to the major version so that dld.sl refuses to
20158 # link against other versions.
20159 version_type=sunos
20160 need_lib_prefix=no
20161 need_version=no
20162 case "$host_cpu" in
20163 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020164 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020165 hardcode_into_libs=yes
20166 dynamic_linker="$host_os dld.so"
20167 shlibpath_var=LD_LIBRARY_PATH
20168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20170 soname_spec='${libname}${release}${shared_ext}$major'
20171 if test "X$HPUX_IA64_MODE" = X32; then
20172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20173 else
20174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20175 fi
20176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20177 ;;
20178 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020179 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020180 hardcode_into_libs=yes
20181 dynamic_linker="$host_os dld.sl"
20182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20188 ;;
20189 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020190 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020191 dynamic_linker="$host_os dld.sl"
20192 shlibpath_var=SHLIB_PATH
20193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 ;;
20197 esac
20198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20199 postinstall_cmds='chmod 555 $lib'
20200 ;;
20201
20202irix5* | irix6* | nonstopux*)
20203 case $host_os in
20204 nonstopux*) version_type=nonstopux ;;
20205 *)
20206 if test "$lt_cv_prog_gnu_ld" = yes; then
20207 version_type=linux
20208 else
20209 version_type=irix
20210 fi ;;
20211 esac
20212 need_lib_prefix=no
20213 need_version=no
20214 soname_spec='${libname}${release}${shared_ext}$major'
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20216 case $host_os in
20217 irix5* | nonstopux*)
20218 libsuff= shlibsuff=
20219 ;;
20220 *)
20221 case $LD in # libtool.m4 will add one of these switches to LD
20222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20223 libsuff= shlibsuff= libmagic=32-bit;;
20224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20225 libsuff=32 shlibsuff=N32 libmagic=N32;;
20226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20228 *) libsuff= shlibsuff= libmagic=never-match;;
20229 esac
20230 ;;
20231 esac
20232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20233 shlibpath_overrides_runpath=no
20234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20236 hardcode_into_libs=yes
20237 ;;
20238
20239# No shared lib support for Linux oldld, aout, or coff.
20240linux*oldld* | linux*aout* | linux*coff*)
20241 dynamic_linker=no
20242 ;;
20243
20244# This must be Linux ELF.
20245linux*)
20246 version_type=linux
20247 need_lib_prefix=no
20248 need_version=no
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=no
20254 # This implies no fast_install, which is unacceptable.
20255 # Some rework will be needed to allow for fast_install
20256 # before this can be enabled.
20257 hardcode_into_libs=yes
20258
Reid Spencer2706f8c2004-09-19 23:53:36 +000020259 # Append ld.so.conf contents to the search path
20260 if test -f /etc/ld.so.conf; then
20261 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20263 fi
20264
John Criswell47fdd832003-07-14 16:52:07 +000020265 # We used to test for /lib/ld.so.1 and disable shared libraries on
20266 # powerpc, because MkLinux only supported shared libraries with the
20267 # GNU dynamic linker. Since this was broken with cross compilers,
20268 # most powerpc-linux boxes support dynamic linking these days and
20269 # people can always --disable-shared, the test was removed, and we
20270 # assume the GNU/Linux dynamic linker is in use.
20271 dynamic_linker='GNU/Linux ld.so'
20272 ;;
20273
Reid Spencer2706f8c2004-09-19 23:53:36 +000020274knetbsd*-gnu)
20275 version_type=linux
20276 need_lib_prefix=no
20277 need_version=no
20278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20279 soname_spec='${libname}${release}${shared_ext}$major'
20280 shlibpath_var=LD_LIBRARY_PATH
20281 shlibpath_overrides_runpath=no
20282 hardcode_into_libs=yes
20283 dynamic_linker='GNU ld.so'
20284 ;;
20285
John Criswell47fdd832003-07-14 16:52:07 +000020286netbsd*)
20287 version_type=sunos
20288 need_lib_prefix=no
20289 need_version=no
20290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20293 dynamic_linker='NetBSD (a.out) ld.so'
20294 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020296 soname_spec='${libname}${release}${shared_ext}$major'
20297 dynamic_linker='NetBSD ld.elf_so'
20298 fi
20299 shlibpath_var=LD_LIBRARY_PATH
20300 shlibpath_overrides_runpath=yes
20301 hardcode_into_libs=yes
20302 ;;
20303
20304newsos6)
20305 version_type=linux
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 shlibpath_overrides_runpath=yes
20309 ;;
20310
Reid Spencer2706f8c2004-09-19 23:53:36 +000020311nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020312 version_type=linux
20313 need_lib_prefix=no
20314 need_version=no
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=yes
20319 ;;
20320
20321openbsd*)
20322 version_type=sunos
20323 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020324 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20327 shlibpath_var=LD_LIBRARY_PATH
20328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20329 case $host_os in
20330 openbsd2.[89] | openbsd2.[89].*)
20331 shlibpath_overrides_runpath=no
20332 ;;
20333 *)
20334 shlibpath_overrides_runpath=yes
20335 ;;
20336 esac
20337 else
20338 shlibpath_overrides_runpath=yes
20339 fi
20340 ;;
20341
20342os2*)
20343 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020344 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020345 need_lib_prefix=no
20346 library_names_spec='$libname${shared_ext} $libname.a'
20347 dynamic_linker='OS/2 ld.exe'
20348 shlibpath_var=LIBPATH
20349 ;;
20350
20351osf3* | osf4* | osf5*)
20352 version_type=osf
20353 need_lib_prefix=no
20354 need_version=no
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357 shlibpath_var=LD_LIBRARY_PATH
20358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20360 ;;
20361
20362sco3.2v5*)
20363 version_type=osf
20364 soname_spec='${libname}${release}${shared_ext}$major'
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 ;;
20368
20369solaris*)
20370 version_type=linux
20371 need_lib_prefix=no
20372 need_version=no
20373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20374 soname_spec='${libname}${release}${shared_ext}$major'
20375 shlibpath_var=LD_LIBRARY_PATH
20376 shlibpath_overrides_runpath=yes
20377 hardcode_into_libs=yes
20378 # ldd complains unless libraries are executable
20379 postinstall_cmds='chmod +x $lib'
20380 ;;
20381
20382sunos4*)
20383 version_type=sunos
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 shlibpath_overrides_runpath=yes
20388 if test "$with_gnu_ld" = yes; then
20389 need_lib_prefix=no
20390 fi
20391 need_version=yes
20392 ;;
20393
20394sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20395 version_type=linux
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20398 shlibpath_var=LD_LIBRARY_PATH
20399 case $host_vendor in
20400 sni)
20401 shlibpath_overrides_runpath=no
20402 need_lib_prefix=no
20403 export_dynamic_flag_spec='${wl}-Blargedynsym'
20404 runpath_var=LD_RUN_PATH
20405 ;;
20406 siemens)
20407 need_lib_prefix=no
20408 ;;
20409 motorola)
20410 need_lib_prefix=no
20411 need_version=no
20412 shlibpath_overrides_runpath=no
20413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20414 ;;
20415 esac
20416 ;;
20417
20418sysv4*MP*)
20419 if test -d /usr/nec ;then
20420 version_type=linux
20421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20422 soname_spec='$libname${shared_ext}.$major'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 fi
20425 ;;
20426
20427uts4*)
20428 version_type=linux
20429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 ;;
20433
20434*)
20435 dynamic_linker=no
20436 ;;
20437esac
20438echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20439echo "${ECHO_T}$dynamic_linker" >&6
20440test "$dynamic_linker" = no && can_build_shared=no
20441
Reid Spencer2706f8c2004-09-19 23:53:36 +000020442echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20443echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20444hardcode_action_F77=
20445if test -n "$hardcode_libdir_flag_spec_F77" || \
20446 test -n "$runpath_var_F77" || \
20447 test "X$hardcode_automatic_F77" = "Xyes" ; then
20448
20449 # We can hardcode non-existant directories.
20450 if test "$hardcode_direct_F77" != no &&
20451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20452 # have to relink, otherwise we might link with an installed library
20453 # when we should be linking with a yet-to-be-installed one
20454 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20455 test "$hardcode_minus_L_F77" != no; then
20456 # Linking always hardcodes the temporary library directory.
20457 hardcode_action_F77=relink
20458 else
20459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20460 hardcode_action_F77=immediate
20461 fi
20462else
20463 # We cannot hardcode anything, or else we can only hardcode existing
20464 # directories.
20465 hardcode_action_F77=unsupported
20466fi
20467echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20468echo "${ECHO_T}$hardcode_action_F77" >&6
20469
20470if test "$hardcode_action_F77" = relink; then
20471 # Fast installation is not supported
20472 enable_fast_install=no
20473elif test "$shlibpath_overrides_runpath" = yes ||
20474 test "$enable_shared" = no; then
20475 # Fast installation is not necessary
20476 enable_fast_install=needless
20477fi
20478
20479striplib=
20480old_striplib=
20481echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20482echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20483if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20484 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20485 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20486 echo "$as_me:$LINENO: result: yes" >&5
20487echo "${ECHO_T}yes" >&6
20488else
20489# FIXME - insert some real tests, host_os isn't really good enough
20490 case $host_os in
20491 darwin*)
20492 if test -n "$STRIP" ; then
20493 striplib="$STRIP -x"
20494 echo "$as_me:$LINENO: result: yes" >&5
20495echo "${ECHO_T}yes" >&6
20496 else
20497 echo "$as_me:$LINENO: result: no" >&5
20498echo "${ECHO_T}no" >&6
20499fi
20500 ;;
20501 *)
20502 echo "$as_me:$LINENO: result: no" >&5
20503echo "${ECHO_T}no" >&6
20504 ;;
20505 esac
20506fi
20507
20508
John Criswell47fdd832003-07-14 16:52:07 +000020509
20510# The else clause should only fire when bootstrapping the
20511# libtool distribution, otherwise you forgot to ship ltmain.sh
20512# with your package, and you will get complaints that there are
20513# no rules to generate ltmain.sh.
20514if test -f "$ltmain"; then
20515 # See if we are running on zsh, and set the options which allow our commands through
20516 # without removal of \ escapes.
20517 if test -n "${ZSH_VERSION+set}" ; then
20518 setopt NO_GLOB_SUBST
20519 fi
20520 # Now quote all the things that may contain metacharacters while being
20521 # careful not to overquote the AC_SUBSTed values. We take copies of the
20522 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020523 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20524 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020525 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20526 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20527 deplibs_check_method reload_flag reload_cmds need_locks \
20528 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20529 lt_cv_sys_global_symbol_to_c_name_address \
20530 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20531 old_postinstall_cmds old_postuninstall_cmds \
20532 compiler_F77 \
20533 CC_F77 \
20534 LD_F77 \
20535 lt_prog_compiler_wl_F77 \
20536 lt_prog_compiler_pic_F77 \
20537 lt_prog_compiler_static_F77 \
20538 lt_prog_compiler_no_builtin_flag_F77 \
20539 export_dynamic_flag_spec_F77 \
20540 thread_safe_flag_spec_F77 \
20541 whole_archive_flag_spec_F77 \
20542 enable_shared_with_static_runtimes_F77 \
20543 old_archive_cmds_F77 \
20544 old_archive_from_new_cmds_F77 \
20545 predep_objects_F77 \
20546 postdep_objects_F77 \
20547 predeps_F77 \
20548 postdeps_F77 \
20549 compiler_lib_search_path_F77 \
20550 archive_cmds_F77 \
20551 archive_expsym_cmds_F77 \
20552 postinstall_cmds_F77 \
20553 postuninstall_cmds_F77 \
20554 old_archive_from_expsyms_cmds_F77 \
20555 allow_undefined_flag_F77 \
20556 no_undefined_flag_F77 \
20557 export_symbols_cmds_F77 \
20558 hardcode_libdir_flag_spec_F77 \
20559 hardcode_libdir_flag_spec_ld_F77 \
20560 hardcode_libdir_separator_F77 \
20561 hardcode_automatic_F77 \
20562 module_cmds_F77 \
20563 module_expsym_cmds_F77 \
20564 lt_cv_prog_compiler_c_o_F77 \
20565 exclude_expsyms_F77 \
20566 include_expsyms_F77; do
20567
20568 case $var in
20569 old_archive_cmds_F77 | \
20570 old_archive_from_new_cmds_F77 | \
20571 archive_cmds_F77 | \
20572 archive_expsym_cmds_F77 | \
20573 module_cmds_F77 | \
20574 module_expsym_cmds_F77 | \
20575 old_archive_from_expsyms_cmds_F77 | \
20576 export_symbols_cmds_F77 | \
20577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20578 postinstall_cmds | postuninstall_cmds | \
20579 old_postinstall_cmds | old_postuninstall_cmds | \
20580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20581 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020582 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 +000020583 ;;
20584 *)
20585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20586 ;;
20587 esac
20588 done
20589
20590 case $lt_echo in
20591 *'\$0 --fallback-echo"')
20592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20593 ;;
20594 esac
20595
20596cfgfile="$ofile"
20597
20598 cat <<__EOF__ >> "$cfgfile"
20599# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20600
20601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20602
20603# Shell to use when invoking shell scripts.
20604SHELL=$lt_SHELL
20605
20606# Whether or not to build shared libraries.
20607build_libtool_libs=$enable_shared
20608
20609# Whether or not to build static libraries.
20610build_old_libs=$enable_static
20611
20612# Whether or not to add -lc for building shared libraries.
20613build_libtool_need_lc=$archive_cmds_need_lc_F77
20614
20615# Whether or not to disallow shared libs when runtime libs are static
20616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20617
20618# Whether or not to optimize for fast installation.
20619fast_install=$enable_fast_install
20620
20621# The host system.
20622host_alias=$host_alias
20623host=$host
20624
20625# An echo program that does not interpret backslashes.
20626echo=$lt_echo
20627
20628# The archiver.
20629AR=$lt_AR
20630AR_FLAGS=$lt_AR_FLAGS
20631
20632# A C compiler.
20633LTCC=$lt_LTCC
20634
20635# A language-specific compiler.
20636CC=$lt_compiler_F77
20637
20638# Is the compiler the GNU C compiler?
20639with_gcc=$GCC_F77
20640
20641# An ERE matcher.
20642EGREP=$lt_EGREP
20643
20644# The linker used to build libraries.
20645LD=$lt_LD_F77
20646
20647# Whether we need hard or soft links.
20648LN_S=$lt_LN_S
20649
20650# A BSD-compatible nm program.
20651NM=$lt_NM
20652
20653# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020654STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020655
20656# Used to examine libraries when file_magic_cmd begins "file"
20657MAGIC_CMD=$MAGIC_CMD
20658
20659# Used on cygwin: DLL creation program.
20660DLLTOOL="$DLLTOOL"
20661
20662# Used on cygwin: object dumper.
20663OBJDUMP="$OBJDUMP"
20664
20665# Used on cygwin: assembler.
20666AS="$AS"
20667
20668# The name of the directory that contains temporary libtool files.
20669objdir=$objdir
20670
20671# How to create reloadable object files.
20672reload_flag=$lt_reload_flag
20673reload_cmds=$lt_reload_cmds
20674
20675# How to pass a linker flag through the compiler.
20676wl=$lt_lt_prog_compiler_wl_F77
20677
20678# Object file suffix (normally "o").
20679objext="$ac_objext"
20680
20681# Old archive suffix (normally "a").
20682libext="$libext"
20683
20684# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020685shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020686
20687# Executable file suffix (normally "").
20688exeext="$exeext"
20689
20690# Additional compiler flags for building library objects.
20691pic_flag=$lt_lt_prog_compiler_pic_F77
20692pic_mode=$pic_mode
20693
20694# What is the maximum length of a command?
20695max_cmd_len=$lt_cv_sys_max_cmd_len
20696
20697# Does compiler simultaneously support -c and -o options?
20698compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20699
20700# Must we lock files when doing compilation ?
20701need_locks=$lt_need_locks
20702
20703# Do we need the lib prefix for modules?
20704need_lib_prefix=$need_lib_prefix
20705
20706# Do we need a version for libraries?
20707need_version=$need_version
20708
20709# Whether dlopen is supported.
20710dlopen_support=$enable_dlopen
20711
20712# Whether dlopen of programs is supported.
20713dlopen_self=$enable_dlopen_self
20714
20715# Whether dlopen of statically linked programs is supported.
20716dlopen_self_static=$enable_dlopen_self_static
20717
20718# Compiler flag to prevent dynamic linking.
20719link_static_flag=$lt_lt_prog_compiler_static_F77
20720
20721# Compiler flag to turn off builtin functions.
20722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20723
20724# Compiler flag to allow reflexive dlopens.
20725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20726
20727# Compiler flag to generate shared objects directly from archives.
20728whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20729
20730# Compiler flag to generate thread-safe objects.
20731thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20732
20733# Library versioning type.
20734version_type=$version_type
20735
20736# Format of library name prefix.
20737libname_spec=$lt_libname_spec
20738
20739# List of archive names. First name is the real one, the rest are links.
20740# The last name is the one that the linker finds with -lNAME.
20741library_names_spec=$lt_library_names_spec
20742
20743# The coded name of the library, if different from the real name.
20744soname_spec=$lt_soname_spec
20745
20746# Commands used to build and install an old-style archive.
20747RANLIB=$lt_RANLIB
20748old_archive_cmds=$lt_old_archive_cmds_F77
20749old_postinstall_cmds=$lt_old_postinstall_cmds
20750old_postuninstall_cmds=$lt_old_postuninstall_cmds
20751
20752# Create an old-style archive from a shared archive.
20753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20754
20755# Create a temporary old-style archive to link instead of a shared archive.
20756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20757
20758# Commands used to build and install a shared archive.
20759archive_cmds=$lt_archive_cmds_F77
20760archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20761postinstall_cmds=$lt_postinstall_cmds
20762postuninstall_cmds=$lt_postuninstall_cmds
20763
20764# Commands used to build a loadable module (assumed same as above if empty)
20765module_cmds=$lt_module_cmds_F77
20766module_expsym_cmds=$lt_module_expsym_cmds_F77
20767
20768# Commands to strip libraries.
20769old_striplib=$lt_old_striplib
20770striplib=$lt_striplib
20771
20772# Dependencies to place before the objects being linked to create a
20773# shared library.
20774predep_objects=$lt_predep_objects_F77
20775
20776# Dependencies to place after the objects being linked to create a
20777# shared library.
20778postdep_objects=$lt_postdep_objects_F77
20779
20780# Dependencies to place before the objects being linked to create a
20781# shared library.
20782predeps=$lt_predeps_F77
20783
20784# Dependencies to place after the objects being linked to create a
20785# shared library.
20786postdeps=$lt_postdeps_F77
20787
20788# The library search path used internally by the compiler when linking
20789# a shared library.
20790compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20791
20792# Method to check whether dependent libraries are shared objects.
20793deplibs_check_method=$lt_deplibs_check_method
20794
20795# Command to use when deplibs_check_method == file_magic.
20796file_magic_cmd=$lt_file_magic_cmd
20797
20798# Flag that allows shared libraries with undefined symbols to be built.
20799allow_undefined_flag=$lt_allow_undefined_flag_F77
20800
20801# Flag that forces no undefined symbols.
20802no_undefined_flag=$lt_no_undefined_flag_F77
20803
20804# Commands used to finish a libtool library installation in a directory.
20805finish_cmds=$lt_finish_cmds
20806
20807# Same as above, but a single script fragment to be evaled but not shown.
20808finish_eval=$lt_finish_eval
20809
20810# Take the output of nm and produce a listing of raw symbols and C names.
20811global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20812
20813# Transform the output of nm in a proper C declaration
20814global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20815
20816# Transform the output of nm in a C name address pair
20817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20818
20819# This is the shared library runtime path variable.
20820runpath_var=$runpath_var
20821
20822# This is the shared library path variable.
20823shlibpath_var=$shlibpath_var
20824
20825# Is shlibpath searched before the hard-coded library search path?
20826shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20827
20828# How to hardcode a shared library path into an executable.
20829hardcode_action=$hardcode_action_F77
20830
20831# Whether we should hardcode library paths into libraries.
20832hardcode_into_libs=$hardcode_into_libs
20833
20834# Flag to hardcode \$libdir into a binary during linking.
20835# This must work even if \$libdir does not exist.
20836hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20837
20838# If ld is used when linking, flag to hardcode \$libdir into
20839# a binary during linking. This must work even if \$libdir does
20840# not exist.
20841hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20842
20843# Whether we need a single -rpath flag with a separated argument.
20844hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20845
20846# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20847# resulting binary.
20848hardcode_direct=$hardcode_direct_F77
20849
20850# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20851# resulting binary.
20852hardcode_minus_L=$hardcode_minus_L_F77
20853
20854# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20855# the resulting binary.
20856hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20857
20858# Set to yes if building a shared library automatically hardcodes DIR into the library
20859# and all subsequent libraries and executables linked against it.
20860hardcode_automatic=$hardcode_automatic_F77
20861
20862# Variables whose values should be saved in libtool wrapper scripts and
20863# restored at relink time.
20864variables_saved_for_relink="$variables_saved_for_relink"
20865
20866# Whether libtool must link a program against all its dependency libraries.
20867link_all_deplibs=$link_all_deplibs_F77
20868
20869# Compile-time system search path for libraries
20870sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20871
20872# Run-time system search path for libraries
20873sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20874
20875# Fix the shell variable \$srcfile for the compiler.
20876fix_srcfile_path="$fix_srcfile_path_F77"
20877
20878# Set to yes if exported symbols are required.
20879always_export_symbols=$always_export_symbols_F77
20880
20881# The commands to list exported symbols.
20882export_symbols_cmds=$lt_export_symbols_cmds_F77
20883
20884# The commands to extract the exported symbol list from a shared archive.
20885extract_expsyms_cmds=$lt_extract_expsyms_cmds
20886
20887# Symbols that should not be listed in the preloaded symbols.
20888exclude_expsyms=$lt_exclude_expsyms_F77
20889
20890# Symbols that must always be exported.
20891include_expsyms=$lt_include_expsyms_F77
20892
20893# ### END LIBTOOL TAG CONFIG: $tagname
20894
20895__EOF__
20896
20897
20898else
20899 # If there is no Makefile yet, we rely on a make rule to execute
20900 # `config.status --recheck' to rerun these tests and create the
20901 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020902 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20903 if test -f "$ltmain_in"; then
20904 test -f Makefile && make "$ltmain"
20905 fi
John Criswell47fdd832003-07-14 16:52:07 +000020906fi
20907
20908
20909ac_ext=c
20910ac_cpp='$CPP $CPPFLAGS'
20911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914
20915CC="$lt_save_CC"
20916
20917 else
20918 tagname=""
20919 fi
20920 ;;
20921
20922 GCJ)
20923 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020924 ac_ext=c
20925ac_cpp='$CPP $CPPFLAGS'
20926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020929
20930
20931# Source file extension for Java test sources.
20932ac_ext=java
20933
20934# Object file extension for compiled Java test sources.
20935objext=o
20936objext_GCJ=$objext
20937
20938# Code to be used in simple compile tests
20939lt_simple_compile_test_code="class foo {}\n"
20940
20941# Code to be used in simple link tests
20942lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20943
20944# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20945
20946# If no C compiler was specified, use CC.
20947LTCC=${LTCC-"$CC"}
20948
20949# Allow CC to be a program name with arguments.
20950compiler=$CC
20951
20952
20953# Allow CC to be a program name with arguments.
20954lt_save_CC="$CC"
20955CC=${GCJ-"gcj"}
20956compiler=$CC
20957compiler_GCJ=$CC
20958
20959# GCJ did not exist at the time GCC didn't implicitly link libc in.
20960archive_cmds_need_lc_GCJ=no
20961
John Criswell47fdd832003-07-14 16:52:07 +000020962
20963lt_prog_compiler_no_builtin_flag_GCJ=
20964
20965if test "$GCC" = yes; then
20966 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20967
Reid Spencer2706f8c2004-09-19 23:53:36 +000020968
20969echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020970echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20971if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973else
20974 lt_cv_prog_compiler_rtti_exceptions=no
20975 ac_outfile=conftest.$ac_objext
20976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20977 lt_compiler_flag="-fno-rtti -fno-exceptions"
20978 # Insert the option either (1) after the last *FLAGS variable, or
20979 # (2) before a word containing "conftest.", or (3) at the end.
20980 # Note that $ac_compile itself does not contain backslashes and begins
20981 # with a dollar sign (not a hyphen), so the echo should work correctly.
20982 # The option is referenced via a variable to avoid confusing sed.
20983 lt_compile=`echo "$ac_compile" | $SED \
20984 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20986 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000020987 (eval echo "\"\$as_me:20987: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020988 (eval "$lt_compile" 2>conftest.err)
20989 ac_status=$?
20990 cat conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000020991 echo "$as_me:20991: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020992 if (exit $ac_status) && test -s "$ac_outfile"; then
20993 # The compiler can only warn and ignore the option if not recognized
20994 # So say no if there are warnings
20995 if test ! -s conftest.err; then
20996 lt_cv_prog_compiler_rtti_exceptions=yes
20997 fi
20998 fi
20999 $rm conftest*
21000
21001fi
21002echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21003echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21004
21005if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21006 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21007else
21008 :
21009fi
21010
21011fi
21012
21013lt_prog_compiler_wl_GCJ=
21014lt_prog_compiler_pic_GCJ=
21015lt_prog_compiler_static_GCJ=
21016
21017echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21018echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21019
21020 if test "$GCC" = yes; then
21021 lt_prog_compiler_wl_GCJ='-Wl,'
21022 lt_prog_compiler_static_GCJ='-static'
21023
21024 case $host_os in
21025 aix*)
21026 # All AIX code is PIC.
21027 if test "$host_cpu" = ia64; then
21028 # AIX 5 now supports IA64 processor
21029 lt_prog_compiler_static_GCJ='-Bstatic'
21030 fi
21031 ;;
21032
21033 amigaos*)
21034 # FIXME: we need at least 68020 code to build shared libraries, but
21035 # adding the `-m68020' flag to GCC prevents building anything better,
21036 # like `-m68040'.
21037 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21038 ;;
21039
21040 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21041 # PIC is the default for these OSes.
21042 ;;
21043
21044 mingw* | pw32* | os2*)
21045 # This hack is so that the source file can tell whether it is being
21046 # built for inclusion in a dll (and should export symbols for example).
21047 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21048 ;;
21049
21050 darwin* | rhapsody*)
21051 # PIC is the default on this platform
21052 # Common symbols not allowed in MH_DYLIB files
21053 lt_prog_compiler_pic_GCJ='-fno-common'
21054 ;;
21055
21056 msdosdjgpp*)
21057 # Just because we use GCC doesn't mean we suddenly get shared libraries
21058 # on systems that don't support them.
21059 lt_prog_compiler_can_build_shared_GCJ=no
21060 enable_shared=no
21061 ;;
21062
21063 sysv4*MP*)
21064 if test -d /usr/nec; then
21065 lt_prog_compiler_pic_GCJ=-Kconform_pic
21066 fi
21067 ;;
21068
21069 hpux*)
21070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21071 # not for PA HP-UX.
21072 case "$host_cpu" in
21073 hppa*64*|ia64*)
21074 # +Z the default
21075 ;;
21076 *)
21077 lt_prog_compiler_pic_GCJ='-fPIC'
21078 ;;
21079 esac
21080 ;;
21081
21082 *)
21083 lt_prog_compiler_pic_GCJ='-fPIC'
21084 ;;
21085 esac
21086 else
21087 # PORTME Check for flag to pass linker flags through the system compiler.
21088 case $host_os in
21089 aix*)
21090 lt_prog_compiler_wl_GCJ='-Wl,'
21091 if test "$host_cpu" = ia64; then
21092 # AIX 5 now supports IA64 processor
21093 lt_prog_compiler_static_GCJ='-Bstatic'
21094 else
21095 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21096 fi
21097 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021098 darwin*)
21099 # PIC is the default on this platform
21100 # Common symbols not allowed in MH_DYLIB files
21101 case "$cc_basename" in
21102 xlc*)
21103 lt_prog_compiler_pic_GCJ='-qnocommon'
21104 lt_prog_compiler_wl_GCJ='-Wl,'
21105 ;;
21106 esac
21107 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021108
21109 mingw* | pw32* | os2*)
21110 # This hack is so that the source file can tell whether it is being
21111 # built for inclusion in a dll (and should export symbols for example).
21112 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21113 ;;
21114
21115 hpux9* | hpux10* | hpux11*)
21116 lt_prog_compiler_wl_GCJ='-Wl,'
21117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21118 # not for PA HP-UX.
21119 case "$host_cpu" in
21120 hppa*64*|ia64*)
21121 # +Z the default
21122 ;;
21123 *)
21124 lt_prog_compiler_pic_GCJ='+Z'
21125 ;;
21126 esac
21127 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21128 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21129 ;;
21130
21131 irix5* | irix6* | nonstopux*)
21132 lt_prog_compiler_wl_GCJ='-Wl,'
21133 # PIC (with -KPIC) is the default.
21134 lt_prog_compiler_static_GCJ='-non_shared'
21135 ;;
21136
21137 newsos6)
21138 lt_prog_compiler_pic_GCJ='-KPIC'
21139 lt_prog_compiler_static_GCJ='-Bstatic'
21140 ;;
21141
21142 linux*)
21143 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021144 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021145 lt_prog_compiler_wl_GCJ='-Wl,'
21146 lt_prog_compiler_pic_GCJ='-KPIC'
21147 lt_prog_compiler_static_GCJ='-static'
21148 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021149 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021150 lt_prog_compiler_wl_GCJ='-Wl,'
21151 # All Alpha code is PIC.
21152 lt_prog_compiler_static_GCJ='-non_shared'
21153 ;;
21154 esac
21155 ;;
21156
21157 osf3* | osf4* | osf5*)
21158 lt_prog_compiler_wl_GCJ='-Wl,'
21159 # All OSF/1 code is PIC.
21160 lt_prog_compiler_static_GCJ='-non_shared'
21161 ;;
21162
21163 sco3.2v5*)
21164 lt_prog_compiler_pic_GCJ='-Kpic'
21165 lt_prog_compiler_static_GCJ='-dn'
21166 ;;
21167
21168 solaris*)
21169 lt_prog_compiler_wl_GCJ='-Wl,'
21170 lt_prog_compiler_pic_GCJ='-KPIC'
21171 lt_prog_compiler_static_GCJ='-Bstatic'
21172 ;;
21173
21174 sunos4*)
21175 lt_prog_compiler_wl_GCJ='-Qoption ld '
21176 lt_prog_compiler_pic_GCJ='-PIC'
21177 lt_prog_compiler_static_GCJ='-Bstatic'
21178 ;;
21179
21180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21181 lt_prog_compiler_wl_GCJ='-Wl,'
21182 lt_prog_compiler_pic_GCJ='-KPIC'
21183 lt_prog_compiler_static_GCJ='-Bstatic'
21184 ;;
21185
21186 sysv4*MP*)
21187 if test -d /usr/nec ;then
21188 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21189 lt_prog_compiler_static_GCJ='-Bstatic'
21190 fi
21191 ;;
21192
21193 uts4*)
21194 lt_prog_compiler_pic_GCJ='-pic'
21195 lt_prog_compiler_static_GCJ='-Bstatic'
21196 ;;
21197
21198 *)
21199 lt_prog_compiler_can_build_shared_GCJ=no
21200 ;;
21201 esac
21202 fi
21203
21204echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21205echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21206
21207#
21208# Check to make sure the PIC flag actually works.
21209#
21210if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021211
21212echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021213echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21214if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216else
21217 lt_prog_compiler_pic_works_GCJ=no
21218 ac_outfile=conftest.$ac_objext
21219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21220 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21221 # Insert the option either (1) after the last *FLAGS variable, or
21222 # (2) before a word containing "conftest.", or (3) at the end.
21223 # Note that $ac_compile itself does not contain backslashes and begins
21224 # with a dollar sign (not a hyphen), so the echo should work correctly.
21225 # The option is referenced via a variable to avoid confusing sed.
21226 lt_compile=`echo "$ac_compile" | $SED \
21227 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21229 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000021230 (eval echo "\"\$as_me:21230: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021231 (eval "$lt_compile" 2>conftest.err)
21232 ac_status=$?
21233 cat conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000021234 echo "$as_me:21234: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021235 if (exit $ac_status) && test -s "$ac_outfile"; then
21236 # The compiler can only warn and ignore the option if not recognized
21237 # So say no if there are warnings
21238 if test ! -s conftest.err; then
21239 lt_prog_compiler_pic_works_GCJ=yes
21240 fi
21241 fi
21242 $rm conftest*
21243
21244fi
21245echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21246echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21247
21248if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21249 case $lt_prog_compiler_pic_GCJ in
21250 "" | " "*) ;;
21251 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21252 esac
21253else
21254 lt_prog_compiler_pic_GCJ=
21255 lt_prog_compiler_can_build_shared_GCJ=no
21256fi
21257
21258fi
21259case "$host_os" in
21260 # For platforms which do not support PIC, -DPIC is meaningless:
21261 *djgpp*)
21262 lt_prog_compiler_pic_GCJ=
21263 ;;
21264 *)
21265 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21266 ;;
21267esac
21268
21269echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21270echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21271if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273else
21274 lt_cv_prog_compiler_c_o_GCJ=no
21275 $rm -r conftest 2>/dev/null
21276 mkdir conftest
21277 cd conftest
21278 mkdir out
21279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21280
John Criswell47fdd832003-07-14 16:52:07 +000021281 lt_compiler_flag="-o out/conftest2.$ac_objext"
21282 # Insert the option either (1) after the last *FLAGS variable, or
21283 # (2) before a word containing "conftest.", or (3) at the end.
21284 # Note that $ac_compile itself does not contain backslashes and begins
21285 # with a dollar sign (not a hyphen), so the echo should work correctly.
21286 lt_compile=`echo "$ac_compile" | $SED \
21287 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21289 -e 's:$: $lt_compiler_flag:'`
Reid Spencerf97c7032004-12-27 09:33:46 +000021290 (eval echo "\"\$as_me:21290: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021291 (eval "$lt_compile" 2>out/conftest.err)
21292 ac_status=$?
21293 cat out/conftest.err >&5
Reid Spencerf97c7032004-12-27 09:33:46 +000021294 echo "$as_me:21294: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21296 then
21297 # The compiler can only warn and ignore the option if not recognized
21298 # So say no if there are warnings
21299 if test ! -s out/conftest.err; then
21300 lt_cv_prog_compiler_c_o_GCJ=yes
21301 fi
21302 fi
21303 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021304 $rm conftest*
21305 # SGI C++ compiler will create directory out/ii_files/ for
21306 # template instantiation
21307 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21308 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021309 cd ..
21310 rmdir conftest
21311 $rm conftest*
21312
21313fi
21314echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21315echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21316
21317
21318hard_links="nottested"
21319if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21320 # do not overwrite the value of need_locks provided by the user
21321 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21322echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21323 hard_links=yes
21324 $rm conftest*
21325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21326 touch conftest.a
21327 ln conftest.a conftest.b 2>&5 || hard_links=no
21328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21329 echo "$as_me:$LINENO: result: $hard_links" >&5
21330echo "${ECHO_T}$hard_links" >&6
21331 if test "$hard_links" = no; then
21332 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21333echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21334 need_locks=warn
21335 fi
21336else
21337 need_locks=no
21338fi
21339
21340echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21341echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21342
21343 runpath_var=
21344 allow_undefined_flag_GCJ=
21345 enable_shared_with_static_runtimes_GCJ=no
21346 archive_cmds_GCJ=
21347 archive_expsym_cmds_GCJ=
21348 old_archive_From_new_cmds_GCJ=
21349 old_archive_from_expsyms_cmds_GCJ=
21350 export_dynamic_flag_spec_GCJ=
21351 whole_archive_flag_spec_GCJ=
21352 thread_safe_flag_spec_GCJ=
21353 hardcode_libdir_flag_spec_GCJ=
21354 hardcode_libdir_flag_spec_ld_GCJ=
21355 hardcode_libdir_separator_GCJ=
21356 hardcode_direct_GCJ=no
21357 hardcode_minus_L_GCJ=no
21358 hardcode_shlibpath_var_GCJ=unsupported
21359 link_all_deplibs_GCJ=unknown
21360 hardcode_automatic_GCJ=no
21361 module_cmds_GCJ=
21362 module_expsym_cmds_GCJ=
21363 always_export_symbols_GCJ=no
21364 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21365 # include_expsyms should be a list of space-separated symbols to be *always*
21366 # included in the symbol list
21367 include_expsyms_GCJ=
21368 # exclude_expsyms can be an extended regexp of symbols to exclude
21369 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21370 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21371 # as well as any symbol that contains `d'.
21372 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21374 # platforms (ab)use it in PIC code, but their linkers get confused if
21375 # the symbol is explicitly referenced. Since portable code cannot
21376 # rely on this symbol name, it's probably fine to never include it in
21377 # preloaded symbol tables.
21378 extract_expsyms_cmds=
21379
21380 case $host_os in
21381 cygwin* | mingw* | pw32*)
21382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21383 # When not using gcc, we currently assume that we are using
21384 # Microsoft Visual C++.
21385 if test "$GCC" != yes; then
21386 with_gnu_ld=no
21387 fi
21388 ;;
21389 openbsd*)
21390 with_gnu_ld=no
21391 ;;
21392 esac
21393
21394 ld_shlibs_GCJ=yes
21395 if test "$with_gnu_ld" = yes; then
21396 # If archive_cmds runs LD, not CC, wlarc should be empty
21397 wlarc='${wl}'
21398
21399 # See if GNU ld supports shared libraries.
21400 case $host_os in
21401 aix3* | aix4* | aix5*)
21402 # On AIX/PPC, the GNU linker is very broken
21403 if test "$host_cpu" != ia64; then
21404 ld_shlibs_GCJ=no
21405 cat <<EOF 1>&2
21406
21407*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21408*** to be unable to reliably create shared libraries on AIX.
21409*** Therefore, libtool is disabling shared libraries support. If you
21410*** really care for shared libraries, you may want to modify your PATH
21411*** so that a non-GNU linker is found, and then restart.
21412
21413EOF
21414 fi
21415 ;;
21416
21417 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021418 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 +000021419 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21420 hardcode_minus_L_GCJ=yes
21421
21422 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21423 # that the semantics of dynamic libraries on AmigaOS, at least up
21424 # to version 4, is to share data among multiple programs linked
21425 # with the same dynamic library. Since this doesn't match the
21426 # behavior of shared libraries on other platforms, we can't use
21427 # them.
21428 ld_shlibs_GCJ=no
21429 ;;
21430
21431 beos*)
21432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21433 allow_undefined_flag_GCJ=unsupported
21434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21435 # support --undefined. This deserves some investigation. FIXME
21436 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21437 else
21438 ld_shlibs_GCJ=no
21439 fi
21440 ;;
21441
21442 cygwin* | mingw* | pw32*)
21443 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21444 # as there is no search path for DLLs.
21445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21446 allow_undefined_flag_GCJ=unsupported
21447 always_export_symbols_GCJ=no
21448 enable_shared_with_static_runtimes_GCJ=yes
21449 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21450
21451 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21452 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21453 # If the export-symbols file already is a .def file (1st line
21454 # is EXPORTS), use it as is; otherwise, prepend...
21455 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21456 cp $export_symbols $output_objdir/$soname.def;
21457 else
21458 echo EXPORTS > $output_objdir/$soname.def;
21459 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021460 fi~
21461 $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 +000021462 else
21463 ld_shlibs=no
21464 fi
21465 ;;
21466
21467 netbsd*)
21468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21469 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21470 wlarc=
21471 else
21472 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21473 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21474 fi
21475 ;;
21476
21477 solaris* | sysv5*)
21478 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21479 ld_shlibs_GCJ=no
21480 cat <<EOF 1>&2
21481
21482*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21483*** create shared libraries on Solaris systems. Therefore, libtool
21484*** is disabling shared libraries support. We urge you to upgrade GNU
21485*** binutils to release 2.9.1 or newer. Another option is to modify
21486*** your PATH or compiler configuration so that the native linker is
21487*** used, and then restart.
21488
21489EOF
21490 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21491 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21492 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21493 else
21494 ld_shlibs_GCJ=no
21495 fi
21496 ;;
21497
21498 sunos4*)
21499 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21500 wlarc=
21501 hardcode_direct_GCJ=yes
21502 hardcode_shlibpath_var_GCJ=no
21503 ;;
21504
Reid Spencer2706f8c2004-09-19 23:53:36 +000021505 linux*)
21506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21507 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21508 archive_cmds_GCJ="$tmp_archive_cmds"
21509 supports_anon_versioning=no
21510 case `$LD -v 2>/dev/null` in
21511 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21512 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21513 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21514 *\ 2.11.*) ;; # other 2.11 versions
21515 *) supports_anon_versioning=yes ;;
21516 esac
21517 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021518 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21519cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21520$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021521 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21522 else
21523 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21524 fi
21525 else
21526 ld_shlibs_GCJ=no
21527 fi
21528 ;;
21529
John Criswell47fdd832003-07-14 16:52:07 +000021530 *)
21531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21534 else
21535 ld_shlibs_GCJ=no
21536 fi
21537 ;;
21538 esac
21539
21540 if test "$ld_shlibs_GCJ" = yes; then
21541 runpath_var=LD_RUN_PATH
21542 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21543 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21544 # ancient GNU ld didn't support --whole-archive et. al.
21545 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21546 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21547 else
21548 whole_archive_flag_spec_GCJ=
21549 fi
21550 fi
21551 else
21552 # PORTME fill in a description of your system's linker (not GNU ld)
21553 case $host_os in
21554 aix3*)
21555 allow_undefined_flag_GCJ=unsupported
21556 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021557 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 +000021558 # Note: this linker hardcodes the directories in LIBPATH if there
21559 # are no directories specified by -L.
21560 hardcode_minus_L_GCJ=yes
21561 if test "$GCC" = yes && test -z "$link_static_flag"; then
21562 # Neither direct hardcoding nor static linking is supported with a
21563 # broken collect2.
21564 hardcode_direct_GCJ=unsupported
21565 fi
21566 ;;
21567
21568 aix4* | aix5*)
21569 if test "$host_cpu" = ia64; then
21570 # On IA64, the linker does run time linking by default, so we don't
21571 # have to do anything special.
21572 aix_use_runtimelinking=no
21573 exp_sym_flag='-Bexport'
21574 no_entry_flag=""
21575 else
21576 # If we're using GNU nm, then we don't want the "-C" option.
21577 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21578 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21579 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'
21580 else
21581 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'
21582 fi
21583 aix_use_runtimelinking=no
21584
21585 # Test if we are trying to use run time linking or normal
21586 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21587 # need to do runtime linking.
21588 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21589 for ld_flag in $LDFLAGS; do
21590 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21591 aix_use_runtimelinking=yes
21592 break
21593 fi
21594 done
21595 esac
21596
21597 exp_sym_flag='-bexport'
21598 no_entry_flag='-bnoentry'
21599 fi
21600
21601 # When large executables or shared objects are built, AIX ld can
21602 # have problems creating the table of contents. If linking a library
21603 # or program results in "error TOC overflow" add -mminimal-toc to
21604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21606
21607 archive_cmds_GCJ=''
21608 hardcode_direct_GCJ=yes
21609 hardcode_libdir_separator_GCJ=':'
21610 link_all_deplibs_GCJ=yes
21611
21612 if test "$GCC" = yes; then
21613 case $host_os in aix4.012|aix4.012.*)
21614 # We only want to do this on AIX 4.2 and lower, the check
21615 # below for broken collect2 doesn't work under 4.3+
21616 collect2name=`${CC} -print-prog-name=collect2`
21617 if test -f "$collect2name" && \
21618 strings "$collect2name" | grep resolve_lib_name >/dev/null
21619 then
21620 # We have reworked collect2
21621 hardcode_direct_GCJ=yes
21622 else
21623 # We have old collect2
21624 hardcode_direct_GCJ=unsupported
21625 # It fails to find uninstalled libraries when the uninstalled
21626 # path is not listed in the libpath. Setting hardcode_minus_L
21627 # to unsupported forces relinking
21628 hardcode_minus_L_GCJ=yes
21629 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21630 hardcode_libdir_separator_GCJ=
21631 fi
21632 esac
21633 shared_flag='-shared'
21634 else
21635 # not using gcc
21636 if test "$host_cpu" = ia64; then
21637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21638 # chokes on -Wl,-G. The following line is correct:
21639 shared_flag='-G'
21640 else
21641 if test "$aix_use_runtimelinking" = yes; then
21642 shared_flag='${wl}-G'
21643 else
21644 shared_flag='${wl}-bM:SRE'
21645 fi
21646 fi
21647 fi
21648
21649 # It seems that -bexpall does not export symbols beginning with
21650 # underscore (_), so it is better to generate a list of symbols to export.
21651 always_export_symbols_GCJ=yes
21652 if test "$aix_use_runtimelinking" = yes; then
21653 # Warning - without using the other runtime loading flags (-brtl),
21654 # -berok will link without error, but may produce a broken library.
21655 allow_undefined_flag_GCJ='-berok'
21656 # Determine the default libpath from the value encoded in an empty executable.
21657 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021658/* confdefs.h. */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021663
John Criswell47fdd832003-07-14 16:52:07 +000021664int
21665main ()
21666{
21667
21668 ;
21669 return 0;
21670}
21671_ACEOF
21672rm -f conftest.$ac_objext conftest$ac_exeext
21673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021674 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021675 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021681 { ac_try='test -z "$ac_c_werror_flag"
21682 || test ! -s conftest.err'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694
21695aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21696}'`
21697# Check for a 64-bit object if we didn't find anything.
21698if 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; }
21699}'`; fi
21700else
21701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021702sed 's/^/| /' conftest.$ac_ext >&5
21703
John Criswell47fdd832003-07-14 16:52:07 +000021704fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021705rm -f conftest.err conftest.$ac_objext \
21706 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21708
21709 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21710 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"
21711 else
21712 if test "$host_cpu" = ia64; then
21713 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21714 allow_undefined_flag_GCJ="-z nodefs"
21715 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"
21716 else
21717 # Determine the default libpath from the value encoded in an empty executable.
21718 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021719/* confdefs.h. */
21720_ACEOF
21721cat confdefs.h >>conftest.$ac_ext
21722cat >>conftest.$ac_ext <<_ACEOF
21723/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021724
John Criswell47fdd832003-07-14 16:52:07 +000021725int
21726main ()
21727{
21728
21729 ;
21730 return 0;
21731}
21732_ACEOF
21733rm -f conftest.$ac_objext conftest$ac_exeext
21734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021735 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021737 grep -v '^ *+' conftest.er1 >conftest.err
21738 rm -f conftest.er1
21739 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021742 { ac_try='test -z "$ac_c_werror_flag"
21743 || test ! -s conftest.err'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755
21756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21757}'`
21758# Check for a 64-bit object if we didn't find anything.
21759if 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; }
21760}'`; fi
21761else
21762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021763sed 's/^/| /' conftest.$ac_ext >&5
21764
John Criswell47fdd832003-07-14 16:52:07 +000021765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021766rm -f conftest.err conftest.$ac_objext \
21767 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021768if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21769
21770 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21771 # Warning - without using the other run time loading flags,
21772 # -berok will link without error, but may produce a broken library.
21773 no_undefined_flag_GCJ=' ${wl}-bernotok'
21774 allow_undefined_flag_GCJ=' ${wl}-berok'
21775 # -bexpall does not export symbols beginning with underscore (_)
21776 always_export_symbols_GCJ=yes
21777 # Exported symbols can be pulled into shared objects from archives
21778 whole_archive_flag_spec_GCJ=' '
21779 archive_cmds_need_lc_GCJ=yes
21780 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021781 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 +000021782 fi
21783 fi
21784 ;;
21785
21786 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021787 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 +000021788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21789 hardcode_minus_L_GCJ=yes
21790 # see comment about different semantics on the GNU ld section
21791 ld_shlibs_GCJ=no
21792 ;;
21793
Reid Spencer2706f8c2004-09-19 23:53:36 +000021794 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021795 export_dynamic_flag_spec_GCJ=-rdynamic
21796 ;;
21797
21798 cygwin* | mingw* | pw32*)
21799 # When not using gcc, we currently assume that we are using
21800 # Microsoft Visual C++.
21801 # hardcode_libdir_flag_spec is actually meaningless, as there is
21802 # no search path for DLLs.
21803 hardcode_libdir_flag_spec_GCJ=' '
21804 allow_undefined_flag_GCJ=unsupported
21805 # Tell ltmain to make .lib files, not .a files.
21806 libext=lib
21807 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021808 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021809 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021810 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 +000021811 # The linker will automatically build a .lib file if we build a DLL.
21812 old_archive_From_new_cmds_GCJ='true'
21813 # FIXME: Should let the user specify the lib program.
21814 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21815 fix_srcfile_path='`cygpath -w "$srcfile"`'
21816 enable_shared_with_static_runtimes_GCJ=yes
21817 ;;
21818
21819 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021820 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021821 rhapsody* | darwin1.[012])
21822 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21823 ;;
21824 *) # Darwin 1.3 on
21825 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21826 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21827 else
21828 case ${MACOSX_DEPLOYMENT_TARGET} in
21829 10.[012])
21830 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21831 ;;
21832 10.*)
21833 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21834 ;;
21835 esac
21836 fi
21837 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021838 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021839 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021840 hardcode_direct_GCJ=no
21841 hardcode_automatic_GCJ=yes
21842 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021843 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021844 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021845 if test "$GCC" = yes ; then
21846 output_verbose_link_cmd='echo'
21847 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21848 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21849 # 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 +000021850 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}'
21851 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 +000021852 else
21853 case "$cc_basename" in
21854 xlc*)
21855 output_verbose_link_cmd='echo'
21856 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21857 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21858 # 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 +000021859 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}'
21860 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 +000021861 ;;
21862 *)
21863 ld_shlibs_GCJ=no
21864 ;;
21865 esac
John Criswell47fdd832003-07-14 16:52:07 +000021866 fi
21867 ;;
21868
21869 dgux*)
21870 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21871 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21872 hardcode_shlibpath_var_GCJ=no
21873 ;;
21874
21875 freebsd1*)
21876 ld_shlibs_GCJ=no
21877 ;;
21878
21879 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21880 # support. Future versions do this automatically, but an explicit c++rt0.o
21881 # does not break anything, and helps significantly (at the cost of a little
21882 # extra space).
21883 freebsd2.2*)
21884 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21885 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21886 hardcode_direct_GCJ=yes
21887 hardcode_shlibpath_var_GCJ=no
21888 ;;
21889
21890 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21891 freebsd2*)
21892 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21893 hardcode_direct_GCJ=yes
21894 hardcode_minus_L_GCJ=yes
21895 hardcode_shlibpath_var_GCJ=no
21896 ;;
21897
21898 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021899 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021900 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21901 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21902 hardcode_direct_GCJ=yes
21903 hardcode_shlibpath_var_GCJ=no
21904 ;;
21905
21906 hpux9*)
21907 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021908 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 +000021909 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021910 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 +000021911 fi
21912 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21913 hardcode_libdir_separator_GCJ=:
21914 hardcode_direct_GCJ=yes
21915
21916 # hardcode_minus_L: Not really in the search PATH,
21917 # but as the default location of the library.
21918 hardcode_minus_L_GCJ=yes
21919 export_dynamic_flag_spec_GCJ='${wl}-E'
21920 ;;
21921
21922 hpux10* | hpux11*)
21923 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21924 case "$host_cpu" in
21925 hppa*64*|ia64*)
21926 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21927 ;;
21928 *)
21929 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21930 ;;
21931 esac
21932 else
21933 case "$host_cpu" in
21934 hppa*64*|ia64*)
21935 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21936 ;;
21937 *)
21938 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21939 ;;
21940 esac
21941 fi
21942 if test "$with_gnu_ld" = no; then
21943 case "$host_cpu" in
21944 hppa*64*)
21945 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21946 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21947 hardcode_libdir_separator_GCJ=:
21948 hardcode_direct_GCJ=no
21949 hardcode_shlibpath_var_GCJ=no
21950 ;;
21951 ia64*)
21952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21953 hardcode_direct_GCJ=no
21954 hardcode_shlibpath_var_GCJ=no
21955
21956 # hardcode_minus_L: Not really in the search PATH,
21957 # but as the default location of the library.
21958 hardcode_minus_L_GCJ=yes
21959 ;;
21960 *)
21961 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21962 hardcode_libdir_separator_GCJ=:
21963 hardcode_direct_GCJ=yes
21964 export_dynamic_flag_spec_GCJ='${wl}-E'
21965
21966 # hardcode_minus_L: Not really in the search PATH,
21967 # but as the default location of the library.
21968 hardcode_minus_L_GCJ=yes
21969 ;;
21970 esac
21971 fi
21972 ;;
21973
21974 irix5* | irix6* | nonstopux*)
21975 if test "$GCC" = yes; then
21976 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'
21977 else
21978 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'
21979 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21980 fi
21981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21982 hardcode_libdir_separator_GCJ=:
21983 link_all_deplibs_GCJ=yes
21984 ;;
21985
21986 netbsd*)
21987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21988 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21989 else
21990 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21991 fi
21992 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21993 hardcode_direct_GCJ=yes
21994 hardcode_shlibpath_var_GCJ=no
21995 ;;
21996
21997 newsos6)
21998 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21999 hardcode_direct_GCJ=yes
22000 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22001 hardcode_libdir_separator_GCJ=:
22002 hardcode_shlibpath_var_GCJ=no
22003 ;;
22004
22005 openbsd*)
22006 hardcode_direct_GCJ=yes
22007 hardcode_shlibpath_var_GCJ=no
22008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22009 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022010 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 +000022011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22012 export_dynamic_flag_spec_GCJ='${wl}-E'
22013 else
22014 case $host_os in
22015 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22016 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018 ;;
22019 *)
22020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22022 ;;
22023 esac
22024 fi
22025 ;;
22026
22027 os2*)
22028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22029 hardcode_minus_L_GCJ=yes
22030 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022031 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 +000022032 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22033 ;;
22034
22035 osf3*)
22036 if test "$GCC" = yes; then
22037 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22038 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'
22039 else
22040 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22041 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'
22042 fi
22043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22044 hardcode_libdir_separator_GCJ=:
22045 ;;
22046
22047 osf4* | osf5*) # as osf3* with the addition of -msym flag
22048 if test "$GCC" = yes; then
22049 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22050 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22052 else
22053 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22054 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 +000022055 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~
22056 $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'
22057
John Criswell47fdd832003-07-14 16:52:07 +000022058 # Both c and cxx compiler support -rpath directly
22059 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22060 fi
22061 hardcode_libdir_separator_GCJ=:
22062 ;;
22063
22064 sco3.2v5*)
22065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22066 hardcode_shlibpath_var_GCJ=no
22067 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22068 runpath_var=LD_RUN_PATH
22069 hardcode_runpath_var=yes
22070 ;;
22071
22072 solaris*)
22073 no_undefined_flag_GCJ=' -z text'
22074 if test "$GCC" = yes; then
22075 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022076 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22077 $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 +000022078 else
22079 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22081 $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 +000022082 fi
22083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22084 hardcode_shlibpath_var_GCJ=no
22085 case $host_os in
22086 solaris2.[0-5] | solaris2.[0-5].*) ;;
22087 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22088 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22089 esac
22090 link_all_deplibs_GCJ=yes
22091 ;;
22092
22093 sunos4*)
22094 if test "x$host_vendor" = xsequent; then
22095 # Use $CC to link under sequent, because it throws in some extra .o
22096 # files that make .init and .fini sections work.
22097 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22098 else
22099 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22100 fi
22101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22102 hardcode_direct_GCJ=yes
22103 hardcode_minus_L_GCJ=yes
22104 hardcode_shlibpath_var_GCJ=no
22105 ;;
22106
22107 sysv4)
22108 case $host_vendor in
22109 sni)
22110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22111 hardcode_direct_GCJ=yes # is this really true???
22112 ;;
22113 siemens)
22114 ## LD is ld it makes a PLAMLIB
22115 ## CC just makes a GrossModule.
22116 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22117 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22118 hardcode_direct_GCJ=no
22119 ;;
22120 motorola)
22121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22122 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22123 ;;
22124 esac
22125 runpath_var='LD_RUN_PATH'
22126 hardcode_shlibpath_var_GCJ=no
22127 ;;
22128
22129 sysv4.3*)
22130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131 hardcode_shlibpath_var_GCJ=no
22132 export_dynamic_flag_spec_GCJ='-Bexport'
22133 ;;
22134
22135 sysv4*MP*)
22136 if test -d /usr/nec; then
22137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22138 hardcode_shlibpath_var_GCJ=no
22139 runpath_var=LD_RUN_PATH
22140 hardcode_runpath_var=yes
22141 ld_shlibs_GCJ=yes
22142 fi
22143 ;;
22144
22145 sysv4.2uw2*)
22146 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22147 hardcode_direct_GCJ=yes
22148 hardcode_minus_L_GCJ=no
22149 hardcode_shlibpath_var_GCJ=no
22150 hardcode_runpath_var=yes
22151 runpath_var=LD_RUN_PATH
22152 ;;
22153
22154 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22155 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22156 if test "$GCC" = yes; then
22157 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22158 else
22159 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22160 fi
22161 runpath_var='LD_RUN_PATH'
22162 hardcode_shlibpath_var_GCJ=no
22163 ;;
22164
22165 sysv5*)
22166 no_undefined_flag_GCJ=' -z text'
22167 # $CC -shared without GNU ld will not create a library from C++
22168 # object files and a static libstdc++, better avoid it by now
22169 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022170 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22171 $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 +000022172 hardcode_libdir_flag_spec_GCJ=
22173 hardcode_shlibpath_var_GCJ=no
22174 runpath_var='LD_RUN_PATH'
22175 ;;
22176
22177 uts4*)
22178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22180 hardcode_shlibpath_var_GCJ=no
22181 ;;
22182
22183 *)
22184 ld_shlibs_GCJ=no
22185 ;;
22186 esac
22187 fi
22188
22189echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22190echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22191test "$ld_shlibs_GCJ" = no && can_build_shared=no
22192
22193variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22194if test "$GCC" = yes; then
22195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22196fi
22197
22198#
22199# Do we need to explicitly link libc?
22200#
22201case "x$archive_cmds_need_lc_GCJ" in
22202x|xyes)
22203 # Assume -lc should be added
22204 archive_cmds_need_lc_GCJ=yes
22205
22206 if test "$enable_shared" = yes && test "$GCC" = yes; then
22207 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022208 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022209 # FIXME: we may have to deal with multi-command sequences.
22210 ;;
22211 '$CC '*)
22212 # Test whether the compiler implicitly links with -lc since on some
22213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22214 # to ld, don't add -lc before -lgcc.
22215 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22216echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22217 $rm conftest*
22218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22219
22220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22221 (eval $ac_compile) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } 2>conftest.err; then
22225 soname=conftest
22226 lib=conftest
22227 libobjs=conftest.$ac_objext
22228 deplibs=
22229 wl=$lt_prog_compiler_wl_GCJ
22230 compiler_flags=-v
22231 linker_flags=-v
22232 verstring=
22233 output_objdir=.
22234 libname=conftest
22235 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22236 allow_undefined_flag_GCJ=
22237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22238 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22239 ac_status=$?
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); }
22242 then
22243 archive_cmds_need_lc_GCJ=no
22244 else
22245 archive_cmds_need_lc_GCJ=yes
22246 fi
22247 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22248 else
22249 cat conftest.err 1>&5
22250 fi
22251 $rm conftest*
22252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22253echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22254 ;;
22255 esac
22256 fi
22257 ;;
22258esac
22259
John Criswell47fdd832003-07-14 16:52:07 +000022260echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22261echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22262library_names_spec=
22263libname_spec='lib$name'
22264soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022265shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022266postinstall_cmds=
22267postuninstall_cmds=
22268finish_cmds=
22269finish_eval=
22270shlibpath_var=
22271shlibpath_overrides_runpath=unknown
22272version_type=none
22273dynamic_linker="$host_os ld.so"
22274sys_lib_dlsearch_path_spec="/lib /usr/lib"
22275if test "$GCC" = yes; then
22276 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22277 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22278 # if the path contains ";" then we assume it to be the separator
22279 # otherwise default to the standard path separator (i.e. ":") - it is
22280 # assumed that no part of a normal pathname contains ";" but that should
22281 # okay in the real world where ";" in dirpaths is itself problematic.
22282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22283 else
22284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22285 fi
22286else
22287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22288fi
22289need_lib_prefix=unknown
22290hardcode_into_libs=no
22291
22292# when you set need_version to no, make sure it does not cause -set_version
22293# flags to be left without arguments
22294need_version=unknown
22295
22296case $host_os in
22297aix3*)
22298 version_type=linux
22299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22300 shlibpath_var=LIBPATH
22301
22302 # AIX 3 has no versioning support, so we append a major version to the name.
22303 soname_spec='${libname}${release}${shared_ext}$major'
22304 ;;
22305
22306aix4* | aix5*)
22307 version_type=linux
22308 need_lib_prefix=no
22309 need_version=no
22310 hardcode_into_libs=yes
22311 if test "$host_cpu" = ia64; then
22312 # AIX 5 supports IA64
22313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22314 shlibpath_var=LD_LIBRARY_PATH
22315 else
22316 # With GCC up to 2.95.x, collect2 would create an import file
22317 # for dependence libraries. The import file would start with
22318 # the line `#! .'. This would cause the generated library to
22319 # depend on `.', always an invalid library. This was fixed in
22320 # development snapshots of GCC prior to 3.0.
22321 case $host_os in
22322 aix4 | aix4.[01] | aix4.[01].*)
22323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22324 echo ' yes '
22325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22326 :
22327 else
22328 can_build_shared=no
22329 fi
22330 ;;
22331 esac
22332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22333 # soname into executable. Probably we can add versioning support to
22334 # collect2, so additional links can be useful in future.
22335 if test "$aix_use_runtimelinking" = yes; then
22336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22337 # instead of lib<name>.a to let people know that these are not
22338 # typical AIX shared libraries.
22339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22340 else
22341 # We preserve .a as extension for shared libraries through AIX4.2
22342 # and later when we are not doing run time linking.
22343 library_names_spec='${libname}${release}.a $libname.a'
22344 soname_spec='${libname}${release}${shared_ext}$major'
22345 fi
22346 shlibpath_var=LIBPATH
22347 fi
22348 ;;
22349
22350amigaos*)
22351 library_names_spec='$libname.ixlibrary $libname.a'
22352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022353 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 +000022354 ;;
22355
22356beos*)
22357 library_names_spec='${libname}${shared_ext}'
22358 dynamic_linker="$host_os ld.so"
22359 shlibpath_var=LIBRARY_PATH
22360 ;;
22361
Reid Spencer2706f8c2004-09-19 23:53:36 +000022362bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022363 version_type=linux
22364 need_version=no
22365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22366 soname_spec='${libname}${release}${shared_ext}$major'
22367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22368 shlibpath_var=LD_LIBRARY_PATH
22369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22371 # the default ld.so.conf also contains /usr/contrib/lib and
22372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22373 # libtool to hard-code these into programs
22374 ;;
22375
22376cygwin* | mingw* | pw32*)
22377 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022378 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022379 need_version=no
22380 need_lib_prefix=no
22381
22382 case $GCC,$host_os in
22383 yes,cygwin* | yes,mingw* | yes,pw32*)
22384 library_names_spec='$libname.dll.a'
22385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022386 postinstall_cmds='base_file=`basename \${file}`~
22387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22388 dldir=$destdir/`dirname \$dlpath`~
22389 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022390 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22392 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022393 $rm \$dlpath'
22394 shlibpath_overrides_runpath=yes
22395
22396 case $host_os in
22397 cygwin*)
22398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22399 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 +000022400 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022401 ;;
22402 mingw*)
22403 # MinGW DLLs use traditional 'lib' prefix
22404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22405 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22406 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22407 # It is most probably a Windows format PATH printed by
22408 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22409 # path with ; separators, and with drive letters. We can handle the
22410 # drive letters (cygwin fileutils understands them), so leave them,
22411 # especially as we might pass files found there to a mingw objdump,
22412 # which wouldn't understand a cygwinified path. Ahh.
22413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22414 else
22415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22416 fi
22417 ;;
22418 pw32*)
22419 # pw32 DLLs use 'pw' prefix rather than 'lib'
22420 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22421 ;;
22422 esac
22423 ;;
22424
22425 *)
22426 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22427 ;;
22428 esac
22429 dynamic_linker='Win32 ld.exe'
22430 # FIXME: first we should search . and the directory the executable is in
22431 shlibpath_var=PATH
22432 ;;
22433
22434darwin* | rhapsody*)
22435 dynamic_linker="$host_os dyld"
22436 version_type=darwin
22437 need_lib_prefix=no
22438 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022439 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022440 soname_spec='${libname}${release}${major}$shared_ext'
22441 shlibpath_overrides_runpath=yes
22442 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022443 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022444 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022445 if test "$GCC" = yes; then
22446 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"`
22447 else
22448 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022449 fi
22450 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22451 ;;
22452
22453dgux*)
22454 version_type=linux
22455 need_lib_prefix=no
22456 need_version=no
22457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22458 soname_spec='${libname}${release}${shared_ext}$major'
22459 shlibpath_var=LD_LIBRARY_PATH
22460 ;;
22461
22462freebsd1*)
22463 dynamic_linker=no
22464 ;;
22465
Reid Spencer2706f8c2004-09-19 23:53:36 +000022466kfreebsd*-gnu)
22467 version_type=linux
22468 need_lib_prefix=no
22469 need_version=no
22470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22471 soname_spec='${libname}${release}${shared_ext}$major'
22472 shlibpath_var=LD_LIBRARY_PATH
22473 shlibpath_overrides_runpath=no
22474 hardcode_into_libs=yes
22475 dynamic_linker='GNU ld.so'
22476 ;;
22477
John Criswell47fdd832003-07-14 16:52:07 +000022478freebsd*)
22479 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22480 version_type=freebsd-$objformat
22481 case $version_type in
22482 freebsd-elf*)
22483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22484 need_version=no
22485 need_lib_prefix=no
22486 ;;
22487 freebsd-*)
22488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22489 need_version=yes
22490 ;;
22491 esac
22492 shlibpath_var=LD_LIBRARY_PATH
22493 case $host_os in
22494 freebsd2*)
22495 shlibpath_overrides_runpath=yes
22496 ;;
22497 freebsd3.01* | freebsdelf3.01*)
22498 shlibpath_overrides_runpath=yes
22499 hardcode_into_libs=yes
22500 ;;
22501 *) # from 3.2 on
22502 shlibpath_overrides_runpath=no
22503 hardcode_into_libs=yes
22504 ;;
22505 esac
22506 ;;
22507
22508gnu*)
22509 version_type=linux
22510 need_lib_prefix=no
22511 need_version=no
22512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22513 soname_spec='${libname}${release}${shared_ext}$major'
22514 shlibpath_var=LD_LIBRARY_PATH
22515 hardcode_into_libs=yes
22516 ;;
22517
22518hpux9* | hpux10* | hpux11*)
22519 # Give a soname corresponding to the major version so that dld.sl refuses to
22520 # link against other versions.
22521 version_type=sunos
22522 need_lib_prefix=no
22523 need_version=no
22524 case "$host_cpu" in
22525 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022526 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022527 hardcode_into_libs=yes
22528 dynamic_linker="$host_os dld.so"
22529 shlibpath_var=LD_LIBRARY_PATH
22530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22532 soname_spec='${libname}${release}${shared_ext}$major'
22533 if test "X$HPUX_IA64_MODE" = X32; then
22534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22535 else
22536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22537 fi
22538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22539 ;;
22540 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022541 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022542 hardcode_into_libs=yes
22543 dynamic_linker="$host_os dld.sl"
22544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22547 soname_spec='${libname}${release}${shared_ext}$major'
22548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22550 ;;
22551 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022552 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022553 dynamic_linker="$host_os dld.sl"
22554 shlibpath_var=SHLIB_PATH
22555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22557 soname_spec='${libname}${release}${shared_ext}$major'
22558 ;;
22559 esac
22560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22561 postinstall_cmds='chmod 555 $lib'
22562 ;;
22563
22564irix5* | irix6* | nonstopux*)
22565 case $host_os in
22566 nonstopux*) version_type=nonstopux ;;
22567 *)
22568 if test "$lt_cv_prog_gnu_ld" = yes; then
22569 version_type=linux
22570 else
22571 version_type=irix
22572 fi ;;
22573 esac
22574 need_lib_prefix=no
22575 need_version=no
22576 soname_spec='${libname}${release}${shared_ext}$major'
22577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22578 case $host_os in
22579 irix5* | nonstopux*)
22580 libsuff= shlibsuff=
22581 ;;
22582 *)
22583 case $LD in # libtool.m4 will add one of these switches to LD
22584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22585 libsuff= shlibsuff= libmagic=32-bit;;
22586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22587 libsuff=32 shlibsuff=N32 libmagic=N32;;
22588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22590 *) libsuff= shlibsuff= libmagic=never-match;;
22591 esac
22592 ;;
22593 esac
22594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22595 shlibpath_overrides_runpath=no
22596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22598 hardcode_into_libs=yes
22599 ;;
22600
22601# No shared lib support for Linux oldld, aout, or coff.
22602linux*oldld* | linux*aout* | linux*coff*)
22603 dynamic_linker=no
22604 ;;
22605
22606# This must be Linux ELF.
22607linux*)
22608 version_type=linux
22609 need_lib_prefix=no
22610 need_version=no
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 soname_spec='${libname}${release}${shared_ext}$major'
22613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22614 shlibpath_var=LD_LIBRARY_PATH
22615 shlibpath_overrides_runpath=no
22616 # This implies no fast_install, which is unacceptable.
22617 # Some rework will be needed to allow for fast_install
22618 # before this can be enabled.
22619 hardcode_into_libs=yes
22620
Reid Spencer2706f8c2004-09-19 23:53:36 +000022621 # Append ld.so.conf contents to the search path
22622 if test -f /etc/ld.so.conf; then
22623 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22625 fi
22626
John Criswell47fdd832003-07-14 16:52:07 +000022627 # We used to test for /lib/ld.so.1 and disable shared libraries on
22628 # powerpc, because MkLinux only supported shared libraries with the
22629 # GNU dynamic linker. Since this was broken with cross compilers,
22630 # most powerpc-linux boxes support dynamic linking these days and
22631 # people can always --disable-shared, the test was removed, and we
22632 # assume the GNU/Linux dynamic linker is in use.
22633 dynamic_linker='GNU/Linux ld.so'
22634 ;;
22635
Reid Spencer2706f8c2004-09-19 23:53:36 +000022636knetbsd*-gnu)
22637 version_type=linux
22638 need_lib_prefix=no
22639 need_version=no
22640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22641 soname_spec='${libname}${release}${shared_ext}$major'
22642 shlibpath_var=LD_LIBRARY_PATH
22643 shlibpath_overrides_runpath=no
22644 hardcode_into_libs=yes
22645 dynamic_linker='GNU ld.so'
22646 ;;
22647
John Criswell47fdd832003-07-14 16:52:07 +000022648netbsd*)
22649 version_type=sunos
22650 need_lib_prefix=no
22651 need_version=no
22652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22655 dynamic_linker='NetBSD (a.out) ld.so'
22656 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022658 soname_spec='${libname}${release}${shared_ext}$major'
22659 dynamic_linker='NetBSD ld.elf_so'
22660 fi
22661 shlibpath_var=LD_LIBRARY_PATH
22662 shlibpath_overrides_runpath=yes
22663 hardcode_into_libs=yes
22664 ;;
22665
22666newsos6)
22667 version_type=linux
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669 shlibpath_var=LD_LIBRARY_PATH
22670 shlibpath_overrides_runpath=yes
22671 ;;
22672
Reid Spencer2706f8c2004-09-19 23:53:36 +000022673nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022674 version_type=linux
22675 need_lib_prefix=no
22676 need_version=no
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678 soname_spec='${libname}${release}${shared_ext}$major'
22679 shlibpath_var=LD_LIBRARY_PATH
22680 shlibpath_overrides_runpath=yes
22681 ;;
22682
22683openbsd*)
22684 version_type=sunos
22685 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022686 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22689 shlibpath_var=LD_LIBRARY_PATH
22690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22691 case $host_os in
22692 openbsd2.[89] | openbsd2.[89].*)
22693 shlibpath_overrides_runpath=no
22694 ;;
22695 *)
22696 shlibpath_overrides_runpath=yes
22697 ;;
22698 esac
22699 else
22700 shlibpath_overrides_runpath=yes
22701 fi
22702 ;;
22703
22704os2*)
22705 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022706 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022707 need_lib_prefix=no
22708 library_names_spec='$libname${shared_ext} $libname.a'
22709 dynamic_linker='OS/2 ld.exe'
22710 shlibpath_var=LIBPATH
22711 ;;
22712
22713osf3* | osf4* | osf5*)
22714 version_type=osf
22715 need_lib_prefix=no
22716 need_version=no
22717 soname_spec='${libname}${release}${shared_ext}$major'
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22719 shlibpath_var=LD_LIBRARY_PATH
22720 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22721 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22722 ;;
22723
22724sco3.2v5*)
22725 version_type=osf
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 shlibpath_var=LD_LIBRARY_PATH
22729 ;;
22730
22731solaris*)
22732 version_type=linux
22733 need_lib_prefix=no
22734 need_version=no
22735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736 soname_spec='${libname}${release}${shared_ext}$major'
22737 shlibpath_var=LD_LIBRARY_PATH
22738 shlibpath_overrides_runpath=yes
22739 hardcode_into_libs=yes
22740 # ldd complains unless libraries are executable
22741 postinstall_cmds='chmod +x $lib'
22742 ;;
22743
22744sunos4*)
22745 version_type=sunos
22746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22747 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22748 shlibpath_var=LD_LIBRARY_PATH
22749 shlibpath_overrides_runpath=yes
22750 if test "$with_gnu_ld" = yes; then
22751 need_lib_prefix=no
22752 fi
22753 need_version=yes
22754 ;;
22755
22756sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22757 version_type=linux
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22759 soname_spec='${libname}${release}${shared_ext}$major'
22760 shlibpath_var=LD_LIBRARY_PATH
22761 case $host_vendor in
22762 sni)
22763 shlibpath_overrides_runpath=no
22764 need_lib_prefix=no
22765 export_dynamic_flag_spec='${wl}-Blargedynsym'
22766 runpath_var=LD_RUN_PATH
22767 ;;
22768 siemens)
22769 need_lib_prefix=no
22770 ;;
22771 motorola)
22772 need_lib_prefix=no
22773 need_version=no
22774 shlibpath_overrides_runpath=no
22775 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22776 ;;
22777 esac
22778 ;;
22779
22780sysv4*MP*)
22781 if test -d /usr/nec ;then
22782 version_type=linux
22783 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22784 soname_spec='$libname${shared_ext}.$major'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 fi
22787 ;;
22788
22789uts4*)
22790 version_type=linux
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792 soname_spec='${libname}${release}${shared_ext}$major'
22793 shlibpath_var=LD_LIBRARY_PATH
22794 ;;
22795
22796*)
22797 dynamic_linker=no
22798 ;;
22799esac
22800echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22801echo "${ECHO_T}$dynamic_linker" >&6
22802test "$dynamic_linker" = no && can_build_shared=no
22803
Reid Spencer2706f8c2004-09-19 23:53:36 +000022804echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22805echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22806hardcode_action_GCJ=
22807if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22808 test -n "$runpath_var_GCJ" || \
22809 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22810
22811 # We can hardcode non-existant directories.
22812 if test "$hardcode_direct_GCJ" != no &&
22813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22814 # have to relink, otherwise we might link with an installed library
22815 # when we should be linking with a yet-to-be-installed one
22816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22817 test "$hardcode_minus_L_GCJ" != no; then
22818 # Linking always hardcodes the temporary library directory.
22819 hardcode_action_GCJ=relink
22820 else
22821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22822 hardcode_action_GCJ=immediate
22823 fi
22824else
22825 # We cannot hardcode anything, or else we can only hardcode existing
22826 # directories.
22827 hardcode_action_GCJ=unsupported
22828fi
22829echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22830echo "${ECHO_T}$hardcode_action_GCJ" >&6
22831
22832if test "$hardcode_action_GCJ" = relink; then
22833 # Fast installation is not supported
22834 enable_fast_install=no
22835elif test "$shlibpath_overrides_runpath" = yes ||
22836 test "$enable_shared" = no; then
22837 # Fast installation is not necessary
22838 enable_fast_install=needless
22839fi
22840
22841striplib=
22842old_striplib=
22843echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22844echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22845if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22848 echo "$as_me:$LINENO: result: yes" >&5
22849echo "${ECHO_T}yes" >&6
22850else
22851# FIXME - insert some real tests, host_os isn't really good enough
22852 case $host_os in
22853 darwin*)
22854 if test -n "$STRIP" ; then
22855 striplib="$STRIP -x"
22856 echo "$as_me:$LINENO: result: yes" >&5
22857echo "${ECHO_T}yes" >&6
22858 else
22859 echo "$as_me:$LINENO: result: no" >&5
22860echo "${ECHO_T}no" >&6
22861fi
22862 ;;
22863 *)
22864 echo "$as_me:$LINENO: result: no" >&5
22865echo "${ECHO_T}no" >&6
22866 ;;
22867 esac
22868fi
22869
John Criswell47fdd832003-07-14 16:52:07 +000022870if test "x$enable_dlopen" != xyes; then
22871 enable_dlopen=unknown
22872 enable_dlopen_self=unknown
22873 enable_dlopen_self_static=unknown
22874else
22875 lt_cv_dlopen=no
22876 lt_cv_dlopen_libs=
22877
22878 case $host_os in
22879 beos*)
22880 lt_cv_dlopen="load_add_on"
22881 lt_cv_dlopen_libs=
22882 lt_cv_dlopen_self=yes
22883 ;;
22884
22885 mingw* | pw32*)
22886 lt_cv_dlopen="LoadLibrary"
22887 lt_cv_dlopen_libs=
22888 ;;
22889
22890 cygwin*)
22891 lt_cv_dlopen="dlopen"
22892 lt_cv_dlopen_libs=
22893 ;;
22894
22895 darwin*)
22896 # if libdl is installed we need to link against it
22897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22898echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22899if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22901else
22902 ac_check_lib_save_LIBS=$LIBS
22903LIBS="-ldl $LIBS"
22904cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022905/* confdefs.h. */
22906_ACEOF
22907cat confdefs.h >>conftest.$ac_ext
22908cat >>conftest.$ac_ext <<_ACEOF
22909/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022910
22911/* Override any gcc2 internal prototype to avoid an error. */
22912#ifdef __cplusplus
22913extern "C"
22914#endif
22915/* We use char because int might match the return type of a gcc2
22916 builtin and then its argument prototype would still apply. */
22917char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022918int
22919main ()
22920{
22921dlopen ();
22922 ;
22923 return 0;
22924}
22925_ACEOF
22926rm -f conftest.$ac_objext conftest$ac_exeext
22927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022928 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022930 grep -v '^ *+' conftest.er1 >conftest.err
22931 rm -f conftest.er1
22932 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022935 { ac_try='test -z "$ac_c_werror_flag"
22936 || test ! -s conftest.err'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; } &&
22942 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22945 ac_status=$?
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; }; then
22948 ac_cv_lib_dl_dlopen=yes
22949else
22950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022951sed 's/^/| /' conftest.$ac_ext >&5
22952
John Criswell47fdd832003-07-14 16:52:07 +000022953ac_cv_lib_dl_dlopen=no
22954fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022955rm -f conftest.err conftest.$ac_objext \
22956 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022957LIBS=$ac_check_lib_save_LIBS
22958fi
22959echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22960echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22961if test $ac_cv_lib_dl_dlopen = yes; then
22962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22963else
22964
22965 lt_cv_dlopen="dyld"
22966 lt_cv_dlopen_libs=
22967 lt_cv_dlopen_self=yes
22968
22969fi
22970
22971 ;;
22972
22973 *)
22974 echo "$as_me:$LINENO: checking for shl_load" >&5
22975echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22976if test "${ac_cv_func_shl_load+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22978else
22979 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022980/* confdefs.h. */
22981_ACEOF
22982cat confdefs.h >>conftest.$ac_ext
22983cat >>conftest.$ac_ext <<_ACEOF
22984/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022985/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22987#define shl_load innocuous_shl_load
22988
John Criswell47fdd832003-07-14 16:52:07 +000022989/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022990 which can conflict with char shl_load (); below.
22991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22992 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993
John Criswell0c38eaf2003-09-10 15:17:25 +000022994#ifdef __STDC__
22995# include <limits.h>
22996#else
22997# include <assert.h>
22998#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022999
23000#undef shl_load
23001
John Criswell47fdd832003-07-14 16:52:07 +000023002/* Override any gcc2 internal prototype to avoid an error. */
23003#ifdef __cplusplus
23004extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023005{
John Criswell47fdd832003-07-14 16:52:07 +000023006#endif
23007/* We use char because int might match the return type of a gcc2
23008 builtin and then its argument prototype would still apply. */
23009char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023010/* The GNU C library defines this for functions which it implements
23011 to always fail with ENOSYS. Some functions are actually named
23012 something starting with __ and the normal name is an alias. */
23013#if defined (__stub_shl_load) || defined (__stub___shl_load)
23014choke me
23015#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023016char (*f) () = shl_load;
23017#endif
23018#ifdef __cplusplus
23019}
John Criswell47fdd832003-07-14 16:52:07 +000023020#endif
23021
John Criswell0c38eaf2003-09-10 15:17:25 +000023022int
23023main ()
23024{
23025return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023026 ;
23027 return 0;
23028}
23029_ACEOF
23030rm -f conftest.$ac_objext conftest$ac_exeext
23031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023032 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023033 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_func_shl_load=yes
23053else
23054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023055sed 's/^/| /' conftest.$ac_ext >&5
23056
John Criswell47fdd832003-07-14 16:52:07 +000023057ac_cv_func_shl_load=no
23058fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023059rm -f conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023061fi
23062echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23063echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23064if test $ac_cv_func_shl_load = yes; then
23065 lt_cv_dlopen="shl_load"
23066else
23067 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23068echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23069if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23070 echo $ECHO_N "(cached) $ECHO_C" >&6
23071else
23072 ac_check_lib_save_LIBS=$LIBS
23073LIBS="-ldld $LIBS"
23074cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023075/* confdefs.h. */
23076_ACEOF
23077cat confdefs.h >>conftest.$ac_ext
23078cat >>conftest.$ac_ext <<_ACEOF
23079/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023080
23081/* Override any gcc2 internal prototype to avoid an error. */
23082#ifdef __cplusplus
23083extern "C"
23084#endif
23085/* We use char because int might match the return type of a gcc2
23086 builtin and then its argument prototype would still apply. */
23087char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023088int
23089main ()
23090{
23091shl_load ();
23092 ;
23093 return 0;
23094}
23095_ACEOF
23096rm -f conftest.$ac_objext conftest$ac_exeext
23097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023098 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023099 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023105 { ac_try='test -z "$ac_c_werror_flag"
23106 || test ! -s conftest.err'
23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108 (eval $ac_try) 2>&5
23109 ac_status=$?
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; } &&
23112 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_lib_dld_shl_load=yes
23119else
23120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023121sed 's/^/| /' conftest.$ac_ext >&5
23122
John Criswell47fdd832003-07-14 16:52:07 +000023123ac_cv_lib_dld_shl_load=no
23124fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023125rm -f conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023127LIBS=$ac_check_lib_save_LIBS
23128fi
23129echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23130echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23131if test $ac_cv_lib_dld_shl_load = yes; then
23132 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23133else
23134 echo "$as_me:$LINENO: checking for dlopen" >&5
23135echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23136if test "${ac_cv_func_dlopen+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23138else
23139 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023140/* confdefs.h. */
23141_ACEOF
23142cat confdefs.h >>conftest.$ac_ext
23143cat >>conftest.$ac_ext <<_ACEOF
23144/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023145/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23147#define dlopen innocuous_dlopen
23148
John Criswell47fdd832003-07-14 16:52:07 +000023149/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023150 which can conflict with char dlopen (); below.
23151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23152 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023153
John Criswell0c38eaf2003-09-10 15:17:25 +000023154#ifdef __STDC__
23155# include <limits.h>
23156#else
23157# include <assert.h>
23158#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023159
23160#undef dlopen
23161
John Criswell47fdd832003-07-14 16:52:07 +000023162/* Override any gcc2 internal prototype to avoid an error. */
23163#ifdef __cplusplus
23164extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023165{
John Criswell47fdd832003-07-14 16:52:07 +000023166#endif
23167/* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23169char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023170/* The GNU C library defines this for functions which it implements
23171 to always fail with ENOSYS. Some functions are actually named
23172 something starting with __ and the normal name is an alias. */
23173#if defined (__stub_dlopen) || defined (__stub___dlopen)
23174choke me
23175#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023176char (*f) () = dlopen;
23177#endif
23178#ifdef __cplusplus
23179}
John Criswell47fdd832003-07-14 16:52:07 +000023180#endif
23181
John Criswell0c38eaf2003-09-10 15:17:25 +000023182int
23183main ()
23184{
23185return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023186 ;
23187 return 0;
23188}
23189_ACEOF
23190rm -f conftest.$ac_objext conftest$ac_exeext
23191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023192 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023193 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023194 grep -v '^ *+' conftest.er1 >conftest.err
23195 rm -f conftest.er1
23196 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023199 { ac_try='test -z "$ac_c_werror_flag"
23200 || test ! -s conftest.err'
23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202 (eval $ac_try) 2>&5
23203 ac_status=$?
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; } &&
23206 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23209 ac_status=$?
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; }; then
23212 ac_cv_func_dlopen=yes
23213else
23214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023215sed 's/^/| /' conftest.$ac_ext >&5
23216
John Criswell47fdd832003-07-14 16:52:07 +000023217ac_cv_func_dlopen=no
23218fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023219rm -f conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023221fi
23222echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23223echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23224if test $ac_cv_func_dlopen = yes; then
23225 lt_cv_dlopen="dlopen"
23226else
23227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23228echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23229if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23231else
23232 ac_check_lib_save_LIBS=$LIBS
23233LIBS="-ldl $LIBS"
23234cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023235/* confdefs.h. */
23236_ACEOF
23237cat confdefs.h >>conftest.$ac_ext
23238cat >>conftest.$ac_ext <<_ACEOF
23239/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023240
23241/* Override any gcc2 internal prototype to avoid an error. */
23242#ifdef __cplusplus
23243extern "C"
23244#endif
23245/* We use char because int might match the return type of a gcc2
23246 builtin and then its argument prototype would still apply. */
23247char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023248int
23249main ()
23250{
23251dlopen ();
23252 ;
23253 return 0;
23254}
23255_ACEOF
23256rm -f conftest.$ac_objext conftest$ac_exeext
23257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023259 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023265 { ac_try='test -z "$ac_c_werror_flag"
23266 || test ! -s conftest.err'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; } &&
23272 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }; then
23278 ac_cv_lib_dl_dlopen=yes
23279else
23280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023281sed 's/^/| /' conftest.$ac_ext >&5
23282
John Criswell47fdd832003-07-14 16:52:07 +000023283ac_cv_lib_dl_dlopen=no
23284fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023285rm -f conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023287LIBS=$ac_check_lib_save_LIBS
23288fi
23289echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23290echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23291if test $ac_cv_lib_dl_dlopen = yes; then
23292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23293else
23294 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23295echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23296if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23297 echo $ECHO_N "(cached) $ECHO_C" >&6
23298else
23299 ac_check_lib_save_LIBS=$LIBS
23300LIBS="-lsvld $LIBS"
23301cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023302/* confdefs.h. */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023307
23308/* Override any gcc2 internal prototype to avoid an error. */
23309#ifdef __cplusplus
23310extern "C"
23311#endif
23312/* We use char because int might match the return type of a gcc2
23313 builtin and then its argument prototype would still apply. */
23314char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023315int
23316main ()
23317{
23318dlopen ();
23319 ;
23320 return 0;
23321}
23322_ACEOF
23323rm -f conftest.$ac_objext conftest$ac_exeext
23324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023325 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023332 { ac_try='test -z "$ac_c_werror_flag"
23333 || test ! -s conftest.err'
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; } &&
23339 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 ac_cv_lib_svld_dlopen=yes
23346else
23347 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023348sed 's/^/| /' conftest.$ac_ext >&5
23349
John Criswell47fdd832003-07-14 16:52:07 +000023350ac_cv_lib_svld_dlopen=no
23351fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352rm -f conftest.err conftest.$ac_objext \
23353 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023354LIBS=$ac_check_lib_save_LIBS
23355fi
23356echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23357echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23358if test $ac_cv_lib_svld_dlopen = yes; then
23359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23360else
23361 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23362echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23363if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23365else
23366 ac_check_lib_save_LIBS=$LIBS
23367LIBS="-ldld $LIBS"
23368cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023369/* confdefs.h. */
23370_ACEOF
23371cat confdefs.h >>conftest.$ac_ext
23372cat >>conftest.$ac_ext <<_ACEOF
23373/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023374
23375/* Override any gcc2 internal prototype to avoid an error. */
23376#ifdef __cplusplus
23377extern "C"
23378#endif
23379/* We use char because int might match the return type of a gcc2
23380 builtin and then its argument prototype would still apply. */
23381char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023382int
23383main ()
23384{
23385dld_link ();
23386 ;
23387 return 0;
23388}
23389_ACEOF
23390rm -f conftest.$ac_objext conftest$ac_exeext
23391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023392 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023393 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023394 grep -v '^ *+' conftest.er1 >conftest.err
23395 rm -f conftest.er1
23396 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023399 { ac_try='test -z "$ac_c_werror_flag"
23400 || test ! -s conftest.err'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; } &&
23406 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; }; then
23412 ac_cv_lib_dld_dld_link=yes
23413else
23414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023415sed 's/^/| /' conftest.$ac_ext >&5
23416
John Criswell47fdd832003-07-14 16:52:07 +000023417ac_cv_lib_dld_dld_link=no
23418fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023419rm -f conftest.err conftest.$ac_objext \
23420 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023421LIBS=$ac_check_lib_save_LIBS
23422fi
23423echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23424echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23425if test $ac_cv_lib_dld_dld_link = yes; then
23426 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23427fi
23428
23429
23430fi
23431
23432
23433fi
23434
23435
23436fi
23437
23438
23439fi
23440
23441
23442fi
23443
23444 ;;
23445 esac
23446
23447 if test "x$lt_cv_dlopen" != xno; then
23448 enable_dlopen=yes
23449 else
23450 enable_dlopen=no
23451 fi
23452
23453 case $lt_cv_dlopen in
23454 dlopen)
23455 save_CPPFLAGS="$CPPFLAGS"
23456 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23457
23458 save_LDFLAGS="$LDFLAGS"
23459 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23460
23461 save_LIBS="$LIBS"
23462 LIBS="$lt_cv_dlopen_libs $LIBS"
23463
23464 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23465echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23466if test "${lt_cv_dlopen_self+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23468else
23469 if test "$cross_compiling" = yes; then :
23470 lt_cv_dlopen_self=cross
23471else
23472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23473 lt_status=$lt_dlunknown
23474 cat > conftest.$ac_ext <<EOF
Reid Spencerf97c7032004-12-27 09:33:46 +000023475#line 23475 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023476#include "confdefs.h"
23477
23478#if HAVE_DLFCN_H
23479#include <dlfcn.h>
23480#endif
23481
23482#include <stdio.h>
23483
23484#ifdef RTLD_GLOBAL
23485# define LT_DLGLOBAL RTLD_GLOBAL
23486#else
23487# ifdef DL_GLOBAL
23488# define LT_DLGLOBAL DL_GLOBAL
23489# else
23490# define LT_DLGLOBAL 0
23491# endif
23492#endif
23493
23494/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23495 find out it does not work in some platform. */
23496#ifndef LT_DLLAZY_OR_NOW
23497# ifdef RTLD_LAZY
23498# define LT_DLLAZY_OR_NOW RTLD_LAZY
23499# else
23500# ifdef DL_LAZY
23501# define LT_DLLAZY_OR_NOW DL_LAZY
23502# else
23503# ifdef RTLD_NOW
23504# define LT_DLLAZY_OR_NOW RTLD_NOW
23505# else
23506# ifdef DL_NOW
23507# define LT_DLLAZY_OR_NOW DL_NOW
23508# else
23509# define LT_DLLAZY_OR_NOW 0
23510# endif
23511# endif
23512# endif
23513# endif
23514#endif
23515
23516#ifdef __cplusplus
23517extern "C" void exit (int);
23518#endif
23519
23520void fnord() { int i=42;}
23521int main ()
23522{
23523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23524 int status = $lt_dlunknown;
23525
23526 if (self)
23527 {
23528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23530 /* dlclose (self); */
23531 }
23532
23533 exit (status);
23534}
23535EOF
23536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23537 (eval $ac_link) 2>&5
23538 ac_status=$?
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23541 (./conftest; exit; ) 2>/dev/null
23542 lt_status=$?
23543 case x$lt_status in
23544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23546 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23547 esac
23548 else :
23549 # compilation failed
23550 lt_cv_dlopen_self=no
23551 fi
23552fi
23553rm -fr conftest*
23554
23555
23556fi
23557echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23558echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23559
23560 if test "x$lt_cv_dlopen_self" = xyes; then
23561 LDFLAGS="$LDFLAGS $link_static_flag"
23562 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23563echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23564if test "${lt_cv_dlopen_self_static+set}" = set; then
23565 echo $ECHO_N "(cached) $ECHO_C" >&6
23566else
23567 if test "$cross_compiling" = yes; then :
23568 lt_cv_dlopen_self_static=cross
23569else
23570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23571 lt_status=$lt_dlunknown
23572 cat > conftest.$ac_ext <<EOF
Reid Spencerf97c7032004-12-27 09:33:46 +000023573#line 23573 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023574#include "confdefs.h"
23575
23576#if HAVE_DLFCN_H
23577#include <dlfcn.h>
23578#endif
23579
23580#include <stdio.h>
23581
23582#ifdef RTLD_GLOBAL
23583# define LT_DLGLOBAL RTLD_GLOBAL
23584#else
23585# ifdef DL_GLOBAL
23586# define LT_DLGLOBAL DL_GLOBAL
23587# else
23588# define LT_DLGLOBAL 0
23589# endif
23590#endif
23591
23592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23593 find out it does not work in some platform. */
23594#ifndef LT_DLLAZY_OR_NOW
23595# ifdef RTLD_LAZY
23596# define LT_DLLAZY_OR_NOW RTLD_LAZY
23597# else
23598# ifdef DL_LAZY
23599# define LT_DLLAZY_OR_NOW DL_LAZY
23600# else
23601# ifdef RTLD_NOW
23602# define LT_DLLAZY_OR_NOW RTLD_NOW
23603# else
23604# ifdef DL_NOW
23605# define LT_DLLAZY_OR_NOW DL_NOW
23606# else
23607# define LT_DLLAZY_OR_NOW 0
23608# endif
23609# endif
23610# endif
23611# endif
23612#endif
23613
23614#ifdef __cplusplus
23615extern "C" void exit (int);
23616#endif
23617
23618void fnord() { int i=42;}
23619int main ()
23620{
23621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23622 int status = $lt_dlunknown;
23623
23624 if (self)
23625 {
23626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23628 /* dlclose (self); */
23629 }
23630
23631 exit (status);
23632}
23633EOF
23634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23635 (eval $ac_link) 2>&5
23636 ac_status=$?
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23639 (./conftest; exit; ) 2>/dev/null
23640 lt_status=$?
23641 case x$lt_status in
23642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23644 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23645 esac
23646 else :
23647 # compilation failed
23648 lt_cv_dlopen_self_static=no
23649 fi
23650fi
23651rm -fr conftest*
23652
23653
23654fi
23655echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23656echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23657 fi
23658
23659 CPPFLAGS="$save_CPPFLAGS"
23660 LDFLAGS="$save_LDFLAGS"
23661 LIBS="$save_LIBS"
23662 ;;
23663 esac
23664
23665 case $lt_cv_dlopen_self in
23666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23667 *) enable_dlopen_self=unknown ;;
23668 esac
23669
23670 case $lt_cv_dlopen_self_static in
23671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23672 *) enable_dlopen_self_static=unknown ;;
23673 esac
23674fi
23675
23676
23677# The else clause should only fire when bootstrapping the
23678# libtool distribution, otherwise you forgot to ship ltmain.sh
23679# with your package, and you will get complaints that there are
23680# no rules to generate ltmain.sh.
23681if test -f "$ltmain"; then
23682 # See if we are running on zsh, and set the options which allow our commands through
23683 # without removal of \ escapes.
23684 if test -n "${ZSH_VERSION+set}" ; then
23685 setopt NO_GLOB_SUBST
23686 fi
23687 # Now quote all the things that may contain metacharacters while being
23688 # careful not to overquote the AC_SUBSTed values. We take copies of the
23689 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23691 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23694 deplibs_check_method reload_flag reload_cmds need_locks \
23695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23696 lt_cv_sys_global_symbol_to_c_name_address \
23697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23698 old_postinstall_cmds old_postuninstall_cmds \
23699 compiler_GCJ \
23700 CC_GCJ \
23701 LD_GCJ \
23702 lt_prog_compiler_wl_GCJ \
23703 lt_prog_compiler_pic_GCJ \
23704 lt_prog_compiler_static_GCJ \
23705 lt_prog_compiler_no_builtin_flag_GCJ \
23706 export_dynamic_flag_spec_GCJ \
23707 thread_safe_flag_spec_GCJ \
23708 whole_archive_flag_spec_GCJ \
23709 enable_shared_with_static_runtimes_GCJ \
23710 old_archive_cmds_GCJ \
23711 old_archive_from_new_cmds_GCJ \
23712 predep_objects_GCJ \
23713 postdep_objects_GCJ \
23714 predeps_GCJ \
23715 postdeps_GCJ \
23716 compiler_lib_search_path_GCJ \
23717 archive_cmds_GCJ \
23718 archive_expsym_cmds_GCJ \
23719 postinstall_cmds_GCJ \
23720 postuninstall_cmds_GCJ \
23721 old_archive_from_expsyms_cmds_GCJ \
23722 allow_undefined_flag_GCJ \
23723 no_undefined_flag_GCJ \
23724 export_symbols_cmds_GCJ \
23725 hardcode_libdir_flag_spec_GCJ \
23726 hardcode_libdir_flag_spec_ld_GCJ \
23727 hardcode_libdir_separator_GCJ \
23728 hardcode_automatic_GCJ \
23729 module_cmds_GCJ \
23730 module_expsym_cmds_GCJ \
23731 lt_cv_prog_compiler_c_o_GCJ \
23732 exclude_expsyms_GCJ \
23733 include_expsyms_GCJ; do
23734
23735 case $var in
23736 old_archive_cmds_GCJ | \
23737 old_archive_from_new_cmds_GCJ | \
23738 archive_cmds_GCJ | \
23739 archive_expsym_cmds_GCJ | \
23740 module_cmds_GCJ | \
23741 module_expsym_cmds_GCJ | \
23742 old_archive_from_expsyms_cmds_GCJ | \
23743 export_symbols_cmds_GCJ | \
23744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23745 postinstall_cmds | postuninstall_cmds | \
23746 old_postinstall_cmds | old_postuninstall_cmds | \
23747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23748 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023749 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 +000023750 ;;
23751 *)
23752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23753 ;;
23754 esac
23755 done
23756
23757 case $lt_echo in
23758 *'\$0 --fallback-echo"')
23759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23760 ;;
23761 esac
23762
23763cfgfile="$ofile"
23764
23765 cat <<__EOF__ >> "$cfgfile"
23766# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23767
23768# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23769
23770# Shell to use when invoking shell scripts.
23771SHELL=$lt_SHELL
23772
23773# Whether or not to build shared libraries.
23774build_libtool_libs=$enable_shared
23775
23776# Whether or not to build static libraries.
23777build_old_libs=$enable_static
23778
23779# Whether or not to add -lc for building shared libraries.
23780build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23781
23782# Whether or not to disallow shared libs when runtime libs are static
23783allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23784
23785# Whether or not to optimize for fast installation.
23786fast_install=$enable_fast_install
23787
23788# The host system.
23789host_alias=$host_alias
23790host=$host
23791
23792# An echo program that does not interpret backslashes.
23793echo=$lt_echo
23794
23795# The archiver.
23796AR=$lt_AR
23797AR_FLAGS=$lt_AR_FLAGS
23798
23799# A C compiler.
23800LTCC=$lt_LTCC
23801
23802# A language-specific compiler.
23803CC=$lt_compiler_GCJ
23804
23805# Is the compiler the GNU C compiler?
23806with_gcc=$GCC_GCJ
23807
23808# An ERE matcher.
23809EGREP=$lt_EGREP
23810
23811# The linker used to build libraries.
23812LD=$lt_LD_GCJ
23813
23814# Whether we need hard or soft links.
23815LN_S=$lt_LN_S
23816
23817# A BSD-compatible nm program.
23818NM=$lt_NM
23819
23820# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023821STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023822
23823# Used to examine libraries when file_magic_cmd begins "file"
23824MAGIC_CMD=$MAGIC_CMD
23825
23826# Used on cygwin: DLL creation program.
23827DLLTOOL="$DLLTOOL"
23828
23829# Used on cygwin: object dumper.
23830OBJDUMP="$OBJDUMP"
23831
23832# Used on cygwin: assembler.
23833AS="$AS"
23834
23835# The name of the directory that contains temporary libtool files.
23836objdir=$objdir
23837
23838# How to create reloadable object files.
23839reload_flag=$lt_reload_flag
23840reload_cmds=$lt_reload_cmds
23841
23842# How to pass a linker flag through the compiler.
23843wl=$lt_lt_prog_compiler_wl_GCJ
23844
23845# Object file suffix (normally "o").
23846objext="$ac_objext"
23847
23848# Old archive suffix (normally "a").
23849libext="$libext"
23850
23851# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023852shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023853
23854# Executable file suffix (normally "").
23855exeext="$exeext"
23856
23857# Additional compiler flags for building library objects.
23858pic_flag=$lt_lt_prog_compiler_pic_GCJ
23859pic_mode=$pic_mode
23860
23861# What is the maximum length of a command?
23862max_cmd_len=$lt_cv_sys_max_cmd_len
23863
23864# Does compiler simultaneously support -c and -o options?
23865compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23866
23867# Must we lock files when doing compilation ?
23868need_locks=$lt_need_locks
23869
23870# Do we need the lib prefix for modules?
23871need_lib_prefix=$need_lib_prefix
23872
23873# Do we need a version for libraries?
23874need_version=$need_version
23875
23876# Whether dlopen is supported.
23877dlopen_support=$enable_dlopen
23878
23879# Whether dlopen of programs is supported.
23880dlopen_self=$enable_dlopen_self
23881
23882# Whether dlopen of statically linked programs is supported.
23883dlopen_self_static=$enable_dlopen_self_static
23884
23885# Compiler flag to prevent dynamic linking.
23886link_static_flag=$lt_lt_prog_compiler_static_GCJ
23887
23888# Compiler flag to turn off builtin functions.
23889no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23890
23891# Compiler flag to allow reflexive dlopens.
23892export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23893
23894# Compiler flag to generate shared objects directly from archives.
23895whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23896
23897# Compiler flag to generate thread-safe objects.
23898thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23899
23900# Library versioning type.
23901version_type=$version_type
23902
23903# Format of library name prefix.
23904libname_spec=$lt_libname_spec
23905
23906# List of archive names. First name is the real one, the rest are links.
23907# The last name is the one that the linker finds with -lNAME.
23908library_names_spec=$lt_library_names_spec
23909
23910# The coded name of the library, if different from the real name.
23911soname_spec=$lt_soname_spec
23912
23913# Commands used to build and install an old-style archive.
23914RANLIB=$lt_RANLIB
23915old_archive_cmds=$lt_old_archive_cmds_GCJ
23916old_postinstall_cmds=$lt_old_postinstall_cmds
23917old_postuninstall_cmds=$lt_old_postuninstall_cmds
23918
23919# Create an old-style archive from a shared archive.
23920old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23921
23922# Create a temporary old-style archive to link instead of a shared archive.
23923old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23924
23925# Commands used to build and install a shared archive.
23926archive_cmds=$lt_archive_cmds_GCJ
23927archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23928postinstall_cmds=$lt_postinstall_cmds
23929postuninstall_cmds=$lt_postuninstall_cmds
23930
23931# Commands used to build a loadable module (assumed same as above if empty)
23932module_cmds=$lt_module_cmds_GCJ
23933module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23934
23935# Commands to strip libraries.
23936old_striplib=$lt_old_striplib
23937striplib=$lt_striplib
23938
23939# Dependencies to place before the objects being linked to create a
23940# shared library.
23941predep_objects=$lt_predep_objects_GCJ
23942
23943# Dependencies to place after the objects being linked to create a
23944# shared library.
23945postdep_objects=$lt_postdep_objects_GCJ
23946
23947# Dependencies to place before the objects being linked to create a
23948# shared library.
23949predeps=$lt_predeps_GCJ
23950
23951# Dependencies to place after the objects being linked to create a
23952# shared library.
23953postdeps=$lt_postdeps_GCJ
23954
23955# The library search path used internally by the compiler when linking
23956# a shared library.
23957compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23958
23959# Method to check whether dependent libraries are shared objects.
23960deplibs_check_method=$lt_deplibs_check_method
23961
23962# Command to use when deplibs_check_method == file_magic.
23963file_magic_cmd=$lt_file_magic_cmd
23964
23965# Flag that allows shared libraries with undefined symbols to be built.
23966allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23967
23968# Flag that forces no undefined symbols.
23969no_undefined_flag=$lt_no_undefined_flag_GCJ
23970
23971# Commands used to finish a libtool library installation in a directory.
23972finish_cmds=$lt_finish_cmds
23973
23974# Same as above, but a single script fragment to be evaled but not shown.
23975finish_eval=$lt_finish_eval
23976
23977# Take the output of nm and produce a listing of raw symbols and C names.
23978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23979
23980# Transform the output of nm in a proper C declaration
23981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23982
23983# Transform the output of nm in a C name address pair
23984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23985
23986# This is the shared library runtime path variable.
23987runpath_var=$runpath_var
23988
23989# This is the shared library path variable.
23990shlibpath_var=$shlibpath_var
23991
23992# Is shlibpath searched before the hard-coded library search path?
23993shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23994
23995# How to hardcode a shared library path into an executable.
23996hardcode_action=$hardcode_action_GCJ
23997
23998# Whether we should hardcode library paths into libraries.
23999hardcode_into_libs=$hardcode_into_libs
24000
24001# Flag to hardcode \$libdir into a binary during linking.
24002# This must work even if \$libdir does not exist.
24003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24004
24005# If ld is used when linking, flag to hardcode \$libdir into
24006# a binary during linking. This must work even if \$libdir does
24007# not exist.
24008hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24009
24010# Whether we need a single -rpath flag with a separated argument.
24011hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24012
24013# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24014# resulting binary.
24015hardcode_direct=$hardcode_direct_GCJ
24016
24017# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24018# resulting binary.
24019hardcode_minus_L=$hardcode_minus_L_GCJ
24020
24021# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24022# the resulting binary.
24023hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24024
24025# Set to yes if building a shared library automatically hardcodes DIR into the library
24026# and all subsequent libraries and executables linked against it.
24027hardcode_automatic=$hardcode_automatic_GCJ
24028
24029# Variables whose values should be saved in libtool wrapper scripts and
24030# restored at relink time.
24031variables_saved_for_relink="$variables_saved_for_relink"
24032
24033# Whether libtool must link a program against all its dependency libraries.
24034link_all_deplibs=$link_all_deplibs_GCJ
24035
24036# Compile-time system search path for libraries
24037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24038
24039# Run-time system search path for libraries
24040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24041
24042# Fix the shell variable \$srcfile for the compiler.
24043fix_srcfile_path="$fix_srcfile_path_GCJ"
24044
24045# Set to yes if exported symbols are required.
24046always_export_symbols=$always_export_symbols_GCJ
24047
24048# The commands to list exported symbols.
24049export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24050
24051# The commands to extract the exported symbol list from a shared archive.
24052extract_expsyms_cmds=$lt_extract_expsyms_cmds
24053
24054# Symbols that should not be listed in the preloaded symbols.
24055exclude_expsyms=$lt_exclude_expsyms_GCJ
24056
24057# Symbols that must always be exported.
24058include_expsyms=$lt_include_expsyms_GCJ
24059
24060# ### END LIBTOOL TAG CONFIG: $tagname
24061
24062__EOF__
24063
24064
24065else
24066 # If there is no Makefile yet, we rely on a make rule to execute
24067 # `config.status --recheck' to rerun these tests and create the
24068 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024069 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24070 if test -f "$ltmain_in"; then
24071 test -f Makefile && make "$ltmain"
24072 fi
John Criswell47fdd832003-07-14 16:52:07 +000024073fi
24074
24075
24076ac_ext=c
24077ac_cpp='$CPP $CPPFLAGS'
24078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24080ac_compiler_gnu=$ac_cv_c_compiler_gnu
24081
24082CC="$lt_save_CC"
24083
24084 else
24085 tagname=""
24086 fi
24087 ;;
24088
24089 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024090 ac_ext=c
24091ac_cpp='$CPP $CPPFLAGS'
24092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24094ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024095
24096
24097# Source file extension for RC test sources.
24098ac_ext=rc
24099
24100# Object file extension for compiled RC test sources.
24101objext=o
24102objext_RC=$objext
24103
24104# Code to be used in simple compile tests
24105lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24106
24107# Code to be used in simple link tests
24108lt_simple_link_test_code="$lt_simple_compile_test_code"
24109
24110# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24111
24112# If no C compiler was specified, use CC.
24113LTCC=${LTCC-"$CC"}
24114
24115# Allow CC to be a program name with arguments.
24116compiler=$CC
24117
24118
24119# Allow CC to be a program name with arguments.
24120lt_save_CC="$CC"
24121CC=${RC-"windres"}
24122compiler=$CC
24123compiler_RC=$CC
24124lt_cv_prog_compiler_c_o_RC=yes
24125
24126# The else clause should only fire when bootstrapping the
24127# libtool distribution, otherwise you forgot to ship ltmain.sh
24128# with your package, and you will get complaints that there are
24129# no rules to generate ltmain.sh.
24130if test -f "$ltmain"; then
24131 # See if we are running on zsh, and set the options which allow our commands through
24132 # without removal of \ escapes.
24133 if test -n "${ZSH_VERSION+set}" ; then
24134 setopt NO_GLOB_SUBST
24135 fi
24136 # Now quote all the things that may contain metacharacters while being
24137 # careful not to overquote the AC_SUBSTed values. We take copies of the
24138 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24140 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24143 deplibs_check_method reload_flag reload_cmds need_locks \
24144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24145 lt_cv_sys_global_symbol_to_c_name_address \
24146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24147 old_postinstall_cmds old_postuninstall_cmds \
24148 compiler_RC \
24149 CC_RC \
24150 LD_RC \
24151 lt_prog_compiler_wl_RC \
24152 lt_prog_compiler_pic_RC \
24153 lt_prog_compiler_static_RC \
24154 lt_prog_compiler_no_builtin_flag_RC \
24155 export_dynamic_flag_spec_RC \
24156 thread_safe_flag_spec_RC \
24157 whole_archive_flag_spec_RC \
24158 enable_shared_with_static_runtimes_RC \
24159 old_archive_cmds_RC \
24160 old_archive_from_new_cmds_RC \
24161 predep_objects_RC \
24162 postdep_objects_RC \
24163 predeps_RC \
24164 postdeps_RC \
24165 compiler_lib_search_path_RC \
24166 archive_cmds_RC \
24167 archive_expsym_cmds_RC \
24168 postinstall_cmds_RC \
24169 postuninstall_cmds_RC \
24170 old_archive_from_expsyms_cmds_RC \
24171 allow_undefined_flag_RC \
24172 no_undefined_flag_RC \
24173 export_symbols_cmds_RC \
24174 hardcode_libdir_flag_spec_RC \
24175 hardcode_libdir_flag_spec_ld_RC \
24176 hardcode_libdir_separator_RC \
24177 hardcode_automatic_RC \
24178 module_cmds_RC \
24179 module_expsym_cmds_RC \
24180 lt_cv_prog_compiler_c_o_RC \
24181 exclude_expsyms_RC \
24182 include_expsyms_RC; do
24183
24184 case $var in
24185 old_archive_cmds_RC | \
24186 old_archive_from_new_cmds_RC | \
24187 archive_cmds_RC | \
24188 archive_expsym_cmds_RC | \
24189 module_cmds_RC | \
24190 module_expsym_cmds_RC | \
24191 old_archive_from_expsyms_cmds_RC | \
24192 export_symbols_cmds_RC | \
24193 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24194 postinstall_cmds | postuninstall_cmds | \
24195 old_postinstall_cmds | old_postuninstall_cmds | \
24196 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24197 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024198 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 +000024199 ;;
24200 *)
24201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24202 ;;
24203 esac
24204 done
24205
24206 case $lt_echo in
24207 *'\$0 --fallback-echo"')
24208 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24209 ;;
24210 esac
24211
24212cfgfile="$ofile"
24213
24214 cat <<__EOF__ >> "$cfgfile"
24215# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24216
24217# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24218
24219# Shell to use when invoking shell scripts.
24220SHELL=$lt_SHELL
24221
24222# Whether or not to build shared libraries.
24223build_libtool_libs=$enable_shared
24224
24225# Whether or not to build static libraries.
24226build_old_libs=$enable_static
24227
24228# Whether or not to add -lc for building shared libraries.
24229build_libtool_need_lc=$archive_cmds_need_lc_RC
24230
24231# Whether or not to disallow shared libs when runtime libs are static
24232allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24233
24234# Whether or not to optimize for fast installation.
24235fast_install=$enable_fast_install
24236
24237# The host system.
24238host_alias=$host_alias
24239host=$host
24240
24241# An echo program that does not interpret backslashes.
24242echo=$lt_echo
24243
24244# The archiver.
24245AR=$lt_AR
24246AR_FLAGS=$lt_AR_FLAGS
24247
24248# A C compiler.
24249LTCC=$lt_LTCC
24250
24251# A language-specific compiler.
24252CC=$lt_compiler_RC
24253
24254# Is the compiler the GNU C compiler?
24255with_gcc=$GCC_RC
24256
24257# An ERE matcher.
24258EGREP=$lt_EGREP
24259
24260# The linker used to build libraries.
24261LD=$lt_LD_RC
24262
24263# Whether we need hard or soft links.
24264LN_S=$lt_LN_S
24265
24266# A BSD-compatible nm program.
24267NM=$lt_NM
24268
24269# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024270STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024271
24272# Used to examine libraries when file_magic_cmd begins "file"
24273MAGIC_CMD=$MAGIC_CMD
24274
24275# Used on cygwin: DLL creation program.
24276DLLTOOL="$DLLTOOL"
24277
24278# Used on cygwin: object dumper.
24279OBJDUMP="$OBJDUMP"
24280
24281# Used on cygwin: assembler.
24282AS="$AS"
24283
24284# The name of the directory that contains temporary libtool files.
24285objdir=$objdir
24286
24287# How to create reloadable object files.
24288reload_flag=$lt_reload_flag
24289reload_cmds=$lt_reload_cmds
24290
24291# How to pass a linker flag through the compiler.
24292wl=$lt_lt_prog_compiler_wl_RC
24293
24294# Object file suffix (normally "o").
24295objext="$ac_objext"
24296
24297# Old archive suffix (normally "a").
24298libext="$libext"
24299
24300# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024301shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024302
24303# Executable file suffix (normally "").
24304exeext="$exeext"
24305
24306# Additional compiler flags for building library objects.
24307pic_flag=$lt_lt_prog_compiler_pic_RC
24308pic_mode=$pic_mode
24309
24310# What is the maximum length of a command?
24311max_cmd_len=$lt_cv_sys_max_cmd_len
24312
24313# Does compiler simultaneously support -c and -o options?
24314compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24315
24316# Must we lock files when doing compilation ?
24317need_locks=$lt_need_locks
24318
24319# Do we need the lib prefix for modules?
24320need_lib_prefix=$need_lib_prefix
24321
24322# Do we need a version for libraries?
24323need_version=$need_version
24324
24325# Whether dlopen is supported.
24326dlopen_support=$enable_dlopen
24327
24328# Whether dlopen of programs is supported.
24329dlopen_self=$enable_dlopen_self
24330
24331# Whether dlopen of statically linked programs is supported.
24332dlopen_self_static=$enable_dlopen_self_static
24333
24334# Compiler flag to prevent dynamic linking.
24335link_static_flag=$lt_lt_prog_compiler_static_RC
24336
24337# Compiler flag to turn off builtin functions.
24338no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24339
24340# Compiler flag to allow reflexive dlopens.
24341export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24342
24343# Compiler flag to generate shared objects directly from archives.
24344whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24345
24346# Compiler flag to generate thread-safe objects.
24347thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24348
24349# Library versioning type.
24350version_type=$version_type
24351
24352# Format of library name prefix.
24353libname_spec=$lt_libname_spec
24354
24355# List of archive names. First name is the real one, the rest are links.
24356# The last name is the one that the linker finds with -lNAME.
24357library_names_spec=$lt_library_names_spec
24358
24359# The coded name of the library, if different from the real name.
24360soname_spec=$lt_soname_spec
24361
24362# Commands used to build and install an old-style archive.
24363RANLIB=$lt_RANLIB
24364old_archive_cmds=$lt_old_archive_cmds_RC
24365old_postinstall_cmds=$lt_old_postinstall_cmds
24366old_postuninstall_cmds=$lt_old_postuninstall_cmds
24367
24368# Create an old-style archive from a shared archive.
24369old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24370
24371# Create a temporary old-style archive to link instead of a shared archive.
24372old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24373
24374# Commands used to build and install a shared archive.
24375archive_cmds=$lt_archive_cmds_RC
24376archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24377postinstall_cmds=$lt_postinstall_cmds
24378postuninstall_cmds=$lt_postuninstall_cmds
24379
24380# Commands used to build a loadable module (assumed same as above if empty)
24381module_cmds=$lt_module_cmds_RC
24382module_expsym_cmds=$lt_module_expsym_cmds_RC
24383
24384# Commands to strip libraries.
24385old_striplib=$lt_old_striplib
24386striplib=$lt_striplib
24387
24388# Dependencies to place before the objects being linked to create a
24389# shared library.
24390predep_objects=$lt_predep_objects_RC
24391
24392# Dependencies to place after the objects being linked to create a
24393# shared library.
24394postdep_objects=$lt_postdep_objects_RC
24395
24396# Dependencies to place before the objects being linked to create a
24397# shared library.
24398predeps=$lt_predeps_RC
24399
24400# Dependencies to place after the objects being linked to create a
24401# shared library.
24402postdeps=$lt_postdeps_RC
24403
24404# The library search path used internally by the compiler when linking
24405# a shared library.
24406compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24407
24408# Method to check whether dependent libraries are shared objects.
24409deplibs_check_method=$lt_deplibs_check_method
24410
24411# Command to use when deplibs_check_method == file_magic.
24412file_magic_cmd=$lt_file_magic_cmd
24413
24414# Flag that allows shared libraries with undefined symbols to be built.
24415allow_undefined_flag=$lt_allow_undefined_flag_RC
24416
24417# Flag that forces no undefined symbols.
24418no_undefined_flag=$lt_no_undefined_flag_RC
24419
24420# Commands used to finish a libtool library installation in a directory.
24421finish_cmds=$lt_finish_cmds
24422
24423# Same as above, but a single script fragment to be evaled but not shown.
24424finish_eval=$lt_finish_eval
24425
24426# Take the output of nm and produce a listing of raw symbols and C names.
24427global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24428
24429# Transform the output of nm in a proper C declaration
24430global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24431
24432# Transform the output of nm in a C name address pair
24433global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24434
24435# This is the shared library runtime path variable.
24436runpath_var=$runpath_var
24437
24438# This is the shared library path variable.
24439shlibpath_var=$shlibpath_var
24440
24441# Is shlibpath searched before the hard-coded library search path?
24442shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24443
24444# How to hardcode a shared library path into an executable.
24445hardcode_action=$hardcode_action_RC
24446
24447# Whether we should hardcode library paths into libraries.
24448hardcode_into_libs=$hardcode_into_libs
24449
24450# Flag to hardcode \$libdir into a binary during linking.
24451# This must work even if \$libdir does not exist.
24452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24453
24454# If ld is used when linking, flag to hardcode \$libdir into
24455# a binary during linking. This must work even if \$libdir does
24456# not exist.
24457hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24458
24459# Whether we need a single -rpath flag with a separated argument.
24460hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24461
24462# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24463# resulting binary.
24464hardcode_direct=$hardcode_direct_RC
24465
24466# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24467# resulting binary.
24468hardcode_minus_L=$hardcode_minus_L_RC
24469
24470# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24471# the resulting binary.
24472hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24473
24474# Set to yes if building a shared library automatically hardcodes DIR into the library
24475# and all subsequent libraries and executables linked against it.
24476hardcode_automatic=$hardcode_automatic_RC
24477
24478# Variables whose values should be saved in libtool wrapper scripts and
24479# restored at relink time.
24480variables_saved_for_relink="$variables_saved_for_relink"
24481
24482# Whether libtool must link a program against all its dependency libraries.
24483link_all_deplibs=$link_all_deplibs_RC
24484
24485# Compile-time system search path for libraries
24486sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24487
24488# Run-time system search path for libraries
24489sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24490
24491# Fix the shell variable \$srcfile for the compiler.
24492fix_srcfile_path="$fix_srcfile_path_RC"
24493
24494# Set to yes if exported symbols are required.
24495always_export_symbols=$always_export_symbols_RC
24496
24497# The commands to list exported symbols.
24498export_symbols_cmds=$lt_export_symbols_cmds_RC
24499
24500# The commands to extract the exported symbol list from a shared archive.
24501extract_expsyms_cmds=$lt_extract_expsyms_cmds
24502
24503# Symbols that should not be listed in the preloaded symbols.
24504exclude_expsyms=$lt_exclude_expsyms_RC
24505
24506# Symbols that must always be exported.
24507include_expsyms=$lt_include_expsyms_RC
24508
24509# ### END LIBTOOL TAG CONFIG: $tagname
24510
24511__EOF__
24512
24513
24514else
24515 # If there is no Makefile yet, we rely on a make rule to execute
24516 # `config.status --recheck' to rerun these tests and create the
24517 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024518 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24519 if test -f "$ltmain_in"; then
24520 test -f Makefile && make "$ltmain"
24521 fi
John Criswell47fdd832003-07-14 16:52:07 +000024522fi
24523
24524
24525ac_ext=c
24526ac_cpp='$CPP $CPPFLAGS'
24527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24529ac_compiler_gnu=$ac_cv_c_compiler_gnu
24530
24531CC="$lt_save_CC"
24532
24533 ;;
24534
24535 *)
24536 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24537echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24538 { (exit 1); exit 1; }; }
24539 ;;
24540 esac
24541
24542 # Append the new tag name to the list of available tags.
24543 if test -n "$tagname" ; then
24544 available_tags="$available_tags $tagname"
24545 fi
24546 fi
24547 done
24548 IFS="$lt_save_ifs"
24549
24550 # Now substitute the updated list of available tags.
24551 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24552 mv "${ofile}T" "$ofile"
24553 chmod +x "$ofile"
24554 else
24555 rm -f "${ofile}T"
24556 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24557echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24558 { (exit 1); exit 1; }; }
24559 fi
24560fi
John Criswell7a73b802003-06-30 21:59:07 +000024561
24562
24563
24564# This can be used to rebuild libtool when needed
24565LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24566
24567# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024568LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024569
24570# Prevent multiple expansion
24571
24572
24573
John Criswell47fdd832003-07-14 16:52:07 +000024574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024591
Reid Spencer582a23c2004-12-29 07:07:57 +000024592if test "$lt_cv_dlopen_self" = "yes" ; then
24593
24594cat >>confdefs.h <<\_ACEOF
24595#define CAN_DLOPEN_SELF 1
24596_ACEOF
24597
24598fi
24599
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024600etags_version=`$ETAGS --version 2>&1`
24601case "$etags_version" in
24602 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24603 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24604 *) ETAGSFLAGS="" ;;
24605esac
24606ETAGSFLAGS=$ETAGSFLAGS
24607
24608
Reid Spencer7931a782004-12-27 06:15:02 +000024609if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencer59473af2004-12-25 07:31:29 +000024610 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24611set dummy llvm-gcc; ac_word=$2
24612echo "$as_me:$LINENO: checking for $ac_word" >&5
24613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24614if test "${ac_cv_path_LLVMGCC+set}" = set; then
24615 echo $ECHO_N "(cached) $ECHO_C" >&6
24616else
24617 case $LLVMGCC in
24618 [\\/]* | ?:[\\/]*)
24619 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24620 ;;
24621 *)
24622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24623for as_dir in $PATH
24624do
24625 IFS=$as_save_IFS
24626 test -z "$as_dir" && as_dir=.
24627 for ac_exec_ext in '' $ac_executable_extensions; do
24628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24629 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24631 break 2
24632 fi
24633done
24634done
24635
24636 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24637 ;;
24638esac
24639fi
24640LLVMGCC=$ac_cv_path_LLVMGCC
24641
24642if test -n "$LLVMGCC"; then
24643 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24644echo "${ECHO_T}$LLVMGCC" >&6
24645else
24646 echo "$as_me:$LINENO: result: no" >&5
24647echo "${ECHO_T}no" >&6
24648fi
24649
24650 # Extract the first word of "llvm-g++", so it can be a program name with args.
24651set dummy llvm-g++; ac_word=$2
24652echo "$as_me:$LINENO: checking for $ac_word" >&5
24653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24654if test "${ac_cv_path_LLVMGXX+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24656else
24657 case $LLVMGXX in
24658 [\\/]* | ?:[\\/]*)
24659 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24660 ;;
24661 *)
24662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24663for as_dir in $PATH
24664do
24665 IFS=$as_save_IFS
24666 test -z "$as_dir" && as_dir=.
24667 for ac_exec_ext in '' $ac_executable_extensions; do
24668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24669 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24671 break 2
24672 fi
24673done
24674done
24675
24676 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24677 ;;
24678esac
24679fi
24680LLVMGXX=$ac_cv_path_LLVMGXX
24681
24682if test -n "$LLVMGXX"; then
24683 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24684echo "${ECHO_T}$LLVMGXX" >&6
24685else
24686 echo "$as_me:$LINENO: result: no" >&5
24687echo "${ECHO_T}no" >&6
24688fi
24689
24690else
24691 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24692 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24693 LLVMGCC=$LLVMGCC
24694
24695 LLVMGXX=$LLVMGXX
24696
24697fi
24698
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024699echo "$as_me:$LINENO: checking tool compatibility" >&5
24700echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24701
Reid Spencer86901802004-12-08 23:07:27 +000024702ICC=no
24703IXX=no
24704case $CC in
24705 icc*|icpc*)
24706 ICC=yes
24707 IXX=yes
24708 ;;
24709 *)
24710 ;;
24711esac
24712
24713if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024714then
Reid Spencer86901802004-12-08 23:07:27 +000024715 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24716echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024717 { (exit 1); exit 1; }; }
24718fi
24719
Reid Spencer86901802004-12-08 23:07:27 +000024720if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024721then
Reid Spencer86901802004-12-08 23:07:27 +000024722 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24723echo "$as_me: error: g++|icc required but not found" >&2;}
24724 { (exit 1); exit 1; }; }
24725fi
24726
24727if test "$GCC" = "yes"
24728then
24729 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24730 if test "$gccmajor" -lt "3"
24731 then
24732 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024733echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24734 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024735 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024736fi
24737
24738if test -z "$llvm_cv_gnu_make_command"
24739then
24740 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24741echo "$as_me: error: GNU Make required but not found" >&2;}
24742 { (exit 1); exit 1; }; }
24743fi
24744
24745echo "$as_me:$LINENO: result: ok" >&5
24746echo "${ECHO_T}ok" >&6
24747
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024748
John Criswell7a73b802003-06-30 21:59:07 +000024749
John Criswell7a73b802003-06-30 21:59:07 +000024750echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24751echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24752if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24754else
24755 ac_check_lib_save_LIBS=$LIBS
24756LIBS="-lelf $LIBS"
24757cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024758/* confdefs.h. */
24759_ACEOF
24760cat confdefs.h >>conftest.$ac_ext
24761cat >>conftest.$ac_ext <<_ACEOF
24762/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024763
24764/* Override any gcc2 internal prototype to avoid an error. */
24765#ifdef __cplusplus
24766extern "C"
24767#endif
24768/* We use char because int might match the return type of a gcc2
24769 builtin and then its argument prototype would still apply. */
24770char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024771int
24772main ()
24773{
24774elf_begin ();
24775 ;
24776 return 0;
24777}
24778_ACEOF
24779rm -f conftest.$ac_objext conftest$ac_exeext
24780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024781 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024782 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024783 grep -v '^ *+' conftest.er1 >conftest.err
24784 rm -f conftest.er1
24785 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024788 { ac_try='test -z "$ac_c_werror_flag"
24789 || test ! -s conftest.err'
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; } &&
24795 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_lib_elf_elf_begin=yes
24802else
24803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024804sed 's/^/| /' conftest.$ac_ext >&5
24805
John Criswell7a73b802003-06-30 21:59:07 +000024806ac_cv_lib_elf_elf_begin=no
24807fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024808rm -f conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024810LIBS=$ac_check_lib_save_LIBS
24811fi
24812echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24813echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24814if test $ac_cv_lib_elf_elf_begin = yes; then
24815 cat >>confdefs.h <<_ACEOF
24816#define HAVE_LIBELF 1
24817_ACEOF
24818
24819 LIBS="-lelf $LIBS"
24820
24821fi
24822
24823
Reid Spencer17795972004-11-18 09:47:37 +000024824echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24825echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24826if test "${ac_cv_search_lt_dlopen+set}" = set; then
24827 echo $ECHO_N "(cached) $ECHO_C" >&6
24828else
24829 ac_func_search_save_LIBS=$LIBS
24830ac_cv_search_lt_dlopen=no
24831cat >conftest.$ac_ext <<_ACEOF
24832/* confdefs.h. */
24833_ACEOF
24834cat confdefs.h >>conftest.$ac_ext
24835cat >>conftest.$ac_ext <<_ACEOF
24836/* end confdefs.h. */
24837
24838/* Override any gcc2 internal prototype to avoid an error. */
24839#ifdef __cplusplus
24840extern "C"
24841#endif
24842/* We use char because int might match the return type of a gcc2
24843 builtin and then its argument prototype would still apply. */
24844char lt_dlopen ();
24845int
24846main ()
24847{
24848lt_dlopen ();
24849 ;
24850 return 0;
24851}
24852_ACEOF
24853rm -f conftest.$ac_objext conftest$ac_exeext
24854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24855 (eval $ac_link) 2>conftest.er1
24856 ac_status=$?
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } &&
24862 { ac_try='test -z "$ac_c_werror_flag"
24863 || test ! -s conftest.err'
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24866 ac_status=$?
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest$ac_exeext'
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 ac_cv_search_lt_dlopen="none required"
24876else
24877 echo "$as_me: failed program was:" >&5
24878sed 's/^/| /' conftest.$ac_ext >&5
24879
24880fi
24881rm -f conftest.err conftest.$ac_objext \
24882 conftest$ac_exeext conftest.$ac_ext
24883if test "$ac_cv_search_lt_dlopen" = no; then
24884 for ac_lib in ltdl; do
24885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24886 cat >conftest.$ac_ext <<_ACEOF
24887/* confdefs.h. */
24888_ACEOF
24889cat confdefs.h >>conftest.$ac_ext
24890cat >>conftest.$ac_ext <<_ACEOF
24891/* end confdefs.h. */
24892
24893/* Override any gcc2 internal prototype to avoid an error. */
24894#ifdef __cplusplus
24895extern "C"
24896#endif
24897/* We use char because int might match the return type of a gcc2
24898 builtin and then its argument prototype would still apply. */
24899char lt_dlopen ();
24900int
24901main ()
24902{
24903lt_dlopen ();
24904 ;
24905 return 0;
24906}
24907_ACEOF
24908rm -f conftest.$ac_objext conftest$ac_exeext
24909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24910 (eval $ac_link) 2>conftest.er1
24911 ac_status=$?
24912 grep -v '^ *+' conftest.er1 >conftest.err
24913 rm -f conftest.er1
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } &&
24917 { ac_try='test -z "$ac_c_werror_flag"
24918 || test ! -s conftest.err'
24919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24920 (eval $ac_try) 2>&5
24921 ac_status=$?
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); }; } &&
24924 { ac_try='test -s conftest$ac_exeext'
24925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24926 (eval $ac_try) 2>&5
24927 ac_status=$?
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); }; }; then
24930 ac_cv_search_lt_dlopen="-l$ac_lib"
24931break
24932else
24933 echo "$as_me: failed program was:" >&5
24934sed 's/^/| /' conftest.$ac_ext >&5
24935
24936fi
24937rm -f conftest.err conftest.$ac_objext \
24938 conftest$ac_exeext conftest.$ac_ext
24939 done
24940fi
24941LIBS=$ac_func_search_save_LIBS
24942fi
24943echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24944echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24945if test "$ac_cv_search_lt_dlopen" != no; then
24946 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24947
24948cat >>confdefs.h <<\_ACEOF
24949#define HAVE_LT_DLOPEN 1
24950_ACEOF
24951
24952else
24953 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24954 not be available" >&5
24955echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24956 not be available" >&2;}
24957fi
24958
24959
John Criswell7a73b802003-06-30 21:59:07 +000024960echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24961echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24962if test "${ac_cv_search_dlopen+set}" = set; then
24963 echo $ECHO_N "(cached) $ECHO_C" >&6
24964else
24965 ac_func_search_save_LIBS=$LIBS
24966ac_cv_search_dlopen=no
24967cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024968/* confdefs.h. */
24969_ACEOF
24970cat confdefs.h >>conftest.$ac_ext
24971cat >>conftest.$ac_ext <<_ACEOF
24972/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024973
24974/* Override any gcc2 internal prototype to avoid an error. */
24975#ifdef __cplusplus
24976extern "C"
24977#endif
24978/* We use char because int might match the return type of a gcc2
24979 builtin and then its argument prototype would still apply. */
24980char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024981int
24982main ()
24983{
24984dlopen ();
24985 ;
24986 return 0;
24987}
24988_ACEOF
24989rm -f conftest.$ac_objext conftest$ac_exeext
24990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024991 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024992 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024993 grep -v '^ *+' conftest.er1 >conftest.err
24994 rm -f conftest.er1
24995 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024998 { ac_try='test -z "$ac_c_werror_flag"
24999 || test ! -s conftest.err'
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25008 ac_status=$?
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; }; then
25011 ac_cv_search_dlopen="none required"
25012else
25013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025014sed 's/^/| /' conftest.$ac_ext >&5
25015
John Criswell7a73b802003-06-30 21:59:07 +000025016fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025017rm -f conftest.err conftest.$ac_objext \
25018 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025019if test "$ac_cv_search_dlopen" = no; then
25020 for ac_lib in dl; do
25021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025023/* confdefs.h. */
25024_ACEOF
25025cat confdefs.h >>conftest.$ac_ext
25026cat >>conftest.$ac_ext <<_ACEOF
25027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025028
25029/* Override any gcc2 internal prototype to avoid an error. */
25030#ifdef __cplusplus
25031extern "C"
25032#endif
25033/* We use char because int might match the return type of a gcc2
25034 builtin and then its argument prototype would still apply. */
25035char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025036int
25037main ()
25038{
25039dlopen ();
25040 ;
25041 return 0;
25042}
25043_ACEOF
25044rm -f conftest.$ac_objext conftest$ac_exeext
25045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025046 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025048 grep -v '^ *+' conftest.er1 >conftest.err
25049 rm -f conftest.er1
25050 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025053 { ac_try='test -z "$ac_c_werror_flag"
25054 || test ! -s conftest.err'
25055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25056 (eval $ac_try) 2>&5
25057 ac_status=$?
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); }; } &&
25060 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062 (eval $ac_try) 2>&5
25063 ac_status=$?
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; }; then
25066 ac_cv_search_dlopen="-l$ac_lib"
25067break
25068else
25069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025070sed 's/^/| /' conftest.$ac_ext >&5
25071
John Criswell7a73b802003-06-30 21:59:07 +000025072fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025073rm -f conftest.err conftest.$ac_objext \
25074 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025075 done
25076fi
25077LIBS=$ac_func_search_save_LIBS
25078fi
25079echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25080echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25081if test "$ac_cv_search_dlopen" != no; then
25082 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025083
25084cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025085#define HAVE_DLOPEN 1
25086_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025087
25088else
Brian Gaekec45be042003-10-07 06:01:34 +000025089 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25090echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025091fi
25092
25093
25094echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25095echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25096if test "${ac_cv_search_mallinfo+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098else
25099 ac_func_search_save_LIBS=$LIBS
25100ac_cv_search_mallinfo=no
25101cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025102/* confdefs.h. */
25103_ACEOF
25104cat confdefs.h >>conftest.$ac_ext
25105cat >>conftest.$ac_ext <<_ACEOF
25106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025107
25108/* Override any gcc2 internal prototype to avoid an error. */
25109#ifdef __cplusplus
25110extern "C"
25111#endif
25112/* We use char because int might match the return type of a gcc2
25113 builtin and then its argument prototype would still apply. */
25114char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025115int
25116main ()
25117{
25118mallinfo ();
25119 ;
25120 return 0;
25121}
25122_ACEOF
25123rm -f conftest.$ac_objext conftest$ac_exeext
25124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025125 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025126 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025132 { ac_try='test -z "$ac_c_werror_flag"
25133 || test ! -s conftest.err'
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 ac_cv_search_mallinfo="none required"
25146else
25147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025148sed 's/^/| /' conftest.$ac_ext >&5
25149
John Criswell7a73b802003-06-30 21:59:07 +000025150fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025151rm -f conftest.err conftest.$ac_objext \
25152 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025153if test "$ac_cv_search_mallinfo" = no; then
25154 for ac_lib in malloc; do
25155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25156 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025157/* confdefs.h. */
25158_ACEOF
25159cat confdefs.h >>conftest.$ac_ext
25160cat >>conftest.$ac_ext <<_ACEOF
25161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025162
25163/* Override any gcc2 internal prototype to avoid an error. */
25164#ifdef __cplusplus
25165extern "C"
25166#endif
25167/* We use char because int might match the return type of a gcc2
25168 builtin and then its argument prototype would still apply. */
25169char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025170int
25171main ()
25172{
25173mallinfo ();
25174 ;
25175 return 0;
25176}
25177_ACEOF
25178rm -f conftest.$ac_objext conftest$ac_exeext
25179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025180 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025181 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025182 grep -v '^ *+' conftest.er1 >conftest.err
25183 rm -f conftest.er1
25184 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025187 { ac_try='test -z "$ac_c_werror_flag"
25188 || test ! -s conftest.err'
25189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190 (eval $ac_try) 2>&5
25191 ac_status=$?
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); }; } &&
25194 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25197 ac_status=$?
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; }; then
25200 ac_cv_search_mallinfo="-l$ac_lib"
25201break
25202else
25203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025204sed 's/^/| /' conftest.$ac_ext >&5
25205
John Criswell7a73b802003-06-30 21:59:07 +000025206fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025207rm -f conftest.err conftest.$ac_objext \
25208 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025209 done
25210fi
25211LIBS=$ac_func_search_save_LIBS
25212fi
25213echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25214echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25215if test "$ac_cv_search_mallinfo" != no; then
25216 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025217
25218cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025219#define HAVE_MALLINFO 1
25220_ACEOF
25221
25222fi
25223
25224
Brian Gaeke5f268f72003-12-05 19:29:01 +000025225echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25226echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25227if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25228 echo $ECHO_N "(cached) $ECHO_C" >&6
25229else
25230 ac_func_search_save_LIBS=$LIBS
25231ac_cv_search_pthread_mutex_lock=no
25232cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025233/* confdefs.h. */
25234_ACEOF
25235cat confdefs.h >>conftest.$ac_ext
25236cat >>conftest.$ac_ext <<_ACEOF
25237/* end confdefs.h. */
25238
25239/* Override any gcc2 internal prototype to avoid an error. */
25240#ifdef __cplusplus
25241extern "C"
25242#endif
25243/* We use char because int might match the return type of a gcc2
25244 builtin and then its argument prototype would still apply. */
25245char pthread_mutex_lock ();
25246int
25247main ()
25248{
25249pthread_mutex_lock ();
25250 ;
25251 return 0;
25252}
25253_ACEOF
25254rm -f conftest.$ac_objext conftest$ac_exeext
25255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025256 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025258 grep -v '^ *+' conftest.er1 >conftest.err
25259 rm -f conftest.er1
25260 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025263 { ac_try='test -z "$ac_c_werror_flag"
25264 || test ! -s conftest.err'
25265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25267 ac_status=$?
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }; } &&
25270 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272 (eval $ac_try) 2>&5
25273 ac_status=$?
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; }; then
25276 ac_cv_search_pthread_mutex_lock="none required"
25277else
25278 echo "$as_me: failed program was:" >&5
25279sed 's/^/| /' conftest.$ac_ext >&5
25280
25281fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025282rm -f conftest.err conftest.$ac_objext \
25283 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025284if test "$ac_cv_search_pthread_mutex_lock" = no; then
25285 for ac_lib in pthread; do
25286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25287 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025288/* confdefs.h. */
25289_ACEOF
25290cat confdefs.h >>conftest.$ac_ext
25291cat >>conftest.$ac_ext <<_ACEOF
25292/* end confdefs.h. */
25293
25294/* Override any gcc2 internal prototype to avoid an error. */
25295#ifdef __cplusplus
25296extern "C"
25297#endif
25298/* We use char because int might match the return type of a gcc2
25299 builtin and then its argument prototype would still apply. */
25300char pthread_mutex_lock ();
25301int
25302main ()
25303{
25304pthread_mutex_lock ();
25305 ;
25306 return 0;
25307}
25308_ACEOF
25309rm -f conftest.$ac_objext conftest$ac_exeext
25310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025311 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025312 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025313 grep -v '^ *+' conftest.er1 >conftest.err
25314 rm -f conftest.er1
25315 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025318 { ac_try='test -z "$ac_c_werror_flag"
25319 || test ! -s conftest.err'
25320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); }; } &&
25325 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327 (eval $ac_try) 2>&5
25328 ac_status=$?
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); }; }; then
25331 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25332break
25333else
25334 echo "$as_me: failed program was:" >&5
25335sed 's/^/| /' conftest.$ac_ext >&5
25336
25337fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025338rm -f conftest.err conftest.$ac_objext \
25339 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025340 done
25341fi
25342LIBS=$ac_func_search_save_LIBS
25343fi
25344echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25345echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25346if test "$ac_cv_search_pthread_mutex_lock" != no; then
25347 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025348
John Criswell40468462004-09-24 21:19:06 +000025349cat >>confdefs.h <<\_ACEOF
25350#define HAVE_PTHREAD_MUTEX_LOCK 1
25351_ACEOF
25352
25353fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025354
Brian Gaekec9a410c2004-02-23 21:30:37 +000025355
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025356
Reid Spencer59473af2004-12-25 07:31:29 +000025357
25358
25359
25360
25361
25362ac_header_dirent=no
25363for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25364 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25365echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25366echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25367if eval "test \"\${$as_ac_Header+set}\" = set"; then
25368 echo $ECHO_N "(cached) $ECHO_C" >&6
25369else
25370 cat >conftest.$ac_ext <<_ACEOF
25371/* confdefs.h. */
25372_ACEOF
25373cat confdefs.h >>conftest.$ac_ext
25374cat >>conftest.$ac_ext <<_ACEOF
25375/* end confdefs.h. */
25376#include <sys/types.h>
25377#include <$ac_hdr>
25378
25379int
25380main ()
25381{
25382if ((DIR *) 0)
25383return 0;
25384 ;
25385 return 0;
25386}
25387_ACEOF
25388rm -f conftest.$ac_objext
25389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25390 (eval $ac_compile) 2>conftest.er1
25391 ac_status=$?
25392 grep -v '^ *+' conftest.er1 >conftest.err
25393 rm -f conftest.er1
25394 cat conftest.err >&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } &&
25397 { ac_try='test -z "$ac_c_werror_flag"
25398 || test ! -s conftest.err'
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest.$ac_objext'
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 eval "$as_ac_Header=yes"
25411else
25412 echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415eval "$as_ac_Header=no"
25416fi
25417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25418fi
25419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25421if test `eval echo '${'$as_ac_Header'}'` = yes; then
25422 cat >>confdefs.h <<_ACEOF
25423#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25424_ACEOF
25425
25426ac_header_dirent=$ac_hdr; break
25427fi
25428
25429done
25430# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25431if test $ac_header_dirent = dirent.h; then
25432 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25433echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25434if test "${ac_cv_search_opendir+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25436else
25437 ac_func_search_save_LIBS=$LIBS
25438ac_cv_search_opendir=no
25439cat >conftest.$ac_ext <<_ACEOF
25440/* confdefs.h. */
25441_ACEOF
25442cat confdefs.h >>conftest.$ac_ext
25443cat >>conftest.$ac_ext <<_ACEOF
25444/* end confdefs.h. */
25445
25446/* Override any gcc2 internal prototype to avoid an error. */
25447#ifdef __cplusplus
25448extern "C"
25449#endif
25450/* We use char because int might match the return type of a gcc2
25451 builtin and then its argument prototype would still apply. */
25452char opendir ();
25453int
25454main ()
25455{
25456opendir ();
25457 ;
25458 return 0;
25459}
25460_ACEOF
25461rm -f conftest.$ac_objext conftest$ac_exeext
25462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25463 (eval $ac_link) 2>conftest.er1
25464 ac_status=$?
25465 grep -v '^ *+' conftest.er1 >conftest.err
25466 rm -f conftest.er1
25467 cat conftest.err >&5
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } &&
25470 { ac_try='test -z "$ac_c_werror_flag"
25471 || test ! -s conftest.err'
25472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; } &&
25477 { ac_try='test -s conftest$ac_exeext'
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; }; then
25483 ac_cv_search_opendir="none required"
25484else
25485 echo "$as_me: failed program was:" >&5
25486sed 's/^/| /' conftest.$ac_ext >&5
25487
25488fi
25489rm -f conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
25491if test "$ac_cv_search_opendir" = no; then
25492 for ac_lib in dir; do
25493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25494 cat >conftest.$ac_ext <<_ACEOF
25495/* confdefs.h. */
25496_ACEOF
25497cat confdefs.h >>conftest.$ac_ext
25498cat >>conftest.$ac_ext <<_ACEOF
25499/* end confdefs.h. */
25500
25501/* Override any gcc2 internal prototype to avoid an error. */
25502#ifdef __cplusplus
25503extern "C"
25504#endif
25505/* We use char because int might match the return type of a gcc2
25506 builtin and then its argument prototype would still apply. */
25507char opendir ();
25508int
25509main ()
25510{
25511opendir ();
25512 ;
25513 return 0;
25514}
25515_ACEOF
25516rm -f conftest.$ac_objext conftest$ac_exeext
25517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25518 (eval $ac_link) 2>conftest.er1
25519 ac_status=$?
25520 grep -v '^ *+' conftest.er1 >conftest.err
25521 rm -f conftest.er1
25522 cat conftest.err >&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } &&
25525 { ac_try='test -z "$ac_c_werror_flag"
25526 || test ! -s conftest.err'
25527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; } &&
25532 { ac_try='test -s conftest$ac_exeext'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; }; then
25538 ac_cv_search_opendir="-l$ac_lib"
25539break
25540else
25541 echo "$as_me: failed program was:" >&5
25542sed 's/^/| /' conftest.$ac_ext >&5
25543
25544fi
25545rm -f conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
25547 done
25548fi
25549LIBS=$ac_func_search_save_LIBS
25550fi
25551echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25552echo "${ECHO_T}$ac_cv_search_opendir" >&6
25553if test "$ac_cv_search_opendir" != no; then
25554 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25555
25556fi
25557
25558else
25559 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25560echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25561if test "${ac_cv_search_opendir+set}" = set; then
25562 echo $ECHO_N "(cached) $ECHO_C" >&6
25563else
25564 ac_func_search_save_LIBS=$LIBS
25565ac_cv_search_opendir=no
25566cat >conftest.$ac_ext <<_ACEOF
25567/* confdefs.h. */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h. */
25572
25573/* Override any gcc2 internal prototype to avoid an error. */
25574#ifdef __cplusplus
25575extern "C"
25576#endif
25577/* We use char because int might match the return type of a gcc2
25578 builtin and then its argument prototype would still apply. */
25579char opendir ();
25580int
25581main ()
25582{
25583opendir ();
25584 ;
25585 return 0;
25586}
25587_ACEOF
25588rm -f conftest.$ac_objext conftest$ac_exeext
25589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25590 (eval $ac_link) 2>conftest.er1
25591 ac_status=$?
25592 grep -v '^ *+' conftest.er1 >conftest.err
25593 rm -f conftest.er1
25594 cat conftest.err >&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } &&
25597 { ac_try='test -z "$ac_c_werror_flag"
25598 || test ! -s conftest.err'
25599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); }; } &&
25604 { ac_try='test -s conftest$ac_exeext'
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; }; then
25610 ac_cv_search_opendir="none required"
25611else
25612 echo "$as_me: failed program was:" >&5
25613sed 's/^/| /' conftest.$ac_ext >&5
25614
25615fi
25616rm -f conftest.err conftest.$ac_objext \
25617 conftest$ac_exeext conftest.$ac_ext
25618if test "$ac_cv_search_opendir" = no; then
25619 for ac_lib in x; do
25620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25621 cat >conftest.$ac_ext <<_ACEOF
25622/* confdefs.h. */
25623_ACEOF
25624cat confdefs.h >>conftest.$ac_ext
25625cat >>conftest.$ac_ext <<_ACEOF
25626/* end confdefs.h. */
25627
25628/* Override any gcc2 internal prototype to avoid an error. */
25629#ifdef __cplusplus
25630extern "C"
25631#endif
25632/* We use char because int might match the return type of a gcc2
25633 builtin and then its argument prototype would still apply. */
25634char opendir ();
25635int
25636main ()
25637{
25638opendir ();
25639 ;
25640 return 0;
25641}
25642_ACEOF
25643rm -f conftest.$ac_objext conftest$ac_exeext
25644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25645 (eval $ac_link) 2>conftest.er1
25646 ac_status=$?
25647 grep -v '^ *+' conftest.er1 >conftest.err
25648 rm -f conftest.er1
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } &&
25652 { ac_try='test -z "$ac_c_werror_flag"
25653 || test ! -s conftest.err'
25654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25655 (eval $ac_try) 2>&5
25656 ac_status=$?
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); }; } &&
25659 { ac_try='test -s conftest$ac_exeext'
25660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); }; }; then
25665 ac_cv_search_opendir="-l$ac_lib"
25666break
25667else
25668 echo "$as_me: failed program was:" >&5
25669sed 's/^/| /' conftest.$ac_ext >&5
25670
25671fi
25672rm -f conftest.err conftest.$ac_objext \
25673 conftest$ac_exeext conftest.$ac_ext
25674 done
25675fi
25676LIBS=$ac_func_search_save_LIBS
25677fi
25678echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25679echo "${ECHO_T}$ac_cv_search_opendir" >&6
25680if test "$ac_cv_search_opendir" != no; then
25681 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25682
25683fi
25684
25685fi
25686
25687echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25688echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25689if test "${ac_cv_header_mmap_anon+set}" = set; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25691else
25692 ac_ext=c
25693ac_cpp='$CPP $CPPFLAGS'
25694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25696ac_compiler_gnu=$ac_cv_c_compiler_gnu
25697
25698 cat >conftest.$ac_ext <<_ACEOF
25699/* confdefs.h. */
25700_ACEOF
25701cat confdefs.h >>conftest.$ac_ext
25702cat >>conftest.$ac_ext <<_ACEOF
25703/* end confdefs.h. */
25704#include <sys/mman.h>
25705#include <unistd.h>
25706#include <fcntl.h>
25707int
25708main ()
25709{
25710mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25711 ;
25712 return 0;
25713}
25714_ACEOF
25715rm -f conftest.$ac_objext
25716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25717 (eval $ac_compile) 2>conftest.er1
25718 ac_status=$?
25719 grep -v '^ *+' conftest.er1 >conftest.err
25720 rm -f conftest.er1
25721 cat conftest.err >&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } &&
25724 { ac_try='test -z "$ac_c_werror_flag"
25725 || test ! -s conftest.err'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; } &&
25731 { ac_try='test -s conftest.$ac_objext'
25732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); }; }; then
25737 ac_cv_header_mmap_anon=yes
25738else
25739 echo "$as_me: failed program was:" >&5
25740sed 's/^/| /' conftest.$ac_ext >&5
25741
25742ac_cv_header_mmap_anon=no
25743fi
25744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25745 ac_ext=c
25746ac_cpp='$CPP $CPPFLAGS'
25747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25749ac_compiler_gnu=$ac_cv_c_compiler_gnu
25750
25751
25752fi
25753echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25754echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25755if test "$ac_cv_header_mmap_anon" = yes; then
25756
25757cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025758#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025759_ACEOF
25760
25761fi
25762
25763echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25764echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25765if test "${ac_cv_header_stat_broken+set}" = set; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
25767else
25768 cat >conftest.$ac_ext <<_ACEOF
25769/* confdefs.h. */
25770_ACEOF
25771cat confdefs.h >>conftest.$ac_ext
25772cat >>conftest.$ac_ext <<_ACEOF
25773/* end confdefs.h. */
25774#include <sys/types.h>
25775#include <sys/stat.h>
25776
25777#if defined(S_ISBLK) && defined(S_IFDIR)
25778# if S_ISBLK (S_IFDIR)
25779You lose.
25780# endif
25781#endif
25782
25783#if defined(S_ISBLK) && defined(S_IFCHR)
25784# if S_ISBLK (S_IFCHR)
25785You lose.
25786# endif
25787#endif
25788
25789#if defined(S_ISLNK) && defined(S_IFREG)
25790# if S_ISLNK (S_IFREG)
25791You lose.
25792# endif
25793#endif
25794
25795#if defined(S_ISSOCK) && defined(S_IFREG)
25796# if S_ISSOCK (S_IFREG)
25797You lose.
25798# endif
25799#endif
25800
25801_ACEOF
25802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25803 $EGREP "You lose" >/dev/null 2>&1; then
25804 ac_cv_header_stat_broken=yes
25805else
25806 ac_cv_header_stat_broken=no
25807fi
25808rm -f conftest*
25809
25810fi
25811echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25812echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25813if test $ac_cv_header_stat_broken = yes; then
25814
25815cat >>confdefs.h <<\_ACEOF
25816#define STAT_MACROS_BROKEN 1
25817_ACEOF
25818
25819fi
25820
John Criswell7a73b802003-06-30 21:59:07 +000025821echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25822echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25823if test "${ac_cv_header_stdc+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25825else
25826 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025827/* confdefs.h. */
25828_ACEOF
25829cat confdefs.h >>conftest.$ac_ext
25830cat >>conftest.$ac_ext <<_ACEOF
25831/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025832#include <stdlib.h>
25833#include <stdarg.h>
25834#include <string.h>
25835#include <float.h>
25836
John Criswell0c38eaf2003-09-10 15:17:25 +000025837int
25838main ()
25839{
25840
25841 ;
25842 return 0;
25843}
John Criswell7a73b802003-06-30 21:59:07 +000025844_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025845rm -f conftest.$ac_objext
25846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025847 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025848 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025849 grep -v '^ *+' conftest.er1 >conftest.err
25850 rm -f conftest.er1
25851 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025853 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025854 { ac_try='test -z "$ac_c_werror_flag"
25855 || test ! -s conftest.err'
25856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25857 (eval $ac_try) 2>&5
25858 ac_status=$?
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); }; } &&
25861 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25864 ac_status=$?
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025867 ac_cv_header_stdc=yes
25868else
25869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025870sed 's/^/| /' conftest.$ac_ext >&5
25871
25872ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025873fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025875
25876if test $ac_cv_header_stdc = yes; then
25877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025879/* confdefs.h. */
25880_ACEOF
25881cat confdefs.h >>conftest.$ac_ext
25882cat >>conftest.$ac_ext <<_ACEOF
25883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025884#include <string.h>
25885
25886_ACEOF
25887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025888 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025889 :
25890else
25891 ac_cv_header_stdc=no
25892fi
25893rm -f conftest*
25894
25895fi
25896
25897if test $ac_cv_header_stdc = yes; then
25898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25899 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025900/* confdefs.h. */
25901_ACEOF
25902cat confdefs.h >>conftest.$ac_ext
25903cat >>conftest.$ac_ext <<_ACEOF
25904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025905#include <stdlib.h>
25906
25907_ACEOF
25908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025909 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025910 :
25911else
25912 ac_cv_header_stdc=no
25913fi
25914rm -f conftest*
25915
25916fi
25917
25918if test $ac_cv_header_stdc = yes; then
25919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25920 if test "$cross_compiling" = yes; then
25921 :
25922else
25923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025924/* confdefs.h. */
25925_ACEOF
25926cat confdefs.h >>conftest.$ac_ext
25927cat >>conftest.$ac_ext <<_ACEOF
25928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025929#include <ctype.h>
25930#if ((' ' & 0x0FF) == 0x020)
25931# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25932# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25933#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025934# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025935 (('a' <= (c) && (c) <= 'i') \
25936 || ('j' <= (c) && (c) <= 'r') \
25937 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025938# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25939#endif
25940
25941#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25942int
25943main ()
25944{
25945 int i;
25946 for (i = 0; i < 256; i++)
25947 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025948 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025949 exit(2);
25950 exit (0);
25951}
25952_ACEOF
25953rm -f conftest$ac_exeext
25954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25955 (eval $ac_link) 2>&5
25956 ac_status=$?
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25961 ac_status=$?
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; }; then
25964 :
25965else
25966 echo "$as_me: program exited with status $ac_status" >&5
25967echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025968sed 's/^/| /' conftest.$ac_ext >&5
25969
John Criswell7a73b802003-06-30 21:59:07 +000025970( exit $ac_status )
25971ac_cv_header_stdc=no
25972fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025974fi
25975fi
25976fi
25977echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25978echo "${ECHO_T}$ac_cv_header_stdc" >&6
25979if test $ac_cv_header_stdc = yes; then
25980
25981cat >>confdefs.h <<\_ACEOF
25982#define STDC_HEADERS 1
25983_ACEOF
25984
25985fi
25986
25987echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25988echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25989if test "${ac_cv_header_sys_wait_h+set}" = set; then
25990 echo $ECHO_N "(cached) $ECHO_C" >&6
25991else
25992 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025993/* confdefs.h. */
25994_ACEOF
25995cat confdefs.h >>conftest.$ac_ext
25996cat >>conftest.$ac_ext <<_ACEOF
25997/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025998#include <sys/types.h>
25999#include <sys/wait.h>
26000#ifndef WEXITSTATUS
26001# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26002#endif
26003#ifndef WIFEXITED
26004# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26005#endif
26006
John Criswell7a73b802003-06-30 21:59:07 +000026007int
26008main ()
26009{
26010 int s;
26011 wait (&s);
26012 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26013 ;
26014 return 0;
26015}
26016_ACEOF
26017rm -f conftest.$ac_objext
26018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026019 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026020 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026021 grep -v '^ *+' conftest.er1 >conftest.err
26022 rm -f conftest.er1
26023 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026026 { ac_try='test -z "$ac_c_werror_flag"
26027 || test ! -s conftest.err'
26028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029 (eval $ac_try) 2>&5
26030 ac_status=$?
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; } &&
26033 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; }; then
26039 ac_cv_header_sys_wait_h=yes
26040else
26041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026042sed 's/^/| /' conftest.$ac_ext >&5
26043
John Criswell7a73b802003-06-30 21:59:07 +000026044ac_cv_header_sys_wait_h=no
26045fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026047fi
26048echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26049echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26050if test $ac_cv_header_sys_wait_h = yes; then
26051
26052cat >>confdefs.h <<\_ACEOF
26053#define HAVE_SYS_WAIT_H 1
26054_ACEOF
26055
26056fi
26057
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026058echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26059echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26060if test "${ac_cv_header_time+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26062else
26063 cat >conftest.$ac_ext <<_ACEOF
26064/* confdefs.h. */
26065_ACEOF
26066cat confdefs.h >>conftest.$ac_ext
26067cat >>conftest.$ac_ext <<_ACEOF
26068/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026069#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026070#include <sys/time.h>
26071#include <time.h>
26072
26073int
26074main ()
26075{
26076if ((struct tm *) 0)
26077return 0;
26078 ;
26079 return 0;
26080}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026081_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026082rm -f conftest.$ac_objext
26083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26084 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest.$ac_objext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026105else
26106 echo "$as_me: failed program was:" >&5
26107sed 's/^/| /' conftest.$ac_ext >&5
26108
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026109ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026110fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26112fi
26113echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26114echo "${ECHO_T}$ac_cv_header_time" >&6
26115if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026116
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026117cat >>confdefs.h <<\_ACEOF
26118#define TIME_WITH_SYS_TIME 1
26119_ACEOF
26120
26121fi
26122
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026123
Reid Spencer59473af2004-12-25 07:31:29 +000026124
26125
26126
26127
26128
26129
26130for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26131do
26132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26133if eval "test \"\${$as_ac_Header+set}\" = set"; then
26134 echo "$as_me:$LINENO: checking for $ac_header" >&5
26135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26136if eval "test \"\${$as_ac_Header+set}\" = set"; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26138fi
26139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26141else
26142 # Is the header compilable?
26143echo "$as_me:$LINENO: checking $ac_header usability" >&5
26144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26145cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026146/* confdefs.h. */
26147_ACEOF
26148cat confdefs.h >>conftest.$ac_ext
26149cat >>conftest.$ac_ext <<_ACEOF
26150/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026151$ac_includes_default
26152#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026153_ACEOF
26154rm -f conftest.$ac_objext
26155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26156 (eval $ac_compile) 2>conftest.er1
26157 ac_status=$?
26158 grep -v '^ *+' conftest.er1 >conftest.err
26159 rm -f conftest.er1
26160 cat conftest.err >&5
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } &&
26163 { ac_try='test -z "$ac_c_werror_flag"
26164 || test ! -s conftest.err'
26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166 (eval $ac_try) 2>&5
26167 ac_status=$?
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); }; } &&
26170 { ac_try='test -s conftest.$ac_objext'
26171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26173 ac_status=$?
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026176 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026177else
26178 echo "$as_me: failed program was:" >&5
26179sed 's/^/| /' conftest.$ac_ext >&5
26180
Reid Spencer59473af2004-12-25 07:31:29 +000026181ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026182fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26185echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026186
Reid Spencer59473af2004-12-25 07:31:29 +000026187# Is the header present?
26188echo "$as_me:$LINENO: checking $ac_header presence" >&5
26189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26190cat >conftest.$ac_ext <<_ACEOF
26191/* confdefs.h. */
26192_ACEOF
26193cat confdefs.h >>conftest.$ac_ext
26194cat >>conftest.$ac_ext <<_ACEOF
26195/* end confdefs.h. */
26196#include <$ac_header>
26197_ACEOF
26198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26200 ac_status=$?
26201 grep -v '^ *+' conftest.er1 >conftest.err
26202 rm -f conftest.er1
26203 cat conftest.err >&5
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); } >/dev/null; then
26206 if test -s conftest.err; then
26207 ac_cpp_err=$ac_c_preproc_warn_flag
26208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26209 else
26210 ac_cpp_err=
26211 fi
26212else
26213 ac_cpp_err=yes
26214fi
26215if test -z "$ac_cpp_err"; then
26216 ac_header_preproc=yes
26217else
26218 echo "$as_me: failed program was:" >&5
26219sed 's/^/| /' conftest.$ac_ext >&5
26220
26221 ac_header_preproc=no
26222fi
26223rm -f conftest.err conftest.$ac_ext
26224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26225echo "${ECHO_T}$ac_header_preproc" >&6
26226
26227# So? What about this header?
26228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26229 yes:no: )
26230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26231echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26233echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26234 ac_header_preproc=yes
26235 ;;
26236 no:yes:* )
26237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26238echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26240echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26242echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26244echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26246echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26248echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26249 (
26250 cat <<\_ASBOX
26251## ----------------------------------- ##
26252## Report this to llvmbugs@cs.uiuc.edu ##
26253## ----------------------------------- ##
26254_ASBOX
26255 ) |
26256 sed "s/^/$as_me: WARNING: /" >&2
26257 ;;
26258esac
26259echo "$as_me:$LINENO: checking for $ac_header" >&5
26260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26261if eval "test \"\${$as_ac_Header+set}\" = set"; then
26262 echo $ECHO_N "(cached) $ECHO_C" >&6
26263else
26264 eval "$as_ac_Header=\$ac_header_preproc"
26265fi
26266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026268
26269fi
Reid Spencer59473af2004-12-25 07:31:29 +000026270if test `eval echo '${'$as_ac_Header'}'` = yes; then
26271 cat >>confdefs.h <<_ACEOF
26272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026273_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026274
26275fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026276
Reid Spencer59473af2004-12-25 07:31:29 +000026277done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026278
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026279
26280
Reid Spencer59473af2004-12-25 07:31:29 +000026281
26282
26283
26284
26285for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26286do
26287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26288if eval "test \"\${$as_ac_Header+set}\" = set"; then
26289 echo "$as_me:$LINENO: checking for $ac_header" >&5
26290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26291if eval "test \"\${$as_ac_Header+set}\" = set"; then
26292 echo $ECHO_N "(cached) $ECHO_C" >&6
26293fi
26294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26296else
26297 # Is the header compilable?
26298echo "$as_me:$LINENO: checking $ac_header usability" >&5
26299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26300cat >conftest.$ac_ext <<_ACEOF
26301/* confdefs.h. */
26302_ACEOF
26303cat confdefs.h >>conftest.$ac_ext
26304cat >>conftest.$ac_ext <<_ACEOF
26305/* end confdefs.h. */
26306$ac_includes_default
26307#include <$ac_header>
26308_ACEOF
26309rm -f conftest.$ac_objext
26310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26311 (eval $ac_compile) 2>conftest.er1
26312 ac_status=$?
26313 grep -v '^ *+' conftest.er1 >conftest.err
26314 rm -f conftest.er1
26315 cat conftest.err >&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } &&
26318 { ac_try='test -z "$ac_c_werror_flag"
26319 || test ! -s conftest.err'
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; } &&
26325 { ac_try='test -s conftest.$ac_objext'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; }; then
26331 ac_header_compiler=yes
26332else
26333 echo "$as_me: failed program was:" >&5
26334sed 's/^/| /' conftest.$ac_ext >&5
26335
26336ac_header_compiler=no
26337fi
26338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26340echo "${ECHO_T}$ac_header_compiler" >&6
26341
26342# Is the header present?
26343echo "$as_me:$LINENO: checking $ac_header presence" >&5
26344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26345cat >conftest.$ac_ext <<_ACEOF
26346/* confdefs.h. */
26347_ACEOF
26348cat confdefs.h >>conftest.$ac_ext
26349cat >>conftest.$ac_ext <<_ACEOF
26350/* end confdefs.h. */
26351#include <$ac_header>
26352_ACEOF
26353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26355 ac_status=$?
26356 grep -v '^ *+' conftest.er1 >conftest.err
26357 rm -f conftest.er1
26358 cat conftest.err >&5
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); } >/dev/null; then
26361 if test -s conftest.err; then
26362 ac_cpp_err=$ac_c_preproc_warn_flag
26363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26364 else
26365 ac_cpp_err=
26366 fi
26367else
26368 ac_cpp_err=yes
26369fi
26370if test -z "$ac_cpp_err"; then
26371 ac_header_preproc=yes
26372else
26373 echo "$as_me: failed program was:" >&5
26374sed 's/^/| /' conftest.$ac_ext >&5
26375
26376 ac_header_preproc=no
26377fi
26378rm -f conftest.err conftest.$ac_ext
26379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26380echo "${ECHO_T}$ac_header_preproc" >&6
26381
26382# So? What about this header?
26383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26384 yes:no: )
26385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26389 ac_header_preproc=yes
26390 ;;
26391 no:yes:* )
26392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26404 (
26405 cat <<\_ASBOX
26406## ----------------------------------- ##
26407## Report this to llvmbugs@cs.uiuc.edu ##
26408## ----------------------------------- ##
26409_ASBOX
26410 ) |
26411 sed "s/^/$as_me: WARNING: /" >&2
26412 ;;
26413esac
26414echo "$as_me:$LINENO: checking for $ac_header" >&5
26415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26416if eval "test \"\${$as_ac_Header+set}\" = set"; then
26417 echo $ECHO_N "(cached) $ECHO_C" >&6
26418else
26419 eval "$as_ac_Header=\$ac_header_preproc"
26420fi
26421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26423
26424fi
26425if test `eval echo '${'$as_ac_Header'}'` = yes; then
26426 cat >>confdefs.h <<_ACEOF
26427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26428_ACEOF
26429
26430fi
26431
26432done
26433
26434
26435
26436
26437
26438
26439for 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 +000026440do
26441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26442if eval "test \"\${$as_ac_Header+set}\" = set"; then
26443 echo "$as_me:$LINENO: checking for $ac_header" >&5
26444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26445if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026446 echo $ECHO_N "(cached) $ECHO_C" >&6
26447fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026450else
26451 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026452echo "$as_me:$LINENO: checking $ac_header usability" >&5
26453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026454cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026455/* confdefs.h. */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h. */
26460$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026461#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026462_ACEOF
26463rm -f conftest.$ac_objext
26464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026465 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026467 grep -v '^ *+' conftest.er1 >conftest.err
26468 rm -f conftest.er1
26469 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
26485 ac_header_compiler=yes
26486else
26487 echo "$as_me: failed program was:" >&5
26488sed 's/^/| /' conftest.$ac_ext >&5
26489
26490ac_header_compiler=no
26491fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26494echo "${ECHO_T}$ac_header_compiler" >&6
26495
26496# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026497echo "$as_me:$LINENO: checking $ac_header presence" >&5
26498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026499cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026500/* confdefs.h. */
26501_ACEOF
26502cat confdefs.h >>conftest.$ac_ext
26503cat >>conftest.$ac_ext <<_ACEOF
26504/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026505#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026506_ACEOF
26507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26509 ac_status=$?
26510 grep -v '^ *+' conftest.er1 >conftest.err
26511 rm -f conftest.er1
26512 cat conftest.err >&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } >/dev/null; then
26515 if test -s conftest.err; then
26516 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026518 else
26519 ac_cpp_err=
26520 fi
26521else
26522 ac_cpp_err=yes
26523fi
26524if test -z "$ac_cpp_err"; then
26525 ac_header_preproc=yes
26526else
26527 echo "$as_me: failed program was:" >&5
26528sed 's/^/| /' conftest.$ac_ext >&5
26529
26530 ac_header_preproc=no
26531fi
26532rm -f conftest.err conftest.$ac_ext
26533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26534echo "${ECHO_T}$ac_header_preproc" >&6
26535
26536# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26538 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026543 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026544 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026545 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026558 (
26559 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026560## ----------------------------------- ##
26561## Report this to llvmbugs@cs.uiuc.edu ##
26562## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026563_ASBOX
26564 ) |
26565 sed "s/^/$as_me: WARNING: /" >&2
26566 ;;
26567esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026568echo "$as_me:$LINENO: checking for $ac_header" >&5
26569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26570if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026571 echo $ECHO_N "(cached) $ECHO_C" >&6
26572else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026573 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026574fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026577
26578fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026579if test `eval echo '${'$as_ac_Header'}'` = yes; then
26580 cat >>confdefs.h <<_ACEOF
26581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026582_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026583
26584fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026585
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026586done
26587
John Criswell7ed43ad2004-07-19 16:12:29 +000026588
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026589
John Criswell7a73b802003-06-30 21:59:07 +000026590echo "$as_me:$LINENO: checking for pid_t" >&5
26591echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26592if test "${ac_cv_type_pid_t+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26594else
26595 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026596/* confdefs.h. */
26597_ACEOF
26598cat confdefs.h >>conftest.$ac_ext
26599cat >>conftest.$ac_ext <<_ACEOF
26600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026601$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026602int
26603main ()
26604{
26605if ((pid_t *) 0)
26606 return 0;
26607if (sizeof (pid_t))
26608 return 0;
26609 ;
26610 return 0;
26611}
26612_ACEOF
26613rm -f conftest.$ac_objext
26614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026615 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026616 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026617 grep -v '^ *+' conftest.er1 >conftest.err
26618 rm -f conftest.er1
26619 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026622 { ac_try='test -z "$ac_c_werror_flag"
26623 || test ! -s conftest.err'
26624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26625 (eval $ac_try) 2>&5
26626 ac_status=$?
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); }; } &&
26629 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631 (eval $ac_try) 2>&5
26632 ac_status=$?
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; }; then
26635 ac_cv_type_pid_t=yes
26636else
26637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026638sed 's/^/| /' conftest.$ac_ext >&5
26639
John Criswell7a73b802003-06-30 21:59:07 +000026640ac_cv_type_pid_t=no
26641fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026643fi
26644echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26645echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26646if test $ac_cv_type_pid_t = yes; then
26647 :
26648else
26649
26650cat >>confdefs.h <<_ACEOF
26651#define pid_t int
26652_ACEOF
26653
26654fi
26655
26656echo "$as_me:$LINENO: checking for size_t" >&5
26657echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26658if test "${ac_cv_type_size_t+set}" = set; then
26659 echo $ECHO_N "(cached) $ECHO_C" >&6
26660else
26661 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026662/* confdefs.h. */
26663_ACEOF
26664cat confdefs.h >>conftest.$ac_ext
26665cat >>conftest.$ac_ext <<_ACEOF
26666/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026667$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026668int
26669main ()
26670{
26671if ((size_t *) 0)
26672 return 0;
26673if (sizeof (size_t))
26674 return 0;
26675 ;
26676 return 0;
26677}
26678_ACEOF
26679rm -f conftest.$ac_objext
26680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026681 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026682 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026683 grep -v '^ *+' conftest.er1 >conftest.err
26684 rm -f conftest.er1
26685 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026688 { ac_try='test -z "$ac_c_werror_flag"
26689 || test ! -s conftest.err'
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; } &&
26695 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; }; then
26701 ac_cv_type_size_t=yes
26702else
26703 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026704sed 's/^/| /' conftest.$ac_ext >&5
26705
John Criswell7a73b802003-06-30 21:59:07 +000026706ac_cv_type_size_t=no
26707fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026709fi
26710echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26711echo "${ECHO_T}$ac_cv_type_size_t" >&6
26712if test $ac_cv_type_size_t = yes; then
26713 :
26714else
26715
26716cat >>confdefs.h <<_ACEOF
26717#define size_t unsigned
26718_ACEOF
26719
26720fi
26721
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026722echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26723echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26724if test "${ac_cv_type_signal+set}" = set; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26726else
26727 cat >conftest.$ac_ext <<_ACEOF
26728/* confdefs.h. */
26729_ACEOF
26730cat confdefs.h >>conftest.$ac_ext
26731cat >>conftest.$ac_ext <<_ACEOF
26732/* end confdefs.h. */
26733#include <sys/types.h>
26734#include <signal.h>
26735#ifdef signal
26736# undef signal
26737#endif
26738#ifdef __cplusplus
26739extern "C" void (*signal (int, void (*)(int)))(int);
26740#else
26741void (*signal ()) ();
26742#endif
26743
26744int
26745main ()
26746{
26747int i;
26748 ;
26749 return 0;
26750}
26751_ACEOF
26752rm -f conftest.$ac_objext
26753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26754 (eval $ac_compile) 2>conftest.er1
26755 ac_status=$?
26756 grep -v '^ *+' conftest.er1 >conftest.err
26757 rm -f conftest.er1
26758 cat conftest.err >&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } &&
26761 { ac_try='test -z "$ac_c_werror_flag"
26762 || test ! -s conftest.err'
26763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764 (eval $ac_try) 2>&5
26765 ac_status=$?
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); }; } &&
26768 { ac_try='test -s conftest.$ac_objext'
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; }; then
26774 ac_cv_type_signal=void
26775else
26776 echo "$as_me: failed program was:" >&5
26777sed 's/^/| /' conftest.$ac_ext >&5
26778
26779ac_cv_type_signal=int
26780fi
26781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26782fi
26783echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26784echo "${ECHO_T}$ac_cv_type_signal" >&6
26785
26786cat >>confdefs.h <<_ACEOF
26787#define RETSIGTYPE $ac_cv_type_signal
26788_ACEOF
26789
26790
26791echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26792echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26793if test "${ac_cv_struct_tm+set}" = set; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26795else
26796 cat >conftest.$ac_ext <<_ACEOF
26797/* confdefs.h. */
26798_ACEOF
26799cat confdefs.h >>conftest.$ac_ext
26800cat >>conftest.$ac_ext <<_ACEOF
26801/* end confdefs.h. */
26802#include <sys/types.h>
26803#include <time.h>
26804
26805int
26806main ()
26807{
26808struct tm *tp; tp->tm_sec;
26809 ;
26810 return 0;
26811}
26812_ACEOF
26813rm -f conftest.$ac_objext
26814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26815 (eval $ac_compile) 2>conftest.er1
26816 ac_status=$?
26817 grep -v '^ *+' conftest.er1 >conftest.err
26818 rm -f conftest.er1
26819 cat conftest.err >&5
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); } &&
26822 { ac_try='test -z "$ac_c_werror_flag"
26823 || test ! -s conftest.err'
26824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26825 (eval $ac_try) 2>&5
26826 ac_status=$?
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); }; } &&
26829 { ac_try='test -s conftest.$ac_objext'
26830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831 (eval $ac_try) 2>&5
26832 ac_status=$?
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); }; }; then
26835 ac_cv_struct_tm=time.h
26836else
26837 echo "$as_me: failed program was:" >&5
26838sed 's/^/| /' conftest.$ac_ext >&5
26839
26840ac_cv_struct_tm=sys/time.h
26841fi
26842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26843fi
26844echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26845echo "${ECHO_T}$ac_cv_struct_tm" >&6
26846if test $ac_cv_struct_tm = sys/time.h; then
26847
26848cat >>confdefs.h <<\_ACEOF
26849#define TM_IN_SYS_TIME 1
26850_ACEOF
26851
26852fi
26853
John Criswell7a73b802003-06-30 21:59:07 +000026854echo "$as_me:$LINENO: checking for int64_t" >&5
26855echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26856if test "${ac_cv_type_int64_t+set}" = set; then
26857 echo $ECHO_N "(cached) $ECHO_C" >&6
26858else
26859 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026860/* confdefs.h. */
26861_ACEOF
26862cat confdefs.h >>conftest.$ac_ext
26863cat >>conftest.$ac_ext <<_ACEOF
26864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026865$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026866int
26867main ()
26868{
26869if ((int64_t *) 0)
26870 return 0;
26871if (sizeof (int64_t))
26872 return 0;
26873 ;
26874 return 0;
26875}
26876_ACEOF
26877rm -f conftest.$ac_objext
26878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026879 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026881 grep -v '^ *+' conftest.er1 >conftest.err
26882 rm -f conftest.er1
26883 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026886 { ac_try='test -z "$ac_c_werror_flag"
26887 || test ! -s conftest.err'
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; } &&
26893 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895 (eval $ac_try) 2>&5
26896 ac_status=$?
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; }; then
26899 ac_cv_type_int64_t=yes
26900else
26901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026902sed 's/^/| /' conftest.$ac_ext >&5
26903
John Criswell7a73b802003-06-30 21:59:07 +000026904ac_cv_type_int64_t=no
26905fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026907fi
26908echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26909echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26910if test $ac_cv_type_int64_t = yes; then
26911
26912cat >>confdefs.h <<_ACEOF
26913#define HAVE_INT64_T 1
26914_ACEOF
26915
26916
26917else
26918 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26919echo "$as_me: error: Type int64_t required but not found" >&2;}
26920 { (exit 1); exit 1; }; }
26921fi
26922
26923echo "$as_me:$LINENO: checking for uint64_t" >&5
26924echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26925if test "${ac_cv_type_uint64_t+set}" = set; then
26926 echo $ECHO_N "(cached) $ECHO_C" >&6
26927else
26928 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026929/* confdefs.h. */
26930_ACEOF
26931cat confdefs.h >>conftest.$ac_ext
26932cat >>conftest.$ac_ext <<_ACEOF
26933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026934$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026935int
26936main ()
26937{
26938if ((uint64_t *) 0)
26939 return 0;
26940if (sizeof (uint64_t))
26941 return 0;
26942 ;
26943 return 0;
26944}
26945_ACEOF
26946rm -f conftest.$ac_objext
26947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026948 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026949 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026950 grep -v '^ *+' conftest.er1 >conftest.err
26951 rm -f conftest.er1
26952 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026955 { ac_try='test -z "$ac_c_werror_flag"
26956 || test ! -s conftest.err'
26957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958 (eval $ac_try) 2>&5
26959 ac_status=$?
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); }; } &&
26962 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964 (eval $ac_try) 2>&5
26965 ac_status=$?
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); }; }; then
26968 ac_cv_type_uint64_t=yes
26969else
26970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026971sed 's/^/| /' conftest.$ac_ext >&5
26972
John Criswell7a73b802003-06-30 21:59:07 +000026973ac_cv_type_uint64_t=no
26974fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026976fi
26977echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26978echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26979if test $ac_cv_type_uint64_t = yes; then
26980
26981cat >>confdefs.h <<_ACEOF
26982#define HAVE_UINT64_T 1
26983_ACEOF
26984
26985
26986else
Misha Brukmanceca9042004-09-02 23:02:30 +000026987 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026988echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26989if test "${ac_cv_type_u_int64_t+set}" = set; then
26990 echo $ECHO_N "(cached) $ECHO_C" >&6
26991else
26992 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026993/* confdefs.h. */
26994_ACEOF
26995cat confdefs.h >>conftest.$ac_ext
26996cat >>conftest.$ac_ext <<_ACEOF
26997/* end confdefs.h. */
26998$ac_includes_default
26999int
27000main ()
27001{
27002if ((u_int64_t *) 0)
27003 return 0;
27004if (sizeof (u_int64_t))
27005 return 0;
27006 ;
27007 return 0;
27008}
27009_ACEOF
27010rm -f conftest.$ac_objext
27011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027012 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027014 grep -v '^ *+' conftest.er1 >conftest.err
27015 rm -f conftest.er1
27016 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027019 { ac_try='test -z "$ac_c_werror_flag"
27020 || test ! -s conftest.err'
27021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022 (eval $ac_try) 2>&5
27023 ac_status=$?
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); }; } &&
27026 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; }; then
27032 ac_cv_type_u_int64_t=yes
27033else
27034 echo "$as_me: failed program was:" >&5
27035sed 's/^/| /' conftest.$ac_ext >&5
27036
27037ac_cv_type_u_int64_t=no
27038fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027040fi
27041echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27042echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27043if test $ac_cv_type_u_int64_t = yes; then
27044
27045cat >>confdefs.h <<_ACEOF
27046#define HAVE_U_INT64_T 1
27047_ACEOF
27048
27049
Misha Brukmanceca9042004-09-02 23:02:30 +000027050else
27051 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27052echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27053 { (exit 1); exit 1; }; }
27054fi
27055
John Criswell679ff312004-09-02 18:44:44 +000027056fi
27057
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027058
27059
27060
27061
27062
27063
27064
27065
Reid Spencerab5eaea2004-12-20 00:59:04 +000027066for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27067do
27068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27069echo "$as_me:$LINENO: checking for $ac_func" >&5
27070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27071if eval "test \"\${$as_ac_var+set}\" = set"; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27073else
27074 cat >conftest.$ac_ext <<_ACEOF
27075/* confdefs.h. */
27076_ACEOF
27077cat confdefs.h >>conftest.$ac_ext
27078cat >>conftest.$ac_ext <<_ACEOF
27079/* end confdefs.h. */
27080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27082#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027083
Reid Spencerab5eaea2004-12-20 00:59:04 +000027084/* System header to define __stub macros and hopefully few prototypes,
27085 which can conflict with char $ac_func (); below.
27086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27087 <limits.h> exists even on freestanding compilers. */
27088
27089#ifdef __STDC__
27090# include <limits.h>
27091#else
27092# include <assert.h>
27093#endif
27094
27095#undef $ac_func
27096
27097/* Override any gcc2 internal prototype to avoid an error. */
27098#ifdef __cplusplus
27099extern "C"
27100{
27101#endif
27102/* We use char because int might match the return type of a gcc2
27103 builtin and then its argument prototype would still apply. */
27104char $ac_func ();
27105/* The GNU C library defines this for functions which it implements
27106 to always fail with ENOSYS. Some functions are actually named
27107 something starting with __ and the normal name is an alias. */
27108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27109choke me
27110#else
27111char (*f) () = $ac_func;
27112#endif
27113#ifdef __cplusplus
27114}
27115#endif
27116
27117int
27118main ()
27119{
27120return f != $ac_func;
27121 ;
27122 return 0;
27123}
27124_ACEOF
27125rm -f conftest.$ac_objext conftest$ac_exeext
27126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27127 (eval $ac_link) 2>conftest.er1
27128 ac_status=$?
27129 grep -v '^ *+' conftest.er1 >conftest.err
27130 rm -f conftest.er1
27131 cat conftest.err >&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); } &&
27134 { ac_try='test -z "$ac_c_werror_flag"
27135 || test ! -s conftest.err'
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest$ac_exeext'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27144 ac_status=$?
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
27147 eval "$as_ac_var=yes"
27148else
27149 echo "$as_me: failed program was:" >&5
27150sed 's/^/| /' conftest.$ac_ext >&5
27151
27152eval "$as_ac_var=no"
27153fi
27154rm -f conftest.err conftest.$ac_objext \
27155 conftest$ac_exeext conftest.$ac_ext
27156fi
27157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27159if test `eval echo '${'$as_ac_var'}'` = yes; then
27160 cat >>confdefs.h <<_ACEOF
27161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27162_ACEOF
27163
27164fi
27165done
27166
27167
27168
27169
27170for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027171do
27172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27173echo "$as_me:$LINENO: checking for $ac_func" >&5
27174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27175if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027176 echo $ECHO_N "(cached) $ECHO_C" >&6
27177else
27178 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027179/* confdefs.h. */
27180_ACEOF
27181cat confdefs.h >>conftest.$ac_ext
27182cat >>conftest.$ac_ext <<_ACEOF
27183/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27186#define $ac_func innocuous_$ac_func
27187
27188/* System header to define __stub macros and hopefully few prototypes,
27189 which can conflict with char $ac_func (); below.
27190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27191 <limits.h> exists even on freestanding compilers. */
27192
27193#ifdef __STDC__
27194# include <limits.h>
27195#else
27196# include <assert.h>
27197#endif
27198
27199#undef $ac_func
27200
27201/* Override any gcc2 internal prototype to avoid an error. */
27202#ifdef __cplusplus
27203extern "C"
27204{
27205#endif
27206/* We use char because int might match the return type of a gcc2
27207 builtin and then its argument prototype would still apply. */
27208char $ac_func ();
27209/* The GNU C library defines this for functions which it implements
27210 to always fail with ENOSYS. Some functions are actually named
27211 something starting with __ and the normal name is an alias. */
27212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27213choke me
27214#else
27215char (*f) () = $ac_func;
27216#endif
27217#ifdef __cplusplus
27218}
27219#endif
John Criswell7a73b802003-06-30 21:59:07 +000027220
John Criswell7a73b802003-06-30 21:59:07 +000027221int
27222main ()
27223{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027224return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027225 ;
27226 return 0;
27227}
27228_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027229rm -f conftest.$ac_objext conftest$ac_exeext
27230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27231 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027238 { ac_try='test -z "$ac_c_werror_flag"
27239 || test ! -s conftest.err'
27240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27241 (eval $ac_try) 2>&5
27242 ac_status=$?
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027245 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247 (eval $ac_try) 2>&5
27248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027251 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027252else
27253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027254sed 's/^/| /' conftest.$ac_ext >&5
27255
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027256eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027257fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027258rm -f conftest.err conftest.$ac_objext \
27259 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027260fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27262echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27263if test `eval echo '${'$as_ac_var'}'` = yes; then
27264 cat >>confdefs.h <<_ACEOF
27265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027266_ACEOF
27267
27268fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027269done
John Criswell7a73b802003-06-30 21:59:07 +000027270
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027271
27272
27273
Reid Spencer6af3d262004-12-15 04:01:48 +000027274
27275
Reid Spencer59473af2004-12-25 07:31:29 +000027276
Reid Spencerba46ca32004-12-31 05:49:15 +000027277for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027278do
27279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27280echo "$as_me:$LINENO: checking for $ac_func" >&5
27281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27282if eval "test \"\${$as_ac_var+set}\" = set"; then
27283 echo $ECHO_N "(cached) $ECHO_C" >&6
27284else
27285 cat >conftest.$ac_ext <<_ACEOF
27286/* confdefs.h. */
27287_ACEOF
27288cat confdefs.h >>conftest.$ac_ext
27289cat >>conftest.$ac_ext <<_ACEOF
27290/* end confdefs.h. */
27291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27293#define $ac_func innocuous_$ac_func
27294
27295/* System header to define __stub macros and hopefully few prototypes,
27296 which can conflict with char $ac_func (); below.
27297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27298 <limits.h> exists even on freestanding compilers. */
27299
27300#ifdef __STDC__
27301# include <limits.h>
27302#else
27303# include <assert.h>
27304#endif
27305
27306#undef $ac_func
27307
27308/* Override any gcc2 internal prototype to avoid an error. */
27309#ifdef __cplusplus
27310extern "C"
27311{
27312#endif
27313/* We use char because int might match the return type of a gcc2
27314 builtin and then its argument prototype would still apply. */
27315char $ac_func ();
27316/* The GNU C library defines this for functions which it implements
27317 to always fail with ENOSYS. Some functions are actually named
27318 something starting with __ and the normal name is an alias. */
27319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27320choke me
27321#else
27322char (*f) () = $ac_func;
27323#endif
27324#ifdef __cplusplus
27325}
27326#endif
27327
27328int
27329main ()
27330{
27331return f != $ac_func;
27332 ;
27333 return 0;
27334}
27335_ACEOF
27336rm -f conftest.$ac_objext conftest$ac_exeext
27337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27338 (eval $ac_link) 2>conftest.er1
27339 ac_status=$?
27340 grep -v '^ *+' conftest.er1 >conftest.err
27341 rm -f conftest.er1
27342 cat conftest.err >&5
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); } &&
27345 { ac_try='test -z "$ac_c_werror_flag"
27346 || test ! -s conftest.err'
27347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27348 (eval $ac_try) 2>&5
27349 ac_status=$?
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); }; } &&
27352 { ac_try='test -s conftest$ac_exeext'
27353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354 (eval $ac_try) 2>&5
27355 ac_status=$?
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); }; }; then
27358 eval "$as_ac_var=yes"
27359else
27360 echo "$as_me: failed program was:" >&5
27361sed 's/^/| /' conftest.$ac_ext >&5
27362
27363eval "$as_ac_var=no"
27364fi
27365rm -f conftest.err conftest.$ac_objext \
27366 conftest$ac_exeext conftest.$ac_ext
27367fi
27368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27370if test `eval echo '${'$as_ac_var'}'` = yes; then
27371 cat >>confdefs.h <<_ACEOF
27372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27373_ACEOF
27374
27375fi
27376done
27377
27378
Reid Spencerba46ca32004-12-31 05:49:15 +000027379
27380
27381for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027382do
27383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27384echo "$as_me:$LINENO: checking for $ac_func" >&5
27385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27386if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027387 echo $ECHO_N "(cached) $ECHO_C" >&6
27388else
27389 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027390/* confdefs.h. */
27391_ACEOF
27392cat confdefs.h >>conftest.$ac_ext
27393cat >>conftest.$ac_ext <<_ACEOF
27394/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27397#define $ac_func innocuous_$ac_func
27398
27399/* System header to define __stub macros and hopefully few prototypes,
27400 which can conflict with char $ac_func (); below.
27401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27402 <limits.h> exists even on freestanding compilers. */
27403
27404#ifdef __STDC__
27405# include <limits.h>
27406#else
27407# include <assert.h>
27408#endif
27409
27410#undef $ac_func
27411
27412/* Override any gcc2 internal prototype to avoid an error. */
27413#ifdef __cplusplus
27414extern "C"
27415{
27416#endif
27417/* We use char because int might match the return type of a gcc2
27418 builtin and then its argument prototype would still apply. */
27419char $ac_func ();
27420/* The GNU C library defines this for functions which it implements
27421 to always fail with ENOSYS. Some functions are actually named
27422 something starting with __ and the normal name is an alias. */
27423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27424choke me
27425#else
27426char (*f) () = $ac_func;
27427#endif
27428#ifdef __cplusplus
27429}
27430#endif
John Criswell7a73b802003-06-30 21:59:07 +000027431
John Criswell7a73b802003-06-30 21:59:07 +000027432int
27433main ()
27434{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027435return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027436 ;
27437 return 0;
27438}
27439_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027440rm -f conftest.$ac_objext conftest$ac_exeext
27441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27442 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027443 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027444 grep -v '^ *+' conftest.er1 >conftest.err
27445 rm -f conftest.er1
27446 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027449 { ac_try='test -z "$ac_c_werror_flag"
27450 || test ! -s conftest.err'
27451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452 (eval $ac_try) 2>&5
27453 ac_status=$?
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027456 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458 (eval $ac_try) 2>&5
27459 ac_status=$?
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027462 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027463else
27464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027465sed 's/^/| /' conftest.$ac_ext >&5
27466
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027467eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027468fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027469rm -f conftest.err conftest.$ac_objext \
27470 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027471fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27474if test `eval echo '${'$as_ac_var'}'` = yes; then
27475 cat >>confdefs.h <<_ACEOF
27476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027477_ACEOF
27478
27479fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027480done
John Criswell7a73b802003-06-30 21:59:07 +000027481
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027482echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27483echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027484if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027485 echo $ECHO_N "(cached) $ECHO_C" >&6
27486else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027487 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027488ac_cpp='$CPP $CPPFLAGS'
27489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27491ac_compiler_gnu=$ac_cv_c_compiler_gnu
27492
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027493 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027494 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027495else
27496 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027497
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027498 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027499_ACEOF
27500cat confdefs.h >>conftest.$ac_ext
27501cat >>conftest.$ac_ext <<_ACEOF
27502/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027503
John Criswella0137d32003-10-13 16:22:01 +000027504#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027505#include <stdlib.h>
27506
John Criswella0137d32003-10-13 16:22:01 +000027507int
27508main ()
27509{
27510
Reid Spencer2706f8c2004-09-19 23:53:36 +000027511volatile double A, B;
27512char Buffer[100];
27513A = 1;
27514A /= 10.0;
27515sprintf(Buffer, "%a", A);
27516B = atof(Buffer);
27517if (A != B)
27518 return (1);
27519if (A != 0x1.999999999999ap-4)
27520 return (1);
27521return (0);
John Criswella0137d32003-10-13 16:22:01 +000027522 ;
27523 return 0;
27524}
27525_ACEOF
27526rm -f conftest$ac_exeext
27527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27528 (eval $ac_link) 2>&5
27529 ac_status=$?
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533 (eval $ac_try) 2>&5
27534 ac_status=$?
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027537 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027538else
27539 echo "$as_me: program exited with status $ac_status" >&5
27540echo "$as_me: failed program was:" >&5
27541sed 's/^/| /' conftest.$ac_ext >&5
27542
27543( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027544llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027545fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027546rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027547fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027548 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027549ac_cpp='$CPP $CPPFLAGS'
27550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27552ac_compiler_gnu=$ac_cv_c_compiler_gnu
27553
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027554fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027555echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27556echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27557 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027558
27559cat >>confdefs.h <<\_ACEOF
27560#define HAVE_PRINTF_A 1
27561_ACEOF
27562
Reid Spencer2706f8c2004-09-19 23:53:36 +000027563 fi
John Criswella0137d32003-10-13 16:22:01 +000027564
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027565# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27566# for constant arguments. Useless!
27567echo "$as_me:$LINENO: checking for working alloca.h" >&5
27568echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27569if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027570 echo $ECHO_N "(cached) $ECHO_C" >&6
27571else
John Criswell0021c312004-02-13 21:57:29 +000027572 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027573/* confdefs.h. */
27574_ACEOF
27575cat confdefs.h >>conftest.$ac_ext
27576cat >>conftest.$ac_ext <<_ACEOF
27577/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027578#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027579int
27580main ()
27581{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027582char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027583 ;
27584 return 0;
27585}
27586_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027587rm -f conftest.$ac_objext conftest$ac_exeext
27588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27589 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027590 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027591 grep -v '^ *+' conftest.er1 >conftest.err
27592 rm -f conftest.er1
27593 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027596 { ac_try='test -z "$ac_c_werror_flag"
27597 || test ! -s conftest.err'
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27600 ac_status=$?
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027603 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605 (eval $ac_try) 2>&5
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027609 ac_cv_working_alloca_h=yes
27610else
27611 echo "$as_me: failed program was:" >&5
27612sed 's/^/| /' conftest.$ac_ext >&5
27613
27614ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027615fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027616rm -f conftest.err conftest.$ac_objext \
27617 conftest$ac_exeext conftest.$ac_ext
27618fi
27619echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27620echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27621if test $ac_cv_working_alloca_h = yes; then
27622
27623cat >>confdefs.h <<\_ACEOF
27624#define HAVE_ALLOCA_H 1
27625_ACEOF
27626
27627fi
27628
27629echo "$as_me:$LINENO: checking for alloca" >&5
27630echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27631if test "${ac_cv_func_alloca_works+set}" = set; then
27632 echo $ECHO_N "(cached) $ECHO_C" >&6
27633else
27634 cat >conftest.$ac_ext <<_ACEOF
27635/* confdefs.h. */
27636_ACEOF
27637cat confdefs.h >>conftest.$ac_ext
27638cat >>conftest.$ac_ext <<_ACEOF
27639/* end confdefs.h. */
27640#ifdef __GNUC__
27641# define alloca __builtin_alloca
27642#else
27643# ifdef _MSC_VER
27644# include <malloc.h>
27645# define alloca _alloca
27646# else
27647# if HAVE_ALLOCA_H
27648# include <alloca.h>
27649# else
27650# ifdef _AIX
27651 #pragma alloca
27652# else
27653# ifndef alloca /* predefined by HP cc +Olibcalls */
27654char *alloca ();
27655# endif
27656# endif
27657# endif
27658# endif
27659#endif
27660
27661int
27662main ()
27663{
27664char *p = (char *) alloca (1);
27665 ;
27666 return 0;
27667}
27668_ACEOF
27669rm -f conftest.$ac_objext conftest$ac_exeext
27670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27671 (eval $ac_link) 2>conftest.er1
27672 ac_status=$?
27673 grep -v '^ *+' conftest.er1 >conftest.err
27674 rm -f conftest.er1
27675 cat conftest.err >&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); } &&
27678 { ac_try='test -z "$ac_c_werror_flag"
27679 || test ! -s conftest.err'
27680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681 (eval $ac_try) 2>&5
27682 ac_status=$?
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; } &&
27685 { ac_try='test -s conftest$ac_exeext'
27686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687 (eval $ac_try) 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; }; then
27691 ac_cv_func_alloca_works=yes
27692else
27693 echo "$as_me: failed program was:" >&5
27694sed 's/^/| /' conftest.$ac_ext >&5
27695
27696ac_cv_func_alloca_works=no
27697fi
27698rm -f conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
27700fi
27701echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27702echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27703
27704if test $ac_cv_func_alloca_works = yes; then
27705
27706cat >>confdefs.h <<\_ACEOF
27707#define HAVE_ALLOCA 1
27708_ACEOF
27709
27710else
27711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27712# that cause trouble. Some versions do not even contain alloca or
27713# contain a buggy version. If you still want to use their alloca,
27714# use ar to extract alloca.o from them instead of compiling alloca.c.
27715
27716ALLOCA=alloca.$ac_objext
27717
27718cat >>confdefs.h <<\_ACEOF
27719#define C_ALLOCA 1
27720_ACEOF
27721
27722
27723echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27724echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27725if test "${ac_cv_os_cray+set}" = set; then
27726 echo $ECHO_N "(cached) $ECHO_C" >&6
27727else
27728 cat >conftest.$ac_ext <<_ACEOF
27729/* confdefs.h. */
27730_ACEOF
27731cat confdefs.h >>conftest.$ac_ext
27732cat >>conftest.$ac_ext <<_ACEOF
27733/* end confdefs.h. */
27734#if defined(CRAY) && ! defined(CRAY2)
27735webecray
27736#else
27737wenotbecray
27738#endif
27739
27740_ACEOF
27741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27742 $EGREP "webecray" >/dev/null 2>&1; then
27743 ac_cv_os_cray=yes
27744else
27745 ac_cv_os_cray=no
27746fi
27747rm -f conftest*
27748
27749fi
27750echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27751echo "${ECHO_T}$ac_cv_os_cray" >&6
27752if test $ac_cv_os_cray = yes; then
27753 for ac_func in _getb67 GETB67 getb67; do
27754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27755echo "$as_me:$LINENO: checking for $ac_func" >&5
27756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27757if eval "test \"\${$as_ac_var+set}\" = set"; then
27758 echo $ECHO_N "(cached) $ECHO_C" >&6
27759else
27760 cat >conftest.$ac_ext <<_ACEOF
27761/* confdefs.h. */
27762_ACEOF
27763cat confdefs.h >>conftest.$ac_ext
27764cat >>conftest.$ac_ext <<_ACEOF
27765/* end confdefs.h. */
27766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27768#define $ac_func innocuous_$ac_func
27769
27770/* System header to define __stub macros and hopefully few prototypes,
27771 which can conflict with char $ac_func (); below.
27772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27773 <limits.h> exists even on freestanding compilers. */
27774
27775#ifdef __STDC__
27776# include <limits.h>
27777#else
27778# include <assert.h>
27779#endif
27780
27781#undef $ac_func
27782
27783/* Override any gcc2 internal prototype to avoid an error. */
27784#ifdef __cplusplus
27785extern "C"
27786{
27787#endif
27788/* We use char because int might match the return type of a gcc2
27789 builtin and then its argument prototype would still apply. */
27790char $ac_func ();
27791/* The GNU C library defines this for functions which it implements
27792 to always fail with ENOSYS. Some functions are actually named
27793 something starting with __ and the normal name is an alias. */
27794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27795choke me
27796#else
27797char (*f) () = $ac_func;
27798#endif
27799#ifdef __cplusplus
27800}
27801#endif
27802
27803int
27804main ()
27805{
27806return f != $ac_func;
27807 ;
27808 return 0;
27809}
27810_ACEOF
27811rm -f conftest.$ac_objext conftest$ac_exeext
27812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27813 (eval $ac_link) 2>conftest.er1
27814 ac_status=$?
27815 grep -v '^ *+' conftest.er1 >conftest.err
27816 rm -f conftest.er1
27817 cat conftest.err >&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } &&
27820 { ac_try='test -z "$ac_c_werror_flag"
27821 || test ! -s conftest.err'
27822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823 (eval $ac_try) 2>&5
27824 ac_status=$?
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; } &&
27827 { ac_try='test -s conftest$ac_exeext'
27828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829 (eval $ac_try) 2>&5
27830 ac_status=$?
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; }; then
27833 eval "$as_ac_var=yes"
27834else
27835 echo "$as_me: failed program was:" >&5
27836sed 's/^/| /' conftest.$ac_ext >&5
27837
27838eval "$as_ac_var=no"
27839fi
27840rm -f conftest.err conftest.$ac_objext \
27841 conftest$ac_exeext conftest.$ac_ext
27842fi
27843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27845if test `eval echo '${'$as_ac_var'}'` = yes; then
27846
27847cat >>confdefs.h <<_ACEOF
27848#define CRAY_STACKSEG_END $ac_func
27849_ACEOF
27850
27851 break
27852fi
27853
27854 done
27855fi
27856
27857echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27858echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27859if test "${ac_cv_c_stack_direction+set}" = set; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27861else
27862 if test "$cross_compiling" = yes; then
27863 ac_cv_c_stack_direction=0
27864else
27865 cat >conftest.$ac_ext <<_ACEOF
27866/* confdefs.h. */
27867_ACEOF
27868cat confdefs.h >>conftest.$ac_ext
27869cat >>conftest.$ac_ext <<_ACEOF
27870/* end confdefs.h. */
27871int
27872find_stack_direction ()
27873{
27874 static char *addr = 0;
27875 auto char dummy;
27876 if (addr == 0)
27877 {
27878 addr = &dummy;
27879 return find_stack_direction ();
27880 }
John Criswell0021c312004-02-13 21:57:29 +000027881 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027882 return (&dummy > addr) ? 1 : -1;
27883}
John Criswell0021c312004-02-13 21:57:29 +000027884
John Criswell0021c312004-02-13 21:57:29 +000027885int
27886main ()
27887{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027888 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027889}
27890_ACEOF
27891rm -f conftest$ac_exeext
27892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27893 (eval $ac_link) 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027902 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027903else
27904 echo "$as_me: program exited with status $ac_status" >&5
27905echo "$as_me: failed program was:" >&5
27906sed 's/^/| /' conftest.$ac_ext >&5
27907
27908( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027909ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027910fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027911rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027912fi
27913fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027914echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27915echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27916
27917cat >>confdefs.h <<_ACEOF
27918#define STACK_DIRECTION $ac_cv_c_stack_direction
27919_ACEOF
27920
27921
John Criswell0021c312004-02-13 21:57:29 +000027922fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027923
27924
27925echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27926echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27927if test "${ac_cv_func_rand48+set}" = set; then
27928 echo $ECHO_N "(cached) $ECHO_C" >&6
27929else
27930 ac_ext=cc
27931ac_cpp='$CXXCPP $CPPFLAGS'
27932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27935
27936 cat >conftest.$ac_ext <<_ACEOF
27937/* confdefs.h. */
27938_ACEOF
27939cat confdefs.h >>conftest.$ac_ext
27940cat >>conftest.$ac_ext <<_ACEOF
27941/* end confdefs.h. */
27942#include <stdlib.h>
27943int
27944main ()
27945{
27946srand48(0);lrand48();drand48();
27947 ;
27948 return 0;
27949}
27950_ACEOF
27951rm -f conftest.$ac_objext
27952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27953 (eval $ac_compile) 2>conftest.er1
27954 ac_status=$?
27955 grep -v '^ *+' conftest.er1 >conftest.err
27956 rm -f conftest.er1
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
27960 { ac_try='test -z "$ac_cxx_werror_flag"
27961 || test ! -s conftest.err'
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; } &&
27967 { ac_try='test -s conftest.$ac_objext'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; }; then
27973 ac_cv_func_rand48=yes
27974else
27975 echo "$as_me: failed program was:" >&5
27976sed 's/^/| /' conftest.$ac_ext >&5
27977
27978ac_cv_func_rand48=no
27979fi
27980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27981 ac_ext=c
27982ac_cpp='$CPP $CPPFLAGS'
27983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27985ac_compiler_gnu=$ac_cv_c_compiler_gnu
27986
27987fi
27988echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27989echo "${ECHO_T}$ac_cv_func_rand48" >&6
27990
27991if test "$ac_cv_func_rand48" = "yes" ; then
27992
27993cat >>confdefs.h <<\_ACEOF
27994#define HAVE_RAND48 1
27995_ACEOF
27996
27997fi
John Criswell0021c312004-02-13 21:57:29 +000027998
27999
John Criswell7a73b802003-06-30 21:59:07 +000028000echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28001echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28002if test "${ac_cv_cxx_namespaces+set}" = set; then
28003 echo $ECHO_N "(cached) $ECHO_C" >&6
28004else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028005 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028006ac_cpp='$CXXCPP $CPPFLAGS'
28007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28010
28011 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028012/* confdefs.h. */
28013_ACEOF
28014cat confdefs.h >>conftest.$ac_ext
28015cat >>conftest.$ac_ext <<_ACEOF
28016/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028017namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028018int
28019main ()
28020{
28021using namespace Outer::Inner; return i;
28022 ;
28023 return 0;
28024}
28025_ACEOF
28026rm -f conftest.$ac_objext
28027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028028 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028029 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028030 grep -v '^ *+' conftest.er1 >conftest.err
28031 rm -f conftest.er1
28032 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028035 { ac_try='test -z "$ac_cxx_werror_flag"
28036 || test ! -s conftest.err'
28037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038 (eval $ac_try) 2>&5
28039 ac_status=$?
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); }; } &&
28042 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28044 (eval $ac_try) 2>&5
28045 ac_status=$?
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); }; }; then
28048 ac_cv_cxx_namespaces=yes
28049else
28050 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028051sed 's/^/| /' conftest.$ac_ext >&5
28052
John Criswell7a73b802003-06-30 21:59:07 +000028053ac_cv_cxx_namespaces=no
28054fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028056 ac_ext=c
28057ac_cpp='$CPP $CPPFLAGS'
28058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28060ac_compiler_gnu=$ac_cv_c_compiler_gnu
28061
28062
28063fi
28064echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28065echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28066if test "$ac_cv_cxx_namespaces" = yes; then
28067
28068cat >>confdefs.h <<\_ACEOF
28069#define HAVE_NAMESPACES
28070_ACEOF
28071
28072fi
28073
Brian Gaeke90583492003-11-10 03:06:28 +000028074echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28075echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28076if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028077 echo $ECHO_N "(cached) $ECHO_C" >&6
28078else
28079
John Criswell7a73b802003-06-30 21:59:07 +000028080 ac_ext=cc
28081ac_cpp='$CXXCPP $CPPFLAGS'
28082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28085
28086 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028087/* confdefs.h. */
28088_ACEOF
28089cat confdefs.h >>conftest.$ac_ext
28090cat >>conftest.$ac_ext <<_ACEOF
28091/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028092#include <ext/hash_map>
28093#ifdef HAVE_NAMESPACES
28094using namespace std;
28095#endif
John Criswell7a73b802003-06-30 21:59:07 +000028096int
28097main ()
28098{
Brian Gaeke90583492003-11-10 03:06:28 +000028099hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028100 ;
28101 return 0;
28102}
28103_ACEOF
28104rm -f conftest.$ac_objext
28105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028106 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028108 grep -v '^ *+' conftest.er1 >conftest.err
28109 rm -f conftest.er1
28110 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028113 { ac_try='test -z "$ac_cxx_werror_flag"
28114 || test ! -s conftest.err'
28115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116 (eval $ac_try) 2>&5
28117 ac_status=$?
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; } &&
28120 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122 (eval $ac_try) 2>&5
28123 ac_status=$?
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028126 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028127else
28128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028129sed 's/^/| /' conftest.$ac_ext >&5
28130
Brian Gaeke90583492003-11-10 03:06:28 +000028131ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028132fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028134 ac_ext=c
28135ac_cpp='$CPP $CPPFLAGS'
28136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28138ac_compiler_gnu=$ac_cv_c_compiler_gnu
28139
John Criswell7a73b802003-06-30 21:59:07 +000028140fi
Brian Gaeke90583492003-11-10 03:06:28 +000028141echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28142echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028143 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28144 then
John Criswell9f011862004-09-24 18:28:00 +000028145
28146cat >>confdefs.h <<\_ACEOF
28147#define HAVE_STD_EXT_HASH_MAP 1
28148_ACEOF
28149
28150 else
28151
28152cat >>confdefs.h <<\_ACEOF
28153#define HAVE_STD_EXT_HASH_MAP 0
28154_ACEOF
28155
Brian Gaeke90583492003-11-10 03:06:28 +000028156 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028157
Brian Gaeke90583492003-11-10 03:06:28 +000028158 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28159echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28160if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28162else
28163
Brian Gaeke90583492003-11-10 03:06:28 +000028164 ac_ext=cc
28165ac_cpp='$CXXCPP $CPPFLAGS'
28166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28169
28170 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028171/* confdefs.h. */
28172_ACEOF
28173cat confdefs.h >>conftest.$ac_ext
28174cat >>conftest.$ac_ext <<_ACEOF
28175/* end confdefs.h. */
28176#include <ext/hash_map>
28177#ifdef HAVE_NAMESPACES
28178using namespace __gnu_cxx;
28179#endif
28180int
28181main ()
28182{
28183hash_map<int,int> t;
28184 ;
28185 return 0;
28186}
28187_ACEOF
28188rm -f conftest.$ac_objext
28189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028190 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028191 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028192 grep -v '^ *+' conftest.er1 >conftest.err
28193 rm -f conftest.er1
28194 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028197 { ac_try='test -z "$ac_cxx_werror_flag"
28198 || test ! -s conftest.err'
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; } &&
28204 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
28210 ac_cv_cxx_have_gnu_ext_hash_map=yes
28211else
28212 echo "$as_me: failed program was:" >&5
28213sed 's/^/| /' conftest.$ac_ext >&5
28214
28215ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028216fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028218 ac_ext=c
28219ac_cpp='$CPP $CPPFLAGS'
28220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28222ac_compiler_gnu=$ac_cv_c_compiler_gnu
28223
28224fi
28225echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28226echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028227 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28228 then
John Criswell9f011862004-09-24 18:28:00 +000028229
28230cat >>confdefs.h <<\_ACEOF
28231#define HAVE_GNU_EXT_HASH_MAP 1
28232_ACEOF
28233
28234 else
28235
28236cat >>confdefs.h <<\_ACEOF
28237#define HAVE_GNU_EXT_HASH_MAP 0
28238_ACEOF
28239
Brian Gaeke90583492003-11-10 03:06:28 +000028240 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028241
Brian Gaeke90583492003-11-10 03:06:28 +000028242 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28243echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28244if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28245 echo $ECHO_N "(cached) $ECHO_C" >&6
28246else
John Criswell7a73b802003-06-30 21:59:07 +000028247
Brian Gaeke90583492003-11-10 03:06:28 +000028248 ac_ext=cc
28249ac_cpp='$CXXCPP $CPPFLAGS'
28250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28253
28254 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028255/* confdefs.h. */
28256_ACEOF
28257cat confdefs.h >>conftest.$ac_ext
28258cat >>conftest.$ac_ext <<_ACEOF
28259/* end confdefs.h. */
28260#include <hash_map>
28261int
28262main ()
28263{
28264hash_map<int,int> t;
28265 ;
28266 return 0;
28267}
28268_ACEOF
28269rm -f conftest.$ac_objext
28270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028271 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028273 grep -v '^ *+' conftest.er1 >conftest.err
28274 rm -f conftest.er1
28275 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028278 { ac_try='test -z "$ac_cxx_werror_flag"
28279 || test ! -s conftest.err'
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28282 ac_status=$?
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; } &&
28285 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; }; then
28291 ac_cv_cxx_have_global_hash_map=yes
28292else
28293 echo "$as_me: failed program was:" >&5
28294sed 's/^/| /' conftest.$ac_ext >&5
28295
28296ac_cv_cxx_have_global_hash_map=no
28297fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028299 ac_ext=c
28300ac_cpp='$CPP $CPPFLAGS'
28301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28303ac_compiler_gnu=$ac_cv_c_compiler_gnu
28304
28305fi
28306echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28307echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028308 if test "$ac_cv_cxx_have_global_hash_map" = yes
28309 then
John Criswell9f011862004-09-24 18:28:00 +000028310
28311cat >>confdefs.h <<\_ACEOF
28312#define HAVE_GLOBAL_HASH_MAP 1
28313_ACEOF
28314
28315 else
28316
28317cat >>confdefs.h <<\_ACEOF
28318#define HAVE_GLOBAL_HASH_MAP 0
28319_ACEOF
28320
Brian Gaeke90583492003-11-10 03:06:28 +000028321 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028322
Brian Gaeke90583492003-11-10 03:06:28 +000028323echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28324echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28325if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328
John Criswell7a73b802003-06-30 21:59:07 +000028329 ac_ext=cc
28330ac_cpp='$CXXCPP $CPPFLAGS'
28331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28334
28335 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028336/* confdefs.h. */
28337_ACEOF
28338cat confdefs.h >>conftest.$ac_ext
28339cat >>conftest.$ac_ext <<_ACEOF
28340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028341#include <ext/hash_set>
28342#ifdef HAVE_NAMESPACES
28343using namespace std;
28344#endif
John Criswell7a73b802003-06-30 21:59:07 +000028345int
28346main ()
28347{
Brian Gaeke90583492003-11-10 03:06:28 +000028348hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028349 ;
28350 return 0;
28351}
28352_ACEOF
28353rm -f conftest.$ac_objext
28354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028355 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028357 grep -v '^ *+' conftest.er1 >conftest.err
28358 rm -f conftest.er1
28359 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028362 { ac_try='test -z "$ac_cxx_werror_flag"
28363 || test ! -s conftest.err'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; } &&
28369 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371 (eval $ac_try) 2>&5
28372 ac_status=$?
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028375 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028376else
28377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028378sed 's/^/| /' conftest.$ac_ext >&5
28379
Brian Gaeke90583492003-11-10 03:06:28 +000028380ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028381fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028383 ac_ext=c
28384ac_cpp='$CPP $CPPFLAGS'
28385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28387ac_compiler_gnu=$ac_cv_c_compiler_gnu
28388
28389fi
28390echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28391echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028392 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28393 then
John Criswell9f011862004-09-24 18:28:00 +000028394
28395cat >>confdefs.h <<\_ACEOF
28396#define HAVE_STD_EXT_HASH_SET 1
28397_ACEOF
28398
28399 else
28400
28401cat >>confdefs.h <<\_ACEOF
28402#define HAVE_STD_EXT_HASH_SET 0
28403_ACEOF
28404
Brian Gaeke90583492003-11-10 03:06:28 +000028405 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028406
Brian Gaeke90583492003-11-10 03:06:28 +000028407 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28408echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28409if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28410 echo $ECHO_N "(cached) $ECHO_C" >&6
28411else
28412
Brian Gaeke90583492003-11-10 03:06:28 +000028413 ac_ext=cc
28414ac_cpp='$CXXCPP $CPPFLAGS'
28415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28418
John Criswell7a73b802003-06-30 21:59:07 +000028419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028425#include <ext/hash_set>
28426#ifdef HAVE_NAMESPACES
28427using namespace __gnu_cxx;
28428#endif
John Criswell7a73b802003-06-30 21:59:07 +000028429int
28430main ()
28431{
Brian Gaeke90583492003-11-10 03:06:28 +000028432hash_set<int> t;
28433 ;
28434 return 0;
28435}
28436_ACEOF
28437rm -f conftest.$ac_objext
28438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028439 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028441 grep -v '^ *+' conftest.er1 >conftest.err
28442 rm -f conftest.er1
28443 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028446 { ac_try='test -z "$ac_cxx_werror_flag"
28447 || test ! -s conftest.err'
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28450 ac_status=$?
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; } &&
28453 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028454 { (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); }; }; then
28459 ac_cv_cxx_have_gnu_ext_hash_set=yes
28460else
28461 echo "$as_me: failed program was:" >&5
28462sed 's/^/| /' conftest.$ac_ext >&5
28463
28464ac_cv_cxx_have_gnu_ext_hash_set=no
28465fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028467 ac_ext=c
28468ac_cpp='$CPP $CPPFLAGS'
28469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28471ac_compiler_gnu=$ac_cv_c_compiler_gnu
28472
28473fi
28474echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28475echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028476 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28477 then
John Criswell9f011862004-09-24 18:28:00 +000028478
28479cat >>confdefs.h <<\_ACEOF
28480#define HAVE_GNU_EXT_HASH_SET 1
28481_ACEOF
28482
28483 else
28484
28485cat >>confdefs.h <<\_ACEOF
28486#define HAVE_GNU_EXT_HASH_SET 0
28487_ACEOF
28488
Brian Gaeke90583492003-11-10 03:06:28 +000028489 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028490
Brian Gaeke90583492003-11-10 03:06:28 +000028491 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28492echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28493if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28494 echo $ECHO_N "(cached) $ECHO_C" >&6
28495else
28496
Brian Gaeke90583492003-11-10 03:06:28 +000028497 ac_ext=cc
28498ac_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
Brian Gaeke90583492003-11-10 03:06:28 +000028504/* confdefs.h. */
28505_ACEOF
28506cat confdefs.h >>conftest.$ac_ext
28507cat >>conftest.$ac_ext <<_ACEOF
28508/* end confdefs.h. */
28509#include <hash_set>
28510int
28511main ()
28512{
John Criswell7a73b802003-06-30 21:59:07 +000028513hash_set<int> t; return 0;
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
Brian Gaeke90583492003-11-10 03:06:28 +000028540 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028541else
28542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028543sed 's/^/| /' conftest.$ac_ext >&5
28544
Brian Gaeke90583492003-11-10 03:06:28 +000028545ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028546fi
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
John Criswell7a73b802003-06-30 21:59:07 +000028554fi
Brian Gaeke90583492003-11-10 03:06:28 +000028555echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28556echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028557 if test "$ac_cv_cxx_have_global_hash_set" = yes
28558 then
John Criswell9f011862004-09-24 18:28:00 +000028559
28560cat >>confdefs.h <<\_ACEOF
28561#define HAVE_GLOBAL_HASH_SET 1
28562_ACEOF
28563
28564 else
28565
28566cat >>confdefs.h <<\_ACEOF
28567#define HAVE_GLOBAL_HASH_SET 0
28568_ACEOF
28569
Brian Gaeke90583492003-11-10 03:06:28 +000028570 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028571
John Criswell7a73b802003-06-30 21:59:07 +000028572echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28573echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28574if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28575 echo $ECHO_N "(cached) $ECHO_C" >&6
28576else
28577
John Criswell7a73b802003-06-30 21:59:07 +000028578 ac_ext=cc
28579ac_cpp='$CXXCPP $CPPFLAGS'
28580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28583
28584 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028585/* confdefs.h. */
28586_ACEOF
28587cat confdefs.h >>conftest.$ac_ext
28588cat >>conftest.$ac_ext <<_ACEOF
28589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028590#include <iterator>
28591#ifdef HAVE_NAMESPACES
28592using namespace std;
28593#endif
John Criswell7a73b802003-06-30 21:59:07 +000028594int
28595main ()
28596{
28597iterator<int,int,int> t; return 0;
28598 ;
28599 return 0;
28600}
28601_ACEOF
28602rm -f conftest.$ac_objext
28603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028604 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028605 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028606 grep -v '^ *+' conftest.er1 >conftest.err
28607 rm -f conftest.er1
28608 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028611 { ac_try='test -z "$ac_cxx_werror_flag"
28612 || test ! -s conftest.err'
28613 { (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); }; } &&
28618 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28621 ac_status=$?
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; }; then
28624 ac_cv_cxx_have_std_iterator=yes
28625else
28626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028627sed 's/^/| /' conftest.$ac_ext >&5
28628
John Criswell7a73b802003-06-30 21:59:07 +000028629ac_cv_cxx_have_std_iterator=no
28630fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028632 ac_ext=c
28633ac_cpp='$CPP $CPPFLAGS'
28634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28636ac_compiler_gnu=$ac_cv_c_compiler_gnu
28637
28638
28639fi
28640echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28641echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028642if test "$ac_cv_cxx_have_std_iterator" = yes
28643then
John Criswell40468462004-09-24 21:19:06 +000028644
28645cat >>confdefs.h <<\_ACEOF
28646#define HAVE_STD_ITERATOR 1
28647_ACEOF
28648
28649else
28650
28651cat >>confdefs.h <<\_ACEOF
28652#define HAVE_STD_ITERATOR 0
28653_ACEOF
28654
John Criswell7a73b802003-06-30 21:59:07 +000028655fi
28656
28657echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28658echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28659if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28661else
28662
John Criswell7a73b802003-06-30 21:59:07 +000028663 ac_ext=cc
28664ac_cpp='$CXXCPP $CPPFLAGS'
28665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28668
28669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028670/* confdefs.h. */
28671_ACEOF
28672cat confdefs.h >>conftest.$ac_ext
28673cat >>conftest.$ac_ext <<_ACEOF
28674/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028675#include <iterator>
28676#ifdef HAVE_NAMESPACES
28677using namespace std;
28678#endif
John Criswell7a73b802003-06-30 21:59:07 +000028679int
28680main ()
28681{
John Criswellc78022e2003-07-29 19:11:58 +000028682bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028683 ;
28684 return 0;
28685}
28686_ACEOF
28687rm -f conftest.$ac_objext
28688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028689 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028691 grep -v '^ *+' conftest.er1 >conftest.err
28692 rm -f conftest.er1
28693 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028696 { ac_try='test -z "$ac_cxx_werror_flag"
28697 || test ! -s conftest.err'
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; } &&
28703 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; }; then
28709 ac_cv_cxx_have_bi_iterator=yes
28710else
28711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028712sed 's/^/| /' conftest.$ac_ext >&5
28713
John Criswell7a73b802003-06-30 21:59:07 +000028714ac_cv_cxx_have_bi_iterator=no
28715fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028717 ac_ext=c
28718ac_cpp='$CPP $CPPFLAGS'
28719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28721ac_compiler_gnu=$ac_cv_c_compiler_gnu
28722
28723
28724fi
28725echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28726echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028727if test "$ac_cv_cxx_have_bi_iterator" = yes
28728then
John Criswell40468462004-09-24 21:19:06 +000028729
28730cat >>confdefs.h <<\_ACEOF
28731#define HAVE_BI_ITERATOR 1
28732_ACEOF
28733
28734else
28735
28736cat >>confdefs.h <<\_ACEOF
28737#define HAVE_BI_ITERATOR 0
28738_ACEOF
28739
John Criswell7a73b802003-06-30 21:59:07 +000028740fi
28741
28742echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28743echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28744if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28745 echo $ECHO_N "(cached) $ECHO_C" >&6
28746else
28747
John Criswell7a73b802003-06-30 21:59:07 +000028748 ac_ext=cc
28749ac_cpp='$CXXCPP $CPPFLAGS'
28750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28753
28754 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028755/* confdefs.h. */
28756_ACEOF
28757cat confdefs.h >>conftest.$ac_ext
28758cat >>conftest.$ac_ext <<_ACEOF
28759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028760#include <iterator>
28761#ifdef HAVE_NAMESPACES
28762using namespace std;
28763#endif
John Criswell7a73b802003-06-30 21:59:07 +000028764int
28765main ()
28766{
John Criswellc78022e2003-07-29 19:11:58 +000028767forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028768 ;
28769 return 0;
28770}
28771_ACEOF
28772rm -f conftest.$ac_objext
28773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028774 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028775 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028776 grep -v '^ *+' conftest.er1 >conftest.err
28777 rm -f conftest.er1
28778 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028781 { ac_try='test -z "$ac_cxx_werror_flag"
28782 || test ! -s conftest.err'
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28785 ac_status=$?
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; } &&
28788 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790 (eval $ac_try) 2>&5
28791 ac_status=$?
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 ac_cv_cxx_have_fwd_iterator=yes
28795else
28796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028797sed 's/^/| /' conftest.$ac_ext >&5
28798
John Criswell7a73b802003-06-30 21:59:07 +000028799ac_cv_cxx_have_fwd_iterator=no
28800fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028802 ac_ext=c
28803ac_cpp='$CPP $CPPFLAGS'
28804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28806ac_compiler_gnu=$ac_cv_c_compiler_gnu
28807
28808
28809fi
28810echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28811echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028812if test "$ac_cv_cxx_have_fwd_iterator" = yes
28813then
John Criswell40468462004-09-24 21:19:06 +000028814
28815cat >>confdefs.h <<\_ACEOF
28816#define HAVE_FWD_ITERATOR 1
28817_ACEOF
28818
28819else
28820
28821cat >>confdefs.h <<\_ACEOF
28822#define HAVE_FWD_ITERATOR 0
28823_ACEOF
28824
John Criswell7a73b802003-06-30 21:59:07 +000028825fi
28826
28827
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028828echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28829echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28830if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28831 echo $ECHO_N "(cached) $ECHO_C" >&6
28832else
28833 ac_ext=cc
28834ac_cpp='$CXXCPP $CPPFLAGS'
28835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28838
Reid Spencerabec8f92004-10-27 23:03:44 +000028839 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028840/* confdefs.h. */
28841_ACEOF
28842cat confdefs.h >>conftest.$ac_ext
28843cat >>conftest.$ac_ext <<_ACEOF
28844/* end confdefs.h. */
28845#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028846int
28847main ()
28848{
28849float f; isnan(f);
28850 ;
28851 return 0;
28852}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028853_ACEOF
28854rm -f conftest.$ac_objext
28855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028856 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028857 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028858 grep -v '^ *+' conftest.er1 >conftest.err
28859 rm -f conftest.er1
28860 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028863 { ac_try='test -z "$ac_cxx_werror_flag"
28864 || test ! -s conftest.err'
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; } &&
28870 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872 (eval $ac_try) 2>&5
28873 ac_status=$?
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; }; then
28876 ac_cv_func_isnan_in_math_h=yes
28877else
28878 echo "$as_me: failed program was:" >&5
28879sed 's/^/| /' conftest.$ac_ext >&5
28880
28881ac_cv_func_isnan_in_math_h=no
28882fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028884 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028885ac_cpp='$CPP $CPPFLAGS'
28886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28888ac_compiler_gnu=$ac_cv_c_compiler_gnu
28889
28890fi
28891echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28892echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028893
28894
28895if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028896
28897cat >>confdefs.h <<\_ACEOF
28898#define HAVE_ISNAN_IN_MATH_H 1
28899_ACEOF
28900
Reid Spencerabec8f92004-10-27 23:03:44 +000028901fi
28902
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028903echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28904echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28905if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28906 echo $ECHO_N "(cached) $ECHO_C" >&6
28907else
28908 ac_ext=cc
28909ac_cpp='$CXXCPP $CPPFLAGS'
28910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28913
Reid Spencerabec8f92004-10-27 23:03:44 +000028914 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028915/* confdefs.h. */
28916_ACEOF
28917cat confdefs.h >>conftest.$ac_ext
28918cat >>conftest.$ac_ext <<_ACEOF
28919/* end confdefs.h. */
28920#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028921int
28922main ()
28923{
28924float f; isnan(f);
28925 ;
28926 return 0;
28927}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028928_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 Gaeke6f5b6212004-06-22 23:47:13 +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 Gaeke6f5b6212004-06-22 23:47:13 +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 Gaeke6f5b6212004-06-22 23:47:13 +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_func_isnan_in_cmath=yes
28952else
28953 echo "$as_me: failed program was:" >&5
28954sed 's/^/| /' conftest.$ac_ext >&5
28955
28956ac_cv_func_isnan_in_cmath=no
28957fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028959 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028960ac_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_func_isnan_in_cmath" >&5
28967echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028968
28969if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028970
28971cat >>confdefs.h <<\_ACEOF
28972#define HAVE_ISNAN_IN_CMATH 1
28973_ACEOF
28974
Reid Spencerabec8f92004-10-27 23:03:44 +000028975fi
28976
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028977echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28978echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28979if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28981else
28982 ac_ext=cc
28983ac_cpp='$CXXCPP $CPPFLAGS'
28984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28987
Reid Spencerabec8f92004-10-27 23:03:44 +000028988 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028989/* confdefs.h. */
28990_ACEOF
28991cat confdefs.h >>conftest.$ac_ext
28992cat >>conftest.$ac_ext <<_ACEOF
28993/* end confdefs.h. */
28994#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028995int
28996main ()
28997{
28998float f; std::isnan(f);
28999 ;
29000 return 0;
29001}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029002_ACEOF
29003rm -f conftest.$ac_objext
29004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029005 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029006 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029007 grep -v '^ *+' conftest.er1 >conftest.err
29008 rm -f conftest.er1
29009 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029012 { ac_try='test -z "$ac_cxx_werror_flag"
29013 || test ! -s conftest.err'
29014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015 (eval $ac_try) 2>&5
29016 ac_status=$?
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; } &&
29019 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; }; then
29025 ac_cv_func_std_isnan_in_cmath=yes
29026else
29027 echo "$as_me: failed program was:" >&5
29028sed 's/^/| /' conftest.$ac_ext >&5
29029
29030ac_cv_func_std_isnan_in_cmath=no
29031fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029033 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029034ac_cpp='$CPP $CPPFLAGS'
29035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29037ac_compiler_gnu=$ac_cv_c_compiler_gnu
29038
29039fi
29040echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29041echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029042
29043if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029044
29045cat >>confdefs.h <<\_ACEOF
29046#define HAVE_STD_ISNAN_IN_CMATH 1
29047_ACEOF
29048
Reid Spencerabec8f92004-10-27 23:03:44 +000029049fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029050
29051
Brian Gaeke52a551d2004-07-21 03:14:12 +000029052echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29053echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29054if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29056else
29057 ac_ext=cc
29058ac_cpp='$CXXCPP $CPPFLAGS'
29059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29062
Reid Spencerabec8f92004-10-27 23:03:44 +000029063 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029064/* confdefs.h. */
29065_ACEOF
29066cat confdefs.h >>conftest.$ac_ext
29067cat >>conftest.$ac_ext <<_ACEOF
29068/* end confdefs.h. */
29069#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029070int
29071main ()
29072{
29073float f; isinf(f);
29074 ;
29075 return 0;
29076}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029077_ACEOF
29078rm -f conftest.$ac_objext
29079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029080 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029081 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029082 grep -v '^ *+' conftest.er1 >conftest.err
29083 rm -f conftest.er1
29084 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029087 { ac_try='test -z "$ac_cxx_werror_flag"
29088 || test ! -s conftest.err'
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29091 ac_status=$?
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; } &&
29094 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29097 ac_status=$?
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; }; then
29100 ac_cv_func_isinf_in_math_h=yes
29101else
29102 echo "$as_me: failed program was:" >&5
29103sed 's/^/| /' conftest.$ac_ext >&5
29104
29105ac_cv_func_isinf_in_math_h=no
29106fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029108 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029109ac_cpp='$CPP $CPPFLAGS'
29110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29112ac_compiler_gnu=$ac_cv_c_compiler_gnu
29113
29114fi
29115echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29116echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029117
29118if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029119
29120cat >>confdefs.h <<\_ACEOF
29121#define HAVE_ISINF_IN_MATH_H 1
29122_ACEOF
29123
Reid Spencerabec8f92004-10-27 23:03:44 +000029124fi
29125
Brian Gaeke52a551d2004-07-21 03:14:12 +000029126echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29127echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29128if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29129 echo $ECHO_N "(cached) $ECHO_C" >&6
29130else
29131 ac_ext=cc
29132ac_cpp='$CXXCPP $CPPFLAGS'
29133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29136
Reid Spencerabec8f92004-10-27 23:03:44 +000029137 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029138/* confdefs.h. */
29139_ACEOF
29140cat confdefs.h >>conftest.$ac_ext
29141cat >>conftest.$ac_ext <<_ACEOF
29142/* end confdefs.h. */
29143#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029144int
29145main ()
29146{
29147float f; isinf(f);
29148 ;
29149 return 0;
29150}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029151_ACEOF
29152rm -f conftest.$ac_objext
29153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029154 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029156 grep -v '^ *+' conftest.er1 >conftest.err
29157 rm -f conftest.er1
29158 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029161 { ac_try='test -z "$ac_cxx_werror_flag"
29162 || test ! -s conftest.err'
29163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164 (eval $ac_try) 2>&5
29165 ac_status=$?
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); }; } &&
29168 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170 (eval $ac_try) 2>&5
29171 ac_status=$?
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; }; then
29174 ac_cv_func_isinf_in_cmath=yes
29175else
29176 echo "$as_me: failed program was:" >&5
29177sed 's/^/| /' conftest.$ac_ext >&5
29178
29179ac_cv_func_isinf_in_cmath=no
29180fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029182 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029183ac_cpp='$CPP $CPPFLAGS'
29184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29186ac_compiler_gnu=$ac_cv_c_compiler_gnu
29187
29188fi
29189echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29190echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029191
29192if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029193
29194cat >>confdefs.h <<\_ACEOF
29195#define HAVE_ISINF_IN_CMATH 1
29196_ACEOF
29197
Reid Spencerabec8f92004-10-27 23:03:44 +000029198fi
29199
Brian Gaeke52a551d2004-07-21 03:14:12 +000029200echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29201echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29202if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29204else
29205 ac_ext=cc
29206ac_cpp='$CXXCPP $CPPFLAGS'
29207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29210
Reid Spencerabec8f92004-10-27 23:03:44 +000029211 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029212/* confdefs.h. */
29213_ACEOF
29214cat confdefs.h >>conftest.$ac_ext
29215cat >>conftest.$ac_ext <<_ACEOF
29216/* end confdefs.h. */
29217#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029218int
29219main ()
29220{
29221float f; std::isinf(f)}
29222 ;
29223 return 0;
29224}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029225_ACEOF
29226rm -f conftest.$ac_objext
29227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029228 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029229 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029230 grep -v '^ *+' conftest.er1 >conftest.err
29231 rm -f conftest.er1
29232 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029235 { ac_try='test -z "$ac_cxx_werror_flag"
29236 || test ! -s conftest.err'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29239 ac_status=$?
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; } &&
29242 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; }; then
29248 ac_cv_func_std_isinf_in_cmath=yes
29249else
29250 echo "$as_me: failed program was:" >&5
29251sed 's/^/| /' conftest.$ac_ext >&5
29252
29253ac_cv_func_std_isinf_in_cmath=no
29254fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029256 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029257ac_cpp='$CPP $CPPFLAGS'
29258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29260ac_compiler_gnu=$ac_cv_c_compiler_gnu
29261
29262fi
29263echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29264echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029265
29266if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029267
29268cat >>confdefs.h <<\_ACEOF
29269#define HAVE_STD_ISINF_IN_CMATH 1
29270_ACEOF
29271
Reid Spencerabec8f92004-10-27 23:03:44 +000029272fi
29273
Brian Gaeked59a6472004-07-21 03:33:58 +000029274echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29275echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29276if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29278else
29279 ac_ext=cc
29280ac_cpp='$CXXCPP $CPPFLAGS'
29281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29284
Reid Spencerabec8f92004-10-27 23:03:44 +000029285 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029286/* confdefs.h. */
29287_ACEOF
29288cat confdefs.h >>conftest.$ac_ext
29289cat >>conftest.$ac_ext <<_ACEOF
29290/* end confdefs.h. */
29291#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029292int
29293main ()
29294{
29295float f; finite(f);
29296 ;
29297 return 0;
29298}
Brian Gaeked59a6472004-07-21 03:33:58 +000029299_ACEOF
29300rm -f conftest.$ac_objext
29301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029302 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029303 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029304 grep -v '^ *+' conftest.er1 >conftest.err
29305 rm -f conftest.er1
29306 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029309 { ac_try='test -z "$ac_cxx_werror_flag"
29310 || test ! -s conftest.err'
29311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312 (eval $ac_try) 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; } &&
29316 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29318 (eval $ac_try) 2>&5
29319 ac_status=$?
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; }; then
29322 ac_cv_func_finite_in_ieeefp_h=yes
29323else
29324 echo "$as_me: failed program was:" >&5
29325sed 's/^/| /' conftest.$ac_ext >&5
29326
29327ac_cv_func_finite_in_ieeefp_h=no
29328fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029330 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029331ac_cpp='$CPP $CPPFLAGS'
29332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29334ac_compiler_gnu=$ac_cv_c_compiler_gnu
29335
29336fi
29337echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29338echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029339
Brian Gaeke6802b552004-10-28 05:06:45 +000029340if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029341
29342cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029343#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029344_ACEOF
29345
Reid Spencerabec8f92004-10-27 23:03:44 +000029346fi
29347
29348
29349
John Criswell7a73b802003-06-30 21:59:07 +000029350
29351
29352for ac_header in stdlib.h unistd.h
29353do
29354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29355if eval "test \"\${$as_ac_Header+set}\" = set"; then
29356 echo "$as_me:$LINENO: checking for $ac_header" >&5
29357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29358if eval "test \"\${$as_ac_Header+set}\" = set"; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29360fi
29361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29363else
29364 # Is the header compilable?
29365echo "$as_me:$LINENO: checking $ac_header usability" >&5
29366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29367cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029368/* confdefs.h. */
29369_ACEOF
29370cat confdefs.h >>conftest.$ac_ext
29371cat >>conftest.$ac_ext <<_ACEOF
29372/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029373$ac_includes_default
29374#include <$ac_header>
29375_ACEOF
29376rm -f conftest.$ac_objext
29377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029378 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029380 grep -v '^ *+' conftest.er1 >conftest.err
29381 rm -f conftest.er1
29382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029385 { ac_try='test -z "$ac_c_werror_flag"
29386 || test ! -s conftest.err'
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29389 ac_status=$?
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; } &&
29392 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; }; then
29398 ac_header_compiler=yes
29399else
29400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029401sed 's/^/| /' conftest.$ac_ext >&5
29402
John Criswell7a73b802003-06-30 21:59:07 +000029403ac_header_compiler=no
29404fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29407echo "${ECHO_T}$ac_header_compiler" >&6
29408
29409# Is the header present?
29410echo "$as_me:$LINENO: checking $ac_header presence" >&5
29411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29412cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029413/* confdefs.h. */
29414_ACEOF
29415cat confdefs.h >>conftest.$ac_ext
29416cat >>conftest.$ac_ext <<_ACEOF
29417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029418#include <$ac_header>
29419_ACEOF
29420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29422 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029423 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029424 rm -f conftest.er1
29425 cat conftest.err >&5
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); } >/dev/null; then
29428 if test -s conftest.err; then
29429 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029431 else
29432 ac_cpp_err=
29433 fi
29434else
29435 ac_cpp_err=yes
29436fi
29437if test -z "$ac_cpp_err"; then
29438 ac_header_preproc=yes
29439else
29440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029441sed 's/^/| /' conftest.$ac_ext >&5
29442
John Criswell7a73b802003-06-30 21:59:07 +000029443 ac_header_preproc=no
29444fi
29445rm -f conftest.err conftest.$ac_ext
29446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29447echo "${ECHO_T}$ac_header_preproc" >&6
29448
29449# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29451 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29456 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029457 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029458 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029471 (
29472 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029473## ----------------------------------- ##
29474## Report this to llvmbugs@cs.uiuc.edu ##
29475## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029476_ASBOX
29477 ) |
29478 sed "s/^/$as_me: WARNING: /" >&2
29479 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029480esac
29481echo "$as_me:$LINENO: checking for $ac_header" >&5
29482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29483if eval "test \"\${$as_ac_Header+set}\" = set"; then
29484 echo $ECHO_N "(cached) $ECHO_C" >&6
29485else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029486 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029487fi
29488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29490
29491fi
29492if test `eval echo '${'$as_ac_Header'}'` = yes; then
29493 cat >>confdefs.h <<_ACEOF
29494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29495_ACEOF
29496
29497fi
29498
29499done
29500
29501
29502for ac_func in getpagesize
29503do
29504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29505echo "$as_me:$LINENO: checking for $ac_func" >&5
29506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29507if eval "test \"\${$as_ac_var+set}\" = set"; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29509else
29510 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029511/* confdefs.h. */
29512_ACEOF
29513cat confdefs.h >>conftest.$ac_ext
29514cat >>conftest.$ac_ext <<_ACEOF
29515/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29518#define $ac_func innocuous_$ac_func
29519
John Criswell7a73b802003-06-30 21:59:07 +000029520/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029521 which can conflict with char $ac_func (); below.
29522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29523 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029524
John Criswell0c38eaf2003-09-10 15:17:25 +000029525#ifdef __STDC__
29526# include <limits.h>
29527#else
29528# include <assert.h>
29529#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029530
29531#undef $ac_func
29532
John Criswell7a73b802003-06-30 21:59:07 +000029533/* Override any gcc2 internal prototype to avoid an error. */
29534#ifdef __cplusplus
29535extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029536{
John Criswell7a73b802003-06-30 21:59:07 +000029537#endif
29538/* We use char because int might match the return type of a gcc2
29539 builtin and then its argument prototype would still apply. */
29540char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029541/* The GNU C library defines this for functions which it implements
29542 to always fail with ENOSYS. Some functions are actually named
29543 something starting with __ and the normal name is an alias. */
29544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29545choke me
29546#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029547char (*f) () = $ac_func;
29548#endif
29549#ifdef __cplusplus
29550}
John Criswell7a73b802003-06-30 21:59:07 +000029551#endif
29552
John Criswell0c38eaf2003-09-10 15:17:25 +000029553int
29554main ()
29555{
29556return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029557 ;
29558 return 0;
29559}
29560_ACEOF
29561rm -f conftest.$ac_objext conftest$ac_exeext
29562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029563 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029565 grep -v '^ *+' conftest.er1 >conftest.err
29566 rm -f conftest.er1
29567 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029570 { ac_try='test -z "$ac_c_werror_flag"
29571 || test ! -s conftest.err'
29572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29573 (eval $ac_try) 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; } &&
29577 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29579 (eval $ac_try) 2>&5
29580 ac_status=$?
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); }; }; then
29583 eval "$as_ac_var=yes"
29584else
29585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029586sed 's/^/| /' conftest.$ac_ext >&5
29587
John Criswell7a73b802003-06-30 21:59:07 +000029588eval "$as_ac_var=no"
29589fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029590rm -f conftest.err conftest.$ac_objext \
29591 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029592fi
29593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29594echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29595if test `eval echo '${'$as_ac_var'}'` = yes; then
29596 cat >>confdefs.h <<_ACEOF
29597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29598_ACEOF
29599
29600fi
29601done
29602
29603echo "$as_me:$LINENO: checking for working mmap" >&5
29604echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29605if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29606 echo $ECHO_N "(cached) $ECHO_C" >&6
29607else
29608 if test "$cross_compiling" = yes; then
29609 ac_cv_func_mmap_fixed_mapped=no
29610else
29611 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029612/* confdefs.h. */
29613_ACEOF
29614cat confdefs.h >>conftest.$ac_ext
29615cat >>conftest.$ac_ext <<_ACEOF
29616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029617$ac_includes_default
29618/* malloc might have been renamed as rpl_malloc. */
29619#undef malloc
29620
29621/* Thanks to Mike Haertel and Jim Avera for this test.
29622 Here is a matrix of mmap possibilities:
29623 mmap private not fixed
29624 mmap private fixed at somewhere currently unmapped
29625 mmap private fixed at somewhere already mapped
29626 mmap shared not fixed
29627 mmap shared fixed at somewhere currently unmapped
29628 mmap shared fixed at somewhere already mapped
29629 For private mappings, we should verify that changes cannot be read()
29630 back from the file, nor mmap's back from the file at a different
29631 address. (There have been systems where private was not correctly
29632 implemented like the infamous i386 svr4.0, and systems where the
29633 VM page cache was not coherent with the file system buffer cache
29634 like early versions of FreeBSD and possibly contemporary NetBSD.)
29635 For shared mappings, we should conversely verify that changes get
29636 propagated back to all the places they're supposed to be.
29637
29638 Grep wants private fixed already mapped.
29639 The main things grep needs to know about mmap are:
29640 * does it exist and is it safe to write into the mmap'd area
29641 * how to use it (BSD variants) */
29642
29643#include <fcntl.h>
29644#include <sys/mman.h>
29645
29646#if !STDC_HEADERS && !HAVE_STDLIB_H
29647char *malloc ();
29648#endif
29649
29650/* This mess was copied from the GNU getpagesize.h. */
29651#if !HAVE_GETPAGESIZE
29652/* Assume that all systems that can run configure have sys/param.h. */
29653# if !HAVE_SYS_PARAM_H
29654# define HAVE_SYS_PARAM_H 1
29655# endif
29656
29657# ifdef _SC_PAGESIZE
29658# define getpagesize() sysconf(_SC_PAGESIZE)
29659# else /* no _SC_PAGESIZE */
29660# if HAVE_SYS_PARAM_H
29661# include <sys/param.h>
29662# ifdef EXEC_PAGESIZE
29663# define getpagesize() EXEC_PAGESIZE
29664# else /* no EXEC_PAGESIZE */
29665# ifdef NBPG
29666# define getpagesize() NBPG * CLSIZE
29667# ifndef CLSIZE
29668# define CLSIZE 1
29669# endif /* no CLSIZE */
29670# else /* no NBPG */
29671# ifdef NBPC
29672# define getpagesize() NBPC
29673# else /* no NBPC */
29674# ifdef PAGESIZE
29675# define getpagesize() PAGESIZE
29676# endif /* PAGESIZE */
29677# endif /* no NBPC */
29678# endif /* no NBPG */
29679# endif /* no EXEC_PAGESIZE */
29680# else /* no HAVE_SYS_PARAM_H */
29681# define getpagesize() 8192 /* punt totally */
29682# endif /* no HAVE_SYS_PARAM_H */
29683# endif /* no _SC_PAGESIZE */
29684
29685#endif /* no HAVE_GETPAGESIZE */
29686
29687int
29688main ()
29689{
29690 char *data, *data2, *data3;
29691 int i, pagesize;
29692 int fd;
29693
29694 pagesize = getpagesize ();
29695
29696 /* First, make a file with some known garbage in it. */
29697 data = (char *) malloc (pagesize);
29698 if (!data)
29699 exit (1);
29700 for (i = 0; i < pagesize; ++i)
29701 *(data + i) = rand ();
29702 umask (0);
29703 fd = creat ("conftest.mmap", 0600);
29704 if (fd < 0)
29705 exit (1);
29706 if (write (fd, data, pagesize) != pagesize)
29707 exit (1);
29708 close (fd);
29709
29710 /* Next, try to mmap the file at a fixed address which already has
29711 something else allocated at it. If we can, also make sure that
29712 we see the same garbage. */
29713 fd = open ("conftest.mmap", O_RDWR);
29714 if (fd < 0)
29715 exit (1);
29716 data2 = (char *) malloc (2 * pagesize);
29717 if (!data2)
29718 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029719 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029720 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029721 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029722 exit (1);
29723 for (i = 0; i < pagesize; ++i)
29724 if (*(data + i) != *(data2 + i))
29725 exit (1);
29726
29727 /* Finally, make sure that changes to the mapped area do not
29728 percolate back to the file as seen by read(). (This is a bug on
29729 some variants of i386 svr4.0.) */
29730 for (i = 0; i < pagesize; ++i)
29731 *(data2 + i) = *(data2 + i) + 1;
29732 data3 = (char *) malloc (pagesize);
29733 if (!data3)
29734 exit (1);
29735 if (read (fd, data3, pagesize) != pagesize)
29736 exit (1);
29737 for (i = 0; i < pagesize; ++i)
29738 if (*(data + i) != *(data3 + i))
29739 exit (1);
29740 close (fd);
29741 exit (0);
29742}
29743_ACEOF
29744rm -f conftest$ac_exeext
29745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29746 (eval $ac_link) 2>&5
29747 ac_status=$?
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29751 (eval $ac_try) 2>&5
29752 ac_status=$?
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); }; }; then
29755 ac_cv_func_mmap_fixed_mapped=yes
29756else
29757 echo "$as_me: program exited with status $ac_status" >&5
29758echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029759sed 's/^/| /' conftest.$ac_ext >&5
29760
John Criswell7a73b802003-06-30 21:59:07 +000029761( exit $ac_status )
29762ac_cv_func_mmap_fixed_mapped=no
29763fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029764rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029765fi
29766fi
29767echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29768echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29769if test $ac_cv_func_mmap_fixed_mapped = yes; then
29770
29771cat >>confdefs.h <<\_ACEOF
29772#define HAVE_MMAP 1
29773_ACEOF
29774
29775fi
29776rm -f conftest.mmap
29777
29778echo "$as_me:$LINENO: checking for mmap of files" >&5
29779echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29780if test "${ac_cv_func_mmap_file+set}" = set; then
29781 echo $ECHO_N "(cached) $ECHO_C" >&6
29782else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029783 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029784ac_cpp='$CPP $CPPFLAGS'
29785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29787ac_compiler_gnu=$ac_cv_c_compiler_gnu
29788
29789 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029790 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029791else
29792 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029793
Reid Spencer777ce172004-09-20 04:09:56 +000029794 /* confdefs.h. */
29795_ACEOF
29796cat confdefs.h >>conftest.$ac_ext
29797cat >>conftest.$ac_ext <<_ACEOF
29798/* end confdefs.h. */
29799
John Criswell7a73b802003-06-30 21:59:07 +000029800#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029801#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029802#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029803
29804int
29805main ()
29806{
John Criswell7a73b802003-06-30 21:59:07 +000029807
29808 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029809 fd = creat ("foo",0777);
29810 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29811 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029812 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029813 ;
29814 return 0;
29815}
John Criswell7a73b802003-06-30 21:59:07 +000029816_ACEOF
29817rm -f conftest$ac_exeext
29818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29819 (eval $ac_link) 2>&5
29820 ac_status=$?
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824 (eval $ac_try) 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 ac_cv_func_mmap_file=yes
29829else
29830 echo "$as_me: program exited with status $ac_status" >&5
29831echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029832sed 's/^/| /' conftest.$ac_ext >&5
29833
John Criswell7a73b802003-06-30 21:59:07 +000029834( exit $ac_status )
29835ac_cv_func_mmap_file=no
29836fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029837rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029838fi
29839 ac_ext=c
29840ac_cpp='$CPP $CPPFLAGS'
29841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29843ac_compiler_gnu=$ac_cv_c_compiler_gnu
29844
29845
29846fi
29847echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29848echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29849if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029850
29851cat >>confdefs.h <<\_ACEOF
29852#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029853_ACEOF
29854
29855 MMAP_FILE=yes
29856
29857fi
29858
Reid Spencer7931a782004-12-27 06:15:02 +000029859echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29860echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29861if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29862 echo $ECHO_N "(cached) $ECHO_C" >&6
29863else
Reid Spencer582a23c2004-12-29 07:07:57 +000029864 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000029865 ac_cv_need_dev_zero_for_mmap=yes
29866 else
29867 ac_cv_need_dev_zero_for_mmap=no
29868 fi
29869
29870fi
29871echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29872echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29873if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29874
29875cat >>confdefs.h <<\_ACEOF
29876#define NEED_DEV_ZERO_FOR_MMAP 1
29877_ACEOF
29878
29879fi
John Criswell7a73b802003-06-30 21:59:07 +000029880echo "$as_me:$LINENO: checking for mprotect" >&5
29881echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29882if test "${ac_cv_func_mprotect+set}" = set; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
29884else
29885 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029886/* confdefs.h. */
29887_ACEOF
29888cat confdefs.h >>conftest.$ac_ext
29889cat >>conftest.$ac_ext <<_ACEOF
29890/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029891/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29893#define mprotect innocuous_mprotect
29894
John Criswell7a73b802003-06-30 21:59:07 +000029895/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029896 which can conflict with char mprotect (); below.
29897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29898 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029899
John Criswell0c38eaf2003-09-10 15:17:25 +000029900#ifdef __STDC__
29901# include <limits.h>
29902#else
29903# include <assert.h>
29904#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029905
29906#undef mprotect
29907
John Criswell7a73b802003-06-30 21:59:07 +000029908/* Override any gcc2 internal prototype to avoid an error. */
29909#ifdef __cplusplus
29910extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029911{
John Criswell7a73b802003-06-30 21:59:07 +000029912#endif
29913/* We use char because int might match the return type of a gcc2
29914 builtin and then its argument prototype would still apply. */
29915char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029916/* The GNU C library defines this for functions which it implements
29917 to always fail with ENOSYS. Some functions are actually named
29918 something starting with __ and the normal name is an alias. */
29919#if defined (__stub_mprotect) || defined (__stub___mprotect)
29920choke me
29921#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029922char (*f) () = mprotect;
29923#endif
29924#ifdef __cplusplus
29925}
John Criswell7a73b802003-06-30 21:59:07 +000029926#endif
29927
John Criswell0c38eaf2003-09-10 15:17:25 +000029928int
29929main ()
29930{
29931return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029932 ;
29933 return 0;
29934}
29935_ACEOF
29936rm -f conftest.$ac_objext conftest$ac_exeext
29937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029938 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029939 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029940 grep -v '^ *+' conftest.er1 >conftest.err
29941 rm -f conftest.er1
29942 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029945 { ac_try='test -z "$ac_c_werror_flag"
29946 || test ! -s conftest.err'
29947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948 (eval $ac_try) 2>&5
29949 ac_status=$?
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); }; } &&
29952 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29954 (eval $ac_try) 2>&5
29955 ac_status=$?
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; }; then
29958 ac_cv_func_mprotect=yes
29959else
29960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029961sed 's/^/| /' conftest.$ac_ext >&5
29962
John Criswell7a73b802003-06-30 21:59:07 +000029963ac_cv_func_mprotect=no
29964fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029965rm -f conftest.err conftest.$ac_objext \
29966 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029967fi
29968echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29969echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29970if test $ac_cv_func_mprotect = yes; then
29971 :
29972else
29973 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29974echo "$as_me: error: Function mprotect() required but not found" >&2;}
29975 { (exit 1); exit 1; }; }
29976fi
29977
29978
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029979if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029980then
Reid Spencer582a23c2004-12-29 07:07:57 +000029981 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
29982echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029983fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029984if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029985then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029986 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29987echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029988fi
John Criswell7a73b802003-06-30 21:59:07 +000029989
29990
Brian Gaekef3b24102003-11-16 18:38:14 +000029991echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29992echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029993if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29994 echo $ECHO_N "(cached) $ECHO_C" >&6
29995else
29996 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000029997if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029998 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000029999 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030000 if test $? -eq 0 ; then
30001 llvm_cv_llvmgcc_sanity="yes"
30002 fi
30003 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030004fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030005fi
30006echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30007echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30008
30009if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030010 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030011 LLVMCC1=$llvmcc1path
30012
Reid Spencer502935f2004-12-22 05:56:56 +000030013 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030014 LLVMCC1PLUS=$llvmcc1pluspath
30015
Reid Spencer502935f2004-12-22 05:56:56 +000030016 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30017 LLVMGCCDIR=$llvmgccdir
30018
Brian Gaekef3b24102003-11-16 18:38:14 +000030019fi
30020
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030021SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030022
30023
Reid Spencere9de0912004-08-20 09:03:57 +000030024# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030025# information into substitutions that will end up in Makefile.config.in
30026# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030027eval LLVM_PREFIX="${prefix}";
30028eval LLVM_BINDIR="${prefix}/bin";
30029eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030030eval LLVM_DATADIR="${prefix}/share/llvm";
30031eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30032eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030033eval LLVM_INCLUDEDIR="${prefix}/include";
30034eval LLVM_INFODIR="${prefix}/info";
30035eval LLVM_MANDIR="${prefix}/man";
30036LLVM_CONFIGTIME=`date`
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030048# Place the various directores into the config.h file as #defines so that we
30049# can know about the installation paths within LLVM.
30050
Reid Spencere9de0912004-08-20 09:03:57 +000030051cat >>confdefs.h <<_ACEOF
30052#define LLVM_PREFIX "$LLVM_PREFIX"
30053_ACEOF
30054
30055
30056cat >>confdefs.h <<_ACEOF
30057#define LLVM_BINDIR "$LLVM_BINDIR"
30058_ACEOF
30059
30060
30061cat >>confdefs.h <<_ACEOF
30062#define LLVM_LIBDIR "$LLVM_LIBDIR"
30063_ACEOF
30064
30065
30066cat >>confdefs.h <<_ACEOF
30067#define LLVM_DATADIR "$LLVM_DATADIR"
30068_ACEOF
30069
30070
30071cat >>confdefs.h <<_ACEOF
30072#define LLVM_DATADIR "$LLVM_DOCSDIR"
30073_ACEOF
30074
30075
30076cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030077#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030078_ACEOF
30079
30080
30081cat >>confdefs.h <<_ACEOF
30082#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30083_ACEOF
30084
30085
30086cat >>confdefs.h <<_ACEOF
30087#define LLVM_INFODIR "$LLVM_INFODIR"
30088_ACEOF
30089
30090
30091cat >>confdefs.h <<_ACEOF
30092#define LLVM_MANDIR "$LLVM_MANDIR"
30093_ACEOF
30094
30095
30096cat >>confdefs.h <<_ACEOF
30097#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30098_ACEOF
30099
30100
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030101
30102 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30103
30104
30105 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30106
30107 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30108
30109 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30110
30111 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30112
30113 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30114
30115
30116 ac_config_files="$ac_config_files Makefile.config"
30117
30118
30119 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30120
30121
Reid Spencer1f319422004-11-29 04:56:35 +000030122 ac_config_files="$ac_config_files docs/doxygen.cfg"
30123
30124
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030125 ac_config_commands="$ac_config_commands Makefile"
30126
30127
30128 ac_config_commands="$ac_config_commands Makefile.common"
30129
30130
30131 ac_config_commands="$ac_config_commands examples/Makefile"
30132
30133
30134 ac_config_commands="$ac_config_commands lib/Makefile"
30135
30136
30137 ac_config_commands="$ac_config_commands runtime/Makefile"
30138
30139
30140 ac_config_commands="$ac_config_commands test/Makefile"
30141
30142
30143 ac_config_commands="$ac_config_commands test/Makefile.tests"
30144
30145
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030146 ac_config_commands="$ac_config_commands tools/Makefile"
30147
30148
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030149 ac_config_commands="$ac_config_commands utils/Makefile"
30150
30151
30152 ac_config_commands="$ac_config_commands projects/Makefile"
30153
30154
30155
John Criswell7a73b802003-06-30 21:59:07 +000030156cat >confcache <<\_ACEOF
30157# This file is a shell script that caches the results of configure
30158# tests run on this system so they can be shared between configure
30159# scripts and configure runs, see configure's option --config-cache.
30160# It is not useful on other systems. If it contains results you don't
30161# want to keep, you may remove or edit it.
30162#
30163# config.status only pays attention to the cache file if you give it
30164# the --recheck option to rerun configure.
30165#
John Criswell0c38eaf2003-09-10 15:17:25 +000030166# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030167# loading this file, other *unset* `ac_cv_foo' will be assigned the
30168# following values.
30169
30170_ACEOF
30171
30172# The following way of writing the cache mishandles newlines in values,
30173# but we know of no workaround that is simple, portable, and efficient.
30174# So, don't put newlines in cache variables' values.
30175# Ultrix sh set writes to stderr and can't be redirected directly,
30176# and sets the high bit in the cache file unless we assign to the vars.
30177{
30178 (set) 2>&1 |
30179 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30180 *ac_space=\ *)
30181 # `set' does not quote correctly, so add quotes (double-quote
30182 # substitution turns \\\\ into \\, and sed turns \\ into \).
30183 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030184 "s/'/'\\\\''/g;
30185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030186 ;;
30187 *)
30188 # `set' quotes correctly as required by POSIX, so do not add quotes.
30189 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030190 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030191 ;;
30192 esac;
30193} |
30194 sed '
30195 t clear
30196 : clear
30197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30198 t end
30199 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30200 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030201if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030202 if test -w $cache_file; then
30203 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30204 cat confcache >$cache_file
30205 else
30206 echo "not updating unwritable cache $cache_file"
30207 fi
30208fi
30209rm -f confcache
30210
30211test "x$prefix" = xNONE && prefix=$ac_default_prefix
30212# Let make expand exec_prefix.
30213test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30214
30215# VPATH may cause trouble with some makes, so we remove $(srcdir),
30216# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30217# trailing colons and then remove the whole line if VPATH becomes empty
30218# (actually we leave an empty line to preserve line numbers).
30219if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030221s/:*\$(srcdir):*/:/;
30222s/:*\${srcdir}:*/:/;
30223s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030224s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030225s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030226s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030227}'
30228fi
30229
30230DEFS=-DHAVE_CONFIG_H
30231
John Criswell0c38eaf2003-09-10 15:17:25 +000030232ac_libobjs=
30233ac_ltlibobjs=
30234for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30235 # 1. Remove the extension, and $U if already installed.
30236 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030237 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030238 # 2. Add them.
30239 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30240 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30241done
30242LIBOBJS=$ac_libobjs
30243
30244LTLIBOBJS=$ac_ltlibobjs
30245
30246
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030247if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30248 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30249Usually this means the macro was only invoked conditionally." >&5
30250echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30251Usually this means the macro was only invoked conditionally." >&2;}
30252 { (exit 1); exit 1; }; }
30253fi
30254if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30255 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30256Usually this means the macro was only invoked conditionally." >&5
30257echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30258Usually this means the macro was only invoked conditionally." >&2;}
30259 { (exit 1); exit 1; }; }
30260fi
John Criswell7a73b802003-06-30 21:59:07 +000030261
30262: ${CONFIG_STATUS=./config.status}
30263ac_clean_files_save=$ac_clean_files
30264ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30265{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30266echo "$as_me: creating $CONFIG_STATUS" >&6;}
30267cat >$CONFIG_STATUS <<_ACEOF
30268#! $SHELL
30269# Generated by $as_me.
30270# Run this file to recreate the current configuration.
30271# Compiler output produced by configure, useful for debugging
30272# configure, is in config.log if it exists.
30273
30274debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030275ac_cs_recheck=false
30276ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030277SHELL=\${CONFIG_SHELL-$SHELL}
30278_ACEOF
30279
30280cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030281## --------------------- ##
30282## M4sh Initialization. ##
30283## --------------------- ##
30284
30285# Be Bourne compatible
30286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30287 emulate sh
30288 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30290 # is contrary to our usage. Disable this feature.
30291 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030292elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30293 set -o posix
30294fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030295DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030296
John Criswell7a73b802003-06-30 21:59:07 +000030297# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030298if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030299 as_unset=unset
30300else
30301 as_unset=false
30302fi
30303
John Criswell0c38eaf2003-09-10 15:17:25 +000030304
30305# Work around bugs in pre-3.0 UWIN ksh.
30306$as_unset ENV MAIL MAILPATH
30307PS1='$ '
30308PS2='> '
30309PS4='+ '
30310
30311# NLS nuisances.
30312for as_var in \
30313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30315 LC_TELEPHONE LC_TIME
30316do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030317 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030318 eval $as_var=C; export $as_var
30319 else
30320 $as_unset $as_var
30321 fi
30322done
30323
30324# Required to use basename.
30325if expr a : '\(a\)' >/dev/null 2>&1; then
30326 as_expr=expr
30327else
30328 as_expr=false
30329fi
30330
30331if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30332 as_basename=basename
30333else
30334 as_basename=false
30335fi
John Criswell7a73b802003-06-30 21:59:07 +000030336
30337
30338# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030339as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030340$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30341 X"$0" : 'X\(//\)$' \| \
30342 X"$0" : 'X\(/\)$' \| \
30343 . : '\(.\)' 2>/dev/null ||
30344echo X/"$0" |
30345 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30346 /^X\/\(\/\/\)$/{ s//\1/; q; }
30347 /^X\/\(\/\).*/{ s//\1/; q; }
30348 s/.*/./; q'`
30349
John Criswell0c38eaf2003-09-10 15:17:25 +000030350
John Criswell7a73b802003-06-30 21:59:07 +000030351# PATH needs CR, and LINENO needs CR and PATH.
30352# Avoid depending upon Character Ranges.
30353as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30354as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30355as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30356as_cr_digits='0123456789'
30357as_cr_alnum=$as_cr_Letters$as_cr_digits
30358
30359# The user is always right.
30360if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030361 echo "#! /bin/sh" >conf$$.sh
30362 echo "exit 0" >>conf$$.sh
30363 chmod +x conf$$.sh
30364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030365 PATH_SEPARATOR=';'
30366 else
30367 PATH_SEPARATOR=:
30368 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030369 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030370fi
30371
30372
30373 as_lineno_1=$LINENO
30374 as_lineno_2=$LINENO
30375 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30376 test "x$as_lineno_1" != "x$as_lineno_2" &&
30377 test "x$as_lineno_3" = "x$as_lineno_2" || {
30378 # Find who we are. Look in the path if we contain no path at all
30379 # relative or not.
30380 case $0 in
30381 *[\\/]* ) as_myself=$0 ;;
30382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30383for as_dir in $PATH
30384do
30385 IFS=$as_save_IFS
30386 test -z "$as_dir" && as_dir=.
30387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30388done
30389
30390 ;;
30391 esac
30392 # We did not find ourselves, most probably we were run as `sh COMMAND'
30393 # in which case we are not to be found in the path.
30394 if test "x$as_myself" = x; then
30395 as_myself=$0
30396 fi
30397 if test ! -f "$as_myself"; then
30398 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30399echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30400 { (exit 1); exit 1; }; }
30401 fi
30402 case $CONFIG_SHELL in
30403 '')
30404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30405for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30406do
30407 IFS=$as_save_IFS
30408 test -z "$as_dir" && as_dir=.
30409 for as_base in sh bash ksh sh5; do
30410 case $as_dir in
30411 /*)
30412 if ("$as_dir/$as_base" -c '
30413 as_lineno_1=$LINENO
30414 as_lineno_2=$LINENO
30415 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30416 test "x$as_lineno_1" != "x$as_lineno_2" &&
30417 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030418 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30419 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030420 CONFIG_SHELL=$as_dir/$as_base
30421 export CONFIG_SHELL
30422 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30423 fi;;
30424 esac
30425 done
30426done
30427;;
30428 esac
30429
30430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30431 # uniformly replaced by the line number. The first 'sed' inserts a
30432 # line-number line before each line; the second 'sed' does the real
30433 # work. The second script uses 'N' to pair each line-number line
30434 # with the numbered line, and appends trailing '-' during
30435 # substitution so that $LINENO is not a special case at line end.
30436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30437 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30438 sed '=' <$as_myself |
30439 sed '
30440 N
30441 s,$,-,
30442 : loop
30443 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30444 t loop
30445 s,-$,,
30446 s,^['$as_cr_digits']*\n,,
30447 ' >$as_me.lineno &&
30448 chmod +x $as_me.lineno ||
30449 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30450echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30451 { (exit 1); exit 1; }; }
30452
30453 # Don't try to exec as it changes $[0], causing all sort of problems
30454 # (the dirname of $[0] is not the place where we might find the
30455 # original and so on. Autoconf is especially sensible to this).
30456 . ./$as_me.lineno
30457 # Exit status is that of the last command.
30458 exit
30459}
30460
30461
30462case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30463 *c*,-n*) ECHO_N= ECHO_C='
30464' ECHO_T=' ' ;;
30465 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30466 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30467esac
30468
30469if expr a : '\(a\)' >/dev/null 2>&1; then
30470 as_expr=expr
30471else
30472 as_expr=false
30473fi
30474
30475rm -f conf$$ conf$$.exe conf$$.file
30476echo >conf$$.file
30477if ln -s conf$$.file conf$$ 2>/dev/null; then
30478 # We could just check for DJGPP; but this test a) works b) is more generic
30479 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30480 if test -f conf$$.exe; then
30481 # Don't use ln at all; we don't have any links
30482 as_ln_s='cp -p'
30483 else
30484 as_ln_s='ln -s'
30485 fi
30486elif ln conf$$.file conf$$ 2>/dev/null; then
30487 as_ln_s=ln
30488else
30489 as_ln_s='cp -p'
30490fi
30491rm -f conf$$ conf$$.exe conf$$.file
30492
John Criswell0c38eaf2003-09-10 15:17:25 +000030493if mkdir -p . 2>/dev/null; then
30494 as_mkdir_p=:
30495else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030496 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030497 as_mkdir_p=false
30498fi
30499
John Criswell7a73b802003-06-30 21:59:07 +000030500as_executable_p="test -f"
30501
30502# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030503as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030504
30505# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030506as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030507
30508
30509# IFS
30510# We need space, tab and new line, in precisely that order.
30511as_nl='
30512'
30513IFS=" $as_nl"
30514
30515# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030516$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030517
30518exec 6>&1
30519
30520# Open the log real soon, to keep \$[0] and so on meaningful, and to
30521# report actual input values of CONFIG_FILES etc. instead of their
30522# values after options handling. Logging --version etc. is OK.
30523exec 5>>config.log
30524{
30525 echo
30526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30527## Running $as_me. ##
30528_ASBOX
30529} >&5
30530cat >&5 <<_CSEOF
30531
Reid Spencerabec8f92004-10-27 23:03:44 +000030532This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030533generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030534
30535 CONFIG_FILES = $CONFIG_FILES
30536 CONFIG_HEADERS = $CONFIG_HEADERS
30537 CONFIG_LINKS = $CONFIG_LINKS
30538 CONFIG_COMMANDS = $CONFIG_COMMANDS
30539 $ $0 $@
30540
30541_CSEOF
30542echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30543echo >&5
30544_ACEOF
30545
30546# Files that config.status was made for.
30547if test -n "$ac_config_files"; then
30548 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30549fi
30550
30551if test -n "$ac_config_headers"; then
30552 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30553fi
30554
30555if test -n "$ac_config_links"; then
30556 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30557fi
30558
30559if test -n "$ac_config_commands"; then
30560 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30561fi
30562
30563cat >>$CONFIG_STATUS <<\_ACEOF
30564
30565ac_cs_usage="\
30566\`$as_me' instantiates files from templates according to the
30567current configuration.
30568
30569Usage: $0 [OPTIONS] [FILE]...
30570
30571 -h, --help print this help, then exit
30572 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030573 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030574 -d, --debug don't remove temporary files
30575 --recheck update $as_me by reconfiguring in the same conditions
30576 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030577 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030578 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030579 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030580
30581Configuration files:
30582$config_files
30583
30584Configuration headers:
30585$config_headers
30586
John Criswellc764fbc2003-09-06 15:17:13 +000030587Configuration commands:
30588$config_commands
30589
John Criswell7a73b802003-06-30 21:59:07 +000030590Report bugs to <bug-autoconf@gnu.org>."
30591_ACEOF
30592
30593cat >>$CONFIG_STATUS <<_ACEOF
30594ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030595llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030596configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030597 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30598
Reid Spencer2706f8c2004-09-19 23:53:36 +000030599Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030600This config.status script is free software; the Free Software Foundation
30601gives unlimited permission to copy, distribute and modify it."
30602srcdir=$srcdir
30603INSTALL="$INSTALL"
30604_ACEOF
30605
30606cat >>$CONFIG_STATUS <<\_ACEOF
30607# If no file are specified by the user, then we need to provide default
30608# value. By we need to know if files were specified by the user.
30609ac_need_defaults=:
30610while test $# != 0
30611do
30612 case $1 in
30613 --*=*)
30614 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30615 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030616 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030617 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030618 -*)
30619 ac_option=$1
30620 ac_optarg=$2
30621 ac_shift=shift
30622 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030623 *) # This is not an option, so the user has probably given explicit
30624 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030625 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030626 ac_need_defaults=false;;
30627 esac
30628
John Criswell0c38eaf2003-09-10 15:17:25 +000030629 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030630 # Handling of the options.
30631_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030632cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30634 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030635 --version | --vers* | -V )
30636 echo "$ac_cs_version"; exit 0 ;;
30637 --he | --h)
30638 # Conflict between --help and --header
30639 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30640Try \`$0 --help' for more information." >&5
30641echo "$as_me: error: ambiguous option: $1
30642Try \`$0 --help' for more information." >&2;}
30643 { (exit 1); exit 1; }; };;
30644 --help | --hel | -h )
30645 echo "$ac_cs_usage"; exit 0 ;;
30646 --debug | --d* | -d )
30647 debug=: ;;
30648 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030649 $ac_shift
30650 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030651 ac_need_defaults=false;;
30652 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030653 $ac_shift
30654 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030655 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30658 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030659
30660 # This is an error.
30661 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30662Try \`$0 --help' for more information." >&5
30663echo "$as_me: error: unrecognized option: $1
30664Try \`$0 --help' for more information." >&2;}
30665 { (exit 1); exit 1; }; } ;;
30666
30667 *) ac_config_targets="$ac_config_targets $1" ;;
30668
30669 esac
30670 shift
30671done
30672
John Criswell0c38eaf2003-09-10 15:17:25 +000030673ac_configure_extra_args=
30674
30675if $ac_cs_silent; then
30676 exec 6>/dev/null
30677 ac_configure_extra_args="$ac_configure_extra_args --silent"
30678fi
30679
30680_ACEOF
30681cat >>$CONFIG_STATUS <<_ACEOF
30682if \$ac_cs_recheck; then
30683 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30684 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30685fi
30686
John Criswell7a73b802003-06-30 21:59:07 +000030687_ACEOF
30688
John Criswellc764fbc2003-09-06 15:17:13 +000030689cat >>$CONFIG_STATUS <<_ACEOF
30690#
30691# INIT-COMMANDS section.
30692#
John Criswell7a73b802003-06-30 21:59:07 +000030693
John Criswellc764fbc2003-09-06 15:17:13 +000030694${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30695${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030696${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030697${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030698${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030699${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30700${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000030701${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030702${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030703${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030704
30705_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030706
30707
30708
30709cat >>$CONFIG_STATUS <<\_ACEOF
30710for ac_config_target in $ac_config_targets
30711do
30712 case "$ac_config_target" in
30713 # Handling of arguments.
30714 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030715 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30716 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30717 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30718 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030719 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030720 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30721 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030722 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030723 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030724 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030725 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30726 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030727 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030728 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030729 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030730 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030731 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030732 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30733 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030734 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30735 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030736 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30737echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30738 { (exit 1); exit 1; }; };;
30739 esac
30740done
30741
30742# If the user did not use the arguments to specify the items to instantiate,
30743# then the envvar interface is used. Set only those that are not.
30744# We use the long form for the default assignment because of an extremely
30745# bizarre bug on SunOS 4.1.3.
30746if $ac_need_defaults; then
30747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000030749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030750fi
30751
John Criswell0c38eaf2003-09-10 15:17:25 +000030752# Have a temporary directory for convenience. Make it in the build tree
30753# simply because there is no reason to put it here, and in addition,
30754# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030755# Create a temporary directory, and hook for its removal unless debugging.
30756$debug ||
30757{
30758 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30759 trap '{ (exit 1); exit 1; }' 1 2 13 15
30760}
30761
30762# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030763
John Criswell7a73b802003-06-30 21:59:07 +000030764{
John Criswell0c38eaf2003-09-10 15:17:25 +000030765 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030766 test -n "$tmp" && test -d "$tmp"
30767} ||
30768{
John Criswell0c38eaf2003-09-10 15:17:25 +000030769 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030770 (umask 077 && mkdir $tmp)
30771} ||
30772{
John Criswell0c38eaf2003-09-10 15:17:25 +000030773 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030774 { (exit 1); exit 1; }
30775}
30776
30777_ACEOF
30778
30779cat >>$CONFIG_STATUS <<_ACEOF
30780
30781#
30782# CONFIG_FILES section.
30783#
30784
30785# No need to generate the scripts if there are no CONFIG_FILES.
30786# This happens for instance when ./config.status config.h
30787if test -n "\$CONFIG_FILES"; then
30788 # Protect against being on the right side of a sed subst in config.status.
30789 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30790 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30791s,@SHELL@,$SHELL,;t t
30792s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30793s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30794s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30795s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30796s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30797s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30798s,@exec_prefix@,$exec_prefix,;t t
30799s,@prefix@,$prefix,;t t
30800s,@program_transform_name@,$program_transform_name,;t t
30801s,@bindir@,$bindir,;t t
30802s,@sbindir@,$sbindir,;t t
30803s,@libexecdir@,$libexecdir,;t t
30804s,@datadir@,$datadir,;t t
30805s,@sysconfdir@,$sysconfdir,;t t
30806s,@sharedstatedir@,$sharedstatedir,;t t
30807s,@localstatedir@,$localstatedir,;t t
30808s,@libdir@,$libdir,;t t
30809s,@includedir@,$includedir,;t t
30810s,@oldincludedir@,$oldincludedir,;t t
30811s,@infodir@,$infodir,;t t
30812s,@mandir@,$mandir,;t t
30813s,@build_alias@,$build_alias,;t t
30814s,@host_alias@,$host_alias,;t t
30815s,@target_alias@,$target_alias,;t t
30816s,@DEFS@,$DEFS,;t t
30817s,@ECHO_C@,$ECHO_C,;t t
30818s,@ECHO_N@,$ECHO_N,;t t
30819s,@ECHO_T@,$ECHO_T,;t t
30820s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030821s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030822s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030823s,@build@,$build,;t t
30824s,@build_cpu@,$build_cpu,;t t
30825s,@build_vendor@,$build_vendor,;t t
30826s,@build_os@,$build_os,;t t
30827s,@host@,$host,;t t
30828s,@host_cpu@,$host_cpu,;t t
30829s,@host_vendor@,$host_vendor,;t t
30830s,@host_os@,$host_os,;t t
30831s,@target@,$target,;t t
30832s,@target_cpu@,$target_cpu,;t t
30833s,@target_vendor@,$target_vendor,;t t
30834s,@target_os@,$target_os,;t t
30835s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030836s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030837s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030838s,@CC@,$CC,;t t
30839s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030840s,@LDFLAGS@,$LDFLAGS,;t t
30841s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030842s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030843s,@EXEEXT@,$EXEEXT,;t t
30844s,@OBJEXT@,$OBJEXT,;t t
30845s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30846s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030847s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030848s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030849s,@CXX@,$CXX,;t t
30850s,@CXXFLAGS@,$CXXFLAGS,;t t
30851s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030852s,@LEX@,$LEX,;t t
30853s,@LEXLIB@,$LEXLIB,;t t
30854s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030855s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030856s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030857s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030858s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030859s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030860s,@CMP@,$CMP,;t t
30861s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030862s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030863s,@FIND@,$FIND,;t t
30864s,@GREP@,$GREP,;t t
30865s,@MKDIR@,$MKDIR,;t t
30866s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030867s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030868s,@RANLIB@,$RANLIB,;t t
30869s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030870s,@RM@,$RM,;t t
30871s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030872s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030873s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30874s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30875s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030876s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030877s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030878s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030879s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030880s,@GROFF@,$GROFF,;t t
30881s,@GZIP@,$GZIP,;t t
30882s,@POD2HTML@,$POD2HTML,;t t
30883s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030884s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030885s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030886s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030887s,@EGREP@,$EGREP,;t t
30888s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30889s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30890s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30891s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30892s,@LIBADD_DL@,$LIBADD_DL,;t t
30893s,@ECHO@,$ECHO,;t t
30894s,@AR@,$AR,;t t
30895s,@ac_ct_AR@,$ac_ct_AR,;t t
30896s,@STRIP@,$STRIP,;t t
30897s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30898s,@CXXCPP@,$CXXCPP,;t t
30899s,@F77@,$F77,;t t
30900s,@FFLAGS@,$FFLAGS,;t t
30901s,@ac_ct_F77@,$ac_ct_F77,;t t
30902s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030903s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000030904s,@LLVMGCC@,$LLVMGCC,;t t
30905s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030906s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030907s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030908s,@LLVMCC1@,$LLVMCC1,;t t
30909s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030910s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030911s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030912s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30913s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30914s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30915s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30916s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30917s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30918s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30919s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30920s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30921s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030922s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030923s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030924CEOF
30925
30926_ACEOF
30927
30928 cat >>$CONFIG_STATUS <<\_ACEOF
30929 # Split the substitutions into bite-sized pieces for seds with
30930 # small command number limits, like on Digital OSF/1 and HP-UX.
30931 ac_max_sed_lines=48
30932 ac_sed_frag=1 # Number of current file.
30933 ac_beg=1 # First line for current file.
30934 ac_end=$ac_max_sed_lines # Line after last line for current file.
30935 ac_more_lines=:
30936 ac_sed_cmds=
30937 while $ac_more_lines; do
30938 if test $ac_beg -gt 1; then
30939 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30940 else
30941 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30942 fi
30943 if test ! -s $tmp/subs.frag; then
30944 ac_more_lines=false
30945 else
30946 # The purpose of the label and of the branching condition is to
30947 # speed up the sed processing (if there are no `@' at all, there
30948 # is no need to browse any of the substitutions).
30949 # These are the two extra sed commands mentioned above.
30950 (echo ':t
30951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30952 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030953 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030954 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030955 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030956 fi
30957 ac_sed_frag=`expr $ac_sed_frag + 1`
30958 ac_beg=$ac_end
30959 ac_end=`expr $ac_end + $ac_max_sed_lines`
30960 fi
30961 done
30962 if test -z "$ac_sed_cmds"; then
30963 ac_sed_cmds=cat
30964 fi
30965fi # test -n "$CONFIG_FILES"
30966
30967_ACEOF
30968cat >>$CONFIG_STATUS <<\_ACEOF
30969for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30970 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30971 case $ac_file in
30972 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030973 cat >$tmp/stdin
30974 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030976 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030978 * ) ac_file_in=$ac_file.in ;;
30979 esac
30980
30981 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30982 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030984 X"$ac_file" : 'X\(//\)[^/]' \| \
30985 X"$ac_file" : 'X\(//\)$' \| \
30986 X"$ac_file" : 'X\(/\)' \| \
30987 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030988echo X"$ac_file" |
30989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30991 /^X\(\/\/\)$/{ s//\1/; q; }
30992 /^X\(\/\).*/{ s//\1/; q; }
30993 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030994 { if $as_mkdir_p; then
30995 mkdir -p "$ac_dir"
30996 else
30997 as_dir="$ac_dir"
30998 as_dirs=
30999 while test ! -d "$as_dir"; do
31000 as_dirs="$as_dir $as_dirs"
31001 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31002$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031003 X"$as_dir" : 'X\(//\)[^/]' \| \
31004 X"$as_dir" : 'X\(//\)$' \| \
31005 X"$as_dir" : 'X\(/\)' \| \
31006 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031007echo X"$as_dir" |
31008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31010 /^X\(\/\/\)$/{ s//\1/; q; }
31011 /^X\(\/\).*/{ s//\1/; q; }
31012 s/.*/./; q'`
31013 done
31014 test ! -n "$as_dirs" || mkdir $as_dirs
31015 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31016echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31017 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031018
31019 ac_builddir=.
31020
31021if test "$ac_dir" != .; then
31022 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31023 # A "../" for each directory in $ac_dir_suffix.
31024 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31025else
31026 ac_dir_suffix= ac_top_builddir=
31027fi
31028
31029case $srcdir in
31030 .) # No --srcdir option. We are building in place.
31031 ac_srcdir=.
31032 if test -z "$ac_top_builddir"; then
31033 ac_top_srcdir=.
31034 else
31035 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31036 fi ;;
31037 [\\/]* | ?:[\\/]* ) # Absolute path.
31038 ac_srcdir=$srcdir$ac_dir_suffix;
31039 ac_top_srcdir=$srcdir ;;
31040 *) # Relative path.
31041 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31042 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31043esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031044
31045# Do not use `cd foo && pwd` to compute absolute paths, because
31046# the directories may not exist.
31047case `pwd` in
31048.) ac_abs_builddir="$ac_dir";;
31049*)
31050 case "$ac_dir" in
31051 .) ac_abs_builddir=`pwd`;;
31052 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31053 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31054 esac;;
31055esac
31056case $ac_abs_builddir in
31057.) ac_abs_top_builddir=${ac_top_builddir}.;;
31058*)
31059 case ${ac_top_builddir}. in
31060 .) ac_abs_top_builddir=$ac_abs_builddir;;
31061 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31062 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31063 esac;;
31064esac
31065case $ac_abs_builddir in
31066.) ac_abs_srcdir=$ac_srcdir;;
31067*)
31068 case $ac_srcdir in
31069 .) ac_abs_srcdir=$ac_abs_builddir;;
31070 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31071 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31072 esac;;
31073esac
31074case $ac_abs_builddir in
31075.) ac_abs_top_srcdir=$ac_top_srcdir;;
31076*)
31077 case $ac_top_srcdir in
31078 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31079 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31080 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31081 esac;;
31082esac
John Criswell7a73b802003-06-30 21:59:07 +000031083
31084
31085 case $INSTALL in
31086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31087 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31088 esac
31089
31090 if test x"$ac_file" != x-; then
31091 { echo "$as_me:$LINENO: creating $ac_file" >&5
31092echo "$as_me: creating $ac_file" >&6;}
31093 rm -f "$ac_file"
31094 fi
31095 # Let's still pretend it is `configure' which instantiates (i.e., don't
31096 # use $as_me), people would be surprised to read:
31097 # /* config.h. Generated by config.status. */
31098 if test x"$ac_file" = x-; then
31099 configure_input=
31100 else
31101 configure_input="$ac_file. "
31102 fi
31103 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031104 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031105
31106 # First look for the input files in the build tree, otherwise in the
31107 # src tree.
31108 ac_file_inputs=`IFS=:
31109 for f in $ac_file_in; do
31110 case $f in
31111 -) echo $tmp/stdin ;;
31112 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031113 # Absolute (can't be DOS-style, as IFS=:)
31114 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031115echo "$as_me: error: cannot find input file: $f" >&2;}
31116 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031117 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031118 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031119 if test -f "$f"; then
31120 # Build tree
31121 echo "$f"
31122 elif test -f "$srcdir/$f"; then
31123 # Source tree
31124 echo "$srcdir/$f"
31125 else
31126 # /dev/null tree
31127 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031128echo "$as_me: error: cannot find input file: $f" >&2;}
31129 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031130 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031131 esac
31132 done` || { (exit 1); exit 1; }
31133_ACEOF
31134cat >>$CONFIG_STATUS <<_ACEOF
31135 sed "$ac_vpsub
31136$extrasub
31137_ACEOF
31138cat >>$CONFIG_STATUS <<\_ACEOF
31139:t
31140/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31141s,@configure_input@,$configure_input,;t t
31142s,@srcdir@,$ac_srcdir,;t t
31143s,@abs_srcdir@,$ac_abs_srcdir,;t t
31144s,@top_srcdir@,$ac_top_srcdir,;t t
31145s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31146s,@builddir@,$ac_builddir,;t t
31147s,@abs_builddir@,$ac_abs_builddir,;t t
31148s,@top_builddir@,$ac_top_builddir,;t t
31149s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31150s,@INSTALL@,$ac_INSTALL,;t t
31151" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31152 rm -f $tmp/stdin
31153 if test x"$ac_file" != x-; then
31154 mv $tmp/out $ac_file
31155 else
31156 cat $tmp/out
31157 rm -f $tmp/out
31158 fi
31159
31160done
31161_ACEOF
31162cat >>$CONFIG_STATUS <<\_ACEOF
31163
31164#
31165# CONFIG_HEADER section.
31166#
31167
31168# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31169# NAME is the cpp macro being defined and VALUE is the value it is being given.
31170#
31171# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031172ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31173ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031174ac_dC=' '
31175ac_dD=',;t'
31176# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031177ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031178ac_uB='$,\1#\2define\3'
31179ac_uC=' '
31180ac_uD=',;t'
31181
31182for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31184 case $ac_file in
31185 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031186 cat >$tmp/stdin
31187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031191 * ) ac_file_in=$ac_file.in ;;
31192 esac
31193
31194 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31195echo "$as_me: creating $ac_file" >&6;}
31196
31197 # First look for the input files in the build tree, otherwise in the
31198 # src tree.
31199 ac_file_inputs=`IFS=:
31200 for f in $ac_file_in; do
31201 case $f in
31202 -) echo $tmp/stdin ;;
31203 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031204 # Absolute (can't be DOS-style, as IFS=:)
31205 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031206echo "$as_me: error: cannot find input file: $f" >&2;}
31207 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031208 # Do quote $f, to prevent DOS paths from being IFS'd.
31209 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031210 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031211 if test -f "$f"; then
31212 # Build tree
31213 echo "$f"
31214 elif test -f "$srcdir/$f"; then
31215 # Source tree
31216 echo "$srcdir/$f"
31217 else
31218 # /dev/null tree
31219 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031220echo "$as_me: error: cannot find input file: $f" >&2;}
31221 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031222 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031223 esac
31224 done` || { (exit 1); exit 1; }
31225 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031226 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031227
31228_ACEOF
31229
31230# Transform confdefs.h into two sed scripts, `conftest.defines' and
31231# `conftest.undefs', that substitutes the proper values into
31232# config.h.in to produce config.h. The first handles `#define'
31233# templates, and the second `#undef' templates.
31234# And first: Protect against being on the right side of a sed subst in
31235# config.status. Protect against being in an unquoted here document
31236# in config.status.
31237rm -f conftest.defines conftest.undefs
31238# Using a here document instead of a string reduces the quoting nightmare.
31239# Putting comments in sed scripts is not portable.
31240#
31241# `end' is used to avoid that the second main sed command (meant for
31242# 0-ary CPP macros) applies to n-ary macro definitions.
31243# See the Autoconf documentation for `clear'.
31244cat >confdef2sed.sed <<\_ACEOF
31245s/[\\&,]/\\&/g
31246s,[\\$`],\\&,g
31247t clear
31248: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031249s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031250t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031251s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031252: end
31253_ACEOF
31254# If some macros were called several times there might be several times
31255# the same #defines, which is useless. Nevertheless, we may not want to
31256# sort them, since we want the *last* AC-DEFINE to be honored.
31257uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31258sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31259rm -f confdef2sed.sed
31260
31261# This sed command replaces #undef with comments. This is necessary, for
31262# example, in the case of _POSIX_SOURCE, which is predefined and required
31263# on some systems where configure will not decide to define it.
31264cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031265s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031266_ACEOF
31267
31268# Break up conftest.defines because some shells have a limit on the size
31269# of here documents, and old seds have small limits too (100 cmds).
31270echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031271echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031272echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31273echo ' :' >>$CONFIG_STATUS
31274rm -f conftest.tail
31275while grep . conftest.defines >/dev/null
31276do
31277 # Write a limited-size here document to $tmp/defines.sed.
31278 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31279 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031280 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031281 # Work around the forget-to-reset-the-flag bug.
31282 echo 't clr' >>$CONFIG_STATUS
31283 echo ': clr' >>$CONFIG_STATUS
31284 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31285 echo 'CEOF
31286 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31287 rm -f $tmp/in
31288 mv $tmp/out $tmp/in
31289' >>$CONFIG_STATUS
31290 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31291 rm -f conftest.defines
31292 mv conftest.tail conftest.defines
31293done
31294rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031295echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031296echo >>$CONFIG_STATUS
31297
31298# Break up conftest.undefs because some shells have a limit on the size
31299# of here documents, and old seds have small limits too (100 cmds).
31300echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31301rm -f conftest.tail
31302while grep . conftest.undefs >/dev/null
31303do
31304 # Write a limited-size here document to $tmp/undefs.sed.
31305 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31306 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031307 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031308 # Work around the forget-to-reset-the-flag bug.
31309 echo 't clr' >>$CONFIG_STATUS
31310 echo ': clr' >>$CONFIG_STATUS
31311 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31312 echo 'CEOF
31313 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31314 rm -f $tmp/in
31315 mv $tmp/out $tmp/in
31316' >>$CONFIG_STATUS
31317 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31318 rm -f conftest.undefs
31319 mv conftest.tail conftest.undefs
31320done
31321rm -f conftest.undefs
31322
31323cat >>$CONFIG_STATUS <<\_ACEOF
31324 # Let's still pretend it is `configure' which instantiates (i.e., don't
31325 # use $as_me), people would be surprised to read:
31326 # /* config.h. Generated by config.status. */
31327 if test x"$ac_file" = x-; then
31328 echo "/* Generated by configure. */" >$tmp/config.h
31329 else
31330 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31331 fi
31332 cat $tmp/in >>$tmp/config.h
31333 rm -f $tmp/in
31334 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031335 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031336 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31337echo "$as_me: $ac_file is unchanged" >&6;}
31338 else
31339 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31340$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031341 X"$ac_file" : 'X\(//\)[^/]' \| \
31342 X"$ac_file" : 'X\(//\)$' \| \
31343 X"$ac_file" : 'X\(/\)' \| \
31344 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031345echo X"$ac_file" |
31346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31348 /^X\(\/\/\)$/{ s//\1/; q; }
31349 /^X\(\/\).*/{ s//\1/; q; }
31350 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031351 { if $as_mkdir_p; then
31352 mkdir -p "$ac_dir"
31353 else
31354 as_dir="$ac_dir"
31355 as_dirs=
31356 while test ! -d "$as_dir"; do
31357 as_dirs="$as_dir $as_dirs"
31358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31359$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031360 X"$as_dir" : 'X\(//\)[^/]' \| \
31361 X"$as_dir" : 'X\(//\)$' \| \
31362 X"$as_dir" : 'X\(/\)' \| \
31363 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031364echo X"$as_dir" |
31365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31367 /^X\(\/\/\)$/{ s//\1/; q; }
31368 /^X\(\/\).*/{ s//\1/; q; }
31369 s/.*/./; q'`
31370 done
31371 test ! -n "$as_dirs" || mkdir $as_dirs
31372 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31373echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31374 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031375
31376 rm -f $ac_file
31377 mv $tmp/config.h $ac_file
31378 fi
31379 else
31380 cat $tmp/config.h
31381 rm -f $tmp/config.h
31382 fi
31383done
31384_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031385cat >>$CONFIG_STATUS <<\_ACEOF
31386
31387#
31388# CONFIG_COMMANDS section.
31389#
31390for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31391 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31392 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31393 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31394$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031395 X"$ac_dest" : 'X\(//\)[^/]' \| \
31396 X"$ac_dest" : 'X\(//\)$' \| \
31397 X"$ac_dest" : 'X\(/\)' \| \
31398 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031399echo X"$ac_dest" |
31400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31402 /^X\(\/\/\)$/{ s//\1/; q; }
31403 /^X\(\/\).*/{ s//\1/; q; }
31404 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031405 { if $as_mkdir_p; then
31406 mkdir -p "$ac_dir"
31407 else
31408 as_dir="$ac_dir"
31409 as_dirs=
31410 while test ! -d "$as_dir"; do
31411 as_dirs="$as_dir $as_dirs"
31412 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31414 X"$as_dir" : 'X\(//\)[^/]' \| \
31415 X"$as_dir" : 'X\(//\)$' \| \
31416 X"$as_dir" : 'X\(/\)' \| \
31417 . : '\(.\)' 2>/dev/null ||
31418echo X"$as_dir" |
31419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31421 /^X\(\/\/\)$/{ s//\1/; q; }
31422 /^X\(\/\).*/{ s//\1/; q; }
31423 s/.*/./; q'`
31424 done
31425 test ! -n "$as_dirs" || mkdir $as_dirs
31426 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31427echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31428 { (exit 1); exit 1; }; }; }
31429
John Criswellc764fbc2003-09-06 15:17:13 +000031430 ac_builddir=.
31431
31432if test "$ac_dir" != .; then
31433 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31434 # A "../" for each directory in $ac_dir_suffix.
31435 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31436else
31437 ac_dir_suffix= ac_top_builddir=
31438fi
31439
31440case $srcdir in
31441 .) # No --srcdir option. We are building in place.
31442 ac_srcdir=.
31443 if test -z "$ac_top_builddir"; then
31444 ac_top_srcdir=.
31445 else
31446 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31447 fi ;;
31448 [\\/]* | ?:[\\/]* ) # Absolute path.
31449 ac_srcdir=$srcdir$ac_dir_suffix;
31450 ac_top_srcdir=$srcdir ;;
31451 *) # Relative path.
31452 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31453 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31454esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031455
31456# Do not use `cd foo && pwd` to compute absolute paths, because
31457# the directories may not exist.
31458case `pwd` in
31459.) ac_abs_builddir="$ac_dir";;
31460*)
31461 case "$ac_dir" in
31462 .) ac_abs_builddir=`pwd`;;
31463 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31464 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31465 esac;;
31466esac
31467case $ac_abs_builddir in
31468.) ac_abs_top_builddir=${ac_top_builddir}.;;
31469*)
31470 case ${ac_top_builddir}. in
31471 .) ac_abs_top_builddir=$ac_abs_builddir;;
31472 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31473 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31474 esac;;
31475esac
31476case $ac_abs_builddir in
31477.) ac_abs_srcdir=$ac_srcdir;;
31478*)
31479 case $ac_srcdir in
31480 .) ac_abs_srcdir=$ac_abs_builddir;;
31481 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31482 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31483 esac;;
31484esac
31485case $ac_abs_builddir in
31486.) ac_abs_top_srcdir=$ac_top_srcdir;;
31487*)
31488 case $ac_top_srcdir in
31489 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31490 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31491 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31492 esac;;
31493esac
John Criswellc764fbc2003-09-06 15:17:13 +000031494
31495
31496 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31497echo "$as_me: executing $ac_dest commands" >&6;}
31498 case $ac_dest in
31499 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31500 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031501 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031502 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031503 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031504 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31505 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031506 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031507 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031508 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031509 esac
31510done
31511_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031512
31513cat >>$CONFIG_STATUS <<\_ACEOF
31514
31515{ (exit 0); exit 0; }
31516_ACEOF
31517chmod +x $CONFIG_STATUS
31518ac_clean_files=$ac_clean_files_save
31519
31520
31521# configure is writing to config.log, and then calls config.status.
31522# config.status does its own redirection, appending to config.log.
31523# Unfortunately, on DOS this fails, as config.log is still kept open
31524# by configure, so config.status won't be able to write to it; its
31525# output is simply discarded. So we exec the FD to /dev/null,
31526# effectively closing config.log, so it can be properly (re)opened and
31527# appended to by config.status. When coming back to configure, we
31528# need to make the FD available again.
31529if test "$no_create" != yes; then
31530 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031531 ac_config_status_args=
31532 test "$silent" = yes &&
31533 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031534 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031536 exec 5>>config.log
31537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31538 # would make configure fail if this is the last instruction.
31539 $ac_cs_success || { (exit 1); exit 1; }
31540fi
31541
John Criswell12399a12003-09-30 15:55:44 +000031542#
31543# CONFIG_SUBDIRS section.
31544#
31545if test "$no_recursion" != yes; then
31546
31547 # Remove --cache-file and --srcdir arguments so they do not pile up.
31548 ac_sub_configure_args=
31549 ac_prev=
31550 for ac_arg in $ac_configure_args; do
31551 if test -n "$ac_prev"; then
31552 ac_prev=
31553 continue
31554 fi
31555 case $ac_arg in
31556 -cache-file | --cache-file | --cache-fil | --cache-fi \
31557 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31558 ac_prev=cache_file ;;
31559 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31560 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31561 | --c=*)
31562 ;;
31563 --config-cache | -C)
31564 ;;
31565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31566 ac_prev=srcdir ;;
31567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31568 ;;
31569 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31570 ac_prev=prefix ;;
31571 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31572 ;;
31573 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31574 esac
31575 done
31576
31577 # Always prepend --prefix to ensure using the same prefix
31578 # in subdir configurations.
31579 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31580
31581 ac_popdir=`pwd`
31582 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31583
31584 # Do not complain, so a configure script can configure whichever
31585 # parts of a large source tree are present.
31586 test -d $srcdir/$ac_dir || continue
31587
31588 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31589echo "$as_me: configuring in $ac_dir" >&6;}
31590 { if $as_mkdir_p; then
31591 mkdir -p "$ac_dir"
31592 else
31593 as_dir="$ac_dir"
31594 as_dirs=
31595 while test ! -d "$as_dir"; do
31596 as_dirs="$as_dir $as_dirs"
31597 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31598$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031599 X"$as_dir" : 'X\(//\)[^/]' \| \
31600 X"$as_dir" : 'X\(//\)$' \| \
31601 X"$as_dir" : 'X\(/\)' \| \
31602 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031603echo X"$as_dir" |
31604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31606 /^X\(\/\/\)$/{ s//\1/; q; }
31607 /^X\(\/\).*/{ s//\1/; q; }
31608 s/.*/./; q'`
31609 done
31610 test ! -n "$as_dirs" || mkdir $as_dirs
31611 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31612echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31613 { (exit 1); exit 1; }; }; }
31614
31615 ac_builddir=.
31616
31617if test "$ac_dir" != .; then
31618 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31619 # A "../" for each directory in $ac_dir_suffix.
31620 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31621else
31622 ac_dir_suffix= ac_top_builddir=
31623fi
31624
31625case $srcdir in
31626 .) # No --srcdir option. We are building in place.
31627 ac_srcdir=.
31628 if test -z "$ac_top_builddir"; then
31629 ac_top_srcdir=.
31630 else
31631 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31632 fi ;;
31633 [\\/]* | ?:[\\/]* ) # Absolute path.
31634 ac_srcdir=$srcdir$ac_dir_suffix;
31635 ac_top_srcdir=$srcdir ;;
31636 *) # Relative path.
31637 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31638 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31639esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031640
31641# Do not use `cd foo && pwd` to compute absolute paths, because
31642# the directories may not exist.
31643case `pwd` in
31644.) ac_abs_builddir="$ac_dir";;
31645*)
31646 case "$ac_dir" in
31647 .) ac_abs_builddir=`pwd`;;
31648 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31649 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31650 esac;;
31651esac
31652case $ac_abs_builddir in
31653.) ac_abs_top_builddir=${ac_top_builddir}.;;
31654*)
31655 case ${ac_top_builddir}. in
31656 .) ac_abs_top_builddir=$ac_abs_builddir;;
31657 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31658 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31659 esac;;
31660esac
31661case $ac_abs_builddir in
31662.) ac_abs_srcdir=$ac_srcdir;;
31663*)
31664 case $ac_srcdir in
31665 .) ac_abs_srcdir=$ac_abs_builddir;;
31666 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31667 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31668 esac;;
31669esac
31670case $ac_abs_builddir in
31671.) ac_abs_top_srcdir=$ac_top_srcdir;;
31672*)
31673 case $ac_top_srcdir in
31674 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31675 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31676 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31677 esac;;
31678esac
John Criswell12399a12003-09-30 15:55:44 +000031679
31680
31681 cd $ac_dir
31682
31683 # Check for guested configure; otherwise get Cygnus style configure.
31684 if test -f $ac_srcdir/configure.gnu; then
31685 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31686 elif test -f $ac_srcdir/configure; then
31687 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31688 elif test -f $ac_srcdir/configure.in; then
31689 ac_sub_configure=$ac_configure
31690 else
31691 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31692echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31693 ac_sub_configure=
31694 fi
31695
31696 # The recursion is here.
31697 if test -n "$ac_sub_configure"; then
31698 # Make the cache file name correct relative to the subdirectory.
31699 case $cache_file in
31700 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31701 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031702 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031703 esac
31704
31705 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31706echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31707 # The eval makes quoting arguments work.
31708 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031709 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31710 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031711echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31712 { (exit 1); exit 1; }; }
31713 fi
31714
31715 cd $ac_popdir
31716 done
31717fi
31718
Brian Gaekef3b24102003-11-16 18:38:14 +000031719
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031720if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031721 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31722echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031723 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31724echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31725 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31726echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31727 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31728echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31729 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31730echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031731fi