blob: d87881af89dd630dc74a1c70375001b0b117c468 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer78ba11d2005-02-16 16:21:00 +00003# Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencer78ba11d2005-02-16 16:21:00 +0000428PACKAGE_VERSION='1.5cvs'
429PACKAGE_STRING='llvm 1.5cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer78ba11d2005-02-16 16:21:00 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencer78ba11d2005-02-16 16:21:00 +0000968\`configure' configures llvm 1.5cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencer78ba11d2005-02-16 16:21:00 +00001030 short | recursive ) echo "Configuration of llvm 1.5cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid 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 Spencer78ba11d2005-02-16 16:21:00 +00001174llvm configure 1.5cvs
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 Spencer78ba11d2005-02-16 16:21:00 +00001190It was created by llvm $as_me 1.5cvs, 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 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001594 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001596subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001597 ;;
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 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001606 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001607
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001608subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001609 ;;
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
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001759 LLVM_ON_UNIX=1
1760
1761 LLVM_ON_WIN32=0
1762
Reid Spencer7b3e8512004-12-24 06:29:05 +00001763 ;;
1764 Win32)
1765
1766cat >>confdefs.h <<\_ACEOF
1767#define LLVM_ON_WIN32 1
1768_ACEOF
1769
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001770 LLVM_ON_UNIX=0
1771
1772 LLVM_ON_WIN32=1
1773
Reid Spencer7b3e8512004-12-24 06:29:05 +00001774 ;;
1775esac
1776
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001777case $target in
1778 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1779
1780 ;;
1781esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001782
1783echo "$as_me:$LINENO: checking target architecture" >&5
1784echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001785if test "${llvm_cv_target_arch+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001789 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001790 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001791 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1792 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001793 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001794 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001795esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001796fi
1797echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1798echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001799
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001800if test "$llvm_cv_target_arch" = "Unknown" ; then
1801 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1802echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1803fi
John Criswell76595452003-07-01 22:07:39 +00001804
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001805ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001806
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001807
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001808ac_ext=c
1809ac_cpp='$CPP $CPPFLAGS'
1810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001813if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1815set dummy ${ac_tool_prefix}gcc; ac_word=$2
1816echo "$as_me:$LINENO: checking for $ac_word" >&5
1817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818if test "${ac_cv_prog_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820else
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1823else
1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825for as_dir in $PATH
1826do
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 break 2
1834 fi
1835done
1836done
1837
1838fi
1839fi
1840CC=$ac_cv_prog_CC
1841if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843echo "${ECHO_T}$CC" >&6
1844else
1845 echo "$as_me:$LINENO: result: no" >&5
1846echo "${ECHO_T}no" >&6
1847fi
1848
1849fi
1850if test -z "$ac_cv_prog_CC"; then
1851 ac_ct_CC=$CC
1852 # Extract the first word of "gcc", so it can be a program name with args.
1853set dummy gcc; ac_word=$2
1854echo "$as_me:$LINENO: checking for $ac_word" >&5
1855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 if test -n "$ac_ct_CC"; then
1860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861else
1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_ac_ct_CC="gcc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1872 fi
1873done
1874done
1875
1876fi
1877fi
1878ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879if test -n "$ac_ct_CC"; then
1880 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1881echo "${ECHO_T}$ac_ct_CC" >&6
1882else
1883 echo "$as_me:$LINENO: result: no" >&5
1884echo "${ECHO_T}no" >&6
1885fi
1886
1887 CC=$ac_ct_CC
1888else
1889 CC="$ac_cv_prog_CC"
1890fi
1891
1892if test -z "$CC"; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895set dummy ${ac_tool_prefix}cc; ac_word=$2
1896echo "$as_me:$LINENO: checking for $ac_word" >&5
1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898if test "${ac_cv_prog_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1903else
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_CC="${ac_tool_prefix}cc"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1914 fi
1915done
1916done
1917
1918fi
1919fi
1920CC=$ac_cv_prog_CC
1921if test -n "$CC"; then
1922 echo "$as_me:$LINENO: result: $CC" >&5
1923echo "${ECHO_T}$CC" >&6
1924else
1925 echo "$as_me:$LINENO: result: no" >&5
1926echo "${ECHO_T}no" >&6
1927fi
1928
1929fi
1930if test -z "$ac_cv_prog_CC"; then
1931 ac_ct_CC=$CC
1932 # Extract the first word of "cc", so it can be a program name with args.
1933set dummy cc; ac_word=$2
1934echo "$as_me:$LINENO: checking for $ac_word" >&5
1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939 if test -n "$ac_ct_CC"; then
1940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_CC="cc"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953done
1954done
1955
1956fi
1957fi
1958ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959if test -n "$ac_ct_CC"; then
1960 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961echo "${ECHO_T}$ac_ct_CC" >&6
1962else
1963 echo "$as_me:$LINENO: result: no" >&5
1964echo "${ECHO_T}no" >&6
1965fi
1966
1967 CC=$ac_ct_CC
1968else
1969 CC="$ac_cv_prog_CC"
1970fi
1971
1972fi
1973if test -z "$CC"; then
1974 # Extract the first word of "cc", so it can be a program name with args.
1975set dummy cc; ac_word=$2
1976echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1983else
1984 ac_prog_rejected=no
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993 ac_prog_rejected=yes
1994 continue
1995 fi
1996 ac_cv_prog_CC="cc"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000done
2001done
2002
2003if test $ac_prog_rejected = yes; then
2004 # We found a bogon in the path, so make sure we never use it.
2005 set dummy $ac_cv_prog_CC
2006 shift
2007 if test $# != 0; then
2008 # We chose a different compiler from the bogus one.
2009 # However, it has the same basename, so the bogon will be chosen
2010 # first if we set CC to just the basename; use the full file name.
2011 shift
2012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013 fi
2014fi
2015fi
2016fi
2017CC=$ac_cv_prog_CC
2018if test -n "$CC"; then
2019 echo "$as_me:$LINENO: result: $CC" >&5
2020echo "${ECHO_T}$CC" >&6
2021else
2022 echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026fi
2027if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002030 do
2031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 break 2
2051 fi
2052done
2053done
2054
2055fi
2056fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002057CC=$ac_cv_prog_CC
2058if test -n "$CC"; then
2059 echo "$as_me:$LINENO: result: $CC" >&5
2060echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002061else
2062 echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002067 done
2068fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069if test -z "$CC"; then
2070 ac_ct_CC=$CC
2071 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002072do
2073 # Extract the first word of "$ac_prog", so it can be a program name with args.
2074set dummy $ac_prog; ac_word=$2
2075echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002082else
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002090 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2093 fi
2094done
2095done
2096
2097fi
2098fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002099ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100if test -n "$ac_ct_CC"; then
2101 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002103else
2104 echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6
2106fi
2107
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002108 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002109done
John Criswell7a73b802003-06-30 21:59:07 +00002110
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002111 CC=$ac_ct_CC
2112fi
2113
John Criswell7a73b802003-06-30 21:59:07 +00002114fi
2115
2116
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002117test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2118See \`config.log' for more details." >&5
2119echo "$as_me: error: no acceptable C compiler found in \$PATH
2120See \`config.log' for more details." >&2;}
2121 { (exit 1); exit 1; }; }
2122
John Criswell7a73b802003-06-30 21:59:07 +00002123# Provide some information about the compiler.
2124echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002125 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002126ac_compiler=`set X $ac_compile; echo $2`
2127{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2128 (eval $ac_compiler --version </dev/null >&5) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2133 (eval $ac_compiler -v </dev/null >&5) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2137{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2138 (eval $ac_compiler -V </dev/null >&5) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142
2143cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002144/* confdefs.h. */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002149
John Criswell7a73b802003-06-30 21:59:07 +00002150int
2151main ()
2152{
2153
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002159ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002160# Try to create an executable without -o first, disregard a.out.
2161# It will help us diagnose broken compilers, and finding out an intuition
2162# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002163echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002165ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2167 (eval $ac_link_default) 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
2171 # Find the output, starting from the most likely. This scheme is
2172# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2173# resort.
2174
2175# Be careful to initialize this variable, since it used to be cached.
2176# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2177ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002178# b.out is created by i960 compilers.
2179for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2180do
2181 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002182 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002184 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002185 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 # This is the source file.
2187 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002188 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 # We found the default executable, but exeext='' is most
2190 # certainly right.
2191 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002192 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002193 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 # FIXME: I believe we export ac_cv_exeext for Libtool,
2195 # but it would be cool to find out if it's true. Does anybody
2196 # maintain Libtool? --akim.
2197 export ac_cv_exeext
2198 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002199 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002200 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002201 esac
2202done
2203else
2204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002205sed 's/^/| /' conftest.$ac_ext >&5
2206
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002207{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002208See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002209echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002210See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002211 { (exit 77); exit 77; }; }
2212fi
2213
2214ac_exeext=$ac_cv_exeext
2215echo "$as_me:$LINENO: result: $ac_file" >&5
2216echo "${ECHO_T}$ac_file" >&6
2217
2218# Check the compiler produces executables we can run. If not, either
2219# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002220echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002222# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223# If not cross compiling, check that we can run a simple program.
2224if test "$cross_compiling" != yes; then
2225 if { ac_try='./$ac_file'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 cross_compiling=no
2232 else
2233 if test "$cross_compiling" = maybe; then
2234 cross_compiling=yes
2235 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002236 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002239echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002242 { (exit 1); exit 1; }; }
2243 fi
2244 fi
2245fi
2246echo "$as_me:$LINENO: result: yes" >&5
2247echo "${ECHO_T}yes" >&6
2248
John Criswell0c38eaf2003-09-10 15:17:25 +00002249rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002250ac_clean_files=$ac_clean_files_save
2251# Check the compiler produces executables we can run. If not, either
2252# the compiler is broken, or we cross compile.
2253echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2254echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2255echo "$as_me:$LINENO: result: $cross_compiling" >&5
2256echo "${ECHO_T}$cross_compiling" >&6
2257
2258echo "$as_me:$LINENO: checking for suffix of executables" >&5
2259echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2261 (eval $ac_link) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2267# work properly (i.e., refer to `conftest.exe'), while it won't with
2268# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002269for ac_file in conftest.exe conftest conftest.*; do
2270 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002271 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002274 export ac_cv_exeext
2275 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002276 * ) break;;
2277 esac
2278done
2279else
John Criswell0c38eaf2003-09-10 15:17:25 +00002280 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&5
2282echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002284 { (exit 1); exit 1; }; }
2285fi
2286
2287rm -f conftest$ac_cv_exeext
2288echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289echo "${ECHO_T}$ac_cv_exeext" >&6
2290
2291rm -f conftest.$ac_ext
2292EXEEXT=$ac_cv_exeext
2293ac_exeext=$EXEEXT
2294echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2296if test "${ac_cv_objext+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298else
2299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002300/* confdefs.h. */
2301_ACEOF
2302cat confdefs.h >>conftest.$ac_ext
2303cat >>conftest.$ac_ext <<_ACEOF
2304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002305
John Criswell7a73b802003-06-30 21:59:07 +00002306int
2307main ()
2308{
2309
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314rm -f conftest.o conftest.obj
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2321 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324 break;;
2325 esac
2326done
2327else
2328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2332See \`config.log' for more details." >&5
2333echo "$as_me: error: cannot compute suffix of object files: cannot compile
2334See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002335 { (exit 1); exit 1; }; }
2336fi
2337
2338rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339fi
2340echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2341echo "${ECHO_T}$ac_cv_objext" >&6
2342OBJEXT=$ac_cv_objext
2343ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2345echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2346if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002350/* confdefs.h. */
2351_ACEOF
2352cat confdefs.h >>conftest.$ac_ext
2353cat >>conftest.$ac_ext <<_ACEOF
2354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002355
John Criswell7a73b802003-06-30 21:59:07 +00002356int
2357main ()
2358{
2359#ifndef __GNUC__
2360 choke me
2361#endif
2362
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367rm -f conftest.$ac_objext
2368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002369 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002370 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002371 grep -v '^ *+' conftest.er1 >conftest.err
2372 rm -f conftest.er1
2373 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002376 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002377 || test ! -s conftest.err'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; } &&
2383 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; }; then
2389 ac_compiler_gnu=yes
2390else
2391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002392sed 's/^/| /' conftest.$ac_ext >&5
2393
John Criswell7a73b802003-06-30 21:59:07 +00002394ac_compiler_gnu=no
2395fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002398
2399fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2401echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2402GCC=`test $ac_compiler_gnu = yes && echo yes`
2403ac_test_CFLAGS=${CFLAGS+set}
2404ac_save_CFLAGS=$CFLAGS
2405CFLAGS="-g"
2406echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2407echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2408if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002412/* confdefs.h. */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002417
John Criswell7a73b802003-06-30 21:59:07 +00002418int
2419main ()
2420{
2421
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002428 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002429 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002436 || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002449else
2450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002451sed 's/^/| /' conftest.$ac_ext >&5
2452
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002454fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002456fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459if test "$ac_test_CFLAGS" = set; then
2460 CFLAGS=$ac_save_CFLAGS
2461elif test $ac_cv_prog_cc_g = yes; then
2462 if test "$GCC" = yes; then
2463 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002464 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002466 fi
2467else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468 if test "$GCC" = yes; then
2469 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002470 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002472 fi
2473fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479 ac_cv_prog_cc_stdc=no
2480ac_save_CC=$CC
2481cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */
2487#include <stdarg.h>
2488#include <stdio.h>
2489#include <sys/types.h>
2490#include <sys/stat.h>
2491/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2492struct buf { int x; };
2493FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494static char *e (p, i)
2495 char **p;
2496 int i;
2497{
2498 return p[i];
2499}
2500static char *f (char * (*g) (char **, int), char **p, ...)
2501{
2502 char *s;
2503 va_list v;
2504 va_start (v,p);
2505 s = g (p, va_arg (v,int));
2506 va_end (v);
2507 return s;
2508}
2509
2510/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2511 function prototypes and stuff, but not '\xHH' hex character constants.
2512 These don't provoke an error unfortunately, instead are silently treated
2513 as 'x'. The following induces an error, until -std1 is added to get
2514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2515 array size at least. It's necessary to write '\x00'==0 to get something
2516 that's true only with -std1. */
2517int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2518
2519int test (int i, double x);
2520struct s1 {int (*f) (int a);};
2521struct s2 {int (*f) (double a);};
2522int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2523int argc;
2524char **argv;
2525int
2526main ()
2527{
2528return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533# Don't try gcc -ansi; that turns off useful extensions and
2534# breaks some systems' header files.
2535# AIX -qlanglvl=ansi
2536# Ultrix and OSF/1 -std1
2537# HP-UX 10.20 and later -Ae
2538# HP-UX older versions -Aa -D_HPUX_SOURCE
2539# SVR4 -Xc -D__EXTENSIONS__
2540for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541do
2542 CC="$ac_save_CC $ac_arg"
2543 rm -f conftest.$ac_objext
2544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_prog_cc_stdc=$ac_arg
2566break
2567else
2568 echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571fi
2572rm -f conftest.err conftest.$ac_objext
2573done
2574rm -f conftest.$ac_ext conftest.$ac_objext
2575CC=$ac_save_CC
2576
2577fi
2578
2579case "x$ac_cv_prog_cc_stdc" in
2580 x|xno)
2581 echo "$as_me:$LINENO: result: none needed" >&5
2582echo "${ECHO_T}none needed" >&6 ;;
2583 *)
2584 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2585echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2586 CC="$CC $ac_cv_prog_cc_stdc" ;;
2587esac
2588
2589# Some people use a C++ compiler to compile C. Since we use `exit',
2590# in C++ we need to declare it. In case someone uses the same compiler
2591# for both compiling C and C++ we need to have the C++ compiler decide
2592# the declaration of exit, since it's the most demanding environment.
2593cat >conftest.$ac_ext <<_ACEOF
2594#ifndef __cplusplus
2595 choke me
2596#endif
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002621 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002622 'extern "C" void std::exit (int) throw (); using std::exit;' \
2623 'extern "C" void std::exit (int); using std::exit;' \
2624 'extern "C" void exit (int) throw ();' \
2625 'extern "C" void exit (int);' \
2626 'void exit (int);'
2627do
2628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002629/* confdefs.h. */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002634$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002635#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002636int
2637main ()
2638{
2639exit (42);
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 :
2667else
2668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002669sed 's/^/| /' conftest.$ac_ext >&5
2670
John Criswell7a73b802003-06-30 21:59:07 +00002671continue
2672fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002674 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002675/* confdefs.h. */
2676_ACEOF
2677cat confdefs.h >>conftest.$ac_ext
2678cat >>conftest.$ac_ext <<_ACEOF
2679/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002680$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002681int
2682main ()
2683{
2684exit (42);
2685 ;
2686 return 0;
2687}
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002691 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002692 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 break
2712else
2713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002714sed 's/^/| /' conftest.$ac_ext >&5
2715
John Criswell7a73b802003-06-30 21:59:07 +00002716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002718done
2719rm -f conftest*
2720if test -n "$ac_declaration"; then
2721 echo '#ifdef __cplusplus' >>confdefs.h
2722 echo $ac_declaration >>confdefs.h
2723 echo '#endif' >>confdefs.h
2724fi
2725
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002726else
2727 echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730fi
2731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2740echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2741if test "${ac_cv_c_bigendian+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743else
2744 # See if sys/param.h defines the BYTE_ORDER macro.
2745cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
2751#include <sys/types.h>
2752#include <sys/param.h>
2753
2754int
2755main ()
2756{
2757#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2758 bogus endian macros
2759#endif
2760
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 # It does; now see whether it defined to BIG_ENDIAN or not.
2788cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h. */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h. */
2794#include <sys/types.h>
2795#include <sys/param.h>
2796
2797int
2798main ()
2799{
2800#if BYTE_ORDER != BIG_ENDIAN
2801 not big endian
2802#endif
2803
2804 ;
2805 return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext
2809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>conftest.er1
2811 ac_status=$?
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 { ac_try='test -z "$ac_c_werror_flag"
2818 || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 ac_cv_c_bigendian=yes
2831else
2832 echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835ac_cv_c_bigendian=no
2836fi
2837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838else
2839 echo "$as_me: failed program was:" >&5
2840sed 's/^/| /' conftest.$ac_ext >&5
2841
2842# It does not; compile a test program.
2843if test "$cross_compiling" = yes; then
2844 # try to guess the endianness by grepping values into an object file
2845 ac_cv_c_bigendian=unknown
2846 cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h. */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h. */
2852short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2853short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2854void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2855short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2856short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2857void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2858int
2859main ()
2860{
2861 _ascii (); _ebcdic ();
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866rm -f conftest.$ac_objext
2867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 (eval $ac_compile) 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -z "$ac_c_werror_flag"
2876 || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2889 ac_cv_c_bigendian=yes
2890fi
2891if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2892 if test "$ac_cv_c_bigendian" = unknown; then
2893 ac_cv_c_bigendian=no
2894 else
2895 # finding both strings is unlikely to happen, but who knows?
2896 ac_cv_c_bigendian=unknown
2897 fi
2898fi
2899else
2900 echo "$as_me: failed program was:" >&5
2901sed 's/^/| /' conftest.$ac_ext >&5
2902
2903fi
2904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905else
2906 cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912int
2913main ()
2914{
2915 /* Are we little or big endian? From Harbison&Steele. */
2916 union
2917 {
2918 long l;
2919 char c[sizeof (long)];
2920 } u;
2921 u.l = 1;
2922 exit (u.c[sizeof (long) - 1] == 1);
2923}
2924_ACEOF
2925rm -f conftest$ac_exeext
2926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927 (eval $ac_link) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_cv_c_bigendian=no
2937else
2938 echo "$as_me: program exited with status $ac_status" >&5
2939echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942( exit $ac_status )
2943ac_cv_c_bigendian=yes
2944fi
2945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2946fi
2947fi
2948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949fi
2950echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2951echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2952case $ac_cv_c_bigendian in
2953 yes)
2954 ENDIAN=big
2955 ;;
2956 no)
2957 ENDIAN=little
2958 ;;
2959 *)
2960 { { echo "$as_me:$LINENO: error: unknown endianness
2961presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2962echo "$as_me: error: unknown endianness
2963presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2964 { (exit 1); exit 1; }; } ;;
2965esac
2966
2967
2968
2969# Check whether --enable-optimized or --disable-optimized was given.
2970if test "${enable_optimized+set}" = set; then
2971 enableval="$enable_optimized"
2972
2973else
2974 enableval=no
2975fi;
2976if test ${enableval} = "no" ; then
2977 ENABLE_OPTIMIZED=
2978
2979else
2980 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2981
2982fi
2983
2984# Check whether --enable-jit or --disable-jit was given.
2985if test "${enable_jit+set}" = set; then
2986 enableval="$enable_jit"
2987
2988else
2989 enableval=default
2990fi;
2991if test ${enableval} = "no"
2992then
2993 JIT=
2994
2995else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002996 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002997 x86) JIT=TARGET_HAS_JIT=1
2998 ;;
2999 Sparc) JIT=TARGET_HAS_JIT=1
3000 ;;
3001 PowerPC) JIT=TARGET_HAS_JIT=1
3002 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003003 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003004 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003005 *) JIT=
3006 ;;
3007 esac
3008fi
3009
Reid Spencer1f319422004-11-29 04:56:35 +00003010# Check whether --enable-doxygen or --disable-doxygen was given.
3011if test "${enable_doxygen+set}" = set; then
3012 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003013
Reid Spencer1f319422004-11-29 04:56:35 +00003014else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003015 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003016fi;
3017case "$enableval" in
3018 yes) ENABLE_DOXYGEN=1
3019 ;;
3020 no) ENABLE_DOXYGEN=0
3021 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003022 default) ENABLE_DOXYGEN=0
3023 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3025echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3026 { (exit 1); exit 1; }; } ;;
3027esac
3028
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003029
Reid Spencer59473af2004-12-25 07:31:29 +00003030# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3031if test "${with_llvmgccdir+set}" = set; then
3032 withval="$with_llvmgccdir"
3033
3034else
3035 withval=default
3036fi;
3037case "$withval" in
3038 default) WITH_LLVMGCCDIR=default ;;
3039 /*) WITH_LLVMGCCDIR=$withval ;;
3040 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3041echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3042 { (exit 1); exit 1; }; } ;;
3043esac
3044
3045
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003046ac_ext=c
3047ac_cpp='$CPP $CPPFLAGS'
3048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3052echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3053# On Suns, sometimes $CPP names a directory.
3054if test -n "$CPP" && test -d "$CPP"; then
3055 CPP=
3056fi
3057if test -z "$CPP"; then
3058 if test "${ac_cv_prog_CPP+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061 # Double quotes because CPP needs to be expanded
3062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3063 do
3064 ac_preproc_ok=false
3065for ac_c_preproc_warn_flag in '' yes
3066do
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070 # <limits.h> exists even on freestanding compilers.
3071 # On the NeXT, cc -E runs the code through the compiler's parser,
3072 # not just through cpp. "Syntax error" is here to catch this case.
3073 cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
3079#ifdef __STDC__
3080# include <limits.h>
3081#else
3082# include <assert.h>
3083#endif
3084 Syntax error
3085_ACEOF
3086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 else
3098 ac_cpp_err=
3099 fi
3100else
3101 ac_cpp_err=yes
3102fi
3103if test -z "$ac_cpp_err"; then
3104 :
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 # Broken: fails on valid input.
3110continue
3111fi
3112rm -f conftest.err conftest.$ac_ext
3113
3114 # OK, works on sane cases. Now check whether non-existent headers
3115 # can be detected and how.
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#include <ac_nonexistent.h>
3123_ACEOF
3124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev/null; then
3132 if test -s conftest.err; then
3133 ac_cpp_err=$ac_c_preproc_warn_flag
3134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135 else
3136 ac_cpp_err=
3137 fi
3138else
3139 ac_cpp_err=yes
3140fi
3141if test -z "$ac_cpp_err"; then
3142 # Broken: success on invalid input.
3143continue
3144else
3145 echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 # Passes both tests.
3149ac_preproc_ok=:
3150break
3151fi
3152rm -f conftest.err conftest.$ac_ext
3153
3154done
3155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156rm -f conftest.err conftest.$ac_ext
3157if $ac_preproc_ok; then
3158 break
3159fi
3160
3161 done
3162 ac_cv_prog_CPP=$CPP
3163
3164fi
3165 CPP=$ac_cv_prog_CPP
3166else
3167 ac_cv_prog_CPP=$CPP
3168fi
3169echo "$as_me:$LINENO: result: $CPP" >&5
3170echo "${ECHO_T}$CPP" >&6
3171ac_preproc_ok=false
3172for ac_c_preproc_warn_flag in '' yes
3173do
3174 # Use a header file that comes with gcc, so configuring glibc
3175 # with a fresh cross-compiler works.
3176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3177 # <limits.h> exists even on freestanding compilers.
3178 # On the NeXT, cc -E runs the code through the compiler's parser,
3179 # not just through cpp. "Syntax error" is here to catch this case.
3180 cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186#ifdef __STDC__
3187# include <limits.h>
3188#else
3189# include <assert.h>
3190#endif
3191 Syntax error
3192_ACEOF
3193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204 else
3205 ac_cpp_err=
3206 fi
3207else
3208 ac_cpp_err=yes
3209fi
3210if test -z "$ac_cpp_err"; then
3211 :
3212else
3213 echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216 # Broken: fails on valid input.
3217continue
3218fi
3219rm -f conftest.err conftest.$ac_ext
3220
3221 # OK, works on sane cases. Now check whether non-existent headers
3222 # can be detected and how.
3223 cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229#include <ac_nonexistent.h>
3230_ACEOF
3231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242 else
3243 ac_cpp_err=
3244 fi
3245else
3246 ac_cpp_err=yes
3247fi
3248if test -z "$ac_cpp_err"; then
3249 # Broken: success on invalid input.
3250continue
3251else
3252 echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 # Passes both tests.
3256ac_preproc_ok=:
3257break
3258fi
3259rm -f conftest.err conftest.$ac_ext
3260
3261done
3262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3263rm -f conftest.err conftest.$ac_ext
3264if $ac_preproc_ok; then
3265 :
3266else
3267 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3268See \`config.log' for more details." >&5
3269echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3270See \`config.log' for more details." >&2;}
3271 { (exit 1); exit 1; }; }
3272fi
3273
John Criswell7a73b802003-06-30 21:59:07 +00003274ac_ext=c
3275ac_cpp='$CPP $CPPFLAGS'
3276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279
3280ac_ext=c
3281ac_cpp='$CPP $CPPFLAGS'
3282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285if test -n "$ac_tool_prefix"; then
3286 for ac_prog in gcc
3287 do
3288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290echo "$as_me:$LINENO: checking for $ac_word" >&5
3291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292if test "${ac_cv_prog_CC+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3308 fi
3309done
3310done
3311
3312fi
3313fi
3314CC=$ac_cv_prog_CC
3315if test -n "$CC"; then
3316 echo "$as_me:$LINENO: result: $CC" >&5
3317echo "${ECHO_T}$CC" >&6
3318else
3319 echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321fi
3322
3323 test -n "$CC" && break
3324 done
3325fi
3326if test -z "$CC"; then
3327 ac_ct_CC=$CC
3328 for ac_prog in gcc
3329do
3330 # Extract the first word of "$ac_prog", so it can be a program name with args.
3331set dummy $ac_prog; ac_word=$2
3332echo "$as_me:$LINENO: checking for $ac_word" >&5
3333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337 if test -n "$ac_ct_CC"; then
3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_ac_ct_CC="$ac_prog"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351done
3352done
3353
3354fi
3355fi
3356ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357if test -n "$ac_ct_CC"; then
3358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3359echo "${ECHO_T}$ac_ct_CC" >&6
3360else
3361 echo "$as_me:$LINENO: result: no" >&5
3362echo "${ECHO_T}no" >&6
3363fi
3364
3365 test -n "$ac_ct_CC" && break
3366done
3367
3368 CC=$ac_ct_CC
3369fi
3370
3371
John Criswell0c38eaf2003-09-10 15:17:25 +00003372test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3373See \`config.log' for more details." >&5
3374echo "$as_me: error: no acceptable C compiler found in \$PATH
3375See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003376 { (exit 1); exit 1; }; }
3377
3378# Provide some information about the compiler.
3379echo "$as_me:$LINENO:" \
3380 "checking for C compiler version" >&5
3381ac_compiler=`set X $ac_compile; echo $2`
3382{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3383 (eval $ac_compiler --version </dev/null >&5) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }
3387{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3388 (eval $ac_compiler -v </dev/null >&5) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3393 (eval $ac_compiler -V </dev/null >&5) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }
3397
3398echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3399echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3400if test "${ac_cv_c_compiler_gnu+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003409
John Criswell7a73b802003-06-30 21:59:07 +00003410int
3411main ()
3412{
3413#ifndef __GNUC__
3414 choke me
3415#endif
3416
3417 ;
3418 return 0;
3419}
3420_ACEOF
3421rm -f conftest.$ac_objext
3422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003423 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003430 { ac_try='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_compiler_gnu=yes
3444else
3445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003446sed 's/^/| /' conftest.$ac_ext >&5
3447
John Criswell7a73b802003-06-30 21:59:07 +00003448ac_compiler_gnu=no
3449fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003451ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452
3453fi
3454echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3455echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3456GCC=`test $ac_compiler_gnu = yes && echo yes`
3457ac_test_CFLAGS=${CFLAGS+set}
3458ac_save_CFLAGS=$CFLAGS
3459CFLAGS="-g"
3460echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3461echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3462if test "${ac_cv_prog_cc_g+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003466/* confdefs.h. */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003471
John Criswell7a73b802003-06-30 21:59:07 +00003472int
3473main ()
3474{
3475
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480rm -f conftest.$ac_objext
3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003482 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003483 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003489 { ac_try='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 (eval $ac_try) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_cv_prog_cc_g=yes
3503else
3504 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003505sed 's/^/| /' conftest.$ac_ext >&5
3506
John Criswell7a73b802003-06-30 21:59:07 +00003507ac_cv_prog_cc_g=no
3508fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003510fi
3511echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3513if test "$ac_test_CFLAGS" = set; then
3514 CFLAGS=$ac_save_CFLAGS
3515elif test $ac_cv_prog_cc_g = yes; then
3516 if test "$GCC" = yes; then
3517 CFLAGS="-g -O2"
3518 else
3519 CFLAGS="-g"
3520 fi
3521else
3522 if test "$GCC" = yes; then
3523 CFLAGS="-O2"
3524 else
3525 CFLAGS=
3526 fi
3527fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003528echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3529echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3530if test "${ac_cv_prog_cc_stdc+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533 ac_cv_prog_cc_stdc=no
3534ac_save_CC=$CC
3535cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003536/* confdefs.h. */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
3540/* end confdefs.h. */
3541#include <stdarg.h>
3542#include <stdio.h>
3543#include <sys/types.h>
3544#include <sys/stat.h>
3545/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546struct buf { int x; };
3547FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548static char *e (p, i)
3549 char **p;
3550 int i;
3551{
3552 return p[i];
3553}
3554static char *f (char * (*g) (char **, int), char **p, ...)
3555{
3556 char *s;
3557 va_list v;
3558 va_start (v,p);
3559 s = g (p, va_arg (v,int));
3560 va_end (v);
3561 return s;
3562}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003563
3564/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std1 is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std1. */
3571int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572
John Criswell0c38eaf2003-09-10 15:17:25 +00003573int test (int i, double x);
3574struct s1 {int (*f) (int a);};
3575struct s2 {int (*f) (double a);};
3576int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3577int argc;
3578char **argv;
3579int
3580main ()
3581{
3582return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3583 ;
3584 return 0;
3585}
3586_ACEOF
3587# Don't try gcc -ansi; that turns off useful extensions and
3588# breaks some systems' header files.
3589# AIX -qlanglvl=ansi
3590# Ultrix and OSF/1 -std1
3591# HP-UX 10.20 and later -Ae
3592# HP-UX older versions -Aa -D_HPUX_SOURCE
3593# SVR4 -Xc -D__EXTENSIONS__
3594for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595do
3596 CC="$ac_save_CC $ac_arg"
3597 rm -f conftest.$ac_objext
3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003599 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003600 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003606 { ac_try='test -z "$ac_c_werror_flag"
3607 || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_prog_cc_stdc=$ac_arg
3620break
3621else
3622 echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003626rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003627done
3628rm -f conftest.$ac_ext conftest.$ac_objext
3629CC=$ac_save_CC
3630
3631fi
3632
3633case "x$ac_cv_prog_cc_stdc" in
3634 x|xno)
3635 echo "$as_me:$LINENO: result: none needed" >&5
3636echo "${ECHO_T}none needed" >&6 ;;
3637 *)
3638 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3639echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3640 CC="$CC $ac_cv_prog_cc_stdc" ;;
3641esac
3642
John Criswell7a73b802003-06-30 21:59:07 +00003643# Some people use a C++ compiler to compile C. Since we use `exit',
3644# in C++ we need to declare it. In case someone uses the same compiler
3645# for both compiling C and C++ we need to have the C++ compiler decide
3646# the declaration of exit, since it's the most demanding environment.
3647cat >conftest.$ac_ext <<_ACEOF
3648#ifndef __cplusplus
3649 choke me
3650#endif
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003654 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003675 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003676 'extern "C" void std::exit (int) throw (); using std::exit;' \
3677 'extern "C" void std::exit (int); using std::exit;' \
3678 'extern "C" void exit (int) throw ();' \
3679 'extern "C" void exit (int);' \
3680 'void exit (int);'
3681do
3682 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003683/* confdefs.h. */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003688$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003689#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003690int
3691main ()
3692{
3693exit (42);
3694 ;
3695 return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003700 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003701 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003707 { ac_try='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 :
3721else
3722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003723sed 's/^/| /' conftest.$ac_ext >&5
3724
John Criswell7a73b802003-06-30 21:59:07 +00003725continue
3726fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003728 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003729/* confdefs.h. */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003734$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003735int
3736main ()
3737{
3738exit (42);
3739 ;
3740 return 0;
3741}
3742_ACEOF
3743rm -f conftest.$ac_objext
3744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003745 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003746 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003752 { ac_try='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 break
3766else
3767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003768sed 's/^/| /' conftest.$ac_ext >&5
3769
John Criswell7a73b802003-06-30 21:59:07 +00003770fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003772done
3773rm -f conftest*
3774if test -n "$ac_declaration"; then
3775 echo '#ifdef __cplusplus' >>confdefs.h
3776 echo $ac_declaration >>confdefs.h
3777 echo '#endif' >>confdefs.h
3778fi
3779
3780else
3781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003782sed 's/^/| /' conftest.$ac_ext >&5
3783
John Criswell7a73b802003-06-30 21:59:07 +00003784fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003792ac_ext=cc
3793ac_cpp='$CXXCPP $CPPFLAGS'
3794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3797if test -n "$ac_tool_prefix"; then
3798 for ac_prog in $CCC g++
3799 do
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802echo "$as_me:$LINENO: checking for $ac_word" >&5
3803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003807 if test -n "$CXX"; then
3808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003812do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821done
3822done
3823
3824fi
3825fi
3826CXX=$ac_cv_prog_CXX
3827if test -n "$CXX"; then
3828 echo "$as_me:$LINENO: result: $CXX" >&5
3829echo "${ECHO_T}$CXX" >&6
3830else
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834
3835 test -n "$CXX" && break
3836 done
3837fi
3838if test -z "$CXX"; then
3839 ac_ct_CXX=$CXX
3840 for ac_prog in $CCC g++
3841do
3842 # Extract the first word of "$ac_prog", so it can be a program name with args.
3843set dummy $ac_prog; ac_word=$2
3844echo "$as_me:$LINENO: checking for $ac_word" >&5
3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 if test -n "$ac_ct_CXX"; then
3850 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_ac_ct_CXX="$ac_prog"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864done
3865
3866fi
3867fi
3868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3869if test -n "$ac_ct_CXX"; then
3870 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3871echo "${ECHO_T}$ac_ct_CXX" >&6
3872else
3873 echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6
3875fi
3876
3877 test -n "$ac_ct_CXX" && break
3878done
3879test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3880
3881 CXX=$ac_ct_CXX
3882fi
3883
3884
3885# Provide some information about the compiler.
3886echo "$as_me:$LINENO:" \
3887 "checking for C++ compiler version" >&5
3888ac_compiler=`set X $ac_compile; echo $2`
3889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3890 (eval $ac_compiler --version </dev/null >&5) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }
3894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3895 (eval $ac_compiler -v </dev/null >&5) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }
3899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3900 (eval $ac_compiler -V </dev/null >&5) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }
3904
3905echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3906echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3907if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
John Criswell7a73b802003-06-30 21:59:07 +00003910 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003911/* confdefs.h. */
3912_ACEOF
3913cat confdefs.h >>conftest.$ac_ext
3914cat >>conftest.$ac_ext <<_ACEOF
3915/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003916
3917int
3918main ()
3919{
3920#ifndef __GNUC__
3921 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003922#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003923
3924 ;
3925 return 0;
3926}
John Criswell7a73b802003-06-30 21:59:07 +00003927_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003928rm -f conftest.$ac_objext
3929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003931 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003932 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003936 (exit $ac_status); } &&
3937 { ac_try='test -z "$ac_cxx_werror_flag"
3938 || test ! -s conftest.err'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 (eval $ac_try) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try='test -s conftest.$ac_objext'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 (eval $ac_try) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3950 ac_compiler_gnu=yes
3951else
3952 echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955ac_compiler_gnu=no
3956fi
3957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3959
3960fi
3961echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3962echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3963GXX=`test $ac_compiler_gnu = yes && echo yes`
3964ac_test_CXXFLAGS=${CXXFLAGS+set}
3965ac_save_CXXFLAGS=$CXXFLAGS
3966CXXFLAGS="-g"
3967echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3968echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3969if test "${ac_cv_prog_cxx_g+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972 cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h. */
3978
3979int
3980main ()
3981{
3982
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987rm -f conftest.$ac_objext
3988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -z "$ac_cxx_werror_flag"
3997 || test ! -s conftest.err'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; } &&
4003 { ac_try='test -s conftest.$ac_objext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 ac_cv_prog_cxx_g=yes
4010else
4011 echo "$as_me: failed program was:" >&5
4012sed 's/^/| /' conftest.$ac_ext >&5
4013
4014ac_cv_prog_cxx_g=no
4015fi
4016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017fi
4018echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4019echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4020if test "$ac_test_CXXFLAGS" = set; then
4021 CXXFLAGS=$ac_save_CXXFLAGS
4022elif test $ac_cv_prog_cxx_g = yes; then
4023 if test "$GXX" = yes; then
4024 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004025 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004026 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004027 fi
4028else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004029 if test "$GXX" = yes; then
4030 CXXFLAGS="-O2"
4031 else
4032 CXXFLAGS=
4033 fi
John Criswell7a73b802003-06-30 21:59:07 +00004034fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004035for ac_declaration in \
4036 '' \
4037 'extern "C" void std::exit (int) throw (); using std::exit;' \
4038 'extern "C" void std::exit (int); using std::exit;' \
4039 'extern "C" void exit (int) throw ();' \
4040 'extern "C" void exit (int);' \
4041 'void exit (int);'
4042do
4043 cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h. */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h. */
4049$ac_declaration
4050#include <stdlib.h>
4051int
4052main ()
4053{
4054exit (42);
4055 ;
4056 return 0;
4057}
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_cxx_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004081 :
4082else
4083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004084sed 's/^/| /' conftest.$ac_ext >&5
4085
John Criswell7a73b802003-06-30 21:59:07 +00004086continue
4087fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004089 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004095$ac_declaration
4096int
4097main ()
4098{
4099exit (42);
4100 ;
4101 return 0;
4102}
John Criswell7a73b802003-06-30 21:59:07 +00004103_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004104rm -f conftest.$ac_objext
4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004107 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004108 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_cxx_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004126 break
John Criswell7a73b802003-06-30 21:59:07 +00004127else
4128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004129sed 's/^/| /' conftest.$ac_ext >&5
4130
John Criswell7a73b802003-06-30 21:59:07 +00004131fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004133done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004134rm -f conftest*
4135if test -n "$ac_declaration"; then
4136 echo '#ifdef __cplusplus' >>confdefs.h
4137 echo $ac_declaration >>confdefs.h
4138 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004139fi
4140
4141ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
John Criswell7a73b802003-06-30 21:59:07 +00004147echo "$as_me:$LINENO: checking " >&5
4148echo $ECHO_N "checking ... $ECHO_C" >&6
4149if test "${ac_cv_has_flex+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 for ac_prog in flex lex
4153do
4154 # Extract the first word of "$ac_prog", so it can be a program name with args.
4155set dummy $ac_prog; ac_word=$2
4156echo "$as_me:$LINENO: checking for $ac_word" >&5
4157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158if test "${ac_cv_prog_LEX+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161 if test -n "$LEX"; then
4162 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171 ac_cv_prog_LEX="$ac_prog"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175done
4176done
4177
4178fi
4179fi
4180LEX=$ac_cv_prog_LEX
4181if test -n "$LEX"; then
4182 echo "$as_me:$LINENO: result: $LEX" >&5
4183echo "${ECHO_T}$LEX" >&6
4184else
4185 echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
4187fi
4188
4189 test -n "$LEX" && break
4190done
4191test -n "$LEX" || LEX=":"
4192
4193if test -z "$LEXLIB"
4194then
4195 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4196echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4197if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 ac_check_lib_save_LIBS=$LIBS
4201LIBS="-lfl $LIBS"
4202cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004208
4209/* Override any gcc2 internal prototype to avoid an error. */
4210#ifdef __cplusplus
4211extern "C"
4212#endif
4213/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4215char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004216int
4217main ()
4218{
4219yywrap ();
4220 ;
4221 return 0;
4222}
4223_ACEOF
4224rm -f conftest.$ac_objext conftest$ac_exeext
4225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004226 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004233 { ac_try='test -z "$ac_c_werror_flag"
4234 || test ! -s conftest.err'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_lib_fl_yywrap=yes
4247else
4248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004249sed 's/^/| /' conftest.$ac_ext >&5
4250
John Criswell7a73b802003-06-30 21:59:07 +00004251ac_cv_lib_fl_yywrap=no
4252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004253rm -f conftest.err conftest.$ac_objext \
4254 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004255LIBS=$ac_check_lib_save_LIBS
4256fi
4257echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4258echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4259if test $ac_cv_lib_fl_yywrap = yes; then
4260 LEXLIB="-lfl"
4261else
4262 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4263echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4264if test "${ac_cv_lib_l_yywrap+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267 ac_check_lib_save_LIBS=$LIBS
4268LIBS="-ll $LIBS"
4269cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004275
4276/* Override any gcc2 internal prototype to avoid an error. */
4277#ifdef __cplusplus
4278extern "C"
4279#endif
4280/* We use char because int might match the return type of a gcc2
4281 builtin and then its argument prototype would still apply. */
4282char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004283int
4284main ()
4285{
4286yywrap ();
4287 ;
4288 return 0;
4289}
4290_ACEOF
4291rm -f conftest.$ac_objext conftest$ac_exeext
4292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004293 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004294 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004300 { ac_try='test -z "$ac_c_werror_flag"
4301 || test ! -s conftest.err'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 ac_cv_lib_l_yywrap=yes
4314else
4315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004316sed 's/^/| /' conftest.$ac_ext >&5
4317
John Criswell7a73b802003-06-30 21:59:07 +00004318ac_cv_lib_l_yywrap=no
4319fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004320rm -f conftest.err conftest.$ac_objext \
4321 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004322LIBS=$ac_check_lib_save_LIBS
4323fi
4324echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4325echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4326if test $ac_cv_lib_l_yywrap = yes; then
4327 LEXLIB="-ll"
4328fi
4329
4330fi
4331
4332fi
4333
4334if test "x$LEX" != "x:"; then
4335 echo "$as_me:$LINENO: checking lex output file root" >&5
4336echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4337if test "${ac_cv_prog_lex_root+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 # The minimal lex program is just a single line: %%. But some broken lexes
4341# (Solaris, I think it was) want two %% lines, so accommodate them.
4342cat >conftest.l <<_ACEOF
4343%%
4344%%
4345_ACEOF
4346{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4347 (eval $LEX conftest.l) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }
4351if test -f lex.yy.c; then
4352 ac_cv_prog_lex_root=lex.yy
4353elif test -f lexyy.c; then
4354 ac_cv_prog_lex_root=lexyy
4355else
4356 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4357echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4358 { (exit 1); exit 1; }; }
4359fi
4360fi
4361echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4362echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4363rm -f conftest.l
4364LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4365
4366echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4367echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4368if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371 # POSIX says lex can declare yytext either as a pointer or an array; the
4372# default is implementation-dependent. Figure out which it is, since
4373# not all implementations provide the %pointer and %array declarations.
4374ac_cv_prog_lex_yytext_pointer=no
4375echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4376ac_save_LIBS=$LIBS
4377LIBS="$LIBS $LEXLIB"
4378cat >conftest.$ac_ext <<_ACEOF
4379`cat $LEX_OUTPUT_ROOT.c`
4380_ACEOF
4381rm -f conftest.$ac_objext conftest$ac_exeext
4382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004383 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004390 { ac_try='test -z "$ac_c_werror_flag"
4391 || test ! -s conftest.err'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_prog_lex_yytext_pointer=yes
4404else
4405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004406sed 's/^/| /' conftest.$ac_ext >&5
4407
John Criswell7a73b802003-06-30 21:59:07 +00004408fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004409rm -f conftest.err conftest.$ac_objext \
4410 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004411LIBS=$ac_save_LIBS
4412rm -f "${LEX_OUTPUT_ROOT}.c"
4413
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4416echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4417if test $ac_cv_prog_lex_yytext_pointer = yes; then
4418
4419cat >>confdefs.h <<\_ACEOF
4420#define YYTEXT_POINTER 1
4421_ACEOF
4422
4423fi
4424
4425fi
4426
4427fi
4428echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4429echo "${ECHO_T}$ac_cv_has_flex" >&6
4430if test "$LEX" != "flex"; then
4431 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4432echo "$as_me: error: flex not found but required" >&2;}
4433 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004434else
4435 FLEX=flex
4436
John Criswell7a73b802003-06-30 21:59:07 +00004437fi
4438
4439echo "$as_me:$LINENO: checking " >&5
4440echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004441if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 for ac_prog in 'bison -y' byacc
4445do
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447set dummy $ac_prog; ac_word=$2
4448echo "$as_me:$LINENO: checking for $ac_word" >&5
4449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450if test "${ac_cv_prog_YACC+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452else
4453 if test -n "$YACC"; then
4454 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_YACC="$ac_prog"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467done
4468done
4469
4470fi
4471fi
4472YACC=$ac_cv_prog_YACC
4473if test -n "$YACC"; then
4474 echo "$as_me:$LINENO: result: $YACC" >&5
4475echo "${ECHO_T}$YACC" >&6
4476else
4477 echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6
4479fi
4480
4481 test -n "$YACC" && break
4482done
4483test -n "$YACC" || YACC="yacc"
4484
John Criswell7a73b802003-06-30 21:59:07 +00004485fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004486echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4487echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004488if test "$YACC" != "bison -y"; then
4489 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4490echo "$as_me: error: bison not found but required" >&2;}
4491 { (exit 1); exit 1; }; }
4492else
Brian Gaeke12810632004-01-13 06:52:10 +00004493 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004494
4495fi
4496
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004497echo "$as_me:$LINENO: checking for GNU make" >&5
4498echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4499if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004502 llvm_cv_gnu_make_command=''
4503 for a in "$MAKE" make gmake gnumake ; do
4504 if test -z "$a" ; then continue ; fi ;
4505 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4506 then
4507 llvm_cv_gnu_make_command=$a ;
4508 break;
John Criswell47fdd832003-07-14 16:52:07 +00004509 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004510 done
John Criswell7a73b802003-06-30 21:59:07 +00004511fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004512echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4513echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4514 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4515 ifGNUmake='' ;
4516 else
4517 ifGNUmake='#' ;
4518 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4519echo "${ECHO_T}\"Not found\"" >&6;
4520 fi
John Criswell7a73b802003-06-30 21:59:07 +00004521
John Criswell7a73b802003-06-30 21:59:07 +00004522
4523echo "$as_me:$LINENO: checking whether ln -s works" >&5
4524echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4525LN_S=$as_ln_s
4526if test "$LN_S" = "ln -s"; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529else
4530 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4531echo "${ECHO_T}no, using $LN_S" >&6
4532fi
4533
Reid Spencer8a2d4712004-12-16 17:48:14 +00004534# Extract the first word of "cmp", so it can be a program name with args.
4535set dummy cmp; ac_word=$2
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_path_CMP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 case $CMP in
4542 [\\/]* | ?:[\\/]*)
4543 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4544 ;;
4545 *)
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
4558done
4559
4560 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561 ;;
4562esac
4563fi
4564CMP=$ac_cv_path_CMP
4565
4566if test -n "$CMP"; then
4567 echo "$as_me:$LINENO: result: $CMP" >&5
4568echo "${ECHO_T}$CMP" >&6
4569else
4570 echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
4572fi
4573
4574# Extract the first word of "cp", so it can be a program name with args.
4575set dummy cp; ac_word=$2
4576echo "$as_me:$LINENO: checking for $ac_word" >&5
4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578if test "${ac_cv_path_CP+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 case $CP in
4582 [\\/]* | ?:[\\/]*)
4583 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4584 ;;
4585 *)
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597done
4598done
4599
4600 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4601 ;;
4602esac
4603fi
4604CP=$ac_cv_path_CP
4605
4606if test -n "$CP"; then
4607 echo "$as_me:$LINENO: result: $CP" >&5
4608echo "${ECHO_T}$CP" >&6
4609else
4610 echo "$as_me:$LINENO: result: no" >&5
4611echo "${ECHO_T}no" >&6
4612fi
4613
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004614# Extract the first word of "date", so it can be a program name with args.
4615set dummy date; ac_word=$2
4616echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004621 case $DATE in
4622 [\\/]* | ?:[\\/]*)
4623 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004624 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004625 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004636 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004637done
4638done
John Criswell7a73b802003-06-30 21:59:07 +00004639
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004640 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004641 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004642esac
John Criswell7a73b802003-06-30 21:59:07 +00004643fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004644DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004645
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004646if test -n "$DATE"; then
4647 echo "$as_me:$LINENO: result: $DATE" >&5
4648echo "${ECHO_T}$DATE" >&6
4649else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652fi
John Criswell7a73b802003-06-30 21:59:07 +00004653
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004654# Extract the first word of "find", so it can be a program name with args.
4655set dummy find; ac_word=$2
4656echo "$as_me:$LINENO: checking for $ac_word" >&5
4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004661 case $FIND in
4662 [\\/]* | ?:[\\/]*)
4663 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4664 ;;
4665 *)
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677done
4678done
4679
4680 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4681 ;;
4682esac
4683fi
4684FIND=$ac_cv_path_FIND
4685
4686if test -n "$FIND"; then
4687 echo "$as_me:$LINENO: result: $FIND" >&5
4688echo "${ECHO_T}$FIND" >&6
4689else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692fi
4693
4694# Extract the first word of "grep", so it can be a program name with args.
4695set dummy grep; ac_word=$2
4696echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698if test "${ac_cv_path_GREP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 case $GREP in
4702 [\\/]* | ?:[\\/]*)
4703 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4704 ;;
4705 *)
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717done
4718done
4719
4720 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4721 ;;
4722esac
4723fi
4724GREP=$ac_cv_path_GREP
4725
4726if test -n "$GREP"; then
4727 echo "$as_me:$LINENO: result: $GREP" >&5
4728echo "${ECHO_T}$GREP" >&6
4729else
4730 echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6
4732fi
4733
4734# Extract the first word of "mkdir", so it can be a program name with args.
4735set dummy mkdir; ac_word=$2
4736echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738if test "${ac_cv_path_MKDIR+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741 case $MKDIR in
4742 [\\/]* | ?:[\\/]*)
4743 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4744 ;;
4745 *)
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757done
4758done
4759
4760 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4761 ;;
4762esac
4763fi
4764MKDIR=$ac_cv_path_MKDIR
4765
4766if test -n "$MKDIR"; then
4767 echo "$as_me:$LINENO: result: $MKDIR" >&5
4768echo "${ECHO_T}$MKDIR" >&6
4769else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774# Extract the first word of "mv", so it can be a program name with args.
4775set dummy mv; ac_word=$2
4776echo "$as_me:$LINENO: checking for $ac_word" >&5
4777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778if test "${ac_cv_path_MV+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781 case $MV in
4782 [\\/]* | ?:[\\/]*)
4783 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4784 ;;
4785 *)
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797done
4798done
4799
4800 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4801 ;;
4802esac
4803fi
4804MV=$ac_cv_path_MV
4805
4806if test -n "$MV"; then
4807 echo "$as_me:$LINENO: result: $MV" >&5
4808echo "${ECHO_T}$MV" >&6
4809else
4810 echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812fi
4813
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004814if test -n "$ac_tool_prefix"; then
4815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4816set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4817echo "$as_me:$LINENO: checking for $ac_word" >&5
4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819if test "${ac_cv_prog_RANLIB+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822 if test -n "$RANLIB"; then
4823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837done
4838
4839fi
4840fi
4841RANLIB=$ac_cv_prog_RANLIB
4842if test -n "$RANLIB"; then
4843 echo "$as_me:$LINENO: result: $RANLIB" >&5
4844echo "${ECHO_T}$RANLIB" >&6
4845else
4846 echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6
4848fi
4849
4850fi
4851if test -z "$ac_cv_prog_RANLIB"; then
4852 ac_ct_RANLIB=$RANLIB
4853 # Extract the first word of "ranlib", so it can be a program name with args.
4854set dummy ranlib; ac_word=$2
4855echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860 if test -n "$ac_ct_RANLIB"; then
4861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_ac_ct_RANLIB="ranlib"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874done
4875done
4876
4877 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4878fi
4879fi
4880ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4881if test -n "$ac_ct_RANLIB"; then
4882 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4883echo "${ECHO_T}$ac_ct_RANLIB" >&6
4884else
4885 echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6
4887fi
4888
4889 RANLIB=$ac_ct_RANLIB
4890else
4891 RANLIB="$ac_cv_prog_RANLIB"
4892fi
4893
4894# Extract the first word of "rm", so it can be a program name with args.
4895set dummy rm; ac_word=$2
4896echo "$as_me:$LINENO: checking for $ac_word" >&5
4897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4898if test "${ac_cv_path_RM+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901 case $RM in
4902 [\\/]* | ?:[\\/]*)
4903 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4904 ;;
4905 *)
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917done
4918done
4919
4920 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4921 ;;
4922esac
4923fi
4924RM=$ac_cv_path_RM
4925
4926if test -n "$RM"; then
4927 echo "$as_me:$LINENO: result: $RM" >&5
4928echo "${ECHO_T}$RM" >&6
4929else
4930 echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932fi
4933
4934# Extract the first word of "sed", so it can be a program name with args.
4935set dummy sed; ac_word=$2
4936echo "$as_me:$LINENO: checking for $ac_word" >&5
4937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938if test "${ac_cv_path_SED+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 case $SED in
4942 [\\/]* | ?:[\\/]*)
4943 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4944 ;;
4945 *)
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH
4948do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957done
4958done
4959
4960 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4961 ;;
4962esac
4963fi
4964SED=$ac_cv_path_SED
4965
4966if test -n "$SED"; then
4967 echo "$as_me:$LINENO: result: $SED" >&5
4968echo "${ECHO_T}$SED" >&6
4969else
4970 echo "$as_me:$LINENO: result: no" >&5
4971echo "${ECHO_T}no" >&6
4972fi
4973
4974# Extract the first word of "tar", so it can be a program name with args.
4975set dummy tar; ac_word=$2
4976echo "$as_me:$LINENO: checking for $ac_word" >&5
4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978if test "${ac_cv_path_TAR+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981 case $TAR in
4982 [\\/]* | ?:[\\/]*)
4983 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4984 ;;
4985 *)
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997done
4998done
4999
5000 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5001 ;;
5002esac
5003fi
5004TAR=$ac_cv_path_TAR
5005
5006if test -n "$TAR"; then
5007 echo "$as_me:$LINENO: result: $TAR" >&5
5008echo "${ECHO_T}$TAR" >&6
5009else
5010 echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
5012fi
5013
5014
5015# Find a good install program. We prefer a C program (faster),
5016# so one script is as good as another. But avoid the broken or
5017# incompatible versions:
5018# SysV /etc/install, /usr/sbin/install
5019# SunOS /usr/etc/install
5020# IRIX /sbin/install
5021# AIX /bin/install
5022# AmigaOS /C/install, which installs bootblocks on floppy discs
5023# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5024# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5025# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5026# OS/2's system install, which has a completely different semantic
5027# ./install, which can be erroneously created by make from ./install.sh.
5028echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5029echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5030if test -z "$INSTALL"; then
5031if test "${ac_cv_path_install+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 # Account for people who put trailing slashes in PATH elements.
5040case $as_dir/ in
5041 ./ | .// | /cC/* | \
5042 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5043 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5044 /usr/ucb/* ) ;;
5045 *)
5046 # OSF1 and SCO ODT 3.0 have their own names for install.
5047 # Don't use installbsd from OSF since it installs stuff as root
5048 # by default.
5049 for ac_prog in ginstall scoinst install; do
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5052 if test $ac_prog = install &&
5053 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5054 # AIX install. It has an incompatible calling convention.
5055 :
5056 elif test $ac_prog = install &&
5057 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5058 # program-specific install script used by HP pwplus--don't use.
5059 :
5060 else
5061 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5062 break 3
5063 fi
5064 fi
5065 done
5066 done
5067 ;;
5068esac
5069done
5070
5071
5072fi
5073 if test "${ac_cv_path_install+set}" = set; then
5074 INSTALL=$ac_cv_path_install
5075 else
5076 # As a last resort, use the slow shell script. We don't cache a
5077 # path for INSTALL within a source directory, because that will
5078 # break other packages using the cache if that directory is
5079 # removed, or if the path is relative.
5080 INSTALL=$ac_install_sh
5081 fi
5082fi
5083echo "$as_me:$LINENO: result: $INSTALL" >&5
5084echo "${ECHO_T}$INSTALL" >&6
5085
5086# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5087# It thinks the first close brace ends the variable substitution.
5088test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5089
5090test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5091
5092test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5093
5094
5095# Extract the first word of "bzip2", so it can be a program name with args.
5096set dummy bzip2; ac_word=$2
5097echo "$as_me:$LINENO: checking for $ac_word" >&5
5098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5099if test "${ac_cv_path_BZIP2+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102 case $BZIP2 in
5103 [\\/]* | ?:[\\/]*)
5104 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5105 ;;
5106 *)
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5117 fi
5118done
5119done
5120
5121 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5122 ;;
5123esac
5124fi
5125BZIP2=$ac_cv_path_BZIP2
5126
5127if test -n "$BZIP2"; then
5128 echo "$as_me:$LINENO: result: $BZIP2" >&5
5129echo "${ECHO_T}$BZIP2" >&6
5130else
5131 echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133fi
5134
5135# Extract the first word of "dot", so it can be a program name with args.
5136set dummy dot; ac_word=$2
5137echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139if test "${ac_cv_path_DOT+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142 case $DOT in
5143 [\\/]* | ?:[\\/]*)
5144 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5145 ;;
5146 *)
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158done
5159done
5160
5161 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5162 ;;
5163esac
5164fi
5165DOT=$ac_cv_path_DOT
5166
5167if test -n "$DOT"; then
5168 echo "$as_me:$LINENO: result: $DOT" >&5
5169echo "${ECHO_T}$DOT" >&6
5170else
5171 echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
5173fi
5174
5175# Extract the first word of "doxygen", so it can be a program name with args.
5176set dummy doxygen; ac_word=$2
5177echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179if test "${ac_cv_path_DOXYGEN+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182 case $DOXYGEN in
5183 [\\/]* | ?:[\\/]*)
5184 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5185 ;;
5186 *)
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198done
5199done
5200
5201 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5202 ;;
5203esac
5204fi
5205DOXYGEN=$ac_cv_path_DOXYGEN
5206
5207if test -n "$DOXYGEN"; then
5208 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5209echo "${ECHO_T}$DOXYGEN" >&6
5210else
5211 echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
5213fi
5214
5215# Extract the first word of "etags", so it can be a program name with args.
5216set dummy etags; ac_word=$2
5217echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219if test "${ac_cv_path_ETAGS+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 case $ETAGS in
5223 [\\/]* | ?:[\\/]*)
5224 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5225 ;;
5226 *)
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238done
5239done
5240
5241 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5242 ;;
5243esac
5244fi
5245ETAGS=$ac_cv_path_ETAGS
5246
5247if test -n "$ETAGS"; then
5248 echo "$as_me:$LINENO: result: $ETAGS" >&5
5249echo "${ECHO_T}$ETAGS" >&6
5250else
5251 echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6
5253fi
5254
5255# Extract the first word of "groff", so it can be a program name with args.
5256set dummy groff; ac_word=$2
5257echo "$as_me:$LINENO: checking for $ac_word" >&5
5258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259if test "${ac_cv_path_GROFF+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 case $GROFF in
5263 [\\/]* | ?:[\\/]*)
5264 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5265 ;;
5266 *)
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278done
5279done
5280
5281 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5282 ;;
5283esac
5284fi
5285GROFF=$ac_cv_path_GROFF
5286
5287if test -n "$GROFF"; then
5288 echo "$as_me:$LINENO: result: $GROFF" >&5
5289echo "${ECHO_T}$GROFF" >&6
5290else
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293fi
5294
5295# Extract the first word of "gzip", so it can be a program name with args.
5296set dummy gzip; ac_word=$2
5297echo "$as_me:$LINENO: checking for $ac_word" >&5
5298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299if test "${ac_cv_path_GZIP+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302 case $GZIP in
5303 [\\/]* | ?:[\\/]*)
5304 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5305 ;;
5306 *)
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318done
5319done
5320
5321 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5322 ;;
5323esac
5324fi
5325GZIP=$ac_cv_path_GZIP
5326
5327if test -n "$GZIP"; then
5328 echo "$as_me:$LINENO: result: $GZIP" >&5
5329echo "${ECHO_T}$GZIP" >&6
5330else
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333fi
5334
5335# Extract the first word of "pod2html", so it can be a program name with args.
5336set dummy pod2html; ac_word=$2
5337echo "$as_me:$LINENO: checking for $ac_word" >&5
5338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339if test "${ac_cv_path_POD2HTML+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342 case $POD2HTML in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5345 ;;
5346 *)
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358done
5359done
5360
5361 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5362 ;;
5363esac
5364fi
5365POD2HTML=$ac_cv_path_POD2HTML
5366
5367if test -n "$POD2HTML"; then
5368 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5369echo "${ECHO_T}$POD2HTML" >&6
5370else
5371 echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
5373fi
5374
5375# Extract the first word of "pod2man", so it can be a program name with args.
5376set dummy pod2man; ac_word=$2
5377echo "$as_me:$LINENO: checking for $ac_word" >&5
5378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379if test "${ac_cv_path_POD2MAN+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382 case $POD2MAN in
5383 [\\/]* | ?:[\\/]*)
5384 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5385 ;;
5386 *)
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5397 fi
5398done
5399done
5400
5401 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5402 ;;
5403esac
5404fi
5405POD2MAN=$ac_cv_path_POD2MAN
5406
5407if test -n "$POD2MAN"; then
5408 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5409echo "${ECHO_T}$POD2MAN" >&6
5410else
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413fi
5414
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005415# Extract the first word of "runtest", so it can be a program name with args.
5416set dummy runtest; ac_word=$2
5417echo "$as_me:$LINENO: checking for $ac_word" >&5
5418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419if test "${ac_cv_path_RUNTEST+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422 case $RUNTEST in
5423 [\\/]* | ?:[\\/]*)
5424 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5425 ;;
5426 *)
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438done
5439done
5440
5441 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5442 ;;
5443esac
5444fi
5445RUNTEST=$ac_cv_path_RUNTEST
5446
5447if test -n "$RUNTEST"; then
5448 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5449echo "${ECHO_T}$RUNTEST" >&6
5450else
5451 echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6
5453fi
5454
Reid Spencer0fcb9412004-11-30 08:11:54 +00005455
Reid Spencer0fcb9412004-11-30 08:11:54 +00005456no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005457echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5458echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005459
5460# Check whether --with-tclinclude or --without-tclinclude was given.
5461if test "${with_tclinclude+set}" = set; then
5462 withval="$with_tclinclude"
5463 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005464else
5465 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005466fi;
5467if test "${ac_cv_path_tclsh+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470
5471if test x"${with_tclinclude}" != x ; then
5472 if test -f ${with_tclinclude}/tclsh ; then
5473 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5474 elif test -f ${with_tclinclude}/src/tclsh ; then
5475 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5476 else
5477 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5478echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5479 { (exit 1); exit 1; }; }
5480 fi
5481fi
5482
Reid Spencer0fcb9412004-11-30 08:11:54 +00005483if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005484 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005485echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005486 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 +00005487do
5488 # Extract the first word of "$ac_prog", so it can be a program name with args.
5489set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005490echo "$as_me:$LINENO: checking for $ac_word" >&5
5491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005492if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
Reid Spencercda35f82004-12-02 04:17:20 +00005495 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005496 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005497 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005498 ;;
5499 *)
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005507 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511done
5512done
5513
5514 ;;
5515esac
5516fi
Reid Spencercda35f82004-12-02 04:17:20 +00005517TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005518
Reid Spencercda35f82004-12-02 04:17:20 +00005519if test -n "$TCLSH"; then
5520 echo "$as_me:$LINENO: result: $TCLSH" >&5
5521echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005522else
5523 echo "$as_me:$LINENO: result: no" >&5
5524echo "${ECHO_T}no" >&6
5525fi
5526
Reid Spencercda35f82004-12-02 04:17:20 +00005527 test -n "$TCLSH" && break
5528done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005529
Reid Spencercda35f82004-12-02 04:17:20 +00005530 if test x"${TCLSH}" = x ; then
5531 ac_cv_path_tclsh='';
5532 else
5533 ac_cv_path_tclsh="${TCLSH}";
5534 fi
5535else
5536 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5537echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5538 TCLSH="${ac_cv_path_tclsh}"
5539
5540fi
5541
5542fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005543
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005544# Extract the first word of "zip", so it can be a program name with args.
5545set dummy zip; ac_word=$2
5546echo "$as_me:$LINENO: checking for $ac_word" >&5
5547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548if test "${ac_cv_path_ZIP+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551 case $ZIP in
5552 [\\/]* | ?:[\\/]*)
5553 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5554 ;;
5555 *)
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568done
5569
5570 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5571 ;;
5572esac
5573fi
5574ZIP=$ac_cv_path_ZIP
5575
5576if test -n "$ZIP"; then
5577 echo "$as_me:$LINENO: result: $ZIP" >&5
5578echo "${ECHO_T}$ZIP" >&6
5579else
5580 echo "$as_me:$LINENO: result: no" >&5
5581echo "${ECHO_T}no" >&6
5582fi
5583
5584
5585echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5586echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5587if test "${llvm_cv_link_use_r+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005591ac_cpp='$CPP $CPPFLAGS'
5592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005596 oldcflags="$CFLAGS"
5597 CFLAGS="$CFLAGS -Wl,-R."
5598 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005599/* confdefs.h. */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
5603/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005604
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005605int
5606main ()
5607{
5608int main() { return 0; }
5609 ;
5610 return 0;
5611}
John Criswell47fdd832003-07-14 16:52:07 +00005612_ACEOF
5613rm -f conftest.$ac_objext conftest$ac_exeext
5614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005615 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005616 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005621 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005635 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005636else
John Criswell47fdd832003-07-14 16:52:07 +00005637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005638sed 's/^/| /' conftest.$ac_ext >&5
5639
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005640llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005641fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005642rm -f conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005644 CFLAGS="$oldcflags"
5645 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005646ac_cpp='$CPP $CPPFLAGS'
5647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005651
John Criswell7a73b802003-06-30 21:59:07 +00005652fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005653echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5654echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5655if test "$llvm_cv_link_use_r" = yes ; then
5656
5657cat >>confdefs.h <<\_ACEOF
5658#define HAVE_LINK_R 1
5659_ACEOF
5660
John Criswell47fdd832003-07-14 16:52:07 +00005661 fi
John Criswell47fdd832003-07-14 16:52:07 +00005662
John Criswell47fdd832003-07-14 16:52:07 +00005663
John Criswell47fdd832003-07-14 16:52:07 +00005664
John Criswell7a73b802003-06-30 21:59:07 +00005665
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005666echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5667echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5668if test "${ac_cv_c_const+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h. */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h. */
5677
5678int
5679main ()
5680{
5681/* FIXME: Include the comments suggested by Paul. */
5682#ifndef __cplusplus
5683 /* Ultrix mips cc rejects this. */
5684 typedef int charset[2];
5685 const charset x;
5686 /* SunOS 4.1.1 cc rejects this. */
5687 char const *const *ccp;
5688 char **p;
5689 /* NEC SVR4.0.2 mips cc rejects this. */
5690 struct point {int x, y;};
5691 static struct point const zero = {0,0};
5692 /* AIX XL C 1.02.0.0 rejects this.
5693 It does not let you subtract one const X* pointer from another in
5694 an arm of an if-expression whose if-part is not a constant
5695 expression */
5696 const char *g = "string";
5697 ccp = &g + (g ? g-g : 0);
5698 /* HPUX 7.0 cc rejects these. */
5699 ++ccp;
5700 p = (char**) ccp;
5701 ccp = (char const *const *) p;
5702 { /* SCO 3.2v4 cc rejects this. */
5703 char *t;
5704 char const *s = 0 ? (char *) 0 : (char const *) 0;
5705
5706 *t++ = 0;
5707 }
5708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5709 int x[] = {25, 17};
5710 const int *foo = &x[0];
5711 ++foo;
5712 }
5713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5714 typedef const int *iptr;
5715 iptr p = 0;
5716 ++p;
5717 }
5718 { /* AIX XL C 1.02.0.0 rejects this saying
5719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5720 struct s { int j; const int *ap[3]; };
5721 struct s *b; b->j = 5;
5722 }
5723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5724 const int foo = 10;
5725 }
5726#endif
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext
5733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -z "$ac_c_werror_flag"
5742 || test ! -s conftest.err'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try='test -s conftest.$ac_objext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 (eval $ac_try) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 ac_cv_c_const=yes
5755else
5756 echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
5759ac_cv_c_const=no
5760fi
5761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762fi
5763echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5764echo "${ECHO_T}$ac_cv_c_const" >&6
5765if test $ac_cv_c_const = no; then
5766
5767cat >>confdefs.h <<\_ACEOF
5768#define const
5769_ACEOF
5770
5771fi
5772
5773
5774echo "$as_me:$LINENO: checking for egrep" >&5
5775echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5776if test "${ac_cv_prog_egrep+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5780 then ac_cv_prog_egrep='grep -E'
5781 else ac_cv_prog_egrep='egrep'
5782 fi
5783fi
5784echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5785echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5786 EGREP=$ac_cv_prog_egrep
5787
John Criswell7a73b802003-06-30 21:59:07 +00005788
5789echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5790echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5791if test "${ac_cv_header_stdc+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005795/* confdefs.h. */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005800#include <stdlib.h>
5801#include <stdarg.h>
5802#include <string.h>
5803#include <float.h>
5804
John Criswell0c38eaf2003-09-10 15:17:25 +00005805int
5806main ()
5807{
5808
5809 ;
5810 return 0;
5811}
John Criswell7a73b802003-06-30 21:59:07 +00005812_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005813rm -f conftest.$ac_objext
5814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005815 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005816 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005821 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005822 { ac_try='test -z "$ac_c_werror_flag"
5823 || test ! -s conftest.err'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005835 ac_cv_header_stdc=yes
5836else
5837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005838sed 's/^/| /' conftest.$ac_ext >&5
5839
5840ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005841fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005843
5844if test $ac_cv_header_stdc = yes; then
5845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5846 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005847/* confdefs.h. */
5848_ACEOF
5849cat confdefs.h >>conftest.$ac_ext
5850cat >>conftest.$ac_ext <<_ACEOF
5851/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005852#include <string.h>
5853
5854_ACEOF
5855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005856 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005857 :
5858else
5859 ac_cv_header_stdc=no
5860fi
5861rm -f conftest*
5862
5863fi
5864
5865if test $ac_cv_header_stdc = yes; then
5866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5867 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005868/* confdefs.h. */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
5872/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005873#include <stdlib.h>
5874
5875_ACEOF
5876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005877 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005878 :
5879else
5880 ac_cv_header_stdc=no
5881fi
5882rm -f conftest*
5883
5884fi
5885
5886if test $ac_cv_header_stdc = yes; then
5887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5888 if test "$cross_compiling" = yes; then
5889 :
5890else
5891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005897#include <ctype.h>
5898#if ((' ' & 0x0FF) == 0x020)
5899# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5900# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5901#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005902# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005903 (('a' <= (c) && (c) <= 'i') \
5904 || ('j' <= (c) && (c) <= 'r') \
5905 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005906# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5907#endif
5908
5909#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5910int
5911main ()
5912{
5913 int i;
5914 for (i = 0; i < 256; i++)
5915 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005916 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005917 exit(2);
5918 exit (0);
5919}
5920_ACEOF
5921rm -f conftest$ac_exeext
5922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 :
5933else
5934 echo "$as_me: program exited with status $ac_status" >&5
5935echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005936sed 's/^/| /' conftest.$ac_ext >&5
5937
John Criswell7a73b802003-06-30 21:59:07 +00005938( exit $ac_status )
5939ac_cv_header_stdc=no
5940fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005942fi
5943fi
5944fi
5945echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5946echo "${ECHO_T}$ac_cv_header_stdc" >&6
5947if test $ac_cv_header_stdc = yes; then
5948
5949cat >>confdefs.h <<\_ACEOF
5950#define STDC_HEADERS 1
5951_ACEOF
5952
5953fi
5954
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005955
5956
5957
5958
5959
5960ac_header_dirent=no
5961for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5962 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5963echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5964echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5965if eval "test \"\${$as_ac_Header+set}\" = set"; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967else
5968 cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h. */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h. */
5974#include <sys/types.h>
5975#include <$ac_hdr>
5976
5977int
5978main ()
5979{
5980if ((DIR *) 0)
5981return 0;
5982 ;
5983 return 0;
5984}
5985_ACEOF
5986rm -f conftest.$ac_objext
5987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 eval "$as_ac_Header=yes"
6009else
6010 echo "$as_me: failed program was:" >&5
6011sed 's/^/| /' conftest.$ac_ext >&5
6012
6013eval "$as_ac_Header=no"
6014fi
6015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6019if test `eval echo '${'$as_ac_Header'}'` = yes; then
6020 cat >>confdefs.h <<_ACEOF
6021#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6022_ACEOF
6023
6024ac_header_dirent=$ac_hdr; break
6025fi
6026
6027done
6028# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6029if test $ac_header_dirent = dirent.h; then
6030 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6031echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6032if test "${ac_cv_search_opendir+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034else
6035 ac_func_search_save_LIBS=$LIBS
6036ac_cv_search_opendir=no
6037cat >conftest.$ac_ext <<_ACEOF
6038/* confdefs.h. */
6039_ACEOF
6040cat confdefs.h >>conftest.$ac_ext
6041cat >>conftest.$ac_ext <<_ACEOF
6042/* end confdefs.h. */
6043
6044/* Override any gcc2 internal prototype to avoid an error. */
6045#ifdef __cplusplus
6046extern "C"
6047#endif
6048/* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6050char opendir ();
6051int
6052main ()
6053{
6054opendir ();
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059rm -f conftest.$ac_objext conftest$ac_exeext
6060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6061 (eval $ac_link) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest$ac_exeext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_search_opendir="none required"
6082else
6083 echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086fi
6087rm -f conftest.err conftest.$ac_objext \
6088 conftest$ac_exeext conftest.$ac_ext
6089if test "$ac_cv_search_opendir" = no; then
6090 for ac_lib in dir; do
6091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098
6099/* Override any gcc2 internal prototype to avoid an error. */
6100#ifdef __cplusplus
6101extern "C"
6102#endif
6103/* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6105char opendir ();
6106int
6107main ()
6108{
6109opendir ();
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext conftest$ac_exeext
6115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116 (eval $ac_link) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_search_opendir="-l$ac_lib"
6137break
6138else
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
6141
6142fi
6143rm -f conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6145 done
6146fi
6147LIBS=$ac_func_search_save_LIBS
6148fi
6149echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6150echo "${ECHO_T}$ac_cv_search_opendir" >&6
6151if test "$ac_cv_search_opendir" != no; then
6152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6153
6154fi
6155
6156else
6157 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6158echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6159if test "${ac_cv_search_opendir+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162 ac_func_search_save_LIBS=$LIBS
6163ac_cv_search_opendir=no
6164cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h. */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h. */
6170
6171/* Override any gcc2 internal prototype to avoid an error. */
6172#ifdef __cplusplus
6173extern "C"
6174#endif
6175/* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6177char opendir ();
6178int
6179main ()
6180{
6181opendir ();
6182 ;
6183 return 0;
6184}
6185_ACEOF
6186rm -f conftest.$ac_objext conftest$ac_exeext
6187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188 (eval $ac_link) 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_search_opendir="none required"
6209else
6210 echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
6213fi
6214rm -f conftest.err conftest.$ac_objext \
6215 conftest$ac_exeext conftest.$ac_ext
6216if test "$ac_cv_search_opendir" = no; then
6217 for ac_lib in x; do
6218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6219 cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
6225
6226/* Override any gcc2 internal prototype to avoid an error. */
6227#ifdef __cplusplus
6228extern "C"
6229#endif
6230/* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6232char opendir ();
6233int
6234main ()
6235{
6236opendir ();
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241rm -f conftest.$ac_objext conftest$ac_exeext
6242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag"
6251 || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest$ac_exeext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_cv_search_opendir="-l$ac_lib"
6264break
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269fi
6270rm -f conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272 done
6273fi
6274LIBS=$ac_func_search_save_LIBS
6275fi
6276echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6277echo "${ECHO_T}$ac_cv_search_opendir" >&6
6278if test "$ac_cv_search_opendir" != no; then
6279 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6280
6281fi
6282
6283fi
6284
John Criswell7a73b802003-06-30 21:59:07 +00006285# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006296 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006297do
6298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299echo "$as_me:$LINENO: checking for $ac_header" >&5
6300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6301if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303else
6304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006305/* confdefs.h. */
6306_ACEOF
6307cat confdefs.h >>conftest.$ac_ext
6308cat >>conftest.$ac_ext <<_ACEOF
6309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006310$ac_includes_default
6311
6312#include <$ac_header>
6313_ACEOF
6314rm -f conftest.$ac_objext
6315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006316 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006317 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006323 { ac_try='test -z "$ac_c_werror_flag"
6324 || test ! -s conftest.err'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; } &&
6330 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 eval "$as_ac_Header=yes"
6337else
6338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006339sed 's/^/| /' conftest.$ac_ext >&5
6340
John Criswell7a73b802003-06-30 21:59:07 +00006341eval "$as_ac_Header=no"
6342fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006344fi
6345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6347if test `eval echo '${'$as_ac_Header'}'` = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350_ACEOF
6351
6352fi
6353
6354done
6355
6356
6357
6358for ac_header in dlfcn.h
6359do
6360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006361if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006366fi
6367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006369else
Brian Gaeke0a621332004-09-08 20:38:05 +00006370 # Is the header compilable?
6371echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006379$ac_includes_default
6380#include <$ac_header>
6381_ACEOF
6382rm -f conftest.$ac_objext
6383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006384 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006404 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006405else
6406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006407sed 's/^/| /' conftest.$ac_ext >&5
6408
Brian Gaeke0a621332004-09-08 20:38:05 +00006409ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006410fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006412echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413echo "${ECHO_T}$ac_header_compiler" >&6
6414
6415# Is the header present?
6416echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006419/* confdefs.h. */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h. */
6424#include <$ac_header>
6425_ACEOF
6426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } >/dev/null; then
6434 if test -s conftest.err; then
6435 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006437 else
6438 ac_cpp_err=
6439 fi
6440else
6441 ac_cpp_err=yes
6442fi
6443if test -z "$ac_cpp_err"; then
6444 ac_header_preproc=yes
6445else
6446 echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
6448
6449 ac_header_preproc=no
6450fi
6451rm -f conftest.err conftest.$ac_ext
6452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453echo "${ECHO_T}$ac_header_preproc" >&6
6454
6455# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006463 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006464 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006477 (
6478 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006479## ----------------------------------- ##
6480## Report this to llvmbugs@cs.uiuc.edu ##
6481## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006482_ASBOX
6483 ) |
6484 sed "s/^/$as_me: WARNING: /" >&2
6485 ;;
6486esac
6487echo "$as_me:$LINENO: checking for $ac_header" >&5
6488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006492 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006493fi
6494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006496
6497fi
John Criswell7a73b802003-06-30 21:59:07 +00006498if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h <<_ACEOF
6500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501_ACEOF
6502
6503fi
6504
6505done
6506
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006507# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6508if test "${enable_ltdl_install+set}" = set; then
6509 enableval="$enable_ltdl_install"
6510
6511fi;
6512
6513
6514
6515if test x"${enable_ltdl_install-no}" != xno; then
6516 INSTALL_LTDL_TRUE=
6517 INSTALL_LTDL_FALSE='#'
6518else
6519 INSTALL_LTDL_TRUE='#'
6520 INSTALL_LTDL_FALSE=
6521fi
6522
6523
6524
6525if test x"${enable_ltdl_convenience-no}" != xno; then
6526 CONVENIENCE_LTDL_TRUE=
6527 CONVENIENCE_LTDL_FALSE='#'
6528else
6529 CONVENIENCE_LTDL_TRUE='#'
6530 CONVENIENCE_LTDL_FALSE=
6531fi
6532
6533
6534echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6536library_names_spec=
6537libname_spec='lib$name'
6538soname_spec=
6539shrext_cmds=".so"
6540postinstall_cmds=
6541postuninstall_cmds=
6542finish_cmds=
6543finish_eval=
6544shlibpath_var=
6545shlibpath_overrides_runpath=unknown
6546version_type=none
6547dynamic_linker="$host_os ld.so"
6548sys_lib_dlsearch_path_spec="/lib /usr/lib"
6549if test "$GCC" = yes; then
6550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6552 # if the path contains ";" then we assume it to be the separator
6553 # otherwise default to the standard path separator (i.e. ":") - it is
6554 # assumed that no part of a normal pathname contains ";" but that should
6555 # okay in the real world where ";" in dirpaths is itself problematic.
6556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6557 else
6558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6559 fi
6560else
6561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6562fi
6563need_lib_prefix=unknown
6564hardcode_into_libs=no
6565
6566# when you set need_version to no, make sure it does not cause -set_version
6567# flags to be left without arguments
6568need_version=unknown
6569
6570case $host_os in
6571aix3*)
6572 version_type=linux
6573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6574 shlibpath_var=LIBPATH
6575
6576 # AIX 3 has no versioning support, so we append a major version to the name.
6577 soname_spec='${libname}${release}${shared_ext}$major'
6578 ;;
6579
6580aix4* | aix5*)
6581 version_type=linux
6582 need_lib_prefix=no
6583 need_version=no
6584 hardcode_into_libs=yes
6585 if test "$host_cpu" = ia64; then
6586 # AIX 5 supports IA64
6587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6588 shlibpath_var=LD_LIBRARY_PATH
6589 else
6590 # With GCC up to 2.95.x, collect2 would create an import file
6591 # for dependence libraries. The import file would start with
6592 # the line `#! .'. This would cause the generated library to
6593 # depend on `.', always an invalid library. This was fixed in
6594 # development snapshots of GCC prior to 3.0.
6595 case $host_os in
6596 aix4 | aix4.[01] | aix4.[01].*)
6597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6598 echo ' yes '
6599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6600 :
6601 else
6602 can_build_shared=no
6603 fi
6604 ;;
6605 esac
6606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6607 # soname into executable. Probably we can add versioning support to
6608 # collect2, so additional links can be useful in future.
6609 if test "$aix_use_runtimelinking" = yes; then
6610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6611 # instead of lib<name>.a to let people know that these are not
6612 # typical AIX shared libraries.
6613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6614 else
6615 # We preserve .a as extension for shared libraries through AIX4.2
6616 # and later when we are not doing run time linking.
6617 library_names_spec='${libname}${release}.a $libname.a'
6618 soname_spec='${libname}${release}${shared_ext}$major'
6619 fi
6620 shlibpath_var=LIBPATH
6621 fi
6622 ;;
6623
6624amigaos*)
6625 library_names_spec='$libname.ixlibrary $libname.a'
6626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6627 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'
6628 ;;
6629
6630beos*)
6631 library_names_spec='${libname}${shared_ext}'
6632 dynamic_linker="$host_os ld.so"
6633 shlibpath_var=LIBRARY_PATH
6634 ;;
6635
6636bsdi[45]*)
6637 version_type=linux
6638 need_version=no
6639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6640 soname_spec='${libname}${release}${shared_ext}$major'
6641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6642 shlibpath_var=LD_LIBRARY_PATH
6643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6645 # the default ld.so.conf also contains /usr/contrib/lib and
6646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6647 # libtool to hard-code these into programs
6648 ;;
6649
6650cygwin* | mingw* | pw32*)
6651 version_type=windows
6652 shrext_cmds=".dll"
6653 need_version=no
6654 need_lib_prefix=no
6655
6656 case $GCC,$host_os in
6657 yes,cygwin* | yes,mingw* | yes,pw32*)
6658 library_names_spec='$libname.dll.a'
6659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6660 postinstall_cmds='base_file=`basename \${file}`~
6661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6662 dldir=$destdir/`dirname \$dlpath`~
6663 test -d \$dldir || mkdir -p \$dldir~
6664 $install_prog $dir/$dlname \$dldir/$dlname'
6665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6666 dlpath=$dir/\$dldll~
6667 $rm \$dlpath'
6668 shlibpath_overrides_runpath=yes
6669
6670 case $host_os in
6671 cygwin*)
6672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6674 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6675 ;;
6676 mingw*)
6677 # MinGW DLLs use traditional 'lib' prefix
6678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6680 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6681 # It is most probably a Windows format PATH printed by
6682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6683 # path with ; separators, and with drive letters. We can handle the
6684 # drive letters (cygwin fileutils understands them), so leave them,
6685 # especially as we might pass files found there to a mingw objdump,
6686 # which wouldn't understand a cygwinified path. Ahh.
6687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6688 else
6689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6690 fi
6691 ;;
6692 pw32*)
6693 # pw32 DLLs use 'pw' prefix rather than 'lib'
6694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6695 ;;
6696 esac
6697 ;;
6698
6699 *)
6700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6701 ;;
6702 esac
6703 dynamic_linker='Win32 ld.exe'
6704 # FIXME: first we should search . and the directory the executable is in
6705 shlibpath_var=PATH
6706 ;;
6707
6708darwin* | rhapsody*)
6709 dynamic_linker="$host_os dyld"
6710 version_type=darwin
6711 need_lib_prefix=no
6712 need_version=no
6713 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6714 soname_spec='${libname}${release}${major}$shared_ext'
6715 shlibpath_overrides_runpath=yes
6716 shlibpath_var=DYLD_LIBRARY_PATH
6717 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6718 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6719 if test "$GCC" = yes; then
6720 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"`
6721 else
6722 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6723 fi
6724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6725 ;;
6726
6727dgux*)
6728 version_type=linux
6729 need_lib_prefix=no
6730 need_version=no
6731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6732 soname_spec='${libname}${release}${shared_ext}$major'
6733 shlibpath_var=LD_LIBRARY_PATH
6734 ;;
6735
6736freebsd1*)
6737 dynamic_linker=no
6738 ;;
6739
6740kfreebsd*-gnu)
6741 version_type=linux
6742 need_lib_prefix=no
6743 need_version=no
6744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6745 soname_spec='${libname}${release}${shared_ext}$major'
6746 shlibpath_var=LD_LIBRARY_PATH
6747 shlibpath_overrides_runpath=no
6748 hardcode_into_libs=yes
6749 dynamic_linker='GNU ld.so'
6750 ;;
6751
6752freebsd*)
6753 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6754 version_type=freebsd-$objformat
6755 case $version_type in
6756 freebsd-elf*)
6757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6758 need_version=no
6759 need_lib_prefix=no
6760 ;;
6761 freebsd-*)
6762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6763 need_version=yes
6764 ;;
6765 esac
6766 shlibpath_var=LD_LIBRARY_PATH
6767 case $host_os in
6768 freebsd2*)
6769 shlibpath_overrides_runpath=yes
6770 ;;
6771 freebsd3.01* | freebsdelf3.01*)
6772 shlibpath_overrides_runpath=yes
6773 hardcode_into_libs=yes
6774 ;;
6775 *) # from 3.2 on
6776 shlibpath_overrides_runpath=no
6777 hardcode_into_libs=yes
6778 ;;
6779 esac
6780 ;;
6781
6782gnu*)
6783 version_type=linux
6784 need_lib_prefix=no
6785 need_version=no
6786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6787 soname_spec='${libname}${release}${shared_ext}$major'
6788 shlibpath_var=LD_LIBRARY_PATH
6789 hardcode_into_libs=yes
6790 ;;
6791
6792hpux9* | hpux10* | hpux11*)
6793 # Give a soname corresponding to the major version so that dld.sl refuses to
6794 # link against other versions.
6795 version_type=sunos
6796 need_lib_prefix=no
6797 need_version=no
6798 case "$host_cpu" in
6799 ia64*)
6800 shrext_cmds='.so'
6801 hardcode_into_libs=yes
6802 dynamic_linker="$host_os dld.so"
6803 shlibpath_var=LD_LIBRARY_PATH
6804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6806 soname_spec='${libname}${release}${shared_ext}$major'
6807 if test "X$HPUX_IA64_MODE" = X32; then
6808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6809 else
6810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6811 fi
6812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6813 ;;
6814 hppa*64*)
6815 shrext_cmds='.sl'
6816 hardcode_into_libs=yes
6817 dynamic_linker="$host_os dld.sl"
6818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6821 soname_spec='${libname}${release}${shared_ext}$major'
6822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6824 ;;
6825 *)
6826 shrext_cmds='.sl'
6827 dynamic_linker="$host_os dld.sl"
6828 shlibpath_var=SHLIB_PATH
6829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6831 soname_spec='${libname}${release}${shared_ext}$major'
6832 ;;
6833 esac
6834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6835 postinstall_cmds='chmod 555 $lib'
6836 ;;
6837
6838irix5* | irix6* | nonstopux*)
6839 case $host_os in
6840 nonstopux*) version_type=nonstopux ;;
6841 *)
6842 if test "$lt_cv_prog_gnu_ld" = yes; then
6843 version_type=linux
6844 else
6845 version_type=irix
6846 fi ;;
6847 esac
6848 need_lib_prefix=no
6849 need_version=no
6850 soname_spec='${libname}${release}${shared_ext}$major'
6851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6852 case $host_os in
6853 irix5* | nonstopux*)
6854 libsuff= shlibsuff=
6855 ;;
6856 *)
6857 case $LD in # libtool.m4 will add one of these switches to LD
6858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6859 libsuff= shlibsuff= libmagic=32-bit;;
6860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6861 libsuff=32 shlibsuff=N32 libmagic=N32;;
6862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6864 *) libsuff= shlibsuff= libmagic=never-match;;
6865 esac
6866 ;;
6867 esac
6868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6869 shlibpath_overrides_runpath=no
6870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6872 hardcode_into_libs=yes
6873 ;;
6874
6875# No shared lib support for Linux oldld, aout, or coff.
6876linux*oldld* | linux*aout* | linux*coff*)
6877 dynamic_linker=no
6878 ;;
6879
6880# This must be Linux ELF.
6881linux*)
6882 version_type=linux
6883 need_lib_prefix=no
6884 need_version=no
6885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6886 soname_spec='${libname}${release}${shared_ext}$major'
6887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6888 shlibpath_var=LD_LIBRARY_PATH
6889 shlibpath_overrides_runpath=no
6890 # This implies no fast_install, which is unacceptable.
6891 # Some rework will be needed to allow for fast_install
6892 # before this can be enabled.
6893 hardcode_into_libs=yes
6894
6895 # Append ld.so.conf contents to the search path
6896 if test -f /etc/ld.so.conf; then
6897 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6899 fi
6900
6901 # We used to test for /lib/ld.so.1 and disable shared libraries on
6902 # powerpc, because MkLinux only supported shared libraries with the
6903 # GNU dynamic linker. Since this was broken with cross compilers,
6904 # most powerpc-linux boxes support dynamic linking these days and
6905 # people can always --disable-shared, the test was removed, and we
6906 # assume the GNU/Linux dynamic linker is in use.
6907 dynamic_linker='GNU/Linux ld.so'
6908 ;;
6909
6910knetbsd*-gnu)
6911 version_type=linux
6912 need_lib_prefix=no
6913 need_version=no
6914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6915 soname_spec='${libname}${release}${shared_ext}$major'
6916 shlibpath_var=LD_LIBRARY_PATH
6917 shlibpath_overrides_runpath=no
6918 hardcode_into_libs=yes
6919 dynamic_linker='GNU ld.so'
6920 ;;
6921
6922netbsd*)
6923 version_type=sunos
6924 need_lib_prefix=no
6925 need_version=no
6926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6929 dynamic_linker='NetBSD (a.out) ld.so'
6930 else
6931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6932 soname_spec='${libname}${release}${shared_ext}$major'
6933 dynamic_linker='NetBSD ld.elf_so'
6934 fi
6935 shlibpath_var=LD_LIBRARY_PATH
6936 shlibpath_overrides_runpath=yes
6937 hardcode_into_libs=yes
6938 ;;
6939
6940newsos6)
6941 version_type=linux
6942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6943 shlibpath_var=LD_LIBRARY_PATH
6944 shlibpath_overrides_runpath=yes
6945 ;;
6946
6947nto-qnx*)
6948 version_type=linux
6949 need_lib_prefix=no
6950 need_version=no
6951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6952 soname_spec='${libname}${release}${shared_ext}$major'
6953 shlibpath_var=LD_LIBRARY_PATH
6954 shlibpath_overrides_runpath=yes
6955 ;;
6956
6957openbsd*)
6958 version_type=sunos
6959 need_lib_prefix=no
6960 need_version=no
6961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6963 shlibpath_var=LD_LIBRARY_PATH
6964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6965 case $host_os in
6966 openbsd2.[89] | openbsd2.[89].*)
6967 shlibpath_overrides_runpath=no
6968 ;;
6969 *)
6970 shlibpath_overrides_runpath=yes
6971 ;;
6972 esac
6973 else
6974 shlibpath_overrides_runpath=yes
6975 fi
6976 ;;
6977
6978os2*)
6979 libname_spec='$name'
6980 shrext_cmds=".dll"
6981 need_lib_prefix=no
6982 library_names_spec='$libname${shared_ext} $libname.a'
6983 dynamic_linker='OS/2 ld.exe'
6984 shlibpath_var=LIBPATH
6985 ;;
6986
6987osf3* | osf4* | osf5*)
6988 version_type=osf
6989 need_lib_prefix=no
6990 need_version=no
6991 soname_spec='${libname}${release}${shared_ext}$major'
6992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6993 shlibpath_var=LD_LIBRARY_PATH
6994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6996 ;;
6997
6998sco3.2v5*)
6999 version_type=osf
7000 soname_spec='${libname}${release}${shared_ext}$major'
7001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7002 shlibpath_var=LD_LIBRARY_PATH
7003 ;;
7004
7005solaris*)
7006 version_type=linux
7007 need_lib_prefix=no
7008 need_version=no
7009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7010 soname_spec='${libname}${release}${shared_ext}$major'
7011 shlibpath_var=LD_LIBRARY_PATH
7012 shlibpath_overrides_runpath=yes
7013 hardcode_into_libs=yes
7014 # ldd complains unless libraries are executable
7015 postinstall_cmds='chmod +x $lib'
7016 ;;
7017
7018sunos4*)
7019 version_type=sunos
7020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7022 shlibpath_var=LD_LIBRARY_PATH
7023 shlibpath_overrides_runpath=yes
7024 if test "$with_gnu_ld" = yes; then
7025 need_lib_prefix=no
7026 fi
7027 need_version=yes
7028 ;;
7029
7030sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7031 version_type=linux
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033 soname_spec='${libname}${release}${shared_ext}$major'
7034 shlibpath_var=LD_LIBRARY_PATH
7035 case $host_vendor in
7036 sni)
7037 shlibpath_overrides_runpath=no
7038 need_lib_prefix=no
7039 export_dynamic_flag_spec='${wl}-Blargedynsym'
7040 runpath_var=LD_RUN_PATH
7041 ;;
7042 siemens)
7043 need_lib_prefix=no
7044 ;;
7045 motorola)
7046 need_lib_prefix=no
7047 need_version=no
7048 shlibpath_overrides_runpath=no
7049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7050 ;;
7051 esac
7052 ;;
7053
7054sysv4*MP*)
7055 if test -d /usr/nec ;then
7056 version_type=linux
7057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7058 soname_spec='$libname${shared_ext}.$major'
7059 shlibpath_var=LD_LIBRARY_PATH
7060 fi
7061 ;;
7062
7063uts4*)
7064 version_type=linux
7065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7066 soname_spec='${libname}${release}${shared_ext}$major'
7067 shlibpath_var=LD_LIBRARY_PATH
7068 ;;
7069
7070*)
7071 dynamic_linker=no
7072 ;;
7073esac
7074echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7075echo "${ECHO_T}$dynamic_linker" >&6
7076test "$dynamic_linker" = no && can_build_shared=no
7077
7078
7079echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7080echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7081if test "${libltdl_cv_shlibext+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084
7085module=yes
7086eval libltdl_cv_shlibext=$shrext_cmds
7087
7088fi
7089echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7090echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7091if test -n "$libltdl_cv_shlibext"; then
7092
7093cat >>confdefs.h <<_ACEOF
7094#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7095_ACEOF
7096
7097fi
7098
7099
7100echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7101echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7102if test "${libltdl_cv_shlibpath_var+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 libltdl_cv_shlibpath_var="$shlibpath_var"
7106fi
7107echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7108echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7109if test -n "$libltdl_cv_shlibpath_var"; then
7110
7111cat >>confdefs.h <<_ACEOF
7112#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7113_ACEOF
7114
7115fi
7116
7117
7118echo "$as_me:$LINENO: checking for the default library search path" >&5
7119echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7120if test "${libltdl_cv_sys_search_path+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122else
7123 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7124fi
7125echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7126echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7127if test -n "$libltdl_cv_sys_search_path"; then
7128 sys_search_path=
7129 for dir in $libltdl_cv_sys_search_path; do
7130 if test -z "$sys_search_path"; then
7131 sys_search_path="$dir"
7132 else
7133 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7134 fi
7135 done
7136
7137cat >>confdefs.h <<_ACEOF
7138#define LTDL_SYSSEARCHPATH "$sys_search_path"
7139_ACEOF
7140
7141fi
7142
7143echo "$as_me:$LINENO: checking for objdir" >&5
7144echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7145if test "${libltdl_cv_objdir+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148 libltdl_cv_objdir="$objdir"
7149 if test -n "$objdir"; then
7150 :
7151 else
7152 rm -f .libs 2>/dev/null
7153 mkdir .libs 2>/dev/null
7154 if test -d .libs; then
7155 libltdl_cv_objdir=.libs
7156 else
7157 # MS-DOS does not allow filenames that begin with a dot.
7158 libltdl_cv_objdir=_libs
7159 fi
7160 rmdir .libs 2>/dev/null
7161 fi
7162
7163fi
7164echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7165echo "${ECHO_T}$libltdl_cv_objdir" >&6
7166
7167cat >>confdefs.h <<_ACEOF
7168#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7169_ACEOF
7170
7171
7172echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7173echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7174if test "${lt_cv_path_NM+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 if test -n "$NM"; then
7178 # Let the user override the test.
7179 lt_cv_path_NM="$NM"
7180else
7181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7182 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7183 IFS="$lt_save_ifs"
7184 test -z "$ac_dir" && ac_dir=.
7185 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7186 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7187 # Check to see if the nm accepts a BSD-compat flag.
7188 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7189 # nm: unknown option "B" ignored
7190 # Tru64's nm complains that /dev/null is an invalid object file
7191 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7192 */dev/null* | *'Invalid file or object type'*)
7193 lt_cv_path_NM="$tmp_nm -B"
7194 break
7195 ;;
7196 *)
7197 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7198 */dev/null*)
7199 lt_cv_path_NM="$tmp_nm -p"
7200 break
7201 ;;
7202 *)
7203 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7204 continue # so that we can try to find one that supports BSD flags
7205 ;;
7206 esac
7207 esac
7208 fi
7209 done
7210 IFS="$lt_save_ifs"
7211 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7212fi
7213fi
7214echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7215echo "${ECHO_T}$lt_cv_path_NM" >&6
7216NM="$lt_cv_path_NM"
7217
7218
7219
7220
7221
7222# Check for command to grab the raw symbol name followed by C symbol from nm.
7223echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7224echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7225if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228
7229# These are sane defaults that work on at least a few old systems.
7230# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7231
7232# Character class describing NM global symbol codes.
7233symcode='[BCDEGRST]'
7234
7235# Regexp to match symbols that can be accessed directly from C.
7236sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7237
7238# Transform the above into a raw symbol and a C symbol.
7239symxfrm='\1 \2\3 \3'
7240
7241# Transform an extracted symbol line into a proper C declaration
7242lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7243
7244# Transform an extracted symbol line into symbol name and symbol address
7245lt_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'"
7246
7247# Define system-specific variables.
7248case $host_os in
7249aix*)
7250 symcode='[BCDT]'
7251 ;;
7252cygwin* | mingw* | pw32*)
7253 symcode='[ABCDGISTW]'
7254 ;;
7255hpux*) # Its linker distinguishes data from code symbols
7256 if test "$host_cpu" = ia64; then
7257 symcode='[ABCDEGRST]'
7258 fi
7259 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7260 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'"
7261 ;;
7262linux*)
7263 if test "$host_cpu" = ia64; then
7264 symcode='[ABCDGIRSTW]'
7265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7266 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'"
7267 fi
7268 ;;
7269irix* | nonstopux*)
7270 symcode='[BCDEGRST]'
7271 ;;
7272osf*)
7273 symcode='[BCDEGQRST]'
7274 ;;
7275solaris* | sysv5*)
7276 symcode='[BDRT]'
7277 ;;
7278sysv4)
7279 symcode='[DFNSTU]'
7280 ;;
7281esac
7282
7283# Handle CRLF in mingw tool chain
7284opt_cr=
7285case $build_os in
7286mingw*)
7287 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7288 ;;
7289esac
7290
7291# If we're using GNU nm, then use its standard symbol codes.
7292case `$NM -V 2>&1` in
7293*GNU* | *'with BFD'*)
7294 symcode='[ABCDGIRSTW]' ;;
7295esac
7296
7297# Try without a prefix undercore, then with it.
7298for ac_symprfx in "" "_"; do
7299
7300 # Write the raw and C identifiers.
7301 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7302
7303 # Check to see that the pipe works correctly.
7304 pipe_works=no
7305
7306 rm -f conftest*
7307 cat > conftest.$ac_ext <<EOF
7308#ifdef __cplusplus
7309extern "C" {
7310#endif
7311char nm_test_var;
7312void nm_test_func(){}
7313#ifdef __cplusplus
7314}
7315#endif
7316int main(){nm_test_var='a';nm_test_func();return(0);}
7317EOF
7318
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; then
7324 # Now try to grab the symbols.
7325 nlist=conftest.nm
7326 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7327 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && test -s "$nlist"; then
7331 # Try sorting and uniquifying the output.
7332 if sort "$nlist" | uniq > "$nlist"T; then
7333 mv -f "$nlist"T "$nlist"
7334 else
7335 rm -f "$nlist"T
7336 fi
7337
7338 # Make sure that we snagged all the symbols we need.
7339 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7340 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7341 cat <<EOF > conftest.$ac_ext
7342#ifdef __cplusplus
7343extern "C" {
7344#endif
7345
7346EOF
7347 # Now generate the symbol file.
7348 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7349
7350 cat <<EOF >> conftest.$ac_ext
7351#if defined (__STDC__) && __STDC__
7352# define lt_ptr_t void *
7353#else
7354# define lt_ptr_t char *
7355# define const
7356#endif
7357
7358/* The mapping between symbol names and symbols. */
7359const struct {
7360 const char *name;
7361 lt_ptr_t address;
7362}
7363lt_preloaded_symbols[] =
7364{
7365EOF
7366 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7367 cat <<\EOF >> conftest.$ac_ext
7368 {0, (lt_ptr_t) 0}
7369};
7370
7371#ifdef __cplusplus
7372}
7373#endif
7374EOF
7375 # Now try linking the two files.
7376 mv conftest.$ac_objext conftstm.$ac_objext
7377 lt_save_LIBS="$LIBS"
7378 lt_save_CFLAGS="$CFLAGS"
7379 LIBS="conftstm.$ac_objext"
7380 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7382 (eval $ac_link) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7386 pipe_works=yes
7387 fi
7388 LIBS="$lt_save_LIBS"
7389 CFLAGS="$lt_save_CFLAGS"
7390 else
7391 echo "cannot find nm_test_func in $nlist" >&5
7392 fi
7393 else
7394 echo "cannot find nm_test_var in $nlist" >&5
7395 fi
7396 else
7397 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7398 fi
7399 else
7400 echo "$progname: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7402 fi
7403 rm -f conftest* conftst*
7404
7405 # Do not use the global_symbol_pipe unless it works.
7406 if test "$pipe_works" = yes; then
7407 break
7408 else
7409 lt_cv_sys_global_symbol_pipe=
7410 fi
7411done
7412
7413fi
7414
7415if test -z "$lt_cv_sys_global_symbol_pipe"; then
7416 lt_cv_sys_global_symbol_to_cdecl=
7417fi
7418if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7419 echo "$as_me:$LINENO: result: failed" >&5
7420echo "${ECHO_T}failed" >&6
7421else
7422 echo "$as_me:$LINENO: result: ok" >&5
7423echo "${ECHO_T}ok" >&6
7424fi
7425
7426
7427echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7428echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7429if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7433 libltdl_cv_preloaded_symbols=yes
7434 else
7435 libltdl_cv_preloaded_symbols=no
7436 fi
7437
7438fi
7439echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7440echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7441if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7442
7443cat >>confdefs.h <<\_ACEOF
7444#define HAVE_PRELOADED_SYMBOLS 1
7445_ACEOF
7446
7447fi
7448
7449LIBADD_DL=
7450
7451ac_ext=c
7452ac_cpp='$CPP $CPPFLAGS'
7453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
7457
7458echo "$as_me:$LINENO: checking for shl_load" >&5
7459echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7460if test "${ac_cv_func_shl_load+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463 cat >conftest.$ac_ext <<_ACEOF
7464/* confdefs.h. */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h. */
7469/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7471#define shl_load innocuous_shl_load
7472
7473/* System header to define __stub macros and hopefully few prototypes,
7474 which can conflict with char shl_load (); below.
7475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476 <limits.h> exists even on freestanding compilers. */
7477
7478#ifdef __STDC__
7479# include <limits.h>
7480#else
7481# include <assert.h>
7482#endif
7483
7484#undef shl_load
7485
7486/* Override any gcc2 internal prototype to avoid an error. */
7487#ifdef __cplusplus
7488extern "C"
7489{
7490#endif
7491/* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7493char shl_load ();
7494/* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497#if defined (__stub_shl_load) || defined (__stub___shl_load)
7498choke me
7499#else
7500char (*f) () = shl_load;
7501#endif
7502#ifdef __cplusplus
7503}
7504#endif
7505
7506int
7507main ()
7508{
7509return f != shl_load;
7510 ;
7511 return 0;
7512}
7513_ACEOF
7514rm -f conftest.$ac_objext conftest$ac_exeext
7515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag"
7524 || test ! -s conftest.err'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; } &&
7530 { ac_try='test -s conftest$ac_exeext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 (eval $ac_try) 2>&5
7533 ac_status=$?
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_func_shl_load=yes
7537else
7538 echo "$as_me: failed program was:" >&5
7539sed 's/^/| /' conftest.$ac_ext >&5
7540
7541ac_cv_func_shl_load=no
7542fi
7543rm -f conftest.err conftest.$ac_objext \
7544 conftest$ac_exeext conftest.$ac_ext
7545fi
7546echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7547echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7548if test $ac_cv_func_shl_load = yes; then
7549
7550cat >>confdefs.h <<\_ACEOF
7551#define HAVE_SHL_LOAD 1
7552_ACEOF
7553
7554else
7555 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7556echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7557if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560 ac_check_lib_save_LIBS=$LIBS
7561LIBS="-ldld $LIBS"
7562cat >conftest.$ac_ext <<_ACEOF
7563/* confdefs.h. */
7564_ACEOF
7565cat confdefs.h >>conftest.$ac_ext
7566cat >>conftest.$ac_ext <<_ACEOF
7567/* end confdefs.h. */
7568
7569/* Override any gcc2 internal prototype to avoid an error. */
7570#ifdef __cplusplus
7571extern "C"
7572#endif
7573/* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7575char shl_load ();
7576int
7577main ()
7578{
7579shl_load ();
7580 ;
7581 return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext conftest$ac_exeext
7585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_lib_dld_shl_load=yes
7607else
7608 echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7611ac_cv_lib_dld_shl_load=no
7612fi
7613rm -f conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7615LIBS=$ac_check_lib_save_LIBS
7616fi
7617echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7618echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7619if test $ac_cv_lib_dld_shl_load = yes; then
7620
7621cat >>confdefs.h <<\_ACEOF
7622#define HAVE_SHL_LOAD 1
7623_ACEOF
7624
7625 LIBADD_DL="$LIBADD_DL -ldld"
7626else
7627 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7628echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7629if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632 ac_check_lib_save_LIBS=$LIBS
7633LIBS="-ldl $LIBS"
7634cat >conftest.$ac_ext <<_ACEOF
7635/* confdefs.h. */
7636_ACEOF
7637cat confdefs.h >>conftest.$ac_ext
7638cat >>conftest.$ac_ext <<_ACEOF
7639/* end confdefs.h. */
7640
7641/* Override any gcc2 internal prototype to avoid an error. */
7642#ifdef __cplusplus
7643extern "C"
7644#endif
7645/* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7647char dlopen ();
7648int
7649main ()
7650{
7651dlopen ();
7652 ;
7653 return 0;
7654}
7655_ACEOF
7656rm -f conftest.$ac_objext conftest$ac_exeext
7657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag"
7666 || test ! -s conftest.err'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_dl_dlopen=yes
7679else
7680 echo "$as_me: failed program was:" >&5
7681sed 's/^/| /' conftest.$ac_ext >&5
7682
7683ac_cv_lib_dl_dlopen=no
7684fi
7685rm -f conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687LIBS=$ac_check_lib_save_LIBS
7688fi
7689echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7690echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7691if test $ac_cv_lib_dl_dlopen = yes; then
7692
7693cat >>confdefs.h <<\_ACEOF
7694#define HAVE_LIBDL 1
7695_ACEOF
7696
7697 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7698else
7699 cat >conftest.$ac_ext <<_ACEOF
7700/* confdefs.h. */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h. */
7705#if HAVE_DLFCN_H
7706# include <dlfcn.h>
7707#endif
7708
7709int
7710main ()
7711{
7712dlopen(0, 0);
7713 ;
7714 return 0;
7715}
7716_ACEOF
7717rm -f conftest.$ac_objext conftest$ac_exeext
7718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719 (eval $ac_link) 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag"
7727 || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739
7740cat >>confdefs.h <<\_ACEOF
7741#define HAVE_LIBDL 1
7742_ACEOF
7743 libltdl_cv_func_dlopen="yes"
7744else
7745 echo "$as_me: failed program was:" >&5
7746sed 's/^/| /' conftest.$ac_ext >&5
7747
7748echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7749echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7750if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753 ac_check_lib_save_LIBS=$LIBS
7754LIBS="-lsvld $LIBS"
7755cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h. */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h. */
7761
7762/* Override any gcc2 internal prototype to avoid an error. */
7763#ifdef __cplusplus
7764extern "C"
7765#endif
7766/* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768char dlopen ();
7769int
7770main ()
7771{
7772dlopen ();
7773 ;
7774 return 0;
7775}
7776_ACEOF
7777rm -f conftest.$ac_objext conftest$ac_exeext
7778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>conftest.er1
7780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -z "$ac_c_werror_flag"
7787 || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 (eval $ac_try) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest$ac_exeext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 ac_cv_lib_svld_dlopen=yes
7800else
7801 echo "$as_me: failed program was:" >&5
7802sed 's/^/| /' conftest.$ac_ext >&5
7803
7804ac_cv_lib_svld_dlopen=no
7805fi
7806rm -f conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808LIBS=$ac_check_lib_save_LIBS
7809fi
7810echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7811echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7812if test $ac_cv_lib_svld_dlopen = yes; then
7813
7814cat >>confdefs.h <<\_ACEOF
7815#define HAVE_LIBDL 1
7816_ACEOF
7817
7818 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7819else
7820 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7821echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7822if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824else
7825 ac_check_lib_save_LIBS=$LIBS
7826LIBS="-ldld $LIBS"
7827cat >conftest.$ac_ext <<_ACEOF
7828/* confdefs.h. */
7829_ACEOF
7830cat confdefs.h >>conftest.$ac_ext
7831cat >>conftest.$ac_ext <<_ACEOF
7832/* end confdefs.h. */
7833
7834/* Override any gcc2 internal prototype to avoid an error. */
7835#ifdef __cplusplus
7836extern "C"
7837#endif
7838/* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7840char dld_link ();
7841int
7842main ()
7843{
7844dld_link ();
7845 ;
7846 return 0;
7847}
7848_ACEOF
7849rm -f conftest.$ac_objext conftest$ac_exeext
7850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>conftest.er1
7852 ac_status=$?
7853 grep -v '^ *+' conftest.er1 >conftest.err
7854 rm -f conftest.er1
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -z "$ac_c_werror_flag"
7859 || test ! -s conftest.err'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 (eval $ac_try) 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest$ac_exeext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 (eval $ac_try) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 ac_cv_lib_dld_dld_link=yes
7872else
7873 echo "$as_me: failed program was:" >&5
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
7876ac_cv_lib_dld_dld_link=no
7877fi
7878rm -f conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880LIBS=$ac_check_lib_save_LIBS
7881fi
7882echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7883echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7884if test $ac_cv_lib_dld_dld_link = yes; then
7885
7886cat >>confdefs.h <<\_ACEOF
7887#define HAVE_DLD 1
7888_ACEOF
7889
7890 LIBADD_DL="$LIBADD_DL -ldld"
7891else
7892 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7893echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7894if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h. */
7903/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7905#define _dyld_func_lookup innocuous__dyld_func_lookup
7906
7907/* System header to define __stub macros and hopefully few prototypes,
7908 which can conflict with char _dyld_func_lookup (); below.
7909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7910 <limits.h> exists even on freestanding compilers. */
7911
7912#ifdef __STDC__
7913# include <limits.h>
7914#else
7915# include <assert.h>
7916#endif
7917
7918#undef _dyld_func_lookup
7919
7920/* Override any gcc2 internal prototype to avoid an error. */
7921#ifdef __cplusplus
7922extern "C"
7923{
7924#endif
7925/* We use char because int might match the return type of a gcc2
7926 builtin and then its argument prototype would still apply. */
7927char _dyld_func_lookup ();
7928/* The GNU C library defines this for functions which it implements
7929 to always fail with ENOSYS. Some functions are actually named
7930 something starting with __ and the normal name is an alias. */
7931#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7932choke me
7933#else
7934char (*f) () = _dyld_func_lookup;
7935#endif
7936#ifdef __cplusplus
7937}
7938#endif
7939
7940int
7941main ()
7942{
7943return f != _dyld_func_lookup;
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext conftest$ac_exeext
7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag"
7958 || test ! -s conftest.err'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_func__dyld_func_lookup=yes
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975ac_cv_func__dyld_func_lookup=no
7976fi
7977rm -f conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979fi
7980echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7981echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7982if test $ac_cv_func__dyld_func_lookup = yes; then
7983
7984cat >>confdefs.h <<\_ACEOF
7985#define HAVE_DYLD 1
7986_ACEOF
7987
7988fi
7989
7990
7991fi
7992
7993
7994fi
7995
7996
7997fi
7998rm -f conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000
8001fi
8002
8003
8004fi
8005
8006
8007fi
8008
8009
8010if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8011then
8012 lt_save_LIBS="$LIBS"
8013 LIBS="$LIBS $LIBADD_DL"
8014
8015for ac_func in dlerror
8016do
8017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8018echo "$as_me:$LINENO: checking for $ac_func" >&5
8019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8020if eval "test \"\${$as_ac_var+set}\" = set"; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023 cat >conftest.$ac_ext <<_ACEOF
8024/* confdefs.h. */
8025_ACEOF
8026cat confdefs.h >>conftest.$ac_ext
8027cat >>conftest.$ac_ext <<_ACEOF
8028/* end confdefs.h. */
8029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8031#define $ac_func innocuous_$ac_func
8032
8033/* System header to define __stub macros and hopefully few prototypes,
8034 which can conflict with char $ac_func (); below.
8035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8036 <limits.h> exists even on freestanding compilers. */
8037
8038#ifdef __STDC__
8039# include <limits.h>
8040#else
8041# include <assert.h>
8042#endif
8043
8044#undef $ac_func
8045
8046/* Override any gcc2 internal prototype to avoid an error. */
8047#ifdef __cplusplus
8048extern "C"
8049{
8050#endif
8051/* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8053char $ac_func ();
8054/* The GNU C library defines this for functions which it implements
8055 to always fail with ENOSYS. Some functions are actually named
8056 something starting with __ and the normal name is an alias. */
8057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8058choke me
8059#else
8060char (*f) () = $ac_func;
8061#endif
8062#ifdef __cplusplus
8063}
8064#endif
8065
8066int
8067main ()
8068{
8069return f != $ac_func;
8070 ;
8071 return 0;
8072}
8073_ACEOF
8074rm -f conftest.$ac_objext conftest$ac_exeext
8075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest$ac_exeext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 (eval $ac_try) 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 eval "$as_ac_var=yes"
8097else
8098 echo "$as_me: failed program was:" >&5
8099sed 's/^/| /' conftest.$ac_ext >&5
8100
8101eval "$as_ac_var=no"
8102fi
8103rm -f conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8105fi
8106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8107echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8108if test `eval echo '${'$as_ac_var'}'` = yes; then
8109 cat >>confdefs.h <<_ACEOF
8110#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8111_ACEOF
8112
8113fi
8114done
8115
8116 LIBS="$lt_save_LIBS"
8117fi
8118ac_ext=c
8119ac_cpp='$CPP $CPPFLAGS'
8120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123
8124
8125
8126echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8127echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8128if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130else
8131 ac_cv_sys_symbol_underscore=no
8132 cat > conftest.$ac_ext <<EOF
8133void nm_test_func(){}
8134int main(){nm_test_func;return 0;}
8135EOF
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; then
8141 # Now try to grab the symbols.
8142 ac_nlist=conftest.nm
8143 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8144 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && test -s "$ac_nlist"; then
8148 # See whether the symbols have a leading underscore.
8149 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8150 ac_cv_sys_symbol_underscore=yes
8151 else
8152 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8153 :
8154 else
8155 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8156 fi
8157 fi
8158 else
8159 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8160 fi
8161 else
8162 echo "configure: failed program was:" >&5
8163 cat conftest.c >&5
8164 fi
8165 rm -rf conftest*
8166
8167fi
8168echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8169echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8170
8171
8172if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8173 if test x"$libltdl_cv_func_dlopen" = xyes ||
8174 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8175 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8176echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8177if test "${libltdl_cv_need_uscore+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 libltdl_cv_need_uscore=unknown
8181 save_LIBS="$LIBS"
8182 LIBS="$LIBS $LIBADD_DL"
8183 if test "$cross_compiling" = yes; then :
8184 libltdl_cv_need_uscore=cross
8185else
8186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8187 lt_status=$lt_dlunknown
8188 cat > conftest.$ac_ext <<EOF
Reid Spencer78ba11d2005-02-16 16:21:00 +00008189#line 8189 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008190#include "confdefs.h"
8191
8192#if HAVE_DLFCN_H
8193#include <dlfcn.h>
8194#endif
8195
8196#include <stdio.h>
8197
8198#ifdef RTLD_GLOBAL
8199# define LT_DLGLOBAL RTLD_GLOBAL
8200#else
8201# ifdef DL_GLOBAL
8202# define LT_DLGLOBAL DL_GLOBAL
8203# else
8204# define LT_DLGLOBAL 0
8205# endif
8206#endif
8207
8208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8209 find out it does not work in some platform. */
8210#ifndef LT_DLLAZY_OR_NOW
8211# ifdef RTLD_LAZY
8212# define LT_DLLAZY_OR_NOW RTLD_LAZY
8213# else
8214# ifdef DL_LAZY
8215# define LT_DLLAZY_OR_NOW DL_LAZY
8216# else
8217# ifdef RTLD_NOW
8218# define LT_DLLAZY_OR_NOW RTLD_NOW
8219# else
8220# ifdef DL_NOW
8221# define LT_DLLAZY_OR_NOW DL_NOW
8222# else
8223# define LT_DLLAZY_OR_NOW 0
8224# endif
8225# endif
8226# endif
8227# endif
8228#endif
8229
8230#ifdef __cplusplus
8231extern "C" void exit (int);
8232#endif
8233
8234void fnord() { int i=42;}
8235int main ()
8236{
8237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8238 int status = $lt_dlunknown;
8239
8240 if (self)
8241 {
8242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8244 /* dlclose (self); */
8245 }
8246
8247 exit (status);
8248}
8249EOF
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8255 (./conftest; exit; ) 2>/dev/null
8256 lt_status=$?
8257 case x$lt_status in
8258 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8259 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8260 x$lt_unknown|x*) ;;
8261 esac
8262 else :
8263 # compilation failed
8264
8265 fi
8266fi
8267rm -fr conftest*
8268
8269 LIBS="$save_LIBS"
8270
8271fi
8272echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8273echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8274 fi
8275fi
8276
8277if test x"$libltdl_cv_need_uscore" = xyes; then
8278
8279cat >>confdefs.h <<\_ACEOF
8280#define NEED_USCORE 1
8281_ACEOF
8282
8283fi
8284
8285
8286echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8287echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8288if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290else
8291 # PORTME does your system automatically load deplibs for dlopen?
8292 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8293 # For now, we just catch OSes we know something about -- in the
8294 # future, we'll try test this programmatically.
8295 libltdl_cv_sys_dlopen_deplibs=unknown
8296 case "$host_os" in
8297 aix3*|aix4.1.*|aix4.2.*)
8298 # Unknown whether this is true for these versions of AIX, but
8299 # we want this `case' here to explicitly catch those versions.
8300 libltdl_cv_sys_dlopen_deplibs=unknown
8301 ;;
8302 aix[45]*)
8303 libltdl_cv_sys_dlopen_deplibs=yes
8304 ;;
8305 darwin*)
8306 # Assuming the user has installed a libdl from somewhere, this is true
8307 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8308 libltdl_cv_sys_dlopen_deplibs=yes
8309 ;;
8310 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8311 # GNU and its variants, using gnu ld.so (Glibc)
8312 libltdl_cv_sys_dlopen_deplibs=yes
8313 ;;
8314 hpux10*|hpux11*)
8315 libltdl_cv_sys_dlopen_deplibs=yes
8316 ;;
8317 irix[12345]*|irix6.[01]*)
8318 # Catch all versions of IRIX before 6.2, and indicate that we don't
8319 # know how it worked for any of those versions.
8320 libltdl_cv_sys_dlopen_deplibs=unknown
8321 ;;
8322 irix*)
8323 # The case above catches anything before 6.2, and it's known that
8324 # at 6.2 and later dlopen does load deplibs.
8325 libltdl_cv_sys_dlopen_deplibs=yes
8326 ;;
8327 netbsd*)
8328 libltdl_cv_sys_dlopen_deplibs=yes
8329 ;;
8330 openbsd*)
8331 libltdl_cv_sys_dlopen_deplibs=yes
8332 ;;
8333 osf[1234]*)
8334 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8335 # it did *not* use an RPATH in a shared library to find objects the
8336 # library depends on, so we explictly say `no'.
8337 libltdl_cv_sys_dlopen_deplibs=no
8338 ;;
8339 osf5.0|osf5.0a|osf5.1)
8340 # dlopen *does* load deplibs and with the right loader patch applied
8341 # it even uses RPATH in a shared library to search for shared objects
8342 # that the library depends on, but there's no easy way to know if that
8343 # patch is installed. Since this is the case, all we can really
8344 # say is unknown -- it depends on the patch being installed. If
8345 # it is, this changes to `yes'. Without it, it would be `no'.
8346 libltdl_cv_sys_dlopen_deplibs=unknown
8347 ;;
8348 osf*)
8349 # the two cases above should catch all versions of osf <= 5.1. Read
8350 # the comments above for what we know about them.
8351 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8352 # is used to find them so we can finally say `yes'.
8353 libltdl_cv_sys_dlopen_deplibs=yes
8354 ;;
8355 solaris*)
8356 libltdl_cv_sys_dlopen_deplibs=yes
8357 ;;
8358 esac
8359
8360fi
8361echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8362echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8363if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8364
8365cat >>confdefs.h <<\_ACEOF
8366#define LTDL_DLOPEN_DEPLIBS 1
8367_ACEOF
8368
8369fi
8370
8371
8372for ac_header in argz.h
8373do
8374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8375if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo "$as_me:$LINENO: checking for $ac_header" >&5
8377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8378if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380fi
8381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8383else
8384 # Is the header compilable?
8385echo "$as_me:$LINENO: checking $ac_header usability" >&5
8386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8387cat >conftest.$ac_ext <<_ACEOF
8388/* confdefs.h. */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h. */
8393$ac_includes_default
8394#include <$ac_header>
8395_ACEOF
8396rm -f conftest.$ac_objext
8397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag"
8406 || test ! -s conftest.err'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 (eval $ac_try) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 (eval $ac_try) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_header_compiler=yes
8419else
8420 echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
8422
8423ac_header_compiler=no
8424fi
8425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427echo "${ECHO_T}$ac_header_compiler" >&6
8428
8429# Is the header present?
8430echo "$as_me:$LINENO: checking $ac_header presence" >&5
8431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8432cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h. */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h. */
8438#include <$ac_header>
8439_ACEOF
8440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } >/dev/null; then
8448 if test -s conftest.err; then
8449 ac_cpp_err=$ac_c_preproc_warn_flag
8450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8451 else
8452 ac_cpp_err=
8453 fi
8454else
8455 ac_cpp_err=yes
8456fi
8457if test -z "$ac_cpp_err"; then
8458 ac_header_preproc=yes
8459else
8460 echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 ac_header_preproc=no
8464fi
8465rm -f conftest.err conftest.$ac_ext
8466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8467echo "${ECHO_T}$ac_header_preproc" >&6
8468
8469# So? What about this header?
8470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8471 yes:no: )
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8476 ac_header_preproc=yes
8477 ;;
8478 no:yes:* )
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8482echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8486echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8491 (
8492 cat <<\_ASBOX
8493## ----------------------------------- ##
8494## Report this to llvmbugs@cs.uiuc.edu ##
8495## ----------------------------------- ##
8496_ASBOX
8497 ) |
8498 sed "s/^/$as_me: WARNING: /" >&2
8499 ;;
8500esac
8501echo "$as_me:$LINENO: checking for $ac_header" >&5
8502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8503if eval "test \"\${$as_ac_Header+set}\" = set"; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8505else
8506 eval "$as_ac_Header=\$ac_header_preproc"
8507fi
8508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8510
8511fi
8512if test `eval echo '${'$as_ac_Header'}'` = yes; then
8513 cat >>confdefs.h <<_ACEOF
8514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8515_ACEOF
8516
8517fi
8518
8519done
8520
8521
8522echo "$as_me:$LINENO: checking for error_t" >&5
8523echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8524if test "${ac_cv_type_error_t+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526else
8527 cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533#if HAVE_ARGZ_H
8534# include <argz.h>
8535#endif
8536
8537int
8538main ()
8539{
8540if ((error_t *) 0)
8541 return 0;
8542if (sizeof (error_t))
8543 return 0;
8544 ;
8545 return 0;
8546}
8547_ACEOF
8548rm -f conftest.$ac_objext
8549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest.$ac_objext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_cv_type_error_t=yes
8571else
8572 echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575ac_cv_type_error_t=no
8576fi
8577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8578fi
8579echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8580echo "${ECHO_T}$ac_cv_type_error_t" >&6
8581if test $ac_cv_type_error_t = yes; then
8582
8583cat >>confdefs.h <<_ACEOF
8584#define HAVE_ERROR_T 1
8585_ACEOF
8586
8587
8588else
8589
8590cat >>confdefs.h <<\_ACEOF
8591#define error_t int
8592_ACEOF
8593
8594fi
8595
8596
8597
8598
8599
8600
8601
8602for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8603do
8604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8605echo "$as_me:$LINENO: checking for $ac_func" >&5
8606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8607if eval "test \"\${$as_ac_var+set}\" = set"; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609else
8610 cat >conftest.$ac_ext <<_ACEOF
8611/* confdefs.h. */
8612_ACEOF
8613cat confdefs.h >>conftest.$ac_ext
8614cat >>conftest.$ac_ext <<_ACEOF
8615/* end confdefs.h. */
8616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8618#define $ac_func innocuous_$ac_func
8619
8620/* System header to define __stub macros and hopefully few prototypes,
8621 which can conflict with char $ac_func (); below.
8622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623 <limits.h> exists even on freestanding compilers. */
8624
8625#ifdef __STDC__
8626# include <limits.h>
8627#else
8628# include <assert.h>
8629#endif
8630
8631#undef $ac_func
8632
8633/* Override any gcc2 internal prototype to avoid an error. */
8634#ifdef __cplusplus
8635extern "C"
8636{
8637#endif
8638/* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8640char $ac_func ();
8641/* The GNU C library defines this for functions which it implements
8642 to always fail with ENOSYS. Some functions are actually named
8643 something starting with __ and the normal name is an alias. */
8644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8645choke me
8646#else
8647char (*f) () = $ac_func;
8648#endif
8649#ifdef __cplusplus
8650}
8651#endif
8652
8653int
8654main ()
8655{
8656return f != $ac_func;
8657 ;
8658 return 0;
8659}
8660_ACEOF
8661rm -f conftest.$ac_objext conftest$ac_exeext
8662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 eval "$as_ac_var=yes"
8684else
8685 echo "$as_me: failed program was:" >&5
8686sed 's/^/| /' conftest.$ac_ext >&5
8687
8688eval "$as_ac_var=no"
8689fi
8690rm -f conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692fi
8693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695if test `eval echo '${'$as_ac_var'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698_ACEOF
8699
8700fi
8701done
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8731 stdio.h unistd.h
8732do
8733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8734if eval "test \"\${$as_ac_Header+set}\" = set"; then
8735 echo "$as_me:$LINENO: checking for $ac_header" >&5
8736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8737if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8739fi
8740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8742else
8743 # Is the header compilable?
8744echo "$as_me:$LINENO: checking $ac_header usability" >&5
8745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8746cat >conftest.$ac_ext <<_ACEOF
8747/* confdefs.h. */
8748_ACEOF
8749cat confdefs.h >>conftest.$ac_ext
8750cat >>conftest.$ac_ext <<_ACEOF
8751/* end confdefs.h. */
8752$ac_includes_default
8753#include <$ac_header>
8754_ACEOF
8755rm -f conftest.$ac_objext
8756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -z "$ac_c_werror_flag"
8765 || test ! -s conftest.err'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_header_compiler=yes
8778else
8779 echo "$as_me: failed program was:" >&5
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
8782ac_header_compiler=no
8783fi
8784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8786echo "${ECHO_T}$ac_header_compiler" >&6
8787
8788# Is the header present?
8789echo "$as_me:$LINENO: checking $ac_header presence" >&5
8790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8791cat >conftest.$ac_ext <<_ACEOF
8792/* confdefs.h. */
8793_ACEOF
8794cat confdefs.h >>conftest.$ac_ext
8795cat >>conftest.$ac_ext <<_ACEOF
8796/* end confdefs.h. */
8797#include <$ac_header>
8798_ACEOF
8799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } >/dev/null; then
8807 if test -s conftest.err; then
8808 ac_cpp_err=$ac_c_preproc_warn_flag
8809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8810 else
8811 ac_cpp_err=
8812 fi
8813else
8814 ac_cpp_err=yes
8815fi
8816if test -z "$ac_cpp_err"; then
8817 ac_header_preproc=yes
8818else
8819 echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 ac_header_preproc=no
8823fi
8824rm -f conftest.err conftest.$ac_ext
8825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8826echo "${ECHO_T}$ac_header_preproc" >&6
8827
8828# So? What about this header?
8829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8830 yes:no: )
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8832echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8834echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8835 ac_header_preproc=yes
8836 ;;
8837 no:yes:* )
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8841echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8843echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8845echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8847echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8849echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8850 (
8851 cat <<\_ASBOX
8852## ----------------------------------- ##
8853## Report this to llvmbugs@cs.uiuc.edu ##
8854## ----------------------------------- ##
8855_ASBOX
8856 ) |
8857 sed "s/^/$as_me: WARNING: /" >&2
8858 ;;
8859esac
8860echo "$as_me:$LINENO: checking for $ac_header" >&5
8861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8862if eval "test \"\${$as_ac_Header+set}\" = set"; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864else
8865 eval "$as_ac_Header=\$ac_header_preproc"
8866fi
8867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8869
8870fi
8871if test `eval echo '${'$as_ac_Header'}'` = yes; then
8872 cat >>confdefs.h <<_ACEOF
8873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8874_ACEOF
8875
8876fi
8877
8878done
8879
8880
8881
8882
8883
8884for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8885do
8886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8887if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888 echo "$as_me:$LINENO: checking for $ac_header" >&5
8889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8890if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892fi
8893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8895else
8896 # Is the header compilable?
8897echo "$as_me:$LINENO: checking $ac_header usability" >&5
8898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8899cat >conftest.$ac_ext <<_ACEOF
8900/* confdefs.h. */
8901_ACEOF
8902cat confdefs.h >>conftest.$ac_ext
8903cat >>conftest.$ac_ext <<_ACEOF
8904/* end confdefs.h. */
8905$ac_includes_default
8906#include <$ac_header>
8907_ACEOF
8908rm -f conftest.$ac_objext
8909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -z "$ac_c_werror_flag"
8918 || test ! -s conftest.err'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest.$ac_objext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 ac_header_compiler=yes
8931else
8932 echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8934
8935ac_header_compiler=no
8936fi
8937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8939echo "${ECHO_T}$ac_header_compiler" >&6
8940
8941# Is the header present?
8942echo "$as_me:$LINENO: checking $ac_header presence" >&5
8943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8944cat >conftest.$ac_ext <<_ACEOF
8945/* confdefs.h. */
8946_ACEOF
8947cat confdefs.h >>conftest.$ac_ext
8948cat >>conftest.$ac_ext <<_ACEOF
8949/* end confdefs.h. */
8950#include <$ac_header>
8951_ACEOF
8952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } >/dev/null; then
8960 if test -s conftest.err; then
8961 ac_cpp_err=$ac_c_preproc_warn_flag
8962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8963 else
8964 ac_cpp_err=
8965 fi
8966else
8967 ac_cpp_err=yes
8968fi
8969if test -z "$ac_cpp_err"; then
8970 ac_header_preproc=yes
8971else
8972 echo "$as_me: failed program was:" >&5
8973sed 's/^/| /' conftest.$ac_ext >&5
8974
8975 ac_header_preproc=no
8976fi
8977rm -f conftest.err conftest.$ac_ext
8978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8979echo "${ECHO_T}$ac_header_preproc" >&6
8980
8981# So? What about this header?
8982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8983 yes:no: )
8984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8988 ac_header_preproc=yes
8989 ;;
8990 no:yes:* )
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8998echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9003 (
9004 cat <<\_ASBOX
9005## ----------------------------------- ##
9006## Report this to llvmbugs@cs.uiuc.edu ##
9007## ----------------------------------- ##
9008_ASBOX
9009 ) |
9010 sed "s/^/$as_me: WARNING: /" >&2
9011 ;;
9012esac
9013echo "$as_me:$LINENO: checking for $ac_header" >&5
9014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9015if eval "test \"\${$as_ac_Header+set}\" = set"; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9017else
9018 eval "$as_ac_Header=\$ac_header_preproc"
9019fi
9020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9022
9023fi
9024if test `eval echo '${'$as_ac_Header'}'` = yes; then
9025 cat >>confdefs.h <<_ACEOF
9026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9027_ACEOF
9028
9029fi
9030
9031done
9032
9033
9034
9035for ac_header in string.h strings.h
9036do
9037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9038if eval "test \"\${$as_ac_Header+set}\" = set"; then
9039 echo "$as_me:$LINENO: checking for $ac_header" >&5
9040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9041if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043fi
9044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9046else
9047 # Is the header compilable?
9048echo "$as_me:$LINENO: checking $ac_header usability" >&5
9049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9050cat >conftest.$ac_ext <<_ACEOF
9051/* confdefs.h. */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h. */
9056$ac_includes_default
9057#include <$ac_header>
9058_ACEOF
9059rm -f conftest.$ac_objext
9060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 (eval $ac_try) 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_header_compiler=yes
9082else
9083 echo "$as_me: failed program was:" >&5
9084sed 's/^/| /' conftest.$ac_ext >&5
9085
9086ac_header_compiler=no
9087fi
9088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9090echo "${ECHO_T}$ac_header_compiler" >&6
9091
9092# Is the header present?
9093echo "$as_me:$LINENO: checking $ac_header presence" >&5
9094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9095cat >conftest.$ac_ext <<_ACEOF
9096/* confdefs.h. */
9097_ACEOF
9098cat confdefs.h >>conftest.$ac_ext
9099cat >>conftest.$ac_ext <<_ACEOF
9100/* end confdefs.h. */
9101#include <$ac_header>
9102_ACEOF
9103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } >/dev/null; then
9111 if test -s conftest.err; then
9112 ac_cpp_err=$ac_c_preproc_warn_flag
9113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9114 else
9115 ac_cpp_err=
9116 fi
9117else
9118 ac_cpp_err=yes
9119fi
9120if test -z "$ac_cpp_err"; then
9121 ac_header_preproc=yes
9122else
9123 echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_header_preproc=no
9127fi
9128rm -f conftest.err conftest.$ac_ext
9129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9130echo "${ECHO_T}$ac_header_preproc" >&6
9131
9132# So? What about this header?
9133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9134 yes:no: )
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9139 ac_header_preproc=yes
9140 ;;
9141 no:yes:* )
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9154 (
9155 cat <<\_ASBOX
9156## ----------------------------------- ##
9157## Report this to llvmbugs@cs.uiuc.edu ##
9158## ----------------------------------- ##
9159_ASBOX
9160 ) |
9161 sed "s/^/$as_me: WARNING: /" >&2
9162 ;;
9163esac
9164echo "$as_me:$LINENO: checking for $ac_header" >&5
9165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9166if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9168else
9169 eval "$as_ac_Header=\$ac_header_preproc"
9170fi
9171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9173
9174fi
9175if test `eval echo '${'$as_ac_Header'}'` = yes; then
9176 cat >>confdefs.h <<_ACEOF
9177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9178_ACEOF
9179 break
9180fi
9181
9182done
9183
9184
9185
9186
9187for ac_func in strchr index
9188do
9189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9190echo "$as_me:$LINENO: checking for $ac_func" >&5
9191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9192if eval "test \"\${$as_ac_var+set}\" = set"; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195 cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h. */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h. */
9201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9203#define $ac_func innocuous_$ac_func
9204
9205/* System header to define __stub macros and hopefully few prototypes,
9206 which can conflict with char $ac_func (); below.
9207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9208 <limits.h> exists even on freestanding compilers. */
9209
9210#ifdef __STDC__
9211# include <limits.h>
9212#else
9213# include <assert.h>
9214#endif
9215
9216#undef $ac_func
9217
9218/* Override any gcc2 internal prototype to avoid an error. */
9219#ifdef __cplusplus
9220extern "C"
9221{
9222#endif
9223/* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9225char $ac_func ();
9226/* The GNU C library defines this for functions which it implements
9227 to always fail with ENOSYS. Some functions are actually named
9228 something starting with __ and the normal name is an alias. */
9229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9230choke me
9231#else
9232char (*f) () = $ac_func;
9233#endif
9234#ifdef __cplusplus
9235}
9236#endif
9237
9238int
9239main ()
9240{
9241return f != $ac_func;
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext conftest$ac_exeext
9247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 eval "$as_ac_var=yes"
9269else
9270 echo "$as_me: failed program was:" >&5
9271sed 's/^/| /' conftest.$ac_ext >&5
9272
9273eval "$as_ac_var=no"
9274fi
9275rm -f conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277fi
9278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9279echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9280if test `eval echo '${'$as_ac_var'}'` = yes; then
9281 cat >>confdefs.h <<_ACEOF
9282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9283_ACEOF
9284 break
9285fi
9286done
9287
9288
9289
9290for ac_func in strrchr rindex
9291do
9292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9293echo "$as_me:$LINENO: checking for $ac_func" >&5
9294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9295if eval "test \"\${$as_ac_var+set}\" = set"; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297else
9298 cat >conftest.$ac_ext <<_ACEOF
9299/* confdefs.h. */
9300_ACEOF
9301cat confdefs.h >>conftest.$ac_ext
9302cat >>conftest.$ac_ext <<_ACEOF
9303/* end confdefs.h. */
9304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9306#define $ac_func innocuous_$ac_func
9307
9308/* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char $ac_func (); below.
9310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311 <limits.h> exists even on freestanding compilers. */
9312
9313#ifdef __STDC__
9314# include <limits.h>
9315#else
9316# include <assert.h>
9317#endif
9318
9319#undef $ac_func
9320
9321/* Override any gcc2 internal prototype to avoid an error. */
9322#ifdef __cplusplus
9323extern "C"
9324{
9325#endif
9326/* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9328char $ac_func ();
9329/* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9333choke me
9334#else
9335char (*f) () = $ac_func;
9336#endif
9337#ifdef __cplusplus
9338}
9339#endif
9340
9341int
9342main ()
9343{
9344return f != $ac_func;
9345 ;
9346 return 0;
9347}
9348_ACEOF
9349rm -f conftest.$ac_objext conftest$ac_exeext
9350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 eval "$as_ac_var=yes"
9372else
9373 echo "$as_me: failed program was:" >&5
9374sed 's/^/| /' conftest.$ac_ext >&5
9375
9376eval "$as_ac_var=no"
9377fi
9378rm -f conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380fi
9381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9382echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9383if test `eval echo '${'$as_ac_var'}'` = yes; then
9384 cat >>confdefs.h <<_ACEOF
9385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9386_ACEOF
9387 break
9388fi
9389done
9390
9391
9392
9393for ac_func in memcpy bcopy
9394do
9395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9396echo "$as_me:$LINENO: checking for $ac_func" >&5
9397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9398if eval "test \"\${$as_ac_var+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400else
9401 cat >conftest.$ac_ext <<_ACEOF
9402/* confdefs.h. */
9403_ACEOF
9404cat confdefs.h >>conftest.$ac_ext
9405cat >>conftest.$ac_ext <<_ACEOF
9406/* end confdefs.h. */
9407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9409#define $ac_func innocuous_$ac_func
9410
9411/* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char $ac_func (); below.
9413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 <limits.h> exists even on freestanding compilers. */
9415
9416#ifdef __STDC__
9417# include <limits.h>
9418#else
9419# include <assert.h>
9420#endif
9421
9422#undef $ac_func
9423
9424/* Override any gcc2 internal prototype to avoid an error. */
9425#ifdef __cplusplus
9426extern "C"
9427{
9428#endif
9429/* We use char because int might match the return type of a gcc2
9430 builtin and then its argument prototype would still apply. */
9431char $ac_func ();
9432/* The GNU C library defines this for functions which it implements
9433 to always fail with ENOSYS. Some functions are actually named
9434 something starting with __ and the normal name is an alias. */
9435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9436choke me
9437#else
9438char (*f) () = $ac_func;
9439#endif
9440#ifdef __cplusplus
9441}
9442#endif
9443
9444int
9445main ()
9446{
9447return f != $ac_func;
9448 ;
9449 return 0;
9450}
9451_ACEOF
9452rm -f conftest.$ac_objext conftest$ac_exeext
9453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>conftest.er1
9455 ac_status=$?
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -z "$ac_c_werror_flag"
9462 || test ! -s conftest.err'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 eval "$as_ac_var=yes"
9475else
9476 echo "$as_me: failed program was:" >&5
9477sed 's/^/| /' conftest.$ac_ext >&5
9478
9479eval "$as_ac_var=no"
9480fi
9481rm -f conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483fi
9484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9486if test `eval echo '${'$as_ac_var'}'` = yes; then
9487 cat >>confdefs.h <<_ACEOF
9488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9489_ACEOF
9490 break
9491fi
9492done
9493
9494
9495
9496for ac_func in memmove strcmp
9497do
9498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9499echo "$as_me:$LINENO: checking for $ac_func" >&5
9500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9501if eval "test \"\${$as_ac_var+set}\" = set"; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503else
9504 cat >conftest.$ac_ext <<_ACEOF
9505/* confdefs.h. */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h. */
9510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512#define $ac_func innocuous_$ac_func
9513
9514/* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char $ac_func (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9518
9519#ifdef __STDC__
9520# include <limits.h>
9521#else
9522# include <assert.h>
9523#endif
9524
9525#undef $ac_func
9526
9527/* Override any gcc2 internal prototype to avoid an error. */
9528#ifdef __cplusplus
9529extern "C"
9530{
9531#endif
9532/* We use char because int might match the return type of a gcc2
9533 builtin and then its argument prototype would still apply. */
9534char $ac_func ();
9535/* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9539choke me
9540#else
9541char (*f) () = $ac_func;
9542#endif
9543#ifdef __cplusplus
9544}
9545#endif
9546
9547int
9548main ()
9549{
9550return f != $ac_func;
9551 ;
9552 return 0;
9553}
9554_ACEOF
9555rm -f conftest.$ac_objext conftest$ac_exeext
9556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 eval "$as_ac_var=yes"
9578else
9579 echo "$as_me: failed program was:" >&5
9580sed 's/^/| /' conftest.$ac_ext >&5
9581
9582eval "$as_ac_var=no"
9583fi
9584rm -f conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586fi
9587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9588echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9589if test `eval echo '${'$as_ac_var'}'` = yes; then
9590 cat >>confdefs.h <<_ACEOF
9591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9592_ACEOF
9593
9594fi
9595done
9596
9597
9598
9599
9600for ac_func in closedir opendir readdir
9601do
9602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9603echo "$as_me:$LINENO: checking for $ac_func" >&5
9604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9605if eval "test \"\${$as_ac_var+set}\" = set"; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9607else
9608 cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9616#define $ac_func innocuous_$ac_func
9617
9618/* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char $ac_func (); below.
9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621 <limits.h> exists even on freestanding compilers. */
9622
9623#ifdef __STDC__
9624# include <limits.h>
9625#else
9626# include <assert.h>
9627#endif
9628
9629#undef $ac_func
9630
9631/* Override any gcc2 internal prototype to avoid an error. */
9632#ifdef __cplusplus
9633extern "C"
9634{
9635#endif
9636/* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9638char $ac_func ();
9639/* The GNU C library defines this for functions which it implements
9640 to always fail with ENOSYS. Some functions are actually named
9641 something starting with __ and the normal name is an alias. */
9642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9643choke me
9644#else
9645char (*f) () = $ac_func;
9646#endif
9647#ifdef __cplusplus
9648}
9649#endif
9650
9651int
9652main ()
9653{
9654return f != $ac_func;
9655 ;
9656 return 0;
9657}
9658_ACEOF
9659rm -f conftest.$ac_objext conftest$ac_exeext
9660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 eval "$as_ac_var=yes"
9682else
9683 echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
9686eval "$as_ac_var=no"
9687fi
9688rm -f conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690fi
9691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9692echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9693if test `eval echo '${'$as_ac_var'}'` = yes; then
9694 cat >>confdefs.h <<_ACEOF
9695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9696_ACEOF
9697
9698fi
9699done
9700
9701
9702# Check whether --enable-shared or --disable-shared was given.
9703if test "${enable_shared+set}" = set; then
9704 enableval="$enable_shared"
9705 p=${PACKAGE-default}
9706 case $enableval in
9707 yes) enable_shared=yes ;;
9708 no) enable_shared=no ;;
9709 *)
9710 enable_shared=no
9711 # Look at the argument we got. We use all the common list separators.
9712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9713 for pkg in $enableval; do
9714 IFS="$lt_save_ifs"
9715 if test "X$pkg" = "X$p"; then
9716 enable_shared=yes
9717 fi
9718 done
9719 IFS="$lt_save_ifs"
9720 ;;
9721 esac
9722else
9723 enable_shared=yes
9724fi;
9725
9726# Check whether --enable-static or --disable-static was given.
9727if test "${enable_static+set}" = set; then
9728 enableval="$enable_static"
9729 p=${PACKAGE-default}
9730 case $enableval in
9731 yes) enable_static=yes ;;
9732 no) enable_static=no ;;
9733 *)
9734 enable_static=no
9735 # Look at the argument we got. We use all the common list separators.
9736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9737 for pkg in $enableval; do
9738 IFS="$lt_save_ifs"
9739 if test "X$pkg" = "X$p"; then
9740 enable_static=yes
9741 fi
9742 done
9743 IFS="$lt_save_ifs"
9744 ;;
9745 esac
9746else
9747 enable_static=yes
9748fi;
9749
9750# Check whether --enable-fast-install or --disable-fast-install was given.
9751if test "${enable_fast_install+set}" = set; then
9752 enableval="$enable_fast_install"
9753 p=${PACKAGE-default}
9754 case $enableval in
9755 yes) enable_fast_install=yes ;;
9756 no) enable_fast_install=no ;;
9757 *)
9758 enable_fast_install=no
9759 # Look at the argument we got. We use all the common list separators.
9760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9761 for pkg in $enableval; do
9762 IFS="$lt_save_ifs"
9763 if test "X$pkg" = "X$p"; then
9764 enable_fast_install=yes
9765 fi
9766 done
9767 IFS="$lt_save_ifs"
9768 ;;
9769 esac
9770else
9771 enable_fast_install=yes
9772fi;
9773
9774echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9775echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9776if test "${lt_cv_path_SED+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778else
9779 # Loop through the user's path and test for sed and gsed.
9780# Then use that list of sed's as ones to test for truncation.
9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782for as_dir in $PATH
9783do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
9786 for lt_ac_prog in sed gsed; do
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9789 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9790 fi
9791 done
9792 done
9793done
9794lt_ac_max=0
9795lt_ac_count=0
9796# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9797# along with /bin/sed that truncates output.
9798for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9799 test ! -f $lt_ac_sed && break
9800 cat /dev/null > conftest.in
9801 lt_ac_count=0
9802 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9803 # Check for GNU sed and select it if it is found.
9804 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9805 lt_cv_path_SED=$lt_ac_sed
9806 break
9807 fi
9808 while true; do
9809 cat conftest.in conftest.in >conftest.tmp
9810 mv conftest.tmp conftest.in
9811 cp conftest.in conftest.nl
9812 echo >>conftest.nl
9813 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9814 cmp -s conftest.out conftest.nl || break
9815 # 10000 chars as input seems more than enough
9816 test $lt_ac_count -gt 10 && break
9817 lt_ac_count=`expr $lt_ac_count + 1`
9818 if test $lt_ac_count -gt $lt_ac_max; then
9819 lt_ac_max=$lt_ac_count
9820 lt_cv_path_SED=$lt_ac_sed
9821 fi
9822 done
9823done
9824
9825fi
9826
9827SED=$lt_cv_path_SED
9828echo "$as_me:$LINENO: result: $SED" >&5
9829echo "${ECHO_T}$SED" >&6
9830
9831
9832# Check whether --with-gnu-ld or --without-gnu-ld was given.
9833if test "${with_gnu_ld+set}" = set; then
9834 withval="$with_gnu_ld"
9835 test "$withval" = no || with_gnu_ld=yes
9836else
9837 with_gnu_ld=no
9838fi;
9839ac_prog=ld
9840if test "$GCC" = yes; then
9841 # Check if gcc -print-prog-name=ld gives a path.
9842 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9843echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9844 case $host in
9845 *-*-mingw*)
9846 # gcc leaves a trailing carriage return which upsets mingw
9847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9848 *)
9849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9850 esac
9851 case $ac_prog in
9852 # Accept absolute paths.
9853 [\\/]* | ?:[\\/]*)
9854 re_direlt='/[^/][^/]*/\.\./'
9855 # Canonicalize the pathname of ld
9856 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9858 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9859 done
9860 test -z "$LD" && LD="$ac_prog"
9861 ;;
9862 "")
9863 # If it fails, then pretend we aren't using GCC.
9864 ac_prog=ld
9865 ;;
9866 *)
9867 # If it is relative, then search for the first ld in PATH.
9868 with_gnu_ld=unknown
9869 ;;
9870 esac
9871elif test "$with_gnu_ld" = yes; then
9872 echo "$as_me:$LINENO: checking for GNU ld" >&5
9873echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9874else
9875 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9876echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9877fi
9878if test "${lt_cv_path_LD+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881 if test -z "$LD"; then
9882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9883 for ac_dir in $PATH; do
9884 IFS="$lt_save_ifs"
9885 test -z "$ac_dir" && ac_dir=.
9886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9887 lt_cv_path_LD="$ac_dir/$ac_prog"
9888 # Check to see if the program is GNU ld. I'd rather use --version,
9889 # but apparently some GNU ld's only accept -v.
9890 # Break only if it was the GNU/non-GNU ld that we prefer.
9891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9892 *GNU* | *'with BFD'*)
9893 test "$with_gnu_ld" != no && break
9894 ;;
9895 *)
9896 test "$with_gnu_ld" != yes && break
9897 ;;
9898 esac
9899 fi
9900 done
9901 IFS="$lt_save_ifs"
9902else
9903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9904fi
9905fi
9906
9907LD="$lt_cv_path_LD"
9908if test -n "$LD"; then
9909 echo "$as_me:$LINENO: result: $LD" >&5
9910echo "${ECHO_T}$LD" >&6
9911else
9912 echo "$as_me:$LINENO: result: no" >&5
9913echo "${ECHO_T}no" >&6
9914fi
9915test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9916echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9917 { (exit 1); exit 1; }; }
9918echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9919echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9920if test "${lt_cv_prog_gnu_ld+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9924case `$LD -v 2>&1 </dev/null` in
9925*GNU* | *'with BFD'*)
9926 lt_cv_prog_gnu_ld=yes
9927 ;;
9928*)
9929 lt_cv_prog_gnu_ld=no
9930 ;;
9931esac
9932fi
9933echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9934echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9935with_gnu_ld=$lt_cv_prog_gnu_ld
9936
9937
9938echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9939echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9940if test "${lt_cv_ld_reload_flag+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943 lt_cv_ld_reload_flag='-r'
9944fi
9945echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9946echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9947reload_flag=$lt_cv_ld_reload_flag
9948case $reload_flag in
9949"" | " "*) ;;
9950*) reload_flag=" $reload_flag" ;;
9951esac
9952reload_cmds='$LD$reload_flag -o $output$reload_objs'
9953case $host_os in
9954 darwin*)
9955 if test "$GCC" = yes; then
9956 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9957 else
9958 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9959 fi
9960 ;;
9961esac
9962
9963echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9964echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9965if test "${lt_cv_deplibs_check_method+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968 lt_cv_file_magic_cmd='$MAGIC_CMD'
9969lt_cv_file_magic_test_file=
9970lt_cv_deplibs_check_method='unknown'
9971# Need to set the preceding variable on all platforms that support
9972# interlibrary dependencies.
9973# 'none' -- dependencies not supported.
9974# `unknown' -- same as none, but documents that we really don't know.
9975# 'pass_all' -- all dependencies passed with no checks.
9976# 'test_compile' -- check by making test program.
9977# 'file_magic [[regex]]' -- check by looking for files in library path
9978# which responds to the $file_magic_cmd with a given extended regex.
9979# If you have `file' or equivalent on your system and you're not sure
9980# whether `pass_all' will *always* work, you probably want this one.
9981
9982case $host_os in
9983aix4* | aix5*)
9984 lt_cv_deplibs_check_method=pass_all
9985 ;;
9986
9987beos*)
9988 lt_cv_deplibs_check_method=pass_all
9989 ;;
9990
9991bsdi[45]*)
9992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9993 lt_cv_file_magic_cmd='/usr/bin/file -L'
9994 lt_cv_file_magic_test_file=/shlib/libc.so
9995 ;;
9996
9997cygwin*)
9998 # func_win32_libid is a shell function defined in ltmain.sh
9999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10000 lt_cv_file_magic_cmd='func_win32_libid'
10001 ;;
10002
10003mingw* | pw32*)
10004 # Base MSYS/MinGW do not provide the 'file' command needed by
10005 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10006 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10007 lt_cv_file_magic_cmd='$OBJDUMP -f'
10008 ;;
10009
10010darwin* | rhapsody*)
10011 lt_cv_deplibs_check_method=pass_all
10012 ;;
10013
10014freebsd* | kfreebsd*-gnu)
10015 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10016 case $host_cpu in
10017 i*86 )
10018 # Not sure whether the presence of OpenBSD here was a mistake.
10019 # Let's accept both of them until this is cleared up.
10020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10021 lt_cv_file_magic_cmd=/usr/bin/file
10022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10023 ;;
10024 esac
10025 else
10026 lt_cv_deplibs_check_method=pass_all
10027 fi
10028 ;;
10029
10030gnu*)
10031 lt_cv_deplibs_check_method=pass_all
10032 ;;
10033
10034hpux10.20* | hpux11*)
10035 lt_cv_file_magic_cmd=/usr/bin/file
10036 case "$host_cpu" in
10037 ia64*)
10038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10040 ;;
10041 hppa*64*)
10042 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]'
10043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10044 ;;
10045 *)
10046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10047 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10048 ;;
10049 esac
10050 ;;
10051
10052irix5* | irix6* | nonstopux*)
10053 case $LD in
10054 *-32|*"-32 ") libmagic=32-bit;;
10055 *-n32|*"-n32 ") libmagic=N32;;
10056 *-64|*"-64 ") libmagic=64-bit;;
10057 *) libmagic=never-match;;
10058 esac
10059 lt_cv_deplibs_check_method=pass_all
10060 ;;
10061
10062# This must be Linux ELF.
10063linux*)
10064 lt_cv_deplibs_check_method=pass_all
10065 ;;
10066
10067netbsd*)
10068 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10070 else
10071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10072 fi
10073 ;;
10074
10075newos6*)
10076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10077 lt_cv_file_magic_cmd=/usr/bin/file
10078 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10079 ;;
10080
10081nto-qnx*)
10082 lt_cv_deplibs_check_method=unknown
10083 ;;
10084
10085openbsd*)
10086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10088 else
10089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10090 fi
10091 ;;
10092
10093osf3* | osf4* | osf5*)
10094 lt_cv_deplibs_check_method=pass_all
10095 ;;
10096
10097sco3.2v5*)
10098 lt_cv_deplibs_check_method=pass_all
10099 ;;
10100
10101solaris*)
10102 lt_cv_deplibs_check_method=pass_all
10103 ;;
10104
10105sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10106 case $host_vendor in
10107 motorola)
10108 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]'
10109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10110 ;;
10111 ncr)
10112 lt_cv_deplibs_check_method=pass_all
10113 ;;
10114 sequent)
10115 lt_cv_file_magic_cmd='/bin/file'
10116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10117 ;;
10118 sni)
10119 lt_cv_file_magic_cmd='/bin/file'
10120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10121 lt_cv_file_magic_test_file=/lib/libc.so
10122 ;;
10123 siemens)
10124 lt_cv_deplibs_check_method=pass_all
10125 ;;
10126 esac
10127 ;;
10128
10129sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10130 lt_cv_deplibs_check_method=pass_all
10131 ;;
10132esac
10133
10134fi
10135echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10136echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10137file_magic_cmd=$lt_cv_file_magic_cmd
10138deplibs_check_method=$lt_cv_deplibs_check_method
10139test -z "$deplibs_check_method" && deplibs_check_method=unknown
10140
10141
10142
10143# If no C compiler was specified, use CC.
10144LTCC=${LTCC-"$CC"}
10145
10146# Allow CC to be a program name with arguments.
10147compiler=$CC
10148
10149# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10150if test "${enable_libtool_lock+set}" = set; then
10151 enableval="$enable_libtool_lock"
10152
10153fi;
10154test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10155
10156# Some flags need to be propagated to the compiler or linker for good
10157# libtool support.
10158case $host in
10159ia64-*-hpux*)
10160 # Find out which ABI we are using.
10161 echo 'int i;' > conftest.$ac_ext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163 (eval $ac_compile) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; then
10167 case `/usr/bin/file conftest.$ac_objext` in
10168 *ELF-32*)
10169 HPUX_IA64_MODE="32"
10170 ;;
10171 *ELF-64*)
10172 HPUX_IA64_MODE="64"
10173 ;;
10174 esac
10175 fi
10176 rm -rf conftest*
10177 ;;
10178*-*-irix6*)
10179 # Find out which ABI we are using.
Reid Spencer78ba11d2005-02-16 16:21:00 +000010180 echo '#line 10180 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182 (eval $ac_compile) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; then
10186 if test "$lt_cv_prog_gnu_ld" = yes; then
10187 case `/usr/bin/file conftest.$ac_objext` in
10188 *32-bit*)
10189 LD="${LD-ld} -melf32bsmip"
10190 ;;
10191 *N32*)
10192 LD="${LD-ld} -melf32bmipn32"
10193 ;;
10194 *64-bit*)
10195 LD="${LD-ld} -melf64bmip"
10196 ;;
10197 esac
10198 else
10199 case `/usr/bin/file conftest.$ac_objext` in
10200 *32-bit*)
10201 LD="${LD-ld} -32"
10202 ;;
10203 *N32*)
10204 LD="${LD-ld} -n32"
10205 ;;
10206 *64-bit*)
10207 LD="${LD-ld} -64"
10208 ;;
10209 esac
10210 fi
10211 fi
10212 rm -rf conftest*
10213 ;;
10214
10215x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10216 # Find out which ABI we are using.
10217 echo 'int i;' > conftest.$ac_ext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; then
10223 case "`/usr/bin/file conftest.o`" in
10224 *32-bit*)
10225 case $host in
10226 x86_64-*linux*)
10227 LD="${LD-ld} -m elf_i386"
10228 ;;
10229 ppc64-*linux*|powerpc64-*linux*)
10230 LD="${LD-ld} -m elf32ppclinux"
10231 ;;
10232 s390x-*linux*)
10233 LD="${LD-ld} -m elf_s390"
10234 ;;
10235 sparc64-*linux*)
10236 LD="${LD-ld} -m elf32_sparc"
10237 ;;
10238 esac
10239 ;;
10240 *64-bit*)
10241 case $host in
10242 x86_64-*linux*)
10243 LD="${LD-ld} -m elf_x86_64"
10244 ;;
10245 ppc*-*linux*|powerpc*-*linux*)
10246 LD="${LD-ld} -m elf64ppc"
10247 ;;
10248 s390*-*linux*)
10249 LD="${LD-ld} -m elf64_s390"
10250 ;;
10251 sparc*-*linux*)
10252 LD="${LD-ld} -m elf64_sparc"
10253 ;;
10254 esac
10255 ;;
10256 esac
10257 fi
10258 rm -rf conftest*
10259 ;;
10260
10261*-*-sco3.2v5*)
10262 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10263 SAVE_CFLAGS="$CFLAGS"
10264 CFLAGS="$CFLAGS -belf"
10265 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10266echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10267if test "${lt_cv_cc_needs_belf+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270 ac_ext=c
10271ac_cpp='$CPP $CPPFLAGS'
10272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10274ac_compiler_gnu=$ac_cv_c_compiler_gnu
10275
10276 cat >conftest.$ac_ext <<_ACEOF
10277/* confdefs.h. */
10278_ACEOF
10279cat confdefs.h >>conftest.$ac_ext
10280cat >>conftest.$ac_ext <<_ACEOF
10281/* end confdefs.h. */
10282
10283_ACEOF
10284rm -f conftest.$ac_objext conftest$ac_exeext
10285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>conftest.er1
10287 ac_status=$?
10288 grep -v '^ *+' conftest.er1 >conftest.err
10289 rm -f conftest.er1
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_c_werror_flag"
10294 || test ! -s conftest.err'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest$ac_exeext'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10306 lt_cv_cc_needs_belf=yes
10307else
10308 echo "$as_me: failed program was:" >&5
10309sed 's/^/| /' conftest.$ac_ext >&5
10310
10311lt_cv_cc_needs_belf=no
10312fi
10313rm -f conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 ac_ext=c
10316ac_cpp='$CPP $CPPFLAGS'
10317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10319ac_compiler_gnu=$ac_cv_c_compiler_gnu
10320
10321fi
10322echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10323echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10326 CFLAGS="$SAVE_CFLAGS"
10327 fi
10328 ;;
10329
10330esac
10331
10332need_locks="$enable_libtool_lock"
10333
10334
Reid Spencer2706f8c2004-09-19 23:53:36 +000010335
10336
10337if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10338 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10339 (test "X$CXX" != "Xg++"))) ; then
10340 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010341ac_cpp='$CXXCPP $CPPFLAGS'
10342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10345echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10346echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10347if test -z "$CXXCPP"; then
10348 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
John Criswell47fdd832003-07-14 16:52:07 +000010351 # Double quotes because CXXCPP needs to be expanded
10352 for CXXCPP in "$CXX -E" "/lib/cpp"
10353 do
10354 ac_preproc_ok=false
10355for ac_cxx_preproc_warn_flag in '' yes
10356do
10357 # Use a header file that comes with gcc, so configuring glibc
10358 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010361 # On the NeXT, cc -E runs the code through the compiler's parser,
10362 # not just through cpp. "Syntax error" is here to catch this case.
10363 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010364/* confdefs.h. */
10365_ACEOF
10366cat confdefs.h >>conftest.$ac_ext
10367cat >>conftest.$ac_ext <<_ACEOF
10368/* end confdefs.h. */
10369#ifdef __STDC__
10370# include <limits.h>
10371#else
10372# include <assert.h>
10373#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010374 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010375_ACEOF
10376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10378 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010379 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } >/dev/null; then
10384 if test -s conftest.err; then
10385 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010386 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010387 else
John Criswell47fdd832003-07-14 16:52:07 +000010388 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010389 fi
John Criswell47fdd832003-07-14 16:52:07 +000010390else
10391 ac_cpp_err=yes
10392fi
10393if test -z "$ac_cpp_err"; then
10394 :
10395else
10396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010397sed 's/^/| /' conftest.$ac_ext >&5
10398
John Criswell47fdd832003-07-14 16:52:07 +000010399 # Broken: fails on valid input.
10400continue
10401fi
10402rm -f conftest.err conftest.$ac_ext
10403
10404 # OK, works on sane cases. Now check whether non-existent headers
10405 # can be detected and how.
10406 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010412#include <ac_nonexistent.h>
10413_ACEOF
10414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10416 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010417 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } >/dev/null; then
10422 if test -s conftest.err; then
10423 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010424 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010425 else
10426 ac_cpp_err=
10427 fi
10428else
10429 ac_cpp_err=yes
10430fi
10431if test -z "$ac_cpp_err"; then
10432 # Broken: success on invalid input.
10433continue
10434else
10435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010436sed 's/^/| /' conftest.$ac_ext >&5
10437
John Criswell47fdd832003-07-14 16:52:07 +000010438 # Passes both tests.
10439ac_preproc_ok=:
10440break
10441fi
10442rm -f conftest.err conftest.$ac_ext
10443
10444done
10445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10446rm -f conftest.err conftest.$ac_ext
10447if $ac_preproc_ok; then
10448 break
John Criswell7a73b802003-06-30 21:59:07 +000010449fi
10450
John Criswell47fdd832003-07-14 16:52:07 +000010451 done
10452 ac_cv_prog_CXXCPP=$CXXCPP
10453
10454fi
10455 CXXCPP=$ac_cv_prog_CXXCPP
10456else
10457 ac_cv_prog_CXXCPP=$CXXCPP
10458fi
10459echo "$as_me:$LINENO: result: $CXXCPP" >&5
10460echo "${ECHO_T}$CXXCPP" >&6
10461ac_preproc_ok=false
10462for ac_cxx_preproc_warn_flag in '' yes
10463do
10464 # Use a header file that comes with gcc, so configuring glibc
10465 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10467 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010468 # On the NeXT, cc -E runs the code through the compiler's parser,
10469 # not just through cpp. "Syntax error" is here to catch this case.
10470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010471/* confdefs.h. */
10472_ACEOF
10473cat confdefs.h >>conftest.$ac_ext
10474cat >>conftest.$ac_ext <<_ACEOF
10475/* end confdefs.h. */
10476#ifdef __STDC__
10477# include <limits.h>
10478#else
10479# include <assert.h>
10480#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010481 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010482_ACEOF
10483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10485 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010486 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev/null; then
10491 if test -s conftest.err; then
10492 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010493 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010494 else
10495 ac_cpp_err=
10496 fi
10497else
10498 ac_cpp_err=yes
10499fi
10500if test -z "$ac_cpp_err"; then
10501 :
10502else
10503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010504sed 's/^/| /' conftest.$ac_ext >&5
10505
John Criswell47fdd832003-07-14 16:52:07 +000010506 # Broken: fails on valid input.
10507continue
10508fi
10509rm -f conftest.err conftest.$ac_ext
10510
10511 # OK, works on sane cases. Now check whether non-existent headers
10512 # can be detected and how.
10513 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010519#include <ac_nonexistent.h>
10520_ACEOF
10521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10523 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010524 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } >/dev/null; then
10529 if test -s conftest.err; then
10530 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010531 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010532 else
10533 ac_cpp_err=
10534 fi
10535else
10536 ac_cpp_err=yes
10537fi
10538if test -z "$ac_cpp_err"; then
10539 # Broken: success on invalid input.
10540continue
10541else
10542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010543sed 's/^/| /' conftest.$ac_ext >&5
10544
John Criswell47fdd832003-07-14 16:52:07 +000010545 # Passes both tests.
10546ac_preproc_ok=:
10547break
10548fi
10549rm -f conftest.err conftest.$ac_ext
10550
10551done
10552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10553rm -f conftest.err conftest.$ac_ext
10554if $ac_preproc_ok; then
10555 :
10556else
John Criswell0c38eaf2003-09-10 15:17:25 +000010557 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10558See \`config.log' for more details." >&5
10559echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10560See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010561 { (exit 1); exit 1; }; }
10562fi
10563
10564ac_ext=cc
10565ac_cpp='$CXXCPP $CPPFLAGS'
10566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10569
Reid Spencer2706f8c2004-09-19 23:53:36 +000010570fi
10571
John Criswell47fdd832003-07-14 16:52:07 +000010572
10573ac_ext=f
10574ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10575ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10577if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010578 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 +000010579 do
10580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10581set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10582echo "$as_me:$LINENO: checking for $ac_word" >&5
10583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10584if test "${ac_cv_prog_F77+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10586else
10587 if test -n "$F77"; then
10588 ac_cv_prog_F77="$F77" # Let the user override the test.
10589else
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601done
10602done
10603
10604fi
10605fi
10606F77=$ac_cv_prog_F77
10607if test -n "$F77"; then
10608 echo "$as_me:$LINENO: result: $F77" >&5
10609echo "${ECHO_T}$F77" >&6
10610else
10611 echo "$as_me:$LINENO: result: no" >&5
10612echo "${ECHO_T}no" >&6
10613fi
10614
10615 test -n "$F77" && break
10616 done
10617fi
10618if test -z "$F77"; then
10619 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010620 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 +000010621do
10622 # Extract the first word of "$ac_prog", so it can be a program name with args.
10623set dummy $ac_prog; ac_word=$2
10624echo "$as_me:$LINENO: checking for $ac_word" >&5
10625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10626if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628else
10629 if test -n "$ac_ct_F77"; then
10630 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10631else
10632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633for as_dir in $PATH
10634do
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639 ac_cv_prog_ac_ct_F77="$ac_prog"
10640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10642 fi
10643done
10644done
10645
10646fi
10647fi
10648ac_ct_F77=$ac_cv_prog_ac_ct_F77
10649if test -n "$ac_ct_F77"; then
10650 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10651echo "${ECHO_T}$ac_ct_F77" >&6
10652else
10653 echo "$as_me:$LINENO: result: no" >&5
10654echo "${ECHO_T}no" >&6
10655fi
10656
10657 test -n "$ac_ct_F77" && break
10658done
10659
10660 F77=$ac_ct_F77
10661fi
10662
10663
10664# Provide some information about the compiler.
Reid Spencer78ba11d2005-02-16 16:21:00 +000010665echo "$as_me:10665:" \
John Criswell47fdd832003-07-14 16:52:07 +000010666 "checking for Fortran 77 compiler version" >&5
10667ac_compiler=`set X $ac_compile; echo $2`
10668{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10669 (eval $ac_compiler --version </dev/null >&5) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }
10673{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10674 (eval $ac_compiler -v </dev/null >&5) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }
10678{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10679 (eval $ac_compiler -V </dev/null >&5) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010683rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010684
10685# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010686# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010687ac_save_ext=$ac_ext
10688ac_ext=F
10689echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10690echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10691if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693else
10694 cat >conftest.$ac_ext <<_ACEOF
10695 program main
10696#ifndef __GNUC__
10697 choke me
10698#endif
10699
10700 end
10701_ACEOF
10702rm -f conftest.$ac_objext
10703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010704 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010705 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010711 { ac_try='test -z "$ac_f77_werror_flag"
10712 || test ! -s conftest.err'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; } &&
10718 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_compiler_gnu=yes
10725else
10726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010727sed 's/^/| /' conftest.$ac_ext >&5
10728
John Criswell47fdd832003-07-14 16:52:07 +000010729ac_compiler_gnu=no
10730fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010732ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10733
10734fi
10735echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10736echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10737ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010738ac_test_FFLAGS=${FFLAGS+set}
10739ac_save_FFLAGS=$FFLAGS
10740FFLAGS=
10741echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10742echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10743if test "${ac_cv_prog_f77_g+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745else
10746 FFLAGS=-g
10747cat >conftest.$ac_ext <<_ACEOF
10748 program main
10749
10750 end
10751_ACEOF
10752rm -f conftest.$ac_objext
10753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010754 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010755 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010761 { ac_try='test -z "$ac_f77_werror_flag"
10762 || test ! -s conftest.err'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_prog_f77_g=yes
10775else
10776 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010777sed 's/^/| /' conftest.$ac_ext >&5
10778
John Criswell47fdd832003-07-14 16:52:07 +000010779ac_cv_prog_f77_g=no
10780fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010782
10783fi
10784echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10785echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10786if test "$ac_test_FFLAGS" = set; then
10787 FFLAGS=$ac_save_FFLAGS
10788elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010789 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010790 FFLAGS="-g -O2"
10791 else
10792 FFLAGS="-g"
10793 fi
10794else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010795 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010796 FFLAGS="-O2"
10797 else
10798 FFLAGS=
10799 fi
10800fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010801
10802G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010803ac_ext=c
10804ac_cpp='$CPP $CPPFLAGS'
10805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10807ac_compiler_gnu=$ac_cv_c_compiler_gnu
10808
10809
10810
10811# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10812
10813# find the maximum length of command line arguments
10814echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10815echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10816if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
10819 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010820 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010821
10822 case $build_os in
10823 msdosdjgpp*)
10824 # On DJGPP, this test can blow up pretty badly due to problems in libc
10825 # (any single argument exceeding 2000 bytes causes a buffer overrun
10826 # during glob expansion). Even if it were fixed, the result of this
10827 # check would be larger than it should be.
10828 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10829 ;;
10830
10831 gnu*)
10832 # Under GNU Hurd, this test is not required because there is
10833 # no limit to the length of command line arguments.
10834 # Libtool will interpret -1 as no limit whatsoever
10835 lt_cv_sys_max_cmd_len=-1;
10836 ;;
10837
10838 cygwin* | mingw*)
10839 # On Win9x/ME, this test blows up -- it succeeds, but takes
10840 # about 5 minutes as the teststring grows exponentially.
10841 # Worse, since 9x/ME are not pre-emptively multitasking,
10842 # you end up with a "frozen" computer, even though with patience
10843 # the test eventually succeeds (with a max line length of 256k).
10844 # Instead, let's just punt: use the minimum linelength reported by
10845 # all of the supported platforms: 8192 (on NT/2K/XP).
10846 lt_cv_sys_max_cmd_len=8192;
10847 ;;
10848
Reid Spencer2706f8c2004-09-19 23:53:36 +000010849 amigaos*)
10850 # On AmigaOS with pdksh, this test takes hours, literally.
10851 # So we just punt and use a minimum line length of 8192.
10852 lt_cv_sys_max_cmd_len=8192;
10853 ;;
10854
10855 netbsd* | freebsd* | openbsd* | darwin* )
10856 # This has been around since 386BSD, at least. Likely further.
10857 if test -x /sbin/sysctl; then
10858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10859 elif test -x /usr/sbin/sysctl; then
10860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10861 else
10862 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10863 fi
10864 # And add a safety zone
10865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10866 ;;
10867
John Criswell47fdd832003-07-14 16:52:07 +000010868 *)
10869 # If test is not a shell built-in, we'll probably end up computing a
10870 # maximum length that is only half of the actual maximum length, but
10871 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010872 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10873 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10874 = "XX$teststring") >/dev/null 2>&1 &&
10875 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010876 lt_cv_sys_max_cmd_len=$new_result &&
10877 test $i != 17 # 1/2 MB should be enough
10878 do
10879 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010880 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010881 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010882 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010883 # Add a significant safety factor because C++ compilers can tack on massive
10884 # amounts of additional arguments before passing them to the linker.
10885 # It appears as though 1/2 is a usable value.
10886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10887 ;;
10888 esac
10889
10890fi
10891
10892if test -n $lt_cv_sys_max_cmd_len ; then
10893 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10894echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10895else
10896 echo "$as_me:$LINENO: result: none" >&5
10897echo "${ECHO_T}none" >&6
10898fi
10899
10900
10901
10902
10903# Check for command to grab the raw symbol name followed by C symbol from nm.
10904echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10905echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10906if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908else
10909
10910# These are sane defaults that work on at least a few old systems.
10911# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10912
10913# Character class describing NM global symbol codes.
10914symcode='[BCDEGRST]'
10915
10916# Regexp to match symbols that can be accessed directly from C.
10917sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10918
10919# Transform the above into a raw symbol and a C symbol.
10920symxfrm='\1 \2\3 \3'
10921
10922# Transform an extracted symbol line into a proper C declaration
10923lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10924
10925# Transform an extracted symbol line into symbol name and symbol address
10926lt_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'"
10927
10928# Define system-specific variables.
10929case $host_os in
10930aix*)
10931 symcode='[BCDT]'
10932 ;;
10933cygwin* | mingw* | pw32*)
10934 symcode='[ABCDGISTW]'
10935 ;;
10936hpux*) # Its linker distinguishes data from code symbols
10937 if test "$host_cpu" = ia64; then
10938 symcode='[ABCDEGRST]'
10939 fi
10940 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10941 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'"
10942 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010943linux*)
10944 if test "$host_cpu" = ia64; then
10945 symcode='[ABCDGIRSTW]'
10946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10947 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'"
10948 fi
10949 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010950irix* | nonstopux*)
10951 symcode='[BCDEGRST]'
10952 ;;
10953osf*)
10954 symcode='[BCDEGQRST]'
10955 ;;
10956solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010957 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010958 ;;
10959sysv4)
10960 symcode='[DFNSTU]'
10961 ;;
10962esac
10963
10964# Handle CRLF in mingw tool chain
10965opt_cr=
10966case $build_os in
10967mingw*)
10968 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10969 ;;
10970esac
10971
10972# If we're using GNU nm, then use its standard symbol codes.
10973case `$NM -V 2>&1` in
10974*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010975 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000010976esac
10977
10978# Try without a prefix undercore, then with it.
10979for ac_symprfx in "" "_"; do
10980
10981 # Write the raw and C identifiers.
10982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10983
10984 # Check to see that the pipe works correctly.
10985 pipe_works=no
10986
10987 rm -f conftest*
10988 cat > conftest.$ac_ext <<EOF
10989#ifdef __cplusplus
10990extern "C" {
10991#endif
10992char nm_test_var;
10993void nm_test_func(){}
10994#ifdef __cplusplus
10995}
10996#endif
10997int main(){nm_test_var='a';nm_test_func();return(0);}
10998EOF
10999
11000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11001 (eval $ac_compile) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; then
11005 # Now try to grab the symbols.
11006 nlist=conftest.nm
11007 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11008 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && test -s "$nlist"; then
11012 # Try sorting and uniquifying the output.
11013 if sort "$nlist" | uniq > "$nlist"T; then
11014 mv -f "$nlist"T "$nlist"
11015 else
11016 rm -f "$nlist"T
11017 fi
11018
11019 # Make sure that we snagged all the symbols we need.
11020 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11021 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11022 cat <<EOF > conftest.$ac_ext
11023#ifdef __cplusplus
11024extern "C" {
11025#endif
11026
11027EOF
11028 # Now generate the symbol file.
11029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11030
11031 cat <<EOF >> conftest.$ac_ext
11032#if defined (__STDC__) && __STDC__
11033# define lt_ptr_t void *
11034#else
11035# define lt_ptr_t char *
11036# define const
11037#endif
11038
11039/* The mapping between symbol names and symbols. */
11040const struct {
11041 const char *name;
11042 lt_ptr_t address;
11043}
11044lt_preloaded_symbols[] =
11045{
11046EOF
11047 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11048 cat <<\EOF >> conftest.$ac_ext
11049 {0, (lt_ptr_t) 0}
11050};
11051
11052#ifdef __cplusplus
11053}
11054#endif
11055EOF
11056 # Now try linking the two files.
11057 mv conftest.$ac_objext conftstm.$ac_objext
11058 lt_save_LIBS="$LIBS"
11059 lt_save_CFLAGS="$CFLAGS"
11060 LIBS="conftstm.$ac_objext"
11061 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11067 pipe_works=yes
11068 fi
11069 LIBS="$lt_save_LIBS"
11070 CFLAGS="$lt_save_CFLAGS"
11071 else
11072 echo "cannot find nm_test_func in $nlist" >&5
11073 fi
11074 else
11075 echo "cannot find nm_test_var in $nlist" >&5
11076 fi
11077 else
11078 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11079 fi
11080 else
11081 echo "$progname: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 fi
11084 rm -f conftest* conftst*
11085
11086 # Do not use the global_symbol_pipe unless it works.
11087 if test "$pipe_works" = yes; then
11088 break
11089 else
11090 lt_cv_sys_global_symbol_pipe=
11091 fi
11092done
11093
11094fi
11095
11096if test -z "$lt_cv_sys_global_symbol_pipe"; then
11097 lt_cv_sys_global_symbol_to_cdecl=
11098fi
11099if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11100 echo "$as_me:$LINENO: result: failed" >&5
11101echo "${ECHO_T}failed" >&6
11102else
11103 echo "$as_me:$LINENO: result: ok" >&5
11104echo "${ECHO_T}ok" >&6
11105fi
11106
11107echo "$as_me:$LINENO: checking for objdir" >&5
11108echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11109if test "${lt_cv_objdir+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 rm -f .libs 2>/dev/null
11113mkdir .libs 2>/dev/null
11114if test -d .libs; then
11115 lt_cv_objdir=.libs
11116else
11117 # MS-DOS does not allow filenames that begin with a dot.
11118 lt_cv_objdir=_libs
11119fi
11120rmdir .libs 2>/dev/null
11121fi
11122echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11123echo "${ECHO_T}$lt_cv_objdir" >&6
11124objdir=$lt_cv_objdir
11125
11126
11127
11128
11129
11130case $host_os in
11131aix3*)
11132 # AIX sometimes has problems with the GCC collect2 program. For some
11133 # reason, if we set the COLLECT_NAMES environment variable, the problems
11134 # vanish in a puff of smoke.
11135 if test "X${COLLECT_NAMES+set}" != Xset; then
11136 COLLECT_NAMES=
11137 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011138 fi
11139 ;;
11140esac
11141
John Criswell47fdd832003-07-14 16:52:07 +000011142# Sed substitution that helps us do robust quoting. It backslashifies
11143# metacharacters that are still active within double-quoted strings.
11144Xsed='sed -e s/^X//'
11145sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11146
11147# Same as above, but do not quote variable references.
11148double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11149
11150# Sed substitution to delay expansion of an escaped shell variable in a
11151# double_quote_subst'ed string.
11152delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11153
11154# Sed substitution to avoid accidental globbing in evaled expressions
11155no_glob_subst='s/\*/\\\*/g'
11156
11157# Constants:
11158rm="rm -f"
11159
11160# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011161default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011162can_build_shared=yes
11163
11164# All known linkers require a `.a' archive for static linking (except M$VC,
11165# which needs '.lib').
11166libext=a
11167ltmain="$ac_aux_dir/ltmain.sh"
11168ofile="$default_ofile"
11169with_gnu_ld="$lt_cv_prog_gnu_ld"
11170
11171if test -n "$ac_tool_prefix"; then
11172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11173set dummy ${ac_tool_prefix}ar; ac_word=$2
11174echo "$as_me:$LINENO: checking for $ac_word" >&5
11175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11176if test "${ac_cv_prog_AR+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178else
11179 if test -n "$AR"; then
11180 ac_cv_prog_AR="$AR" # Let the user override the test.
11181else
11182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $PATH
11184do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_AR="${ac_tool_prefix}ar"
11190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11192 fi
11193done
11194done
11195
11196fi
11197fi
11198AR=$ac_cv_prog_AR
11199if test -n "$AR"; then
11200 echo "$as_me:$LINENO: result: $AR" >&5
11201echo "${ECHO_T}$AR" >&6
11202else
11203 echo "$as_me:$LINENO: result: no" >&5
11204echo "${ECHO_T}no" >&6
11205fi
11206
11207fi
11208if test -z "$ac_cv_prog_AR"; then
11209 ac_ct_AR=$AR
11210 # Extract the first word of "ar", so it can be a program name with args.
11211set dummy ar; ac_word=$2
11212echo "$as_me:$LINENO: checking for $ac_word" >&5
11213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11214if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217 if test -n "$ac_ct_AR"; then
11218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227 ac_cv_prog_ac_ct_AR="ar"
11228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 break 2
11230 fi
11231done
11232done
11233
11234 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11235fi
11236fi
11237ac_ct_AR=$ac_cv_prog_ac_ct_AR
11238if test -n "$ac_ct_AR"; then
11239 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11240echo "${ECHO_T}$ac_ct_AR" >&6
11241else
11242 echo "$as_me:$LINENO: result: no" >&5
11243echo "${ECHO_T}no" >&6
11244fi
11245
11246 AR=$ac_ct_AR
11247else
11248 AR="$ac_cv_prog_AR"
11249fi
11250
John Criswell7a73b802003-06-30 21:59:07 +000011251if test -n "$ac_tool_prefix"; then
11252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11253set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11254echo "$as_me:$LINENO: checking for $ac_word" >&5
11255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11256if test "${ac_cv_prog_RANLIB+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258else
11259 if test -n "$RANLIB"; then
11260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11261else
11262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263for as_dir in $PATH
11264do
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 break 2
11272 fi
11273done
11274done
11275
11276fi
11277fi
11278RANLIB=$ac_cv_prog_RANLIB
11279if test -n "$RANLIB"; then
11280 echo "$as_me:$LINENO: result: $RANLIB" >&5
11281echo "${ECHO_T}$RANLIB" >&6
11282else
11283 echo "$as_me:$LINENO: result: no" >&5
11284echo "${ECHO_T}no" >&6
11285fi
11286
11287fi
11288if test -z "$ac_cv_prog_RANLIB"; then
11289 ac_ct_RANLIB=$RANLIB
11290 # Extract the first word of "ranlib", so it can be a program name with args.
11291set dummy ranlib; ac_word=$2
11292echo "$as_me:$LINENO: checking for $ac_word" >&5
11293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11294if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296else
11297 if test -n "$ac_ct_RANLIB"; then
11298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11299else
11300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301for as_dir in $PATH
11302do
11303 IFS=$as_save_IFS
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_ac_ct_RANLIB="ranlib"
11308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 break 2
11310 fi
11311done
11312done
11313
11314 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11315fi
11316fi
11317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11318if test -n "$ac_ct_RANLIB"; then
11319 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11320echo "${ECHO_T}$ac_ct_RANLIB" >&6
11321else
11322 echo "$as_me:$LINENO: result: no" >&5
11323echo "${ECHO_T}no" >&6
11324fi
11325
11326 RANLIB=$ac_ct_RANLIB
11327else
11328 RANLIB="$ac_cv_prog_RANLIB"
11329fi
11330
11331if test -n "$ac_tool_prefix"; then
11332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11333set dummy ${ac_tool_prefix}strip; ac_word=$2
11334echo "$as_me:$LINENO: checking for $ac_word" >&5
11335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11336if test "${ac_cv_prog_STRIP+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338else
11339 if test -n "$STRIP"; then
11340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11341else
11342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343for as_dir in $PATH
11344do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11352 fi
11353done
11354done
11355
11356fi
11357fi
11358STRIP=$ac_cv_prog_STRIP
11359if test -n "$STRIP"; then
11360 echo "$as_me:$LINENO: result: $STRIP" >&5
11361echo "${ECHO_T}$STRIP" >&6
11362else
11363 echo "$as_me:$LINENO: result: no" >&5
11364echo "${ECHO_T}no" >&6
11365fi
11366
11367fi
11368if test -z "$ac_cv_prog_STRIP"; then
11369 ac_ct_STRIP=$STRIP
11370 # Extract the first word of "strip", so it can be a program name with args.
11371set dummy strip; ac_word=$2
11372echo "$as_me:$LINENO: checking for $ac_word" >&5
11373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11374if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376else
11377 if test -n "$ac_ct_STRIP"; then
11378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11379else
11380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381for as_dir in $PATH
11382do
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
11386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387 ac_cv_prog_ac_ct_STRIP="strip"
11388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 break 2
11390 fi
11391done
11392done
11393
11394 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11395fi
11396fi
11397ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11398if test -n "$ac_ct_STRIP"; then
11399 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11400echo "${ECHO_T}$ac_ct_STRIP" >&6
11401else
11402 echo "$as_me:$LINENO: result: no" >&5
11403echo "${ECHO_T}no" >&6
11404fi
11405
11406 STRIP=$ac_ct_STRIP
11407else
11408 STRIP="$ac_cv_prog_STRIP"
11409fi
11410
11411
John Criswell7a73b802003-06-30 21:59:07 +000011412old_CC="$CC"
11413old_CFLAGS="$CFLAGS"
11414
11415# Set sane defaults for various variables
11416test -z "$AR" && AR=ar
11417test -z "$AR_FLAGS" && AR_FLAGS=cru
11418test -z "$AS" && AS=as
11419test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011420test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011421test -z "$DLLTOOL" && DLLTOOL=dlltool
11422test -z "$LD" && LD=ld
11423test -z "$LN_S" && LN_S="ln -s"
11424test -z "$MAGIC_CMD" && MAGIC_CMD=file
11425test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011426test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011427test -z "$OBJDUMP" && OBJDUMP=objdump
11428test -z "$RANLIB" && RANLIB=:
11429test -z "$STRIP" && STRIP=:
11430test -z "$ac_objext" && ac_objext=o
11431
John Criswell7a73b802003-06-30 21:59:07 +000011432# Determine commands to create old-style static archives.
11433old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11434old_postinstall_cmds='chmod 644 $oldlib'
11435old_postuninstall_cmds=
11436
11437if test -n "$RANLIB"; then
11438 case $host_os in
11439 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011440 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011441 ;;
11442 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011443 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011444 ;;
11445 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011446 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011447fi
11448
Reid Spencer2706f8c2004-09-19 23:53:36 +000011449cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11450
John Criswell47fdd832003-07-14 16:52:07 +000011451# Only perform the check for file, if the check method requires it
11452case $deplibs_check_method in
11453file_magic*)
11454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11455 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11456echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11457if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011459else
John Criswell47fdd832003-07-14 16:52:07 +000011460 case $MAGIC_CMD in
11461[\\/*] | ?:[\\/]*)
11462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11463 ;;
11464*)
11465 lt_save_MAGIC_CMD="$MAGIC_CMD"
11466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11468 for ac_dir in $ac_dummy; do
11469 IFS="$lt_save_ifs"
11470 test -z "$ac_dir" && ac_dir=.
11471 if test -f $ac_dir/${ac_tool_prefix}file; then
11472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11473 if test -n "$file_magic_test_file"; then
11474 case $deplibs_check_method in
11475 "file_magic "*)
11476 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11479 $EGREP "$file_magic_regex" > /dev/null; then
11480 :
11481 else
11482 cat <<EOF 1>&2
11483
11484*** Warning: the command libtool uses to detect shared libraries,
11485*** $file_magic_cmd, produces output that libtool cannot recognize.
11486*** The result is that libtool may fail to recognize shared libraries
11487*** as such. This will affect the creation of libtool libraries that
11488*** depend on shared libraries, but programs linked with such libtool
11489*** libraries will work regardless of this problem. Nevertheless, you
11490*** may want to report the problem to your system manager and/or to
11491*** bug-libtool@gnu.org
11492
11493EOF
11494 fi ;;
11495 esac
11496 fi
11497 break
11498 fi
11499 done
11500 IFS="$lt_save_ifs"
11501 MAGIC_CMD="$lt_save_MAGIC_CMD"
11502 ;;
11503esac
John Criswell7a73b802003-06-30 21:59:07 +000011504fi
John Criswell7a73b802003-06-30 21:59:07 +000011505
John Criswell47fdd832003-07-14 16:52:07 +000011506MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11507if test -n "$MAGIC_CMD"; then
11508 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11509echo "${ECHO_T}$MAGIC_CMD" >&6
11510else
11511 echo "$as_me:$LINENO: result: no" >&5
11512echo "${ECHO_T}no" >&6
11513fi
John Criswell7a73b802003-06-30 21:59:07 +000011514
John Criswell47fdd832003-07-14 16:52:07 +000011515if test -z "$lt_cv_path_MAGIC_CMD"; then
11516 if test -n "$ac_tool_prefix"; then
11517 echo "$as_me:$LINENO: checking for file" >&5
11518echo $ECHO_N "checking for file... $ECHO_C" >&6
11519if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521else
11522 case $MAGIC_CMD in
11523[\\/*] | ?:[\\/]*)
11524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11525 ;;
11526*)
11527 lt_save_MAGIC_CMD="$MAGIC_CMD"
11528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11530 for ac_dir in $ac_dummy; do
11531 IFS="$lt_save_ifs"
11532 test -z "$ac_dir" && ac_dir=.
11533 if test -f $ac_dir/file; then
11534 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11535 if test -n "$file_magic_test_file"; then
11536 case $deplibs_check_method in
11537 "file_magic "*)
11538 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11541 $EGREP "$file_magic_regex" > /dev/null; then
11542 :
11543 else
11544 cat <<EOF 1>&2
11545
11546*** Warning: the command libtool uses to detect shared libraries,
11547*** $file_magic_cmd, produces output that libtool cannot recognize.
11548*** The result is that libtool may fail to recognize shared libraries
11549*** as such. This will affect the creation of libtool libraries that
11550*** depend on shared libraries, but programs linked with such libtool
11551*** libraries will work regardless of this problem. Nevertheless, you
11552*** may want to report the problem to your system manager and/or to
11553*** bug-libtool@gnu.org
11554
11555EOF
11556 fi ;;
11557 esac
11558 fi
11559 break
11560 fi
11561 done
11562 IFS="$lt_save_ifs"
11563 MAGIC_CMD="$lt_save_MAGIC_CMD"
11564 ;;
11565esac
11566fi
11567
11568MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11569if test -n "$MAGIC_CMD"; then
11570 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11571echo "${ECHO_T}$MAGIC_CMD" >&6
11572else
11573 echo "$as_me:$LINENO: result: no" >&5
11574echo "${ECHO_T}no" >&6
11575fi
11576
11577 else
11578 MAGIC_CMD=:
11579 fi
11580fi
11581
11582 fi
11583 ;;
11584esac
11585
Reid Spencer17795972004-11-18 09:47:37 +000011586enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011587enable_win32_dll=no
11588
11589# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11590if test "${enable_libtool_lock+set}" = set; then
11591 enableval="$enable_libtool_lock"
11592
11593fi;
11594test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11595
John Criswell7a73b802003-06-30 21:59:07 +000011596
11597# Check whether --with-pic or --without-pic was given.
11598if test "${with_pic+set}" = set; then
11599 withval="$with_pic"
11600 pic_mode="$withval"
11601else
11602 pic_mode=default
11603fi;
11604test -z "$pic_mode" && pic_mode=default
11605
John Criswell47fdd832003-07-14 16:52:07 +000011606# Use C for the default configuration in the libtool script
11607tagname=
11608lt_save_CC="$CC"
11609ac_ext=c
11610ac_cpp='$CPP $CPPFLAGS'
11611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11613ac_compiler_gnu=$ac_cv_c_compiler_gnu
11614
11615
11616# Source file extension for C test sources.
11617ac_ext=c
11618
11619# Object file extension for compiled C test sources.
11620objext=o
11621objext=$objext
11622
11623# Code to be used in simple compile tests
11624lt_simple_compile_test_code="int some_variable = 0;\n"
11625
11626# Code to be used in simple link tests
11627lt_simple_link_test_code='int main(){return(0);}\n'
11628
11629
11630# If no C compiler was specified, use CC.
11631LTCC=${LTCC-"$CC"}
11632
11633# Allow CC to be a program name with arguments.
11634compiler=$CC
11635
11636
11637#
11638# Check for any special shared library compilation flags.
11639#
11640lt_prog_cc_shlib=
11641if test "$GCC" = no; then
11642 case $host_os in
11643 sco3.2v5*)
11644 lt_prog_cc_shlib='-belf'
11645 ;;
11646 esac
11647fi
11648if test -n "$lt_prog_cc_shlib"; then
11649 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11650echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11651 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11652 else
11653 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11654echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11655 lt_cv_prog_cc_can_build_shared=no
11656 fi
11657fi
11658
11659
11660#
11661# Check to make sure the static flag actually works.
11662#
11663echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11664echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11665if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667else
John Criswell47fdd832003-07-14 16:52:07 +000011668 lt_prog_compiler_static_works=no
11669 save_LDFLAGS="$LDFLAGS"
11670 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11671 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11673 # The compiler can only warn and ignore the option if not recognized
11674 # So say no if there are warnings
11675 if test -s conftest.err; then
11676 # Append any errors to the config.log.
11677 cat conftest.err 1>&5
11678 else
11679 lt_prog_compiler_static_works=yes
11680 fi
11681 fi
11682 $rm conftest*
11683 LDFLAGS="$save_LDFLAGS"
11684
11685fi
11686echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11687echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11688
11689if test x"$lt_prog_compiler_static_works" = xyes; then
11690 :
11691else
11692 lt_prog_compiler_static=
11693fi
11694
11695
11696
John Criswell47fdd832003-07-14 16:52:07 +000011697
11698lt_prog_compiler_no_builtin_flag=
11699
11700if test "$GCC" = yes; then
11701 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11702
Reid Spencer2706f8c2004-09-19 23:53:36 +000011703
11704echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011705echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11706if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709 lt_cv_prog_compiler_rtti_exceptions=no
11710 ac_outfile=conftest.$ac_objext
11711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11712 lt_compiler_flag="-fno-rtti -fno-exceptions"
11713 # Insert the option either (1) after the last *FLAGS variable, or
11714 # (2) before a word containing "conftest.", or (3) at the end.
11715 # Note that $ac_compile itself does not contain backslashes and begins
11716 # with a dollar sign (not a hyphen), so the echo should work correctly.
11717 # The option is referenced via a variable to avoid confusing sed.
11718 lt_compile=`echo "$ac_compile" | $SED \
11719 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11721 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000011722 (eval echo "\"\$as_me:11722: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011723 (eval "$lt_compile" 2>conftest.err)
11724 ac_status=$?
11725 cat conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000011726 echo "$as_me:11726: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011727 if (exit $ac_status) && test -s "$ac_outfile"; then
11728 # The compiler can only warn and ignore the option if not recognized
11729 # So say no if there are warnings
11730 if test ! -s conftest.err; then
11731 lt_cv_prog_compiler_rtti_exceptions=yes
11732 fi
11733 fi
11734 $rm conftest*
11735
11736fi
11737echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11738echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11739
11740if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11742else
11743 :
11744fi
11745
11746fi
11747
11748lt_prog_compiler_wl=
11749lt_prog_compiler_pic=
11750lt_prog_compiler_static=
11751
11752echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11753echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011754
11755 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011756 lt_prog_compiler_wl='-Wl,'
11757 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011758
11759 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011760 aix*)
11761 # All AIX code is PIC.
11762 if test "$host_cpu" = ia64; then
11763 # AIX 5 now supports IA64 processor
11764 lt_prog_compiler_static='-Bstatic'
11765 fi
John Criswell7a73b802003-06-30 21:59:07 +000011766 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011767
John Criswell7a73b802003-06-30 21:59:07 +000011768 amigaos*)
11769 # FIXME: we need at least 68020 code to build shared libraries, but
11770 # adding the `-m68020' flag to GCC prevents building anything better,
11771 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011772 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011773 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011774
11775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011776 # PIC is the default for these OSes.
11777 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011778
11779 mingw* | pw32* | os2*)
11780 # This hack is so that the source file can tell whether it is being
11781 # built for inclusion in a dll (and should export symbols for example).
11782 lt_prog_compiler_pic='-DDLL_EXPORT'
11783 ;;
11784
John Criswell7a73b802003-06-30 21:59:07 +000011785 darwin* | rhapsody*)
11786 # PIC is the default on this platform
11787 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011788 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011789 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011790
11791 msdosdjgpp*)
11792 # Just because we use GCC doesn't mean we suddenly get shared libraries
11793 # on systems that don't support them.
11794 lt_prog_compiler_can_build_shared=no
11795 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011796 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011797
John Criswell7a73b802003-06-30 21:59:07 +000011798 sysv4*MP*)
11799 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011800 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011801 fi
11802 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011803
11804 hpux*)
11805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11806 # not for PA HP-UX.
11807 case "$host_cpu" in
11808 hppa*64*|ia64*)
11809 # +Z the default
11810 ;;
11811 *)
11812 lt_prog_compiler_pic='-fPIC'
11813 ;;
11814 esac
11815 ;;
11816
John Criswell7a73b802003-06-30 21:59:07 +000011817 *)
John Criswell47fdd832003-07-14 16:52:07 +000011818 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011819 ;;
11820 esac
11821 else
John Criswell47fdd832003-07-14 16:52:07 +000011822 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011823 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011824 aix*)
11825 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011826 if test "$host_cpu" = ia64; then
11827 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011828 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011829 else
John Criswell47fdd832003-07-14 16:52:07 +000011830 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011831 fi
11832 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011833 darwin*)
11834 # PIC is the default on this platform
11835 # Common symbols not allowed in MH_DYLIB files
11836 case "$cc_basename" in
11837 xlc*)
11838 lt_prog_compiler_pic='-qnocommon'
11839 lt_prog_compiler_wl='-Wl,'
11840 ;;
11841 esac
11842 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011843
John Criswell47fdd832003-07-14 16:52:07 +000011844 mingw* | pw32* | os2*)
11845 # This hack is so that the source file can tell whether it is being
11846 # built for inclusion in a dll (and should export symbols for example).
11847 lt_prog_compiler_pic='-DDLL_EXPORT'
11848 ;;
11849
John Criswell7a73b802003-06-30 21:59:07 +000011850 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011851 lt_prog_compiler_wl='-Wl,'
11852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11853 # not for PA HP-UX.
11854 case "$host_cpu" in
11855 hppa*64*|ia64*)
11856 # +Z the default
11857 ;;
11858 *)
11859 lt_prog_compiler_pic='+Z'
11860 ;;
11861 esac
11862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11863 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011864 ;;
11865
John Criswell47fdd832003-07-14 16:52:07 +000011866 irix5* | irix6* | nonstopux*)
11867 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011868 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011869 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011870 ;;
11871
11872 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011873 lt_prog_compiler_pic='-KPIC'
11874 lt_prog_compiler_static='-Bstatic'
11875 ;;
11876
11877 linux*)
11878 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011879 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011880 lt_prog_compiler_wl='-Wl,'
11881 lt_prog_compiler_pic='-KPIC'
11882 lt_prog_compiler_static='-static'
11883 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011884 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011885 lt_prog_compiler_wl='-Wl,'
11886 # All Alpha code is PIC.
11887 lt_prog_compiler_static='-non_shared'
11888 ;;
11889 esac
John Criswell7a73b802003-06-30 21:59:07 +000011890 ;;
11891
11892 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011893 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011894 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011895 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011896 ;;
11897
11898 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011899 lt_prog_compiler_pic='-Kpic'
11900 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011901 ;;
11902
11903 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011904 lt_prog_compiler_wl='-Wl,'
11905 lt_prog_compiler_pic='-KPIC'
11906 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011907 ;;
11908
11909 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011910 lt_prog_compiler_wl='-Qoption ld '
11911 lt_prog_compiler_pic='-PIC'
11912 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011913 ;;
11914
11915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011916 lt_prog_compiler_wl='-Wl,'
11917 lt_prog_compiler_pic='-KPIC'
11918 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011919 ;;
11920
11921 sysv4*MP*)
11922 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011923 lt_prog_compiler_pic='-Kconform_pic'
11924 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011925 fi
11926 ;;
11927
John Criswell47fdd832003-07-14 16:52:07 +000011928 uts4*)
11929 lt_prog_compiler_pic='-pic'
11930 lt_prog_compiler_static='-Bstatic'
11931 ;;
11932
John Criswell7a73b802003-06-30 21:59:07 +000011933 *)
John Criswell47fdd832003-07-14 16:52:07 +000011934 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011935 ;;
11936 esac
11937 fi
11938
John Criswell47fdd832003-07-14 16:52:07 +000011939echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11940echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011941
John Criswell47fdd832003-07-14 16:52:07 +000011942#
11943# Check to make sure the PIC flag actually works.
11944#
11945if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011946
11947echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011948echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11949if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951else
John Criswell47fdd832003-07-14 16:52:07 +000011952 lt_prog_compiler_pic_works=no
11953 ac_outfile=conftest.$ac_objext
11954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11956 # Insert the option either (1) after the last *FLAGS variable, or
11957 # (2) before a word containing "conftest.", or (3) at the end.
11958 # Note that $ac_compile itself does not contain backslashes and begins
11959 # with a dollar sign (not a hyphen), so the echo should work correctly.
11960 # The option is referenced via a variable to avoid confusing sed.
11961 lt_compile=`echo "$ac_compile" | $SED \
11962 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11964 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000011965 (eval echo "\"\$as_me:11965: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011966 (eval "$lt_compile" 2>conftest.err)
11967 ac_status=$?
11968 cat conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000011969 echo "$as_me:11969: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011970 if (exit $ac_status) && test -s "$ac_outfile"; then
11971 # The compiler can only warn and ignore the option if not recognized
11972 # So say no if there are warnings
11973 if test ! -s conftest.err; then
11974 lt_prog_compiler_pic_works=yes
11975 fi
11976 fi
11977 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011978
John Criswell47fdd832003-07-14 16:52:07 +000011979fi
11980echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11981echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011982
John Criswell47fdd832003-07-14 16:52:07 +000011983if test x"$lt_prog_compiler_pic_works" = xyes; then
11984 case $lt_prog_compiler_pic in
11985 "" | " "*) ;;
11986 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11987 esac
John Criswell7a73b802003-06-30 21:59:07 +000011988else
John Criswell47fdd832003-07-14 16:52:07 +000011989 lt_prog_compiler_pic=
11990 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011991fi
11992
John Criswell7a73b802003-06-30 21:59:07 +000011993fi
John Criswell47fdd832003-07-14 16:52:07 +000011994case "$host_os" in
11995 # For platforms which do not support PIC, -DPIC is meaningless:
11996 *djgpp*)
11997 lt_prog_compiler_pic=
11998 ;;
11999 *)
12000 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12001 ;;
12002esac
John Criswell7a73b802003-06-30 21:59:07 +000012003
John Criswell7a73b802003-06-30 21:59:07 +000012004echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12005echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012006if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008else
John Criswell47fdd832003-07-14 16:52:07 +000012009 lt_cv_prog_compiler_c_o=no
12010 $rm -r conftest 2>/dev/null
12011 mkdir conftest
12012 cd conftest
12013 mkdir out
12014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012015
John Criswell47fdd832003-07-14 16:52:07 +000012016 lt_compiler_flag="-o out/conftest2.$ac_objext"
12017 # Insert the option either (1) after the last *FLAGS variable, or
12018 # (2) before a word containing "conftest.", or (3) at the end.
12019 # Note that $ac_compile itself does not contain backslashes and begins
12020 # with a dollar sign (not a hyphen), so the echo should work correctly.
12021 lt_compile=`echo "$ac_compile" | $SED \
12022 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12024 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000012025 (eval echo "\"\$as_me:12025: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012026 (eval "$lt_compile" 2>out/conftest.err)
12027 ac_status=$?
12028 cat out/conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000012029 echo "$as_me:12029: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12031 then
12032 # The compiler can only warn and ignore the option if not recognized
12033 # So say no if there are warnings
12034 if test ! -s out/conftest.err; then
12035 lt_cv_prog_compiler_c_o=yes
12036 fi
12037 fi
12038 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012039 $rm conftest*
12040 # SGI C++ compiler will create directory out/ii_files/ for
12041 # template instantiation
12042 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12043 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012044 cd ..
12045 rmdir conftest
12046 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012047
12048fi
John Criswell47fdd832003-07-14 16:52:07 +000012049echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12050echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012051
John Criswell7a73b802003-06-30 21:59:07 +000012052
John Criswell7a73b802003-06-30 21:59:07 +000012053hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012054if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012055 # do not overwrite the value of need_locks provided by the user
12056 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12057echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12058 hard_links=yes
12059 $rm conftest*
12060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12061 touch conftest.a
12062 ln conftest.a conftest.b 2>&5 || hard_links=no
12063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12064 echo "$as_me:$LINENO: result: $hard_links" >&5
12065echo "${ECHO_T}$hard_links" >&6
12066 if test "$hard_links" = no; then
12067 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12068echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12069 need_locks=warn
12070 fi
12071else
12072 need_locks=no
12073fi
John Criswell7a73b802003-06-30 21:59:07 +000012074
John Criswell47fdd832003-07-14 16:52:07 +000012075echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12076echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12077
12078 runpath_var=
12079 allow_undefined_flag=
12080 enable_shared_with_static_runtimes=no
12081 archive_cmds=
12082 archive_expsym_cmds=
12083 old_archive_From_new_cmds=
12084 old_archive_from_expsyms_cmds=
12085 export_dynamic_flag_spec=
12086 whole_archive_flag_spec=
12087 thread_safe_flag_spec=
12088 hardcode_libdir_flag_spec=
12089 hardcode_libdir_flag_spec_ld=
12090 hardcode_libdir_separator=
12091 hardcode_direct=no
12092 hardcode_minus_L=no
12093 hardcode_shlibpath_var=unsupported
12094 link_all_deplibs=unknown
12095 hardcode_automatic=no
12096 module_cmds=
12097 module_expsym_cmds=
12098 always_export_symbols=no
12099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12100 # include_expsyms should be a list of space-separated symbols to be *always*
12101 # included in the symbol list
12102 include_expsyms=
12103 # exclude_expsyms can be an extended regexp of symbols to exclude
12104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12106 # as well as any symbol that contains `d'.
12107 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12109 # platforms (ab)use it in PIC code, but their linkers get confused if
12110 # the symbol is explicitly referenced. Since portable code cannot
12111 # rely on this symbol name, it's probably fine to never include it in
12112 # preloaded symbol tables.
12113 extract_expsyms_cmds=
12114
12115 case $host_os in
12116 cygwin* | mingw* | pw32*)
12117 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12118 # When not using gcc, we currently assume that we are using
12119 # Microsoft Visual C++.
12120 if test "$GCC" != yes; then
12121 with_gnu_ld=no
12122 fi
12123 ;;
12124 openbsd*)
12125 with_gnu_ld=no
12126 ;;
12127 esac
12128
12129 ld_shlibs=yes
12130 if test "$with_gnu_ld" = yes; then
12131 # If archive_cmds runs LD, not CC, wlarc should be empty
12132 wlarc='${wl}'
12133
12134 # See if GNU ld supports shared libraries.
12135 case $host_os in
12136 aix3* | aix4* | aix5*)
12137 # On AIX/PPC, the GNU linker is very broken
12138 if test "$host_cpu" != ia64; then
12139 ld_shlibs=no
12140 cat <<EOF 1>&2
12141
12142*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12143*** to be unable to reliably create shared libraries on AIX.
12144*** Therefore, libtool is disabling shared libraries support. If you
12145*** really care for shared libraries, you may want to modify your PATH
12146*** so that a non-GNU linker is found, and then restart.
12147
12148EOF
12149 fi
12150 ;;
12151
12152 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012153 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 +000012154 hardcode_libdir_flag_spec='-L$libdir'
12155 hardcode_minus_L=yes
12156
12157 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12158 # that the semantics of dynamic libraries on AmigaOS, at least up
12159 # to version 4, is to share data among multiple programs linked
12160 # with the same dynamic library. Since this doesn't match the
12161 # behavior of shared libraries on other platforms, we can't use
12162 # them.
12163 ld_shlibs=no
12164 ;;
12165
12166 beos*)
12167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12168 allow_undefined_flag=unsupported
12169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12170 # support --undefined. This deserves some investigation. FIXME
12171 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172 else
12173 ld_shlibs=no
12174 fi
12175 ;;
12176
12177 cygwin* | mingw* | pw32*)
12178 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12179 # as there is no search path for DLLs.
12180 hardcode_libdir_flag_spec='-L$libdir'
12181 allow_undefined_flag=unsupported
12182 always_export_symbols=no
12183 enable_shared_with_static_runtimes=yes
12184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12185
12186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12188 # If the export-symbols file already is a .def file (1st line
12189 # is EXPORTS), use it as is; otherwise, prepend...
12190 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12191 cp $export_symbols $output_objdir/$soname.def;
12192 else
12193 echo EXPORTS > $output_objdir/$soname.def;
12194 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012195 fi~
12196 $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 +000012197 else
12198 ld_shlibs=no
12199 fi
12200 ;;
12201
12202 netbsd*)
12203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12204 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12205 wlarc=
12206 else
12207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12209 fi
12210 ;;
12211
12212 solaris* | sysv5*)
12213 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12214 ld_shlibs=no
12215 cat <<EOF 1>&2
12216
12217*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12218*** create shared libraries on Solaris systems. Therefore, libtool
12219*** is disabling shared libraries support. We urge you to upgrade GNU
12220*** binutils to release 2.9.1 or newer. Another option is to modify
12221*** your PATH or compiler configuration so that the native linker is
12222*** used, and then restart.
12223
12224EOF
12225 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12228 else
12229 ld_shlibs=no
12230 fi
12231 ;;
12232
12233 sunos4*)
12234 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12235 wlarc=
12236 hardcode_direct=yes
12237 hardcode_shlibpath_var=no
12238 ;;
12239
Reid Spencer2706f8c2004-09-19 23:53:36 +000012240 linux*)
12241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12242 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243 archive_cmds="$tmp_archive_cmds"
12244 supports_anon_versioning=no
12245 case `$LD -v 2>/dev/null` in
12246 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12247 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12248 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12249 *\ 2.11.*) ;; # other 2.11 versions
12250 *) supports_anon_versioning=yes ;;
12251 esac
12252 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012253 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12254cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12255$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012256 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12257 else
12258 archive_expsym_cmds="$tmp_archive_cmds"
12259 fi
12260 else
12261 ld_shlibs=no
12262 fi
12263 ;;
12264
John Criswell47fdd832003-07-14 16:52:07 +000012265 *)
12266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12269 else
12270 ld_shlibs=no
12271 fi
12272 ;;
12273 esac
12274
12275 if test "$ld_shlibs" = yes; then
12276 runpath_var=LD_RUN_PATH
12277 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12278 export_dynamic_flag_spec='${wl}--export-dynamic'
12279 # ancient GNU ld didn't support --whole-archive et. al.
12280 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12281 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12282 else
12283 whole_archive_flag_spec=
12284 fi
12285 fi
12286 else
12287 # PORTME fill in a description of your system's linker (not GNU ld)
12288 case $host_os in
12289 aix3*)
12290 allow_undefined_flag=unsupported
12291 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012292 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 +000012293 # Note: this linker hardcodes the directories in LIBPATH if there
12294 # are no directories specified by -L.
12295 hardcode_minus_L=yes
12296 if test "$GCC" = yes && test -z "$link_static_flag"; then
12297 # Neither direct hardcoding nor static linking is supported with a
12298 # broken collect2.
12299 hardcode_direct=unsupported
12300 fi
12301 ;;
12302
12303 aix4* | aix5*)
12304 if test "$host_cpu" = ia64; then
12305 # On IA64, the linker does run time linking by default, so we don't
12306 # have to do anything special.
12307 aix_use_runtimelinking=no
12308 exp_sym_flag='-Bexport'
12309 no_entry_flag=""
12310 else
12311 # If we're using GNU nm, then we don't want the "-C" option.
12312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12314 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'
12315 else
12316 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'
12317 fi
12318 aix_use_runtimelinking=no
12319
12320 # Test if we are trying to use run time linking or normal
12321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12322 # need to do runtime linking.
12323 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12324 for ld_flag in $LDFLAGS; do
12325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12326 aix_use_runtimelinking=yes
12327 break
12328 fi
12329 done
12330 esac
12331
12332 exp_sym_flag='-bexport'
12333 no_entry_flag='-bnoentry'
12334 fi
12335
12336 # When large executables or shared objects are built, AIX ld can
12337 # have problems creating the table of contents. If linking a library
12338 # or program results in "error TOC overflow" add -mminimal-toc to
12339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12341
12342 archive_cmds=''
12343 hardcode_direct=yes
12344 hardcode_libdir_separator=':'
12345 link_all_deplibs=yes
12346
12347 if test "$GCC" = yes; then
12348 case $host_os in aix4.012|aix4.012.*)
12349 # We only want to do this on AIX 4.2 and lower, the check
12350 # below for broken collect2 doesn't work under 4.3+
12351 collect2name=`${CC} -print-prog-name=collect2`
12352 if test -f "$collect2name" && \
12353 strings "$collect2name" | grep resolve_lib_name >/dev/null
12354 then
12355 # We have reworked collect2
12356 hardcode_direct=yes
12357 else
12358 # We have old collect2
12359 hardcode_direct=unsupported
12360 # It fails to find uninstalled libraries when the uninstalled
12361 # path is not listed in the libpath. Setting hardcode_minus_L
12362 # to unsupported forces relinking
12363 hardcode_minus_L=yes
12364 hardcode_libdir_flag_spec='-L$libdir'
12365 hardcode_libdir_separator=
12366 fi
12367 esac
12368 shared_flag='-shared'
12369 else
12370 # not using gcc
12371 if test "$host_cpu" = ia64; then
12372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12373 # chokes on -Wl,-G. The following line is correct:
12374 shared_flag='-G'
12375 else
12376 if test "$aix_use_runtimelinking" = yes; then
12377 shared_flag='${wl}-G'
12378 else
12379 shared_flag='${wl}-bM:SRE'
12380 fi
12381 fi
12382 fi
12383
12384 # It seems that -bexpall does not export symbols beginning with
12385 # underscore (_), so it is better to generate a list of symbols to export.
12386 always_export_symbols=yes
12387 if test "$aix_use_runtimelinking" = yes; then
12388 # Warning - without using the other runtime loading flags (-brtl),
12389 # -berok will link without error, but may produce a broken library.
12390 allow_undefined_flag='-berok'
12391 # Determine the default libpath from the value encoded in an empty executable.
12392 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012393/* confdefs.h. */
12394_ACEOF
12395cat confdefs.h >>conftest.$ac_ext
12396cat >>conftest.$ac_ext <<_ACEOF
12397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012398
John Criswell7a73b802003-06-30 21:59:07 +000012399int
12400main ()
12401{
John Criswell47fdd832003-07-14 16:52:07 +000012402
John Criswell7a73b802003-06-30 21:59:07 +000012403 ;
12404 return 0;
12405}
12406_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012407rm -f conftest.$ac_objext conftest$ac_exeext
12408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012409 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012410 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012416 { ac_try='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012429
John Criswell47fdd832003-07-14 16:52:07 +000012430aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12431}'`
12432# Check for a 64-bit object if we didn't find anything.
12433if 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; }
12434}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012435else
12436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012437sed 's/^/| /' conftest.$ac_ext >&5
12438
John Criswell7a73b802003-06-30 21:59:07 +000012439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012440rm -f conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012442if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012443
John Criswell47fdd832003-07-14 16:52:07 +000012444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12445 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"
12446 else
12447 if test "$host_cpu" = ia64; then
12448 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12449 allow_undefined_flag="-z nodefs"
12450 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"
12451 else
12452 # Determine the default libpath from the value encoded in an empty executable.
12453 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012454/* confdefs.h. */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
12458/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012459
John Criswell47fdd832003-07-14 16:52:07 +000012460int
12461main ()
12462{
John Criswell7a73b802003-06-30 21:59:07 +000012463
John Criswell47fdd832003-07-14 16:52:07 +000012464 ;
12465 return 0;
12466}
12467_ACEOF
12468rm -f conftest.$ac_objext conftest$ac_exeext
12469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012470 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012471 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012477 { ac_try='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012490
John Criswell47fdd832003-07-14 16:52:07 +000012491aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12492}'`
12493# Check for a 64-bit object if we didn't find anything.
12494if 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; }
12495}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012496else
John Criswell47fdd832003-07-14 16:52:07 +000012497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012498sed 's/^/| /' conftest.$ac_ext >&5
12499
John Criswell47fdd832003-07-14 16:52:07 +000012500fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012501rm -f conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012503if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012504
John Criswell47fdd832003-07-14 16:52:07 +000012505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12506 # Warning - without using the other run time loading flags,
12507 # -berok will link without error, but may produce a broken library.
12508 no_undefined_flag=' ${wl}-bernotok'
12509 allow_undefined_flag=' ${wl}-berok'
12510 # -bexpall does not export symbols beginning with underscore (_)
12511 always_export_symbols=yes
12512 # Exported symbols can be pulled into shared objects from archives
12513 whole_archive_flag_spec=' '
12514 archive_cmds_need_lc=yes
12515 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012516 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 +000012517 fi
12518 fi
John Criswell7a73b802003-06-30 21:59:07 +000012519 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012520
12521 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012522 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 +000012523 hardcode_libdir_flag_spec='-L$libdir'
12524 hardcode_minus_L=yes
12525 # see comment about different semantics on the GNU ld section
12526 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012527 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012528
Reid Spencer2706f8c2004-09-19 23:53:36 +000012529 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012530 export_dynamic_flag_spec=-rdynamic
12531 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012532
John Criswell47fdd832003-07-14 16:52:07 +000012533 cygwin* | mingw* | pw32*)
12534 # When not using gcc, we currently assume that we are using
12535 # Microsoft Visual C++.
12536 # hardcode_libdir_flag_spec is actually meaningless, as there is
12537 # no search path for DLLs.
12538 hardcode_libdir_flag_spec=' '
12539 allow_undefined_flag=unsupported
12540 # Tell ltmain to make .lib files, not .a files.
12541 libext=lib
12542 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012543 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012544 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012545 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012546 # The linker will automatically build a .lib file if we build a DLL.
12547 old_archive_From_new_cmds='true'
12548 # FIXME: Should let the user specify the lib program.
12549 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12550 fix_srcfile_path='`cygpath -w "$srcfile"`'
12551 enable_shared_with_static_runtimes=yes
12552 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012553
John Criswell47fdd832003-07-14 16:52:07 +000012554 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012555 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012556 rhapsody* | darwin1.[012])
12557 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12558 ;;
12559 *) # Darwin 1.3 on
12560 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12561 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12562 else
12563 case ${MACOSX_DEPLOYMENT_TARGET} in
12564 10.[012])
12565 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12566 ;;
12567 10.*)
12568 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12569 ;;
12570 esac
12571 fi
12572 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012573 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012574 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012575 hardcode_direct=no
12576 hardcode_automatic=yes
12577 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012578 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012579 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012580 if test "$GCC" = yes ; then
12581 output_verbose_link_cmd='echo'
12582 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12583 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12584 # 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 +000012585 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}'
12586 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 +000012587 else
12588 case "$cc_basename" in
12589 xlc*)
12590 output_verbose_link_cmd='echo'
12591 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12592 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12593 # 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 +000012594 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}'
12595 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 +000012596 ;;
12597 *)
12598 ld_shlibs=no
12599 ;;
12600 esac
John Criswell7a73b802003-06-30 21:59:07 +000012601 fi
John Criswell47fdd832003-07-14 16:52:07 +000012602 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012603
John Criswell47fdd832003-07-14 16:52:07 +000012604 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012606 hardcode_libdir_flag_spec='-L$libdir'
12607 hardcode_shlibpath_var=no
12608 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012609
John Criswell47fdd832003-07-14 16:52:07 +000012610 freebsd1*)
12611 ld_shlibs=no
12612 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012613
John Criswell47fdd832003-07-14 16:52:07 +000012614 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12615 # support. Future versions do this automatically, but an explicit c++rt0.o
12616 # does not break anything, and helps significantly (at the cost of a little
12617 # extra space).
12618 freebsd2.2*)
12619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12620 hardcode_libdir_flag_spec='-R$libdir'
12621 hardcode_direct=yes
12622 hardcode_shlibpath_var=no
12623 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012624
John Criswell47fdd832003-07-14 16:52:07 +000012625 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12626 freebsd2*)
12627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12628 hardcode_direct=yes
12629 hardcode_minus_L=yes
12630 hardcode_shlibpath_var=no
12631 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012632
John Criswell47fdd832003-07-14 16:52:07 +000012633 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012634 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012635 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12636 hardcode_libdir_flag_spec='-R$libdir'
12637 hardcode_direct=yes
12638 hardcode_shlibpath_var=no
12639 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012640
John Criswell47fdd832003-07-14 16:52:07 +000012641 hpux9*)
12642 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012643 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 +000012644 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012645 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 +000012646 fi
12647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12648 hardcode_libdir_separator=:
12649 hardcode_direct=yes
12650
12651 # hardcode_minus_L: Not really in the search PATH,
12652 # but as the default location of the library.
12653 hardcode_minus_L=yes
12654 export_dynamic_flag_spec='${wl}-E'
12655 ;;
12656
12657 hpux10* | hpux11*)
12658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12659 case "$host_cpu" in
12660 hppa*64*|ia64*)
12661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12662 ;;
12663 *)
12664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12665 ;;
12666 esac
12667 else
12668 case "$host_cpu" in
12669 hppa*64*|ia64*)
12670 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12671 ;;
12672 *)
12673 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12674 ;;
12675 esac
12676 fi
12677 if test "$with_gnu_ld" = no; then
12678 case "$host_cpu" in
12679 hppa*64*)
12680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12681 hardcode_libdir_flag_spec_ld='+b $libdir'
12682 hardcode_libdir_separator=:
12683 hardcode_direct=no
12684 hardcode_shlibpath_var=no
12685 ;;
12686 ia64*)
12687 hardcode_libdir_flag_spec='-L$libdir'
12688 hardcode_direct=no
12689 hardcode_shlibpath_var=no
12690
12691 # hardcode_minus_L: Not really in the search PATH,
12692 # but as the default location of the library.
12693 hardcode_minus_L=yes
12694 ;;
12695 *)
12696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12697 hardcode_libdir_separator=:
12698 hardcode_direct=yes
12699 export_dynamic_flag_spec='${wl}-E'
12700
12701 # hardcode_minus_L: Not really in the search PATH,
12702 # but as the default location of the library.
12703 hardcode_minus_L=yes
12704 ;;
12705 esac
12706 fi
12707 ;;
12708
12709 irix5* | irix6* | nonstopux*)
12710 if test "$GCC" = yes; then
12711 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'
12712 else
12713 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'
12714 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12715 fi
12716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12717 hardcode_libdir_separator=:
12718 link_all_deplibs=yes
12719 ;;
12720
12721 netbsd*)
12722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12724 else
12725 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12726 fi
12727 hardcode_libdir_flag_spec='-R$libdir'
12728 hardcode_direct=yes
12729 hardcode_shlibpath_var=no
12730 ;;
12731
12732 newsos6)
12733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12734 hardcode_direct=yes
12735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12736 hardcode_libdir_separator=:
12737 hardcode_shlibpath_var=no
12738 ;;
12739
12740 openbsd*)
12741 hardcode_direct=yes
12742 hardcode_shlibpath_var=no
12743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012745 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 +000012746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12747 export_dynamic_flag_spec='${wl}-E'
12748 else
12749 case $host_os in
12750 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12752 hardcode_libdir_flag_spec='-R$libdir'
12753 ;;
12754 *)
12755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12756 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12757 ;;
12758 esac
12759 fi
12760 ;;
12761
12762 os2*)
12763 hardcode_libdir_flag_spec='-L$libdir'
12764 hardcode_minus_L=yes
12765 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012766 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 +000012767 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12768 ;;
12769
12770 osf3*)
12771 if test "$GCC" = yes; then
12772 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12773 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'
12774 else
12775 allow_undefined_flag=' -expect_unresolved \*'
12776 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'
12777 fi
12778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12779 hardcode_libdir_separator=:
12780 ;;
12781
12782 osf4* | osf5*) # as osf3* with the addition of -msym flag
12783 if test "$GCC" = yes; then
12784 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12785 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'
12786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12787 else
12788 allow_undefined_flag=' -expect_unresolved \*'
12789 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 +000012790 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12791 $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'
12792
John Criswell47fdd832003-07-14 16:52:07 +000012793 # Both c and cxx compiler support -rpath directly
12794 hardcode_libdir_flag_spec='-rpath $libdir'
12795 fi
12796 hardcode_libdir_separator=:
12797 ;;
12798
12799 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12801 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012802 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012803 runpath_var=LD_RUN_PATH
12804 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012805 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012806
John Criswell47fdd832003-07-14 16:52:07 +000012807 solaris*)
12808 no_undefined_flag=' -z text'
12809 if test "$GCC" = yes; then
12810 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012811 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12812 $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 +000012813 else
12814 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012815 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816 $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 +000012817 fi
12818 hardcode_libdir_flag_spec='-R$libdir'
12819 hardcode_shlibpath_var=no
12820 case $host_os in
12821 solaris2.[0-5] | solaris2.[0-5].*) ;;
12822 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12823 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12824 esac
12825 link_all_deplibs=yes
12826 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012827
John Criswell47fdd832003-07-14 16:52:07 +000012828 sunos4*)
12829 if test "x$host_vendor" = xsequent; then
12830 # Use $CC to link under sequent, because it throws in some extra .o
12831 # files that make .init and .fini sections work.
12832 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12833 else
12834 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12835 fi
12836 hardcode_libdir_flag_spec='-L$libdir'
12837 hardcode_direct=yes
12838 hardcode_minus_L=yes
12839 hardcode_shlibpath_var=no
12840 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012841
John Criswell47fdd832003-07-14 16:52:07 +000012842 sysv4)
12843 case $host_vendor in
12844 sni)
12845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12846 hardcode_direct=yes # is this really true???
12847 ;;
12848 siemens)
12849 ## LD is ld it makes a PLAMLIB
12850 ## CC just makes a GrossModule.
12851 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12852 reload_cmds='$CC -r -o $output$reload_objs'
12853 hardcode_direct=no
12854 ;;
12855 motorola)
12856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12858 ;;
12859 esac
12860 runpath_var='LD_RUN_PATH'
12861 hardcode_shlibpath_var=no
12862 ;;
12863
12864 sysv4.3*)
12865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12866 hardcode_shlibpath_var=no
12867 export_dynamic_flag_spec='-Bexport'
12868 ;;
12869
12870 sysv4*MP*)
12871 if test -d /usr/nec; then
12872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12873 hardcode_shlibpath_var=no
12874 runpath_var=LD_RUN_PATH
12875 hardcode_runpath_var=yes
12876 ld_shlibs=yes
12877 fi
12878 ;;
12879
12880 sysv4.2uw2*)
12881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12882 hardcode_direct=yes
12883 hardcode_minus_L=no
12884 hardcode_shlibpath_var=no
12885 hardcode_runpath_var=yes
12886 runpath_var=LD_RUN_PATH
12887 ;;
12888
12889 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12890 no_undefined_flag='${wl}-z ${wl}text'
12891 if test "$GCC" = yes; then
12892 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12893 else
12894 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12895 fi
12896 runpath_var='LD_RUN_PATH'
12897 hardcode_shlibpath_var=no
12898 ;;
12899
12900 sysv5*)
12901 no_undefined_flag=' -z text'
12902 # $CC -shared without GNU ld will not create a library from C++
12903 # object files and a static libstdc++, better avoid it by now
12904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012905 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12906 $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 +000012907 hardcode_libdir_flag_spec=
12908 hardcode_shlibpath_var=no
12909 runpath_var='LD_RUN_PATH'
12910 ;;
12911
12912 uts4*)
12913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914 hardcode_libdir_flag_spec='-L$libdir'
12915 hardcode_shlibpath_var=no
12916 ;;
12917
12918 *)
12919 ld_shlibs=no
12920 ;;
12921 esac
12922 fi
12923
John Criswell7a73b802003-06-30 21:59:07 +000012924echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12925echo "${ECHO_T}$ld_shlibs" >&6
12926test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012927
John Criswell47fdd832003-07-14 16:52:07 +000012928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12929if test "$GCC" = yes; then
12930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12931fi
12932
12933#
12934# Do we need to explicitly link libc?
12935#
12936case "x$archive_cmds_need_lc" in
12937x|xyes)
12938 # Assume -lc should be added
12939 archive_cmds_need_lc=yes
12940
12941 if test "$enable_shared" = yes && test "$GCC" = yes; then
12942 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012943 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012944 # FIXME: we may have to deal with multi-command sequences.
12945 ;;
12946 '$CC '*)
12947 # Test whether the compiler implicitly links with -lc since on some
12948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12949 # to ld, don't add -lc before -lgcc.
12950 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12951echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12952 $rm conftest*
12953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12954
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } 2>conftest.err; then
12960 soname=conftest
12961 lib=conftest
12962 libobjs=conftest.$ac_objext
12963 deplibs=
12964 wl=$lt_prog_compiler_wl
12965 compiler_flags=-v
12966 linker_flags=-v
12967 verstring=
12968 output_objdir=.
12969 libname=conftest
12970 lt_save_allow_undefined_flag=$allow_undefined_flag
12971 allow_undefined_flag=
12972 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12973 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }
12977 then
12978 archive_cmds_need_lc=no
12979 else
12980 archive_cmds_need_lc=yes
12981 fi
12982 allow_undefined_flag=$lt_save_allow_undefined_flag
12983 else
12984 cat conftest.err 1>&5
12985 fi
12986 $rm conftest*
12987 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12988echo "${ECHO_T}$archive_cmds_need_lc" >&6
12989 ;;
12990 esac
12991 fi
12992 ;;
12993esac
12994
John Criswell7a73b802003-06-30 21:59:07 +000012995echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12996echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12997library_names_spec=
12998libname_spec='lib$name'
12999soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013000shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013001postinstall_cmds=
13002postuninstall_cmds=
13003finish_cmds=
13004finish_eval=
13005shlibpath_var=
13006shlibpath_overrides_runpath=unknown
13007version_type=none
13008dynamic_linker="$host_os ld.so"
13009sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013010if test "$GCC" = yes; then
13011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13012 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13013 # if the path contains ";" then we assume it to be the separator
13014 # otherwise default to the standard path separator (i.e. ":") - it is
13015 # assumed that no part of a normal pathname contains ";" but that should
13016 # okay in the real world where ";" in dirpaths is itself problematic.
13017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13018 else
13019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13020 fi
13021else
13022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13023fi
13024need_lib_prefix=unknown
13025hardcode_into_libs=no
13026
13027# when you set need_version to no, make sure it does not cause -set_version
13028# flags to be left without arguments
13029need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013030
13031case $host_os in
13032aix3*)
13033 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013035 shlibpath_var=LIBPATH
13036
John Criswell47fdd832003-07-14 16:52:07 +000013037 # AIX 3 has no versioning support, so we append a major version to the name.
13038 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013039 ;;
13040
13041aix4* | aix5*)
13042 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013043 need_lib_prefix=no
13044 need_version=no
13045 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013046 if test "$host_cpu" = ia64; then
13047 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013049 shlibpath_var=LD_LIBRARY_PATH
13050 else
13051 # With GCC up to 2.95.x, collect2 would create an import file
13052 # for dependence libraries. The import file would start with
13053 # the line `#! .'. This would cause the generated library to
13054 # depend on `.', always an invalid library. This was fixed in
13055 # development snapshots of GCC prior to 3.0.
13056 case $host_os in
13057 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13059 echo ' yes '
13060 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13061 :
13062 else
13063 can_build_shared=no
13064 fi
13065 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013066 esac
John Criswell47fdd832003-07-14 16:52:07 +000013067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13068 # soname into executable. Probably we can add versioning support to
13069 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013070 if test "$aix_use_runtimelinking" = yes; then
13071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13072 # instead of lib<name>.a to let people know that these are not
13073 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013075 else
13076 # We preserve .a as extension for shared libraries through AIX4.2
13077 # and later when we are not doing run time linking.
13078 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013079 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013080 fi
13081 shlibpath_var=LIBPATH
13082 fi
13083 ;;
13084
13085amigaos*)
13086 library_names_spec='$libname.ixlibrary $libname.a'
13087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013088 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 +000013089 ;;
13090
13091beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013092 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013093 dynamic_linker="$host_os ld.so"
13094 shlibpath_var=LIBRARY_PATH
13095 ;;
13096
Reid Spencer2706f8c2004-09-19 23:53:36 +000013097bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013098 version_type=linux
13099 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013106 # the default ld.so.conf also contains /usr/contrib/lib and
13107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13108 # libtool to hard-code these into programs
13109 ;;
13110
13111cygwin* | mingw* | pw32*)
13112 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013113 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013114 need_version=no
13115 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013116
John Criswell7a73b802003-06-30 21:59:07 +000013117 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013118 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013119 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013121 postinstall_cmds='base_file=`basename \${file}`~
13122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13123 dldir=$destdir/`dirname \$dlpath`~
13124 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013125 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13127 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013128 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013129 shlibpath_overrides_runpath=yes
13130
13131 case $host_os in
13132 cygwin*)
13133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13134 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 +000013135 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013136 ;;
13137 mingw*)
13138 # MinGW DLLs use traditional 'lib' prefix
13139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13141 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13142 # It is most probably a Windows format PATH printed by
13143 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13144 # path with ; separators, and with drive letters. We can handle the
13145 # drive letters (cygwin fileutils understands them), so leave them,
13146 # especially as we might pass files found there to a mingw objdump,
13147 # which wouldn't understand a cygwinified path. Ahh.
13148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13149 else
13150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13151 fi
13152 ;;
13153 pw32*)
13154 # pw32 DLLs use 'pw' prefix rather than 'lib'
13155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13156 ;;
13157 esac
John Criswell7a73b802003-06-30 21:59:07 +000013158 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013159
John Criswell7a73b802003-06-30 21:59:07 +000013160 *)
John Criswell47fdd832003-07-14 16:52:07 +000013161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013162 ;;
13163 esac
13164 dynamic_linker='Win32 ld.exe'
13165 # FIXME: first we should search . and the directory the executable is in
13166 shlibpath_var=PATH
13167 ;;
13168
13169darwin* | rhapsody*)
13170 dynamic_linker="$host_os dyld"
13171 version_type=darwin
13172 need_lib_prefix=no
13173 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013174 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013175 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013176 shlibpath_overrides_runpath=yes
13177 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013178 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013179 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013180 if test "$GCC" = yes; then
13181 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"`
13182 else
13183 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013184 fi
13185 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13186 ;;
13187
13188dgux*)
13189 version_type=linux
13190 need_lib_prefix=no
13191 need_version=no
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13193 soname_spec='${libname}${release}${shared_ext}$major'
13194 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013195 ;;
13196
13197freebsd1*)
13198 dynamic_linker=no
13199 ;;
13200
Reid Spencer2706f8c2004-09-19 23:53:36 +000013201kfreebsd*-gnu)
13202 version_type=linux
13203 need_lib_prefix=no
13204 need_version=no
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=no
13209 hardcode_into_libs=yes
13210 dynamic_linker='GNU ld.so'
13211 ;;
13212
John Criswell7a73b802003-06-30 21:59:07 +000013213freebsd*)
13214 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13215 version_type=freebsd-$objformat
13216 case $version_type in
13217 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013219 need_version=no
13220 need_lib_prefix=no
13221 ;;
13222 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013224 need_version=yes
13225 ;;
13226 esac
13227 shlibpath_var=LD_LIBRARY_PATH
13228 case $host_os in
13229 freebsd2*)
13230 shlibpath_overrides_runpath=yes
13231 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013232 freebsd3.01* | freebsdelf3.01*)
13233 shlibpath_overrides_runpath=yes
13234 hardcode_into_libs=yes
13235 ;;
13236 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013237 shlibpath_overrides_runpath=no
13238 hardcode_into_libs=yes
13239 ;;
13240 esac
13241 ;;
13242
13243gnu*)
13244 version_type=linux
13245 need_lib_prefix=no
13246 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013249 shlibpath_var=LD_LIBRARY_PATH
13250 hardcode_into_libs=yes
13251 ;;
13252
13253hpux9* | hpux10* | hpux11*)
13254 # Give a soname corresponding to the major version so that dld.sl refuses to
13255 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013256 version_type=sunos
13257 need_lib_prefix=no
13258 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013259 case "$host_cpu" in
13260 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013261 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013262 hardcode_into_libs=yes
13263 dynamic_linker="$host_os dld.so"
13264 shlibpath_var=LD_LIBRARY_PATH
13265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 if test "X$HPUX_IA64_MODE" = X32; then
13269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13270 else
13271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13272 fi
13273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13274 ;;
13275 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013276 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013277 hardcode_into_libs=yes
13278 dynamic_linker="$host_os dld.sl"
13279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282 soname_spec='${libname}${release}${shared_ext}$major'
13283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13285 ;;
13286 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013287 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013288 dynamic_linker="$host_os dld.sl"
13289 shlibpath_var=SHLIB_PATH
13290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292 soname_spec='${libname}${release}${shared_ext}$major'
13293 ;;
13294 esac
John Criswell7a73b802003-06-30 21:59:07 +000013295 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13296 postinstall_cmds='chmod 555 $lib'
13297 ;;
13298
John Criswell47fdd832003-07-14 16:52:07 +000013299irix5* | irix6* | nonstopux*)
13300 case $host_os in
13301 nonstopux*) version_type=nonstopux ;;
13302 *)
13303 if test "$lt_cv_prog_gnu_ld" = yes; then
13304 version_type=linux
13305 else
13306 version_type=irix
13307 fi ;;
13308 esac
John Criswell7a73b802003-06-30 21:59:07 +000013309 need_lib_prefix=no
13310 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013311 soname_spec='${libname}${release}${shared_ext}$major'
13312 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 +000013313 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013314 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013315 libsuff= shlibsuff=
13316 ;;
13317 *)
13318 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13320 libsuff= shlibsuff= libmagic=32-bit;;
13321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13322 libsuff=32 shlibsuff=N32 libmagic=N32;;
13323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013325 *) libsuff= shlibsuff= libmagic=never-match;;
13326 esac
13327 ;;
13328 esac
13329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13330 shlibpath_overrides_runpath=no
13331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013333 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013334 ;;
13335
13336# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013337linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013338 dynamic_linker=no
13339 ;;
13340
13341# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013342linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013343 version_type=linux
13344 need_lib_prefix=no
13345 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 shlibpath_overrides_runpath=no
13351 # This implies no fast_install, which is unacceptable.
13352 # Some rework will be needed to allow for fast_install
13353 # before this can be enabled.
13354 hardcode_into_libs=yes
13355
Reid Spencer2706f8c2004-09-19 23:53:36 +000013356 # Append ld.so.conf contents to the search path
13357 if test -f /etc/ld.so.conf; then
13358 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13359 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13360 fi
13361
John Criswell7a73b802003-06-30 21:59:07 +000013362 # We used to test for /lib/ld.so.1 and disable shared libraries on
13363 # powerpc, because MkLinux only supported shared libraries with the
13364 # GNU dynamic linker. Since this was broken with cross compilers,
13365 # most powerpc-linux boxes support dynamic linking these days and
13366 # people can always --disable-shared, the test was removed, and we
13367 # assume the GNU/Linux dynamic linker is in use.
13368 dynamic_linker='GNU/Linux ld.so'
13369 ;;
13370
Reid Spencer2706f8c2004-09-19 23:53:36 +000013371knetbsd*-gnu)
13372 version_type=linux
13373 need_lib_prefix=no
13374 need_version=no
13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376 soname_spec='${libname}${release}${shared_ext}$major'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 shlibpath_overrides_runpath=no
13379 hardcode_into_libs=yes
13380 dynamic_linker='GNU ld.so'
13381 ;;
13382
John Criswell7a73b802003-06-30 21:59:07 +000013383netbsd*)
13384 version_type=sunos
13385 need_lib_prefix=no
13386 need_version=no
13387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13390 dynamic_linker='NetBSD (a.out) ld.so'
13391 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013393 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013394 dynamic_linker='NetBSD ld.elf_so'
13395 fi
13396 shlibpath_var=LD_LIBRARY_PATH
13397 shlibpath_overrides_runpath=yes
13398 hardcode_into_libs=yes
13399 ;;
13400
13401newsos6)
13402 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=yes
13406 ;;
13407
Reid Spencer2706f8c2004-09-19 23:53:36 +000013408nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013409 version_type=linux
13410 need_lib_prefix=no
13411 need_version=no
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013414 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=yes
13416 ;;
13417
13418openbsd*)
13419 version_type=sunos
13420 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013421 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13424 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013425 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 +000013426 case $host_os in
13427 openbsd2.[89] | openbsd2.[89].*)
13428 shlibpath_overrides_runpath=no
13429 ;;
13430 *)
13431 shlibpath_overrides_runpath=yes
13432 ;;
13433 esac
John Criswell7a73b802003-06-30 21:59:07 +000013434 else
13435 shlibpath_overrides_runpath=yes
13436 fi
John Criswell7a73b802003-06-30 21:59:07 +000013437 ;;
13438
13439os2*)
13440 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013441 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013442 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013443 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013444 dynamic_linker='OS/2 ld.exe'
13445 shlibpath_var=LIBPATH
13446 ;;
13447
13448osf3* | osf4* | osf5*)
13449 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013450 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013451 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013452 soname_spec='${libname}${release}${shared_ext}$major'
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013454 shlibpath_var=LD_LIBRARY_PATH
13455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13456 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13457 ;;
13458
13459sco3.2v5*)
13460 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013461 soname_spec='${libname}${release}${shared_ext}$major'
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013463 shlibpath_var=LD_LIBRARY_PATH
13464 ;;
13465
13466solaris*)
13467 version_type=linux
13468 need_lib_prefix=no
13469 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013472 shlibpath_var=LD_LIBRARY_PATH
13473 shlibpath_overrides_runpath=yes
13474 hardcode_into_libs=yes
13475 # ldd complains unless libraries are executable
13476 postinstall_cmds='chmod +x $lib'
13477 ;;
13478
13479sunos4*)
13480 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=yes
13485 if test "$with_gnu_ld" = yes; then
13486 need_lib_prefix=no
13487 fi
13488 need_version=yes
13489 ;;
13490
13491sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13492 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013495 shlibpath_var=LD_LIBRARY_PATH
13496 case $host_vendor in
13497 sni)
13498 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013499 need_lib_prefix=no
13500 export_dynamic_flag_spec='${wl}-Blargedynsym'
13501 runpath_var=LD_RUN_PATH
13502 ;;
13503 siemens)
13504 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013505 ;;
13506 motorola)
13507 need_lib_prefix=no
13508 need_version=no
13509 shlibpath_overrides_runpath=no
13510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13511 ;;
13512 esac
13513 ;;
13514
John Criswell7a73b802003-06-30 21:59:07 +000013515sysv4*MP*)
13516 if test -d /usr/nec ;then
13517 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013518 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13519 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013520 shlibpath_var=LD_LIBRARY_PATH
13521 fi
13522 ;;
13523
John Criswell47fdd832003-07-14 16:52:07 +000013524uts4*)
13525 version_type=linux
13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527 soname_spec='${libname}${release}${shared_ext}$major'
13528 shlibpath_var=LD_LIBRARY_PATH
13529 ;;
13530
John Criswell7a73b802003-06-30 21:59:07 +000013531*)
13532 dynamic_linker=no
13533 ;;
13534esac
13535echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13536echo "${ECHO_T}$dynamic_linker" >&6
13537test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013538
Reid Spencer2706f8c2004-09-19 23:53:36 +000013539echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13540echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13541hardcode_action=
13542if test -n "$hardcode_libdir_flag_spec" || \
13543 test -n "$runpath_var" || \
13544 test "X$hardcode_automatic" = "Xyes" ; then
13545
13546 # We can hardcode non-existant directories.
13547 if test "$hardcode_direct" != no &&
13548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13549 # have to relink, otherwise we might link with an installed library
13550 # when we should be linking with a yet-to-be-installed one
13551 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13552 test "$hardcode_minus_L" != no; then
13553 # Linking always hardcodes the temporary library directory.
13554 hardcode_action=relink
13555 else
13556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13557 hardcode_action=immediate
13558 fi
13559else
13560 # We cannot hardcode anything, or else we can only hardcode existing
13561 # directories.
13562 hardcode_action=unsupported
13563fi
13564echo "$as_me:$LINENO: result: $hardcode_action" >&5
13565echo "${ECHO_T}$hardcode_action" >&6
13566
13567if test "$hardcode_action" = relink; then
13568 # Fast installation is not supported
13569 enable_fast_install=no
13570elif test "$shlibpath_overrides_runpath" = yes ||
13571 test "$enable_shared" = no; then
13572 # Fast installation is not necessary
13573 enable_fast_install=needless
13574fi
13575
13576striplib=
13577old_striplib=
13578echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13579echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13580if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13581 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13582 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13583 echo "$as_me:$LINENO: result: yes" >&5
13584echo "${ECHO_T}yes" >&6
13585else
13586# FIXME - insert some real tests, host_os isn't really good enough
13587 case $host_os in
13588 darwin*)
13589 if test -n "$STRIP" ; then
13590 striplib="$STRIP -x"
13591 echo "$as_me:$LINENO: result: yes" >&5
13592echo "${ECHO_T}yes" >&6
13593 else
13594 echo "$as_me:$LINENO: result: no" >&5
13595echo "${ECHO_T}no" >&6
13596fi
13597 ;;
13598 *)
13599 echo "$as_me:$LINENO: result: no" >&5
13600echo "${ECHO_T}no" >&6
13601 ;;
13602 esac
13603fi
13604
John Criswell7a73b802003-06-30 21:59:07 +000013605if test "x$enable_dlopen" != xyes; then
13606 enable_dlopen=unknown
13607 enable_dlopen_self=unknown
13608 enable_dlopen_self_static=unknown
13609else
13610 lt_cv_dlopen=no
13611 lt_cv_dlopen_libs=
13612
13613 case $host_os in
13614 beos*)
13615 lt_cv_dlopen="load_add_on"
13616 lt_cv_dlopen_libs=
13617 lt_cv_dlopen_self=yes
13618 ;;
13619
John Criswell47fdd832003-07-14 16:52:07 +000013620 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013621 lt_cv_dlopen="LoadLibrary"
13622 lt_cv_dlopen_libs=
13623 ;;
13624
John Criswell47fdd832003-07-14 16:52:07 +000013625 cygwin*)
13626 lt_cv_dlopen="dlopen"
13627 lt_cv_dlopen_libs=
13628 ;;
13629
13630 darwin*)
13631 # if libdl is installed we need to link against it
13632 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13633echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13634if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 ac_check_lib_save_LIBS=$LIBS
13638LIBS="-ldl $LIBS"
13639cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013645
13646/* Override any gcc2 internal prototype to avoid an error. */
13647#ifdef __cplusplus
13648extern "C"
13649#endif
13650/* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13652char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013653int
13654main ()
13655{
13656dlopen ();
13657 ;
13658 return 0;
13659}
13660_ACEOF
13661rm -f conftest.$ac_objext conftest$ac_exeext
13662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013663 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013664 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013670 { ac_try='test -z "$ac_c_werror_flag"
13671 || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_cv_lib_dl_dlopen=yes
13684else
13685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013686sed 's/^/| /' conftest.$ac_ext >&5
13687
John Criswell47fdd832003-07-14 16:52:07 +000013688ac_cv_lib_dl_dlopen=no
13689fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013690rm -f conftest.err conftest.$ac_objext \
13691 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013692LIBS=$ac_check_lib_save_LIBS
13693fi
13694echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13695echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13696if test $ac_cv_lib_dl_dlopen = yes; then
13697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13698else
13699
13700 lt_cv_dlopen="dyld"
13701 lt_cv_dlopen_libs=
13702 lt_cv_dlopen_self=yes
13703
13704fi
13705
13706 ;;
13707
John Criswell7a73b802003-06-30 21:59:07 +000013708 *)
13709 echo "$as_me:$LINENO: checking for shl_load" >&5
13710echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13711if test "${ac_cv_func_shl_load+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713else
13714 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013715/* confdefs.h. */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013720/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13722#define shl_load innocuous_shl_load
13723
John Criswell7a73b802003-06-30 21:59:07 +000013724/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013725 which can conflict with char shl_load (); below.
13726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13727 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013728
John Criswell0c38eaf2003-09-10 15:17:25 +000013729#ifdef __STDC__
13730# include <limits.h>
13731#else
13732# include <assert.h>
13733#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013734
13735#undef shl_load
13736
John Criswell7a73b802003-06-30 21:59:07 +000013737/* Override any gcc2 internal prototype to avoid an error. */
13738#ifdef __cplusplus
13739extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013740{
John Criswell7a73b802003-06-30 21:59:07 +000013741#endif
13742/* We use char because int might match the return type of a gcc2
13743 builtin and then its argument prototype would still apply. */
13744char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013745/* The GNU C library defines this for functions which it implements
13746 to always fail with ENOSYS. Some functions are actually named
13747 something starting with __ and the normal name is an alias. */
13748#if defined (__stub_shl_load) || defined (__stub___shl_load)
13749choke me
13750#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013751char (*f) () = shl_load;
13752#endif
13753#ifdef __cplusplus
13754}
John Criswell7a73b802003-06-30 21:59:07 +000013755#endif
13756
John Criswell0c38eaf2003-09-10 15:17:25 +000013757int
13758main ()
13759{
13760return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013761 ;
13762 return 0;
13763}
13764_ACEOF
13765rm -f conftest.$ac_objext conftest$ac_exeext
13766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013767 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013768 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013774 { ac_try='test -z "$ac_c_werror_flag"
13775 || test ! -s conftest.err'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_func_shl_load=yes
13788else
13789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013790sed 's/^/| /' conftest.$ac_ext >&5
13791
John Criswell7a73b802003-06-30 21:59:07 +000013792ac_cv_func_shl_load=no
13793fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013794rm -f conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013796fi
13797echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13798echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13799if test $ac_cv_func_shl_load = yes; then
13800 lt_cv_dlopen="shl_load"
13801else
13802 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13803echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13804if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 ac_check_lib_save_LIBS=$LIBS
13808LIBS="-ldld $LIBS"
13809cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013810/* confdefs.h. */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
13814/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013815
13816/* Override any gcc2 internal prototype to avoid an error. */
13817#ifdef __cplusplus
13818extern "C"
13819#endif
13820/* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13822char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013823int
13824main ()
13825{
13826shl_load ();
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext conftest$ac_exeext
13832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013833 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013834 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_lib_dld_shl_load=yes
13854else
13855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013856sed 's/^/| /' conftest.$ac_ext >&5
13857
John Criswell7a73b802003-06-30 21:59:07 +000013858ac_cv_lib_dld_shl_load=no
13859fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013860rm -f conftest.err conftest.$ac_objext \
13861 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013862LIBS=$ac_check_lib_save_LIBS
13863fi
13864echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13865echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13866if test $ac_cv_lib_dld_shl_load = yes; then
13867 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13868else
13869 echo "$as_me:$LINENO: checking for dlopen" >&5
13870echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13871if test "${ac_cv_func_dlopen+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873else
13874 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013875/* confdefs.h. */
13876_ACEOF
13877cat confdefs.h >>conftest.$ac_ext
13878cat >>conftest.$ac_ext <<_ACEOF
13879/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013880/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13882#define dlopen innocuous_dlopen
13883
John Criswell7a73b802003-06-30 21:59:07 +000013884/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013885 which can conflict with char dlopen (); below.
13886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13887 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013888
John Criswell0c38eaf2003-09-10 15:17:25 +000013889#ifdef __STDC__
13890# include <limits.h>
13891#else
13892# include <assert.h>
13893#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013894
13895#undef dlopen
13896
John Criswell7a73b802003-06-30 21:59:07 +000013897/* Override any gcc2 internal prototype to avoid an error. */
13898#ifdef __cplusplus
13899extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013900{
John Criswell7a73b802003-06-30 21:59:07 +000013901#endif
13902/* We use char because int might match the return type of a gcc2
13903 builtin and then its argument prototype would still apply. */
13904char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013905/* The GNU C library defines this for functions which it implements
13906 to always fail with ENOSYS. Some functions are actually named
13907 something starting with __ and the normal name is an alias. */
13908#if defined (__stub_dlopen) || defined (__stub___dlopen)
13909choke me
13910#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013911char (*f) () = dlopen;
13912#endif
13913#ifdef __cplusplus
13914}
John Criswell7a73b802003-06-30 21:59:07 +000013915#endif
13916
John Criswell0c38eaf2003-09-10 15:17:25 +000013917int
13918main ()
13919{
13920return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013921 ;
13922 return 0;
13923}
13924_ACEOF
13925rm -f conftest.$ac_objext conftest$ac_exeext
13926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013927 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013928 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013934 { ac_try='test -z "$ac_c_werror_flag"
13935 || test ! -s conftest.err'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; } &&
13941 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_func_dlopen=yes
13948else
13949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013950sed 's/^/| /' conftest.$ac_ext >&5
13951
John Criswell7a73b802003-06-30 21:59:07 +000013952ac_cv_func_dlopen=no
13953fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013954rm -f conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013956fi
13957echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13958echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13959if test $ac_cv_func_dlopen = yes; then
13960 lt_cv_dlopen="dlopen"
13961else
13962 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13963echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13964if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966else
13967 ac_check_lib_save_LIBS=$LIBS
13968LIBS="-ldl $LIBS"
13969cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013970/* confdefs.h. */
13971_ACEOF
13972cat confdefs.h >>conftest.$ac_ext
13973cat >>conftest.$ac_ext <<_ACEOF
13974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013975
13976/* Override any gcc2 internal prototype to avoid an error. */
13977#ifdef __cplusplus
13978extern "C"
13979#endif
13980/* We use char because int might match the return type of a gcc2
13981 builtin and then its argument prototype would still apply. */
13982char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013983int
13984main ()
13985{
13986dlopen ();
13987 ;
13988 return 0;
13989}
13990_ACEOF
13991rm -f conftest.$ac_objext conftest$ac_exeext
13992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013993 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013994 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014000 { ac_try='test -z "$ac_c_werror_flag"
14001 || test ! -s conftest.err'
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; } &&
14007 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_lib_dl_dlopen=yes
14014else
14015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014016sed 's/^/| /' conftest.$ac_ext >&5
14017
John Criswell7a73b802003-06-30 21:59:07 +000014018ac_cv_lib_dl_dlopen=no
14019fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014020rm -f conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014022LIBS=$ac_check_lib_save_LIBS
14023fi
14024echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14025echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14026if test $ac_cv_lib_dl_dlopen = yes; then
14027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14028else
14029 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14030echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14031if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
14034 ac_check_lib_save_LIBS=$LIBS
14035LIBS="-lsvld $LIBS"
14036cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014042
14043/* Override any gcc2 internal prototype to avoid an error. */
14044#ifdef __cplusplus
14045extern "C"
14046#endif
14047/* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014050int
14051main ()
14052{
14053dlopen ();
14054 ;
14055 return 0;
14056}
14057_ACEOF
14058rm -f conftest.$ac_objext conftest$ac_exeext
14059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014060 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014061 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014067 { ac_try='test -z "$ac_c_werror_flag"
14068 || test ! -s conftest.err'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 ac_cv_lib_svld_dlopen=yes
14081else
14082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014083sed 's/^/| /' conftest.$ac_ext >&5
14084
John Criswell7a73b802003-06-30 21:59:07 +000014085ac_cv_lib_svld_dlopen=no
14086fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014087rm -f conftest.err conftest.$ac_objext \
14088 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014089LIBS=$ac_check_lib_save_LIBS
14090fi
14091echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14093if test $ac_cv_lib_svld_dlopen = yes; then
14094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14095else
14096 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14097echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14098if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14100else
14101 ac_check_lib_save_LIBS=$LIBS
14102LIBS="-ldld $LIBS"
14103cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014104/* confdefs.h. */
14105_ACEOF
14106cat confdefs.h >>conftest.$ac_ext
14107cat >>conftest.$ac_ext <<_ACEOF
14108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014109
14110/* Override any gcc2 internal prototype to avoid an error. */
14111#ifdef __cplusplus
14112extern "C"
14113#endif
14114/* We use char because int might match the return type of a gcc2
14115 builtin and then its argument prototype would still apply. */
14116char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014117int
14118main ()
14119{
14120dld_link ();
14121 ;
14122 return 0;
14123}
14124_ACEOF
14125rm -f conftest.$ac_objext conftest$ac_exeext
14126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014127 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014128 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014134 { ac_try='test -z "$ac_c_werror_flag"
14135 || test ! -s conftest.err'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; } &&
14141 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_cv_lib_dld_dld_link=yes
14148else
14149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014150sed 's/^/| /' conftest.$ac_ext >&5
14151
John Criswell7a73b802003-06-30 21:59:07 +000014152ac_cv_lib_dld_dld_link=no
14153fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014154rm -f conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014156LIBS=$ac_check_lib_save_LIBS
14157fi
14158echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14159echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14160if test $ac_cv_lib_dld_dld_link = yes; then
14161 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14162fi
14163
14164
14165fi
14166
14167
14168fi
14169
14170
14171fi
14172
14173
14174fi
14175
14176
14177fi
14178
14179 ;;
14180 esac
14181
14182 if test "x$lt_cv_dlopen" != xno; then
14183 enable_dlopen=yes
14184 else
14185 enable_dlopen=no
14186 fi
14187
14188 case $lt_cv_dlopen in
14189 dlopen)
14190 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014191 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014192
14193 save_LDFLAGS="$LDFLAGS"
14194 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14195
14196 save_LIBS="$LIBS"
14197 LIBS="$lt_cv_dlopen_libs $LIBS"
14198
14199 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14200echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14201if test "${lt_cv_dlopen_self+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203else
14204 if test "$cross_compiling" = yes; then :
14205 lt_cv_dlopen_self=cross
14206else
John Criswell47fdd832003-07-14 16:52:07 +000014207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014208 lt_status=$lt_dlunknown
14209 cat > conftest.$ac_ext <<EOF
Reid Spencer78ba11d2005-02-16 16:21:00 +000014210#line 14210 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014211#include "confdefs.h"
14212
14213#if HAVE_DLFCN_H
14214#include <dlfcn.h>
14215#endif
14216
14217#include <stdio.h>
14218
14219#ifdef RTLD_GLOBAL
14220# define LT_DLGLOBAL RTLD_GLOBAL
14221#else
14222# ifdef DL_GLOBAL
14223# define LT_DLGLOBAL DL_GLOBAL
14224# else
14225# define LT_DLGLOBAL 0
14226# endif
14227#endif
14228
14229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14230 find out it does not work in some platform. */
14231#ifndef LT_DLLAZY_OR_NOW
14232# ifdef RTLD_LAZY
14233# define LT_DLLAZY_OR_NOW RTLD_LAZY
14234# else
14235# ifdef DL_LAZY
14236# define LT_DLLAZY_OR_NOW DL_LAZY
14237# else
14238# ifdef RTLD_NOW
14239# define LT_DLLAZY_OR_NOW RTLD_NOW
14240# else
14241# ifdef DL_NOW
14242# define LT_DLLAZY_OR_NOW DL_NOW
14243# else
14244# define LT_DLLAZY_OR_NOW 0
14245# endif
14246# endif
14247# endif
14248# endif
14249#endif
14250
14251#ifdef __cplusplus
14252extern "C" void exit (int);
14253#endif
14254
14255void fnord() { int i=42;}
14256int main ()
14257{
14258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14259 int status = $lt_dlunknown;
14260
14261 if (self)
14262 {
14263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14264 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14265 /* dlclose (self); */
14266 }
14267
14268 exit (status);
14269}
14270EOF
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14276 (./conftest; exit; ) 2>/dev/null
14277 lt_status=$?
14278 case x$lt_status in
14279 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14280 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14281 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14282 esac
14283 else :
14284 # compilation failed
14285 lt_cv_dlopen_self=no
14286 fi
14287fi
14288rm -fr conftest*
14289
14290
14291fi
14292echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14293echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14294
14295 if test "x$lt_cv_dlopen_self" = xyes; then
14296 LDFLAGS="$LDFLAGS $link_static_flag"
14297 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14298echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14299if test "${lt_cv_dlopen_self_static+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301else
14302 if test "$cross_compiling" = yes; then :
14303 lt_cv_dlopen_self_static=cross
14304else
John Criswell47fdd832003-07-14 16:52:07 +000014305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014306 lt_status=$lt_dlunknown
14307 cat > conftest.$ac_ext <<EOF
Reid Spencer78ba11d2005-02-16 16:21:00 +000014308#line 14308 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014309#include "confdefs.h"
14310
14311#if HAVE_DLFCN_H
14312#include <dlfcn.h>
14313#endif
14314
14315#include <stdio.h>
14316
14317#ifdef RTLD_GLOBAL
14318# define LT_DLGLOBAL RTLD_GLOBAL
14319#else
14320# ifdef DL_GLOBAL
14321# define LT_DLGLOBAL DL_GLOBAL
14322# else
14323# define LT_DLGLOBAL 0
14324# endif
14325#endif
14326
14327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14328 find out it does not work in some platform. */
14329#ifndef LT_DLLAZY_OR_NOW
14330# ifdef RTLD_LAZY
14331# define LT_DLLAZY_OR_NOW RTLD_LAZY
14332# else
14333# ifdef DL_LAZY
14334# define LT_DLLAZY_OR_NOW DL_LAZY
14335# else
14336# ifdef RTLD_NOW
14337# define LT_DLLAZY_OR_NOW RTLD_NOW
14338# else
14339# ifdef DL_NOW
14340# define LT_DLLAZY_OR_NOW DL_NOW
14341# else
14342# define LT_DLLAZY_OR_NOW 0
14343# endif
14344# endif
14345# endif
14346# endif
14347#endif
14348
14349#ifdef __cplusplus
14350extern "C" void exit (int);
14351#endif
14352
14353void fnord() { int i=42;}
14354int main ()
14355{
14356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14357 int status = $lt_dlunknown;
14358
14359 if (self)
14360 {
14361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14362 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14363 /* dlclose (self); */
14364 }
14365
14366 exit (status);
14367}
14368EOF
14369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14370 (eval $ac_link) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14374 (./conftest; exit; ) 2>/dev/null
14375 lt_status=$?
14376 case x$lt_status in
14377 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14378 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14379 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14380 esac
14381 else :
14382 # compilation failed
14383 lt_cv_dlopen_self_static=no
14384 fi
14385fi
14386rm -fr conftest*
14387
14388
14389fi
14390echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14391echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14392 fi
14393
14394 CPPFLAGS="$save_CPPFLAGS"
14395 LDFLAGS="$save_LDFLAGS"
14396 LIBS="$save_LIBS"
14397 ;;
14398 esac
14399
14400 case $lt_cv_dlopen_self in
14401 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14402 *) enable_dlopen_self=unknown ;;
14403 esac
14404
14405 case $lt_cv_dlopen_self_static in
14406 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14407 *) enable_dlopen_self_static=unknown ;;
14408 esac
14409fi
14410
14411
John Criswell47fdd832003-07-14 16:52:07 +000014412# Report which librarie types wil actually be built
14413echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14414echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14415echo "$as_me:$LINENO: result: $can_build_shared" >&5
14416echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014417
John Criswell47fdd832003-07-14 16:52:07 +000014418echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14419echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14420test "$can_build_shared" = "no" && enable_shared=no
14421
14422# On AIX, shared libraries and static libraries use the same namespace, and
14423# are all built from PIC.
14424case "$host_os" in
14425aix3*)
14426 test "$enable_shared" = yes && enable_static=no
14427 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014428 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014429 postinstall_cmds='$RANLIB $lib'
14430 fi
14431 ;;
14432
Reid Spencer2706f8c2004-09-19 23:53:36 +000014433aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14435 test "$enable_shared" = yes && enable_static=no
14436 fi
John Criswell7a73b802003-06-30 21:59:07 +000014437 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014438esac
14439echo "$as_me:$LINENO: result: $enable_shared" >&5
14440echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014441
John Criswell47fdd832003-07-14 16:52:07 +000014442echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14443echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14444# Make sure either enable_shared or enable_static is yes.
14445test "$enable_shared" = yes || enable_static=yes
14446echo "$as_me:$LINENO: result: $enable_static" >&5
14447echo "${ECHO_T}$enable_static" >&6
14448
14449# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014450# libtool distribution, otherwise you forgot to ship ltmain.sh
14451# with your package, and you will get complaints that there are
14452# no rules to generate ltmain.sh.
14453if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014454 # See if we are running on zsh, and set the options which allow our commands through
14455 # without removal of \ escapes.
14456 if test -n "${ZSH_VERSION+set}" ; then
14457 setopt NO_GLOB_SUBST
14458 fi
John Criswell7a73b802003-06-30 21:59:07 +000014459 # Now quote all the things that may contain metacharacters while being
14460 # careful not to overquote the AC_SUBSTed values. We take copies of the
14461 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014462 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14463 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014464 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14465 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14466 deplibs_check_method reload_flag reload_cmds need_locks \
14467 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14468 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014469 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014470 old_postinstall_cmds old_postuninstall_cmds \
14471 compiler \
14472 CC \
14473 LD \
14474 lt_prog_compiler_wl \
14475 lt_prog_compiler_pic \
14476 lt_prog_compiler_static \
14477 lt_prog_compiler_no_builtin_flag \
14478 export_dynamic_flag_spec \
14479 thread_safe_flag_spec \
14480 whole_archive_flag_spec \
14481 enable_shared_with_static_runtimes \
14482 old_archive_cmds \
14483 old_archive_from_new_cmds \
14484 predep_objects \
14485 postdep_objects \
14486 predeps \
14487 postdeps \
14488 compiler_lib_search_path \
14489 archive_cmds \
14490 archive_expsym_cmds \
14491 postinstall_cmds \
14492 postuninstall_cmds \
14493 old_archive_from_expsyms_cmds \
14494 allow_undefined_flag \
14495 no_undefined_flag \
14496 export_symbols_cmds \
14497 hardcode_libdir_flag_spec \
14498 hardcode_libdir_flag_spec_ld \
14499 hardcode_libdir_separator \
14500 hardcode_automatic \
14501 module_cmds \
14502 module_expsym_cmds \
14503 lt_cv_prog_compiler_c_o \
14504 exclude_expsyms \
14505 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014506
14507 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014508 old_archive_cmds | \
14509 old_archive_from_new_cmds | \
14510 archive_cmds | \
14511 archive_expsym_cmds | \
14512 module_cmds | \
14513 module_expsym_cmds | \
14514 old_archive_from_expsyms_cmds | \
14515 export_symbols_cmds | \
14516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014517 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014518 old_postinstall_cmds | old_postuninstall_cmds | \
14519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014520 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014521 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 +000014522 ;;
14523 *)
14524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14525 ;;
14526 esac
14527 done
14528
John Criswell47fdd832003-07-14 16:52:07 +000014529 case $lt_echo in
14530 *'\$0 --fallback-echo"')
14531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14532 ;;
14533 esac
14534
14535cfgfile="${ofile}T"
14536 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14537 $rm -f "$cfgfile"
14538 { echo "$as_me:$LINENO: creating $ofile" >&5
14539echo "$as_me: creating $ofile" >&6;}
14540
14541 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014542#! $SHELL
14543
John Criswell47fdd832003-07-14 16:52:07 +000014544# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014545# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14546# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14547#
John Criswell47fdd832003-07-14 16:52:07 +000014548# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14549# Free Software Foundation, Inc.
14550#
14551# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014552# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14553#
14554# This program is free software; you can redistribute it and/or modify
14555# it under the terms of the GNU General Public License as published by
14556# the Free Software Foundation; either version 2 of the License, or
14557# (at your option) any later version.
14558#
14559# This program is distributed in the hope that it will be useful, but
14560# WITHOUT ANY WARRANTY; without even the implied warranty of
14561# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14562# General Public License for more details.
14563#
14564# You should have received a copy of the GNU General Public License
14565# along with this program; if not, write to the Free Software
14566# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14567#
14568# As a special exception to the GNU General Public License, if you
14569# distribute this file as part of a program that contains a
14570# configuration script generated by Autoconf, you may include it under
14571# the same distribution terms that you use for the rest of that program.
14572
John Criswell47fdd832003-07-14 16:52:07 +000014573# A sed program that does not truncate output.
14574SED=$lt_SED
14575
John Criswell7a73b802003-06-30 21:59:07 +000014576# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014577Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014578
14579# The HP-UX ksh and POSIX shell print the target directory to stdout
14580# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014581(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014582
John Criswell47fdd832003-07-14 16:52:07 +000014583# The names of the tagged configurations supported by this script.
14584available_tags=
14585
John Criswell7a73b802003-06-30 21:59:07 +000014586# ### BEGIN LIBTOOL CONFIG
14587
14588# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14589
14590# Shell to use when invoking shell scripts.
14591SHELL=$lt_SHELL
14592
14593# Whether or not to build shared libraries.
14594build_libtool_libs=$enable_shared
14595
14596# Whether or not to build static libraries.
14597build_old_libs=$enable_static
14598
14599# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014600build_libtool_need_lc=$archive_cmds_need_lc
14601
14602# Whether or not to disallow shared libs when runtime libs are static
14603allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014604
14605# Whether or not to optimize for fast installation.
14606fast_install=$enable_fast_install
14607
14608# The host system.
14609host_alias=$host_alias
14610host=$host
14611
14612# An echo program that does not interpret backslashes.
14613echo=$lt_echo
14614
14615# The archiver.
14616AR=$lt_AR
14617AR_FLAGS=$lt_AR_FLAGS
14618
John Criswell47fdd832003-07-14 16:52:07 +000014619# A C compiler.
14620LTCC=$lt_LTCC
14621
14622# A language-specific compiler.
14623CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014624
14625# Is the compiler the GNU C compiler?
14626with_gcc=$GCC
14627
John Criswell47fdd832003-07-14 16:52:07 +000014628# An ERE matcher.
14629EGREP=$lt_EGREP
14630
John Criswell7a73b802003-06-30 21:59:07 +000014631# The linker used to build libraries.
14632LD=$lt_LD
14633
14634# Whether we need hard or soft links.
14635LN_S=$lt_LN_S
14636
14637# A BSD-compatible nm program.
14638NM=$lt_NM
14639
14640# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014641STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014642
14643# Used to examine libraries when file_magic_cmd begins "file"
14644MAGIC_CMD=$MAGIC_CMD
14645
14646# Used on cygwin: DLL creation program.
14647DLLTOOL="$DLLTOOL"
14648
14649# Used on cygwin: object dumper.
14650OBJDUMP="$OBJDUMP"
14651
14652# Used on cygwin: assembler.
14653AS="$AS"
14654
14655# The name of the directory that contains temporary libtool files.
14656objdir=$objdir
14657
14658# How to create reloadable object files.
14659reload_flag=$lt_reload_flag
14660reload_cmds=$lt_reload_cmds
14661
14662# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014663wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014664
14665# Object file suffix (normally "o").
14666objext="$ac_objext"
14667
14668# Old archive suffix (normally "a").
14669libext="$libext"
14670
John Criswell47fdd832003-07-14 16:52:07 +000014671# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014672shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014673
John Criswell7a73b802003-06-30 21:59:07 +000014674# Executable file suffix (normally "").
14675exeext="$exeext"
14676
14677# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014678pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014679pic_mode=$pic_mode
14680
John Criswell47fdd832003-07-14 16:52:07 +000014681# What is the maximum length of a command?
14682max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014683
John Criswell47fdd832003-07-14 16:52:07 +000014684# Does compiler simultaneously support -c and -o options?
14685compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014686
14687# Must we lock files when doing compilation ?
14688need_locks=$lt_need_locks
14689
14690# Do we need the lib prefix for modules?
14691need_lib_prefix=$need_lib_prefix
14692
14693# Do we need a version for libraries?
14694need_version=$need_version
14695
14696# Whether dlopen is supported.
14697dlopen_support=$enable_dlopen
14698
14699# Whether dlopen of programs is supported.
14700dlopen_self=$enable_dlopen_self
14701
14702# Whether dlopen of statically linked programs is supported.
14703dlopen_self_static=$enable_dlopen_self_static
14704
14705# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014706link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014707
14708# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014709no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014710
14711# Compiler flag to allow reflexive dlopens.
14712export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14713
14714# Compiler flag to generate shared objects directly from archives.
14715whole_archive_flag_spec=$lt_whole_archive_flag_spec
14716
14717# Compiler flag to generate thread-safe objects.
14718thread_safe_flag_spec=$lt_thread_safe_flag_spec
14719
14720# Library versioning type.
14721version_type=$version_type
14722
14723# Format of library name prefix.
14724libname_spec=$lt_libname_spec
14725
14726# List of archive names. First name is the real one, the rest are links.
14727# The last name is the one that the linker finds with -lNAME.
14728library_names_spec=$lt_library_names_spec
14729
14730# The coded name of the library, if different from the real name.
14731soname_spec=$lt_soname_spec
14732
14733# Commands used to build and install an old-style archive.
14734RANLIB=$lt_RANLIB
14735old_archive_cmds=$lt_old_archive_cmds
14736old_postinstall_cmds=$lt_old_postinstall_cmds
14737old_postuninstall_cmds=$lt_old_postuninstall_cmds
14738
14739# Create an old-style archive from a shared archive.
14740old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14741
14742# Create a temporary old-style archive to link instead of a shared archive.
14743old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14744
14745# Commands used to build and install a shared archive.
14746archive_cmds=$lt_archive_cmds
14747archive_expsym_cmds=$lt_archive_expsym_cmds
14748postinstall_cmds=$lt_postinstall_cmds
14749postuninstall_cmds=$lt_postuninstall_cmds
14750
John Criswell47fdd832003-07-14 16:52:07 +000014751# Commands used to build a loadable module (assumed same as above if empty)
14752module_cmds=$lt_module_cmds
14753module_expsym_cmds=$lt_module_expsym_cmds
14754
John Criswell7a73b802003-06-30 21:59:07 +000014755# Commands to strip libraries.
14756old_striplib=$lt_old_striplib
14757striplib=$lt_striplib
14758
John Criswell47fdd832003-07-14 16:52:07 +000014759# Dependencies to place before the objects being linked to create a
14760# shared library.
14761predep_objects=$lt_predep_objects
14762
14763# Dependencies to place after the objects being linked to create a
14764# shared library.
14765postdep_objects=$lt_postdep_objects
14766
14767# Dependencies to place before the objects being linked to create a
14768# shared library.
14769predeps=$lt_predeps
14770
14771# Dependencies to place after the objects being linked to create a
14772# shared library.
14773postdeps=$lt_postdeps
14774
14775# The library search path used internally by the compiler when linking
14776# a shared library.
14777compiler_lib_search_path=$lt_compiler_lib_search_path
14778
John Criswell7a73b802003-06-30 21:59:07 +000014779# Method to check whether dependent libraries are shared objects.
14780deplibs_check_method=$lt_deplibs_check_method
14781
14782# Command to use when deplibs_check_method == file_magic.
14783file_magic_cmd=$lt_file_magic_cmd
14784
14785# Flag that allows shared libraries with undefined symbols to be built.
14786allow_undefined_flag=$lt_allow_undefined_flag
14787
14788# Flag that forces no undefined symbols.
14789no_undefined_flag=$lt_no_undefined_flag
14790
14791# Commands used to finish a libtool library installation in a directory.
14792finish_cmds=$lt_finish_cmds
14793
14794# Same as above, but a single script fragment to be evaled but not shown.
14795finish_eval=$lt_finish_eval
14796
14797# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014798global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014799
14800# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014801global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014802
14803# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014804global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014805
14806# This is the shared library runtime path variable.
14807runpath_var=$runpath_var
14808
14809# This is the shared library path variable.
14810shlibpath_var=$shlibpath_var
14811
14812# Is shlibpath searched before the hard-coded library search path?
14813shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14814
14815# How to hardcode a shared library path into an executable.
14816hardcode_action=$hardcode_action
14817
14818# Whether we should hardcode library paths into libraries.
14819hardcode_into_libs=$hardcode_into_libs
14820
14821# Flag to hardcode \$libdir into a binary during linking.
14822# This must work even if \$libdir does not exist.
14823hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14824
John Criswell47fdd832003-07-14 16:52:07 +000014825# If ld is used when linking, flag to hardcode \$libdir into
14826# a binary during linking. This must work even if \$libdir does
14827# not exist.
14828hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14829
John Criswell7a73b802003-06-30 21:59:07 +000014830# Whether we need a single -rpath flag with a separated argument.
14831hardcode_libdir_separator=$lt_hardcode_libdir_separator
14832
John Criswell47fdd832003-07-14 16:52:07 +000014833# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014834# resulting binary.
14835hardcode_direct=$hardcode_direct
14836
14837# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14838# resulting binary.
14839hardcode_minus_L=$hardcode_minus_L
14840
14841# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14842# the resulting binary.
14843hardcode_shlibpath_var=$hardcode_shlibpath_var
14844
John Criswell47fdd832003-07-14 16:52:07 +000014845# Set to yes if building a shared library automatically hardcodes DIR into the library
14846# and all subsequent libraries and executables linked against it.
14847hardcode_automatic=$hardcode_automatic
14848
John Criswell7a73b802003-06-30 21:59:07 +000014849# Variables whose values should be saved in libtool wrapper scripts and
14850# restored at relink time.
14851variables_saved_for_relink="$variables_saved_for_relink"
14852
14853# Whether libtool must link a program against all its dependency libraries.
14854link_all_deplibs=$link_all_deplibs
14855
14856# Compile-time system search path for libraries
14857sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14858
14859# Run-time system search path for libraries
14860sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14861
14862# Fix the shell variable \$srcfile for the compiler.
14863fix_srcfile_path="$fix_srcfile_path"
14864
14865# Set to yes if exported symbols are required.
14866always_export_symbols=$always_export_symbols
14867
14868# The commands to list exported symbols.
14869export_symbols_cmds=$lt_export_symbols_cmds
14870
14871# The commands to extract the exported symbol list from a shared archive.
14872extract_expsyms_cmds=$lt_extract_expsyms_cmds
14873
14874# Symbols that should not be listed in the preloaded symbols.
14875exclude_expsyms=$lt_exclude_expsyms
14876
14877# Symbols that must always be exported.
14878include_expsyms=$lt_include_expsyms
14879
14880# ### END LIBTOOL CONFIG
14881
14882__EOF__
14883
John Criswell47fdd832003-07-14 16:52:07 +000014884
John Criswell7a73b802003-06-30 21:59:07 +000014885 case $host_os in
14886 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014887 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014888
14889# AIX sometimes has problems with the GCC collect2 program. For some
14890# reason, if we set the COLLECT_NAMES environment variable, the problems
14891# vanish in a puff of smoke.
14892if test "X${COLLECT_NAMES+set}" != Xset; then
14893 COLLECT_NAMES=
14894 export COLLECT_NAMES
14895fi
14896EOF
14897 ;;
14898 esac
14899
John Criswell7a73b802003-06-30 21:59:07 +000014900 # We use sed instead of cat because bash on DJGPP gets confused if
14901 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14902 # text mode, it properly converts lines to CR/LF. This bash problem
14903 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014904 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014905
John Criswell47fdd832003-07-14 16:52:07 +000014906 mv -f "$cfgfile" "$ofile" || \
14907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014908 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014909
14910else
14911 # If there is no Makefile yet, we rely on a make rule to execute
14912 # `config.status --recheck' to rerun these tests and create the
14913 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14915 if test -f "$ltmain_in"; then
14916 test -f Makefile && make "$ltmain"
14917 fi
John Criswell7a73b802003-06-30 21:59:07 +000014918fi
John Criswell7a73b802003-06-30 21:59:07 +000014919
14920
John Criswell47fdd832003-07-14 16:52:07 +000014921ac_ext=c
14922ac_cpp='$CPP $CPPFLAGS'
14923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14925ac_compiler_gnu=$ac_cv_c_compiler_gnu
14926
14927CC="$lt_save_CC"
14928
14929
14930# Check whether --with-tags or --without-tags was given.
14931if test "${with_tags+set}" = set; then
14932 withval="$with_tags"
14933 tagnames="$withval"
14934fi;
14935
14936if test -f "$ltmain" && test -n "$tagnames"; then
14937 if test ! -f "${ofile}"; then
14938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14939echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14940 fi
14941
14942 if test -z "$LTCC"; then
14943 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14944 if test -z "$LTCC"; then
14945 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14946echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14947 else
14948 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14949echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14950 fi
14951 fi
14952
14953 # Extract list of available tagged configurations in $ofile.
14954 # Note that this assumes the entire list is on one line.
14955 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14956
14957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14958 for tagname in $tagnames; do
14959 IFS="$lt_save_ifs"
14960 # Check whether tagname contains only valid characters
14961 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14962 "") ;;
14963 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14964echo "$as_me: error: invalid tag name: $tagname" >&2;}
14965 { (exit 1); exit 1; }; }
14966 ;;
14967 esac
14968
14969 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14970 then
14971 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14972echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14973 { (exit 1); exit 1; }; }
14974 fi
14975
14976 # Update the list of available tags.
14977 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014978 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000014979
14980 case $tagname in
14981 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014982 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14983 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14984 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000014985 ac_ext=cc
14986ac_cpp='$CXXCPP $CPPFLAGS'
14987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14990
14991
14992
14993
14994archive_cmds_need_lc_CXX=no
14995allow_undefined_flag_CXX=
14996always_export_symbols_CXX=no
14997archive_expsym_cmds_CXX=
14998export_dynamic_flag_spec_CXX=
14999hardcode_direct_CXX=no
15000hardcode_libdir_flag_spec_CXX=
15001hardcode_libdir_flag_spec_ld_CXX=
15002hardcode_libdir_separator_CXX=
15003hardcode_minus_L_CXX=no
15004hardcode_automatic_CXX=no
15005module_cmds_CXX=
15006module_expsym_cmds_CXX=
15007link_all_deplibs_CXX=unknown
15008old_archive_cmds_CXX=$old_archive_cmds
15009no_undefined_flag_CXX=
15010whole_archive_flag_spec_CXX=
15011enable_shared_with_static_runtimes_CXX=no
15012
15013# Dependencies to place before and after the object being linked:
15014predep_objects_CXX=
15015postdep_objects_CXX=
15016predeps_CXX=
15017postdeps_CXX=
15018compiler_lib_search_path_CXX=
15019
15020# Source file extension for C++ test sources.
15021ac_ext=cc
15022
15023# Object file extension for compiled C++ test sources.
15024objext=o
15025objext_CXX=$objext
15026
15027# Code to be used in simple compile tests
15028lt_simple_compile_test_code="int some_variable = 0;\n"
15029
15030# Code to be used in simple link tests
15031lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15032
15033# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15034
15035# If no C compiler was specified, use CC.
15036LTCC=${LTCC-"$CC"}
15037
15038# Allow CC to be a program name with arguments.
15039compiler=$CC
15040
15041
15042# Allow CC to be a program name with arguments.
15043lt_save_CC=$CC
15044lt_save_LD=$LD
15045lt_save_GCC=$GCC
15046GCC=$GXX
15047lt_save_with_gnu_ld=$with_gnu_ld
15048lt_save_path_LD=$lt_cv_path_LD
15049if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15050 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15051else
15052 unset lt_cv_prog_gnu_ld
15053fi
15054if test -n "${lt_cv_path_LDCXX+set}"; then
15055 lt_cv_path_LD=$lt_cv_path_LDCXX
15056else
15057 unset lt_cv_path_LD
15058fi
15059test -z "${LDCXX+set}" || LD=$LDCXX
15060CC=${CXX-"c++"}
15061compiler=$CC
15062compiler_CXX=$CC
15063cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15064
15065# We don't want -fno-exception wen compiling C++ code, so set the
15066# no_builtin_flag separately
15067if test "$GXX" = yes; then
15068 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15069else
15070 lt_prog_compiler_no_builtin_flag_CXX=
15071fi
15072
15073if test "$GXX" = yes; then
15074 # Set up default GNU C++ configuration
15075
15076
15077# Check whether --with-gnu-ld or --without-gnu-ld was given.
15078if test "${with_gnu_ld+set}" = set; then
15079 withval="$with_gnu_ld"
15080 test "$withval" = no || with_gnu_ld=yes
15081else
15082 with_gnu_ld=no
15083fi;
15084ac_prog=ld
15085if test "$GCC" = yes; then
15086 # Check if gcc -print-prog-name=ld gives a path.
15087 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15088echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15089 case $host in
15090 *-*-mingw*)
15091 # gcc leaves a trailing carriage return which upsets mingw
15092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15093 *)
15094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15095 esac
15096 case $ac_prog in
15097 # Accept absolute paths.
15098 [\\/]* | ?:[\\/]*)
15099 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015100 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015101 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15102 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15103 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15104 done
15105 test -z "$LD" && LD="$ac_prog"
15106 ;;
15107 "")
15108 # If it fails, then pretend we aren't using GCC.
15109 ac_prog=ld
15110 ;;
15111 *)
15112 # If it is relative, then search for the first ld in PATH.
15113 with_gnu_ld=unknown
15114 ;;
15115 esac
15116elif test "$with_gnu_ld" = yes; then
15117 echo "$as_me:$LINENO: checking for GNU ld" >&5
15118echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15119else
15120 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15121echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15122fi
15123if test "${lt_cv_path_LD+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125else
15126 if test -z "$LD"; then
15127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15128 for ac_dir in $PATH; do
15129 IFS="$lt_save_ifs"
15130 test -z "$ac_dir" && ac_dir=.
15131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15132 lt_cv_path_LD="$ac_dir/$ac_prog"
15133 # Check to see if the program is GNU ld. I'd rather use --version,
15134 # but apparently some GNU ld's only accept -v.
15135 # Break only if it was the GNU/non-GNU ld that we prefer.
15136 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15137 *GNU* | *'with BFD'*)
15138 test "$with_gnu_ld" != no && break
15139 ;;
15140 *)
15141 test "$with_gnu_ld" != yes && break
15142 ;;
15143 esac
15144 fi
15145 done
15146 IFS="$lt_save_ifs"
15147else
15148 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15149fi
15150fi
15151
15152LD="$lt_cv_path_LD"
15153if test -n "$LD"; then
15154 echo "$as_me:$LINENO: result: $LD" >&5
15155echo "${ECHO_T}$LD" >&6
15156else
15157 echo "$as_me:$LINENO: result: no" >&5
15158echo "${ECHO_T}no" >&6
15159fi
15160test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15161echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15162 { (exit 1); exit 1; }; }
15163echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15164echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15165if test "${lt_cv_prog_gnu_ld+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167else
15168 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015169case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015170*GNU* | *'with BFD'*)
15171 lt_cv_prog_gnu_ld=yes
15172 ;;
15173*)
15174 lt_cv_prog_gnu_ld=no
15175 ;;
15176esac
15177fi
15178echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15179echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15180with_gnu_ld=$lt_cv_prog_gnu_ld
15181
15182
15183
15184 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15185 # archiving commands below assume that GNU ld is being used.
15186 if test "$with_gnu_ld" = yes; then
15187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15188 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'
15189
15190 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15191 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15192
15193 # If archive_cmds runs LD, not CC, wlarc should be empty
15194 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15195 # investigate it a little bit more. (MM)
15196 wlarc='${wl}'
15197
15198 # ancient GNU ld didn't support --whole-archive et. al.
15199 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15200 grep 'no-whole-archive' > /dev/null; then
15201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15202 else
15203 whole_archive_flag_spec_CXX=
15204 fi
15205 else
15206 with_gnu_ld=no
15207 wlarc=
15208
15209 # A generic and very simple default shared library creation
15210 # command for GNU C++ for the case where it uses the native
15211 # linker, instead of GNU ld. If possible, this setting should
15212 # overridden to take advantage of the native linker features on
15213 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015214 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015215 fi
15216
15217 # Commands to make compiler produce verbose output that lists
15218 # what "hidden" libraries, object files and flags are used when
15219 # linking a shared library.
15220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15221
15222else
15223 GXX=no
15224 with_gnu_ld=no
15225 wlarc=
15226fi
15227
15228# PORTME: fill in a description of your system's C++ link characteristics
15229echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15230echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15231ld_shlibs_CXX=yes
15232case $host_os in
15233 aix3*)
15234 # FIXME: insert proper C++ library support
15235 ld_shlibs_CXX=no
15236 ;;
15237 aix4* | aix5*)
15238 if test "$host_cpu" = ia64; then
15239 # On IA64, the linker does run time linking by default, so we don't
15240 # have to do anything special.
15241 aix_use_runtimelinking=no
15242 exp_sym_flag='-Bexport'
15243 no_entry_flag=""
15244 else
15245 aix_use_runtimelinking=no
15246
15247 # Test if we are trying to use run time linking or normal
15248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15249 # need to do runtime linking.
15250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15251 for ld_flag in $LDFLAGS; do
15252 case $ld_flag in
15253 *-brtl*)
15254 aix_use_runtimelinking=yes
15255 break
15256 ;;
15257 esac
15258 done
15259 esac
15260
15261 exp_sym_flag='-bexport'
15262 no_entry_flag='-bnoentry'
15263 fi
15264
15265 # When large executables or shared objects are built, AIX ld can
15266 # have problems creating the table of contents. If linking a library
15267 # or program results in "error TOC overflow" add -mminimal-toc to
15268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15270
15271 archive_cmds_CXX=''
15272 hardcode_direct_CXX=yes
15273 hardcode_libdir_separator_CXX=':'
15274 link_all_deplibs_CXX=yes
15275
15276 if test "$GXX" = yes; then
15277 case $host_os in aix4.012|aix4.012.*)
15278 # We only want to do this on AIX 4.2 and lower, the check
15279 # below for broken collect2 doesn't work under 4.3+
15280 collect2name=`${CC} -print-prog-name=collect2`
15281 if test -f "$collect2name" && \
15282 strings "$collect2name" | grep resolve_lib_name >/dev/null
15283 then
15284 # We have reworked collect2
15285 hardcode_direct_CXX=yes
15286 else
15287 # We have old collect2
15288 hardcode_direct_CXX=unsupported
15289 # It fails to find uninstalled libraries when the uninstalled
15290 # path is not listed in the libpath. Setting hardcode_minus_L
15291 # to unsupported forces relinking
15292 hardcode_minus_L_CXX=yes
15293 hardcode_libdir_flag_spec_CXX='-L$libdir'
15294 hardcode_libdir_separator_CXX=
15295 fi
15296 esac
15297 shared_flag='-shared'
15298 else
15299 # not using gcc
15300 if test "$host_cpu" = ia64; then
15301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15302 # chokes on -Wl,-G. The following line is correct:
15303 shared_flag='-G'
15304 else
15305 if test "$aix_use_runtimelinking" = yes; then
15306 shared_flag='${wl}-G'
15307 else
15308 shared_flag='${wl}-bM:SRE'
15309 fi
15310 fi
15311 fi
15312
15313 # It seems that -bexpall does not export symbols beginning with
15314 # underscore (_), so it is better to generate a list of symbols to export.
15315 always_export_symbols_CXX=yes
15316 if test "$aix_use_runtimelinking" = yes; then
15317 # Warning - without using the other runtime loading flags (-brtl),
15318 # -berok will link without error, but may produce a broken library.
15319 allow_undefined_flag_CXX='-berok'
15320 # Determine the default libpath from the value encoded in an empty executable.
15321 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015327
John Criswell47fdd832003-07-14 16:52:07 +000015328int
15329main ()
15330{
15331
15332 ;
15333 return 0;
15334}
15335_ACEOF
15336rm -f conftest.$ac_objext conftest$ac_exeext
15337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015338 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015339 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015345 { ac_try='test -z "$ac_cxx_werror_flag"
15346 || test ! -s conftest.err'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358
15359aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15360}'`
15361# Check for a 64-bit object if we didn't find anything.
15362if 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; }
15363}'`; fi
15364else
15365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015366sed 's/^/| /' conftest.$ac_ext >&5
15367
John Criswell47fdd832003-07-14 16:52:07 +000015368fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015369rm -f conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015371if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15372
15373 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15374
15375 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"
15376 else
15377 if test "$host_cpu" = ia64; then
15378 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15379 allow_undefined_flag_CXX="-z nodefs"
15380 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"
15381 else
15382 # Determine the default libpath from the value encoded in an empty executable.
15383 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015384/* confdefs.h. */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
15388/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015389
John Criswell47fdd832003-07-14 16:52:07 +000015390int
15391main ()
15392{
15393
15394 ;
15395 return 0;
15396}
15397_ACEOF
15398rm -f conftest.$ac_objext conftest$ac_exeext
15399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015400 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015401 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015407 { ac_try='test -z "$ac_cxx_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420
15421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15422}'`
15423# Check for a 64-bit object if we didn't find anything.
15424if 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; }
15425}'`; fi
15426else
15427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015428sed 's/^/| /' conftest.$ac_ext >&5
15429
John Criswell47fdd832003-07-14 16:52:07 +000015430fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015431rm -f conftest.err conftest.$ac_objext \
15432 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15434
15435 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15436 # Warning - without using the other run time loading flags,
15437 # -berok will link without error, but may produce a broken library.
15438 no_undefined_flag_CXX=' ${wl}-bernotok'
15439 allow_undefined_flag_CXX=' ${wl}-berok'
15440 # -bexpall does not export symbols beginning with underscore (_)
15441 always_export_symbols_CXX=yes
15442 # Exported symbols can be pulled into shared objects from archives
15443 whole_archive_flag_spec_CXX=' '
15444 archive_cmds_need_lc_CXX=yes
15445 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015446 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 +000015447 fi
15448 fi
15449 ;;
15450 chorus*)
15451 case $cc_basename in
15452 *)
15453 # FIXME: insert proper C++ library support
15454 ld_shlibs_CXX=no
15455 ;;
15456 esac
15457 ;;
15458
Reid Spencer2706f8c2004-09-19 23:53:36 +000015459
John Criswell47fdd832003-07-14 16:52:07 +000015460 cygwin* | mingw* | pw32*)
15461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15462 # as there is no search path for DLLs.
15463 hardcode_libdir_flag_spec_CXX='-L$libdir'
15464 allow_undefined_flag_CXX=unsupported
15465 always_export_symbols_CXX=no
15466 enable_shared_with_static_runtimes_CXX=yes
15467
15468 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15469 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'
15470 # If the export-symbols file already is a .def file (1st line
15471 # is EXPORTS), use it as is; otherwise, prepend...
15472 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15473 cp $export_symbols $output_objdir/$soname.def;
15474 else
15475 echo EXPORTS > $output_objdir/$soname.def;
15476 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015477 fi~
15478 $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 +000015479 else
15480 ld_shlibs_CXX=no
15481 fi
15482 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015483 darwin* | rhapsody*)
15484 case "$host_os" in
15485 rhapsody* | darwin1.[012])
15486 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15487 ;;
15488 *) # Darwin 1.3 on
15489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15490 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15491 else
15492 case ${MACOSX_DEPLOYMENT_TARGET} in
15493 10.[012])
15494 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15495 ;;
15496 10.*)
15497 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15498 ;;
15499 esac
15500 fi
15501 ;;
15502 esac
15503 archive_cmds_need_lc_CXX=no
15504 hardcode_direct_CXX=no
15505 hardcode_automatic_CXX=yes
15506 hardcode_shlibpath_var_CXX=unsupported
15507 whole_archive_flag_spec_CXX=''
15508 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015509
Reid Spencer2706f8c2004-09-19 23:53:36 +000015510 if test "$GXX" = yes ; then
15511 lt_int_apple_cc_single_mod=no
15512 output_verbose_link_cmd='echo'
15513 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15514 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015515 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015516 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015517 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 +000015518 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015519 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 +000015520 fi
15521 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15522 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15523 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015524 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 +000015525 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015526 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 +000015527 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015528 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 +000015529 else
15530 case "$cc_basename" in
15531 xlc*)
15532 output_verbose_link_cmd='echo'
15533 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'
15534 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15535 # 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 +000015536 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}'
15537 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 +000015538 ;;
15539 *)
15540 ld_shlibs_CXX=no
15541 ;;
15542 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015543 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015544 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015545
15546 dgux*)
15547 case $cc_basename in
15548 ec++)
15549 # FIXME: insert proper C++ library support
15550 ld_shlibs_CXX=no
15551 ;;
15552 ghcx)
15553 # Green Hills C++ Compiler
15554 # FIXME: insert proper C++ library support
15555 ld_shlibs_CXX=no
15556 ;;
15557 *)
15558 # FIXME: insert proper C++ library support
15559 ld_shlibs_CXX=no
15560 ;;
15561 esac
15562 ;;
15563 freebsd12*)
15564 # C++ shared libraries reported to be fairly broken before switch to ELF
15565 ld_shlibs_CXX=no
15566 ;;
15567 freebsd-elf*)
15568 archive_cmds_need_lc_CXX=no
15569 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015570 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015571 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15572 # conventions
15573 ld_shlibs_CXX=yes
15574 ;;
15575 gnu*)
15576 ;;
15577 hpux9*)
15578 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15579 hardcode_libdir_separator_CXX=:
15580 export_dynamic_flag_spec_CXX='${wl}-E'
15581 hardcode_direct_CXX=yes
15582 hardcode_minus_L_CXX=yes # Not in the search PATH,
15583 # but as the default
15584 # location of the library.
15585
15586 case $cc_basename in
15587 CC)
15588 # FIXME: insert proper C++ library support
15589 ld_shlibs_CXX=no
15590 ;;
15591 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015592 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 +000015593 # Commands to make compiler produce verbose output that lists
15594 # what "hidden" libraries, object files and flags are used when
15595 # linking a shared library.
15596 #
15597 # There doesn't appear to be a way to prevent this compiler from
15598 # explicitly linking system object files so we need to strip them
15599 # from the output so that they don't get included in the library
15600 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015601 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 +000015602 ;;
15603 *)
15604 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015605 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 +000015606 else
15607 # FIXME: insert proper C++ library support
15608 ld_shlibs_CXX=no
15609 fi
15610 ;;
15611 esac
15612 ;;
15613 hpux10*|hpux11*)
15614 if test $with_gnu_ld = no; then
15615 case "$host_cpu" in
15616 hppa*64*)
15617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15619 hardcode_libdir_separator_CXX=:
15620 ;;
15621 ia64*)
15622 hardcode_libdir_flag_spec_CXX='-L$libdir'
15623 ;;
15624 *)
15625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15626 hardcode_libdir_separator_CXX=:
15627 export_dynamic_flag_spec_CXX='${wl}-E'
15628 ;;
15629 esac
15630 fi
15631 case "$host_cpu" in
15632 hppa*64*)
15633 hardcode_direct_CXX=no
15634 hardcode_shlibpath_var_CXX=no
15635 ;;
15636 ia64*)
15637 hardcode_direct_CXX=no
15638 hardcode_shlibpath_var_CXX=no
15639 hardcode_minus_L_CXX=yes # Not in the search PATH,
15640 # but as the default
15641 # location of the library.
15642 ;;
15643 *)
15644 hardcode_direct_CXX=yes
15645 hardcode_minus_L_CXX=yes # Not in the search PATH,
15646 # but as the default
15647 # location of the library.
15648 ;;
15649 esac
15650
15651 case $cc_basename in
15652 CC)
15653 # FIXME: insert proper C++ library support
15654 ld_shlibs_CXX=no
15655 ;;
15656 aCC)
15657 case "$host_cpu" in
15658 hppa*64*|ia64*)
15659 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15660 ;;
15661 *)
15662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15663 ;;
15664 esac
15665 # Commands to make compiler produce verbose output that lists
15666 # what "hidden" libraries, object files and flags are used when
15667 # linking a shared library.
15668 #
15669 # There doesn't appear to be a way to prevent this compiler from
15670 # explicitly linking system object files so we need to strip them
15671 # from the output so that they don't get included in the library
15672 # dependencies.
15673 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'
15674 ;;
15675 *)
15676 if test "$GXX" = yes; then
15677 if test $with_gnu_ld = no; then
15678 case "$host_cpu" in
15679 ia64*|hppa*64*)
15680 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15681 ;;
15682 *)
15683 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'
15684 ;;
15685 esac
15686 fi
15687 else
15688 # FIXME: insert proper C++ library support
15689 ld_shlibs_CXX=no
15690 fi
15691 ;;
15692 esac
15693 ;;
15694 irix5* | irix6*)
15695 case $cc_basename in
15696 CC)
15697 # SGI C++
15698 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'
15699
15700 # Archives containing C++ object files must be created using
15701 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15702 # necessary to make sure instantiated templates are included
15703 # in the archive.
15704 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15705 ;;
15706 *)
15707 if test "$GXX" = yes; then
15708 if test "$with_gnu_ld" = no; then
15709 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'
15710 else
15711 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'
15712 fi
15713 fi
15714 link_all_deplibs_CXX=yes
15715 ;;
15716 esac
15717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15718 hardcode_libdir_separator_CXX=:
15719 ;;
15720 linux*)
15721 case $cc_basename in
15722 KCC)
15723 # Kuck and Associates, Inc. (KAI) C++ Compiler
15724
15725 # KCC will only create a shared library if the output file
15726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15727 # to its proper name (with version) after linking.
15728 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'
15729 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'
15730 # Commands to make compiler produce verbose output that lists
15731 # what "hidden" libraries, object files and flags are used when
15732 # linking a shared library.
15733 #
15734 # There doesn't appear to be a way to prevent this compiler from
15735 # explicitly linking system object files so we need to strip them
15736 # from the output so that they don't get included in the library
15737 # dependencies.
15738 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'
15739
15740 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15741 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15742
15743 # Archives containing C++ object files must be created using
15744 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15745 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15746 ;;
15747 icpc)
15748 # Intel C++
15749 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015750 # version 8.0 and above of icpc choke on multiply defined symbols
15751 # if we add $predep_objects and $postdep_objects, however 7.1 and
15752 # earlier do not add the objects themselves.
15753 case `$CC -V 2>&1` in
15754 *"Version 7."*)
15755 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15756 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'
15757 ;;
15758 *) # Version 8.0 or newer
15759 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15761 ;;
15762 esac
John Criswell47fdd832003-07-14 16:52:07 +000015763 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015764 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15766 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15767 ;;
15768 cxx)
15769 # Compaq C++
15770 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15771 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'
15772
15773 runpath_var=LD_RUN_PATH
15774 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15775 hardcode_libdir_separator_CXX=:
15776
15777 # Commands to make compiler produce verbose output that lists
15778 # what "hidden" libraries, object files and flags are used when
15779 # linking a shared library.
15780 #
15781 # There doesn't appear to be a way to prevent this compiler from
15782 # explicitly linking system object files so we need to strip them
15783 # from the output so that they don't get included in the library
15784 # dependencies.
15785 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'
15786 ;;
15787 esac
15788 ;;
15789 lynxos*)
15790 # FIXME: insert proper C++ library support
15791 ld_shlibs_CXX=no
15792 ;;
15793 m88k*)
15794 # FIXME: insert proper C++ library support
15795 ld_shlibs_CXX=no
15796 ;;
15797 mvs*)
15798 case $cc_basename in
15799 cxx)
15800 # FIXME: insert proper C++ library support
15801 ld_shlibs_CXX=no
15802 ;;
15803 *)
15804 # FIXME: insert proper C++ library support
15805 ld_shlibs_CXX=no
15806 ;;
15807 esac
15808 ;;
15809 netbsd*)
15810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15811 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15812 wlarc=
15813 hardcode_libdir_flag_spec_CXX='-R$libdir'
15814 hardcode_direct_CXX=yes
15815 hardcode_shlibpath_var_CXX=no
15816 fi
15817 # Workaround some broken pre-1.5 toolchains
15818 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15819 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015820 openbsd2*)
15821 # C++ shared libraries are fairly broken
15822 ld_shlibs_CXX=no
15823 ;;
15824 openbsd*)
15825 hardcode_direct_CXX=yes
15826 hardcode_shlibpath_var_CXX=no
15827 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15830 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15831 export_dynamic_flag_spec_CXX='${wl}-E'
15832 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15833 fi
15834 output_verbose_link_cmd='echo'
15835 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015836 osf3*)
15837 case $cc_basename in
15838 KCC)
15839 # Kuck and Associates, Inc. (KAI) C++ Compiler
15840
15841 # KCC will only create a shared library if the output file
15842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15843 # to its proper name (with version) after linking.
15844 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'
15845
15846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15847 hardcode_libdir_separator_CXX=:
15848
15849 # Archives containing C++ object files must be created using
15850 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15851 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15852
15853 ;;
15854 RCC)
15855 # Rational C++ 2.4.1
15856 # FIXME: insert proper C++ library support
15857 ld_shlibs_CXX=no
15858 ;;
15859 cxx)
15860 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15861 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'
15862
15863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15864 hardcode_libdir_separator_CXX=:
15865
15866 # Commands to make compiler produce verbose output that lists
15867 # what "hidden" libraries, object files and flags are used when
15868 # linking a shared library.
15869 #
15870 # There doesn't appear to be a way to prevent this compiler from
15871 # explicitly linking system object files so we need to strip them
15872 # from the output so that they don't get included in the library
15873 # dependencies.
15874 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'
15875 ;;
15876 *)
15877 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15878 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15879 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'
15880
15881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15882 hardcode_libdir_separator_CXX=:
15883
15884 # Commands to make compiler produce verbose output that lists
15885 # what "hidden" libraries, object files and flags are used when
15886 # linking a shared library.
15887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15888
15889 else
15890 # FIXME: insert proper C++ library support
15891 ld_shlibs_CXX=no
15892 fi
15893 ;;
15894 esac
15895 ;;
15896 osf4* | osf5*)
15897 case $cc_basename in
15898 KCC)
15899 # Kuck and Associates, Inc. (KAI) C++ Compiler
15900
15901 # KCC will only create a shared library if the output file
15902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15903 # to its proper name (with version) after linking.
15904 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'
15905
15906 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15907 hardcode_libdir_separator_CXX=:
15908
15909 # Archives containing C++ object files must be created using
15910 # the KAI C++ compiler.
15911 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15912 ;;
15913 RCC)
15914 # Rational C++ 2.4.1
15915 # FIXME: insert proper C++ library support
15916 ld_shlibs_CXX=no
15917 ;;
15918 cxx)
15919 allow_undefined_flag_CXX=' -expect_unresolved \*'
15920 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 +000015921 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15922 echo "-hidden">> $lib.exp~
15923 $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~
15924 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015925
15926 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15927 hardcode_libdir_separator_CXX=:
15928
15929 # Commands to make compiler produce verbose output that lists
15930 # what "hidden" libraries, object files and flags are used when
15931 # linking a shared library.
15932 #
15933 # There doesn't appear to be a way to prevent this compiler from
15934 # explicitly linking system object files so we need to strip them
15935 # from the output so that they don't get included in the library
15936 # dependencies.
15937 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'
15938 ;;
15939 *)
15940 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15941 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15942 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'
15943
15944 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15945 hardcode_libdir_separator_CXX=:
15946
15947 # Commands to make compiler produce verbose output that lists
15948 # what "hidden" libraries, object files and flags are used when
15949 # linking a shared library.
15950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15951
15952 else
15953 # FIXME: insert proper C++ library support
15954 ld_shlibs_CXX=no
15955 fi
15956 ;;
15957 esac
15958 ;;
15959 psos*)
15960 # FIXME: insert proper C++ library support
15961 ld_shlibs_CXX=no
15962 ;;
15963 sco*)
15964 archive_cmds_need_lc_CXX=no
15965 case $cc_basename in
15966 CC)
15967 # FIXME: insert proper C++ library support
15968 ld_shlibs_CXX=no
15969 ;;
15970 *)
15971 # FIXME: insert proper C++ library support
15972 ld_shlibs_CXX=no
15973 ;;
15974 esac
15975 ;;
15976 sunos4*)
15977 case $cc_basename in
15978 CC)
15979 # Sun C++ 4.x
15980 # FIXME: insert proper C++ library support
15981 ld_shlibs_CXX=no
15982 ;;
15983 lcc)
15984 # Lucid
15985 # FIXME: insert proper C++ library support
15986 ld_shlibs_CXX=no
15987 ;;
15988 *)
15989 # FIXME: insert proper C++ library support
15990 ld_shlibs_CXX=no
15991 ;;
15992 esac
15993 ;;
15994 solaris*)
15995 case $cc_basename in
15996 CC)
15997 # Sun C++ 4.2, 5.x and Centerline C++
15998 no_undefined_flag_CXX=' -zdefs'
15999 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 +000016000 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16001 $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 +000016002
16003 hardcode_libdir_flag_spec_CXX='-R$libdir'
16004 hardcode_shlibpath_var_CXX=no
16005 case $host_os in
16006 solaris2.0-5 | solaris2.0-5.*) ;;
16007 *)
16008 # The C++ compiler is used as linker so we must use $wl
16009 # flag to pass the commands to the underlying system
16010 # linker.
16011 # Supported since Solaris 2.6 (maybe 2.5.1?)
16012 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16013 ;;
16014 esac
16015 link_all_deplibs_CXX=yes
16016
16017 # Commands to make compiler produce verbose output that lists
16018 # what "hidden" libraries, object files and flags are used when
16019 # linking a shared library.
16020 #
16021 # There doesn't appear to be a way to prevent this compiler from
16022 # explicitly linking system object files so we need to strip them
16023 # from the output so that they don't get included in the library
16024 # dependencies.
16025 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'
16026
16027 # Archives containing C++ object files must be created using
16028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16029 # necessary to make sure instantiated templates are included
16030 # in the archive.
16031 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16032 ;;
16033 gcx)
16034 # Green Hills C++ Compiler
16035 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16036
16037 # The C++ compiler must be used to create the archive.
16038 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16039 ;;
16040 *)
16041 # GNU C++ compiler with Solaris linker
16042 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16043 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16044 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016045 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 +000016046 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16048
John Criswell47fdd832003-07-14 16:52:07 +000016049 # Commands to make compiler produce verbose output that lists
16050 # what "hidden" libraries, object files and flags are used when
16051 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016052 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016053 else
16054 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16055 # platform.
16056 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 +000016057 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16058 $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 +000016059
16060 # Commands to make compiler produce verbose output that lists
16061 # what "hidden" libraries, object files and flags are used when
16062 # linking a shared library.
16063 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16064 fi
16065
16066 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16067 fi
16068 ;;
16069 esac
16070 ;;
16071 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16072 archive_cmds_need_lc_CXX=no
16073 ;;
16074 tandem*)
16075 case $cc_basename in
16076 NCC)
16077 # NonStop-UX NCC 3.20
16078 # FIXME: insert proper C++ library support
16079 ld_shlibs_CXX=no
16080 ;;
16081 *)
16082 # FIXME: insert proper C++ library support
16083 ld_shlibs_CXX=no
16084 ;;
16085 esac
16086 ;;
16087 vxworks*)
16088 # FIXME: insert proper C++ library support
16089 ld_shlibs_CXX=no
16090 ;;
16091 *)
16092 # FIXME: insert proper C++ library support
16093 ld_shlibs_CXX=no
16094 ;;
16095esac
16096echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16097echo "${ECHO_T}$ld_shlibs_CXX" >&6
16098test "$ld_shlibs_CXX" = no && can_build_shared=no
16099
16100GCC_CXX="$GXX"
16101LD_CXX="$LD"
16102
John Criswell47fdd832003-07-14 16:52:07 +000016103
16104cat > conftest.$ac_ext <<EOF
16105class Foo
16106{
16107public:
16108 Foo (void) { a = 0; }
16109private:
16110 int a;
16111};
16112EOF
16113
16114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115 (eval $ac_compile) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; then
16119 # Parse the compiler output and extract the necessary
16120 # objects, libraries and library flags.
16121
16122 # Sentinel used to keep track of whether or not we are before
16123 # the conftest object file.
16124 pre_test_object_deps_done=no
16125
16126 # The `*' in the case matches for architectures that use `case' in
16127 # $output_verbose_cmd can trigger glob expansion during the loop
16128 # eval without this substitution.
16129 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16130
16131 for p in `eval $output_verbose_link_cmd`; do
16132 case $p in
16133
16134 -L* | -R* | -l*)
16135 # Some compilers place space between "-{L,R}" and the path.
16136 # Remove the space.
16137 if test $p = "-L" \
16138 || test $p = "-R"; then
16139 prev=$p
16140 continue
16141 else
16142 prev=
16143 fi
16144
16145 if test "$pre_test_object_deps_done" = no; then
16146 case $p in
16147 -L* | -R*)
16148 # Internal compiler library paths should come after those
16149 # provided the user. The postdeps already come after the
16150 # user supplied libs so there is no need to process them.
16151 if test -z "$compiler_lib_search_path_CXX"; then
16152 compiler_lib_search_path_CXX="${prev}${p}"
16153 else
16154 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16155 fi
16156 ;;
16157 # The "-l" case would never come before the object being
16158 # linked, so don't bother handling this case.
16159 esac
16160 else
16161 if test -z "$postdeps_CXX"; then
16162 postdeps_CXX="${prev}${p}"
16163 else
16164 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16165 fi
16166 fi
16167 ;;
16168
16169 *.$objext)
16170 # This assumes that the test object file only shows up
16171 # once in the compiler output.
16172 if test "$p" = "conftest.$objext"; then
16173 pre_test_object_deps_done=yes
16174 continue
16175 fi
16176
16177 if test "$pre_test_object_deps_done" = no; then
16178 if test -z "$predep_objects_CXX"; then
16179 predep_objects_CXX="$p"
16180 else
16181 predep_objects_CXX="$predep_objects_CXX $p"
16182 fi
16183 else
16184 if test -z "$postdep_objects_CXX"; then
16185 postdep_objects_CXX="$p"
16186 else
16187 postdep_objects_CXX="$postdep_objects_CXX $p"
16188 fi
16189 fi
16190 ;;
16191
16192 *) ;; # Ignore the rest.
16193
16194 esac
16195 done
16196
16197 # Clean up.
16198 rm -f a.out a.exe
16199else
16200 echo "libtool.m4: error: problem compiling CXX test program"
16201fi
16202
16203$rm -f confest.$objext
16204
16205case " $postdeps_CXX " in
16206*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16207esac
16208
16209lt_prog_compiler_wl_CXX=
16210lt_prog_compiler_pic_CXX=
16211lt_prog_compiler_static_CXX=
16212
16213echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16214echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16215
16216 # C++ specific cases for pic, static, wl, etc.
16217 if test "$GXX" = yes; then
16218 lt_prog_compiler_wl_CXX='-Wl,'
16219 lt_prog_compiler_static_CXX='-static'
16220
16221 case $host_os in
16222 aix*)
16223 # All AIX code is PIC.
16224 if test "$host_cpu" = ia64; then
16225 # AIX 5 now supports IA64 processor
16226 lt_prog_compiler_static_CXX='-Bstatic'
16227 fi
16228 ;;
16229 amigaos*)
16230 # FIXME: we need at least 68020 code to build shared libraries, but
16231 # adding the `-m68020' flag to GCC prevents building anything better,
16232 # like `-m68040'.
16233 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16234 ;;
16235 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16236 # PIC is the default for these OSes.
16237 ;;
16238 mingw* | os2* | pw32*)
16239 # This hack is so that the source file can tell whether it is being
16240 # built for inclusion in a dll (and should export symbols for example).
16241 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16242 ;;
16243 darwin* | rhapsody*)
16244 # PIC is the default on this platform
16245 # Common symbols not allowed in MH_DYLIB files
16246 lt_prog_compiler_pic_CXX='-fno-common'
16247 ;;
16248 *djgpp*)
16249 # DJGPP does not support shared libraries at all
16250 lt_prog_compiler_pic_CXX=
16251 ;;
16252 sysv4*MP*)
16253 if test -d /usr/nec; then
16254 lt_prog_compiler_pic_CXX=-Kconform_pic
16255 fi
16256 ;;
16257 hpux*)
16258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16259 # not for PA HP-UX.
16260 case "$host_cpu" in
16261 hppa*64*|ia64*)
16262 ;;
16263 *)
16264 lt_prog_compiler_pic_CXX='-fPIC'
16265 ;;
16266 esac
16267 ;;
16268 *)
16269 lt_prog_compiler_pic_CXX='-fPIC'
16270 ;;
16271 esac
16272 else
16273 case $host_os in
16274 aix4* | aix5*)
16275 # All AIX code is PIC.
16276 if test "$host_cpu" = ia64; then
16277 # AIX 5 now supports IA64 processor
16278 lt_prog_compiler_static_CXX='-Bstatic'
16279 else
16280 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16281 fi
16282 ;;
16283 chorus*)
16284 case $cc_basename in
16285 cxch68)
16286 # Green Hills C++ Compiler
16287 # _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"
16288 ;;
16289 esac
16290 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016291 darwin*)
16292 # PIC is the default on this platform
16293 # Common symbols not allowed in MH_DYLIB files
16294 case "$cc_basename" in
16295 xlc*)
16296 lt_prog_compiler_pic_CXX='-qnocommon'
16297 lt_prog_compiler_wl_CXX='-Wl,'
16298 ;;
16299 esac
16300 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016301 dgux*)
16302 case $cc_basename in
16303 ec++)
16304 lt_prog_compiler_pic_CXX='-KPIC'
16305 ;;
16306 ghcx)
16307 # Green Hills C++ Compiler
16308 lt_prog_compiler_pic_CXX='-pic'
16309 ;;
16310 *)
16311 ;;
16312 esac
16313 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016314 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016315 # FreeBSD uses GNU C++
16316 ;;
16317 hpux9* | hpux10* | hpux11*)
16318 case $cc_basename in
16319 CC)
16320 lt_prog_compiler_wl_CXX='-Wl,'
16321 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16322 if test "$host_cpu" != ia64; then
16323 lt_prog_compiler_pic_CXX='+Z'
16324 fi
16325 ;;
16326 aCC)
16327 lt_prog_compiler_wl_CXX='-Wl,'
16328 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16329 case "$host_cpu" in
16330 hppa*64*|ia64*)
16331 # +Z the default
16332 ;;
16333 *)
16334 lt_prog_compiler_pic_CXX='+Z'
16335 ;;
16336 esac
16337 ;;
16338 *)
16339 ;;
16340 esac
16341 ;;
16342 irix5* | irix6* | nonstopux*)
16343 case $cc_basename in
16344 CC)
16345 lt_prog_compiler_wl_CXX='-Wl,'
16346 lt_prog_compiler_static_CXX='-non_shared'
16347 # CC pic flag -KPIC is the default.
16348 ;;
16349 *)
16350 ;;
16351 esac
16352 ;;
16353 linux*)
16354 case $cc_basename in
16355 KCC)
16356 # KAI C++ Compiler
16357 lt_prog_compiler_wl_CXX='--backend -Wl,'
16358 lt_prog_compiler_pic_CXX='-fPIC'
16359 ;;
16360 icpc)
16361 # Intel C++
16362 lt_prog_compiler_wl_CXX='-Wl,'
16363 lt_prog_compiler_pic_CXX='-KPIC'
16364 lt_prog_compiler_static_CXX='-static'
16365 ;;
16366 cxx)
16367 # Compaq C++
16368 # Make sure the PIC flag is empty. It appears that all Alpha
16369 # Linux and Compaq Tru64 Unix objects are PIC.
16370 lt_prog_compiler_pic_CXX=
16371 lt_prog_compiler_static_CXX='-non_shared'
16372 ;;
16373 *)
16374 ;;
16375 esac
16376 ;;
16377 lynxos*)
16378 ;;
16379 m88k*)
16380 ;;
16381 mvs*)
16382 case $cc_basename in
16383 cxx)
16384 lt_prog_compiler_pic_CXX='-W c,exportall'
16385 ;;
16386 *)
16387 ;;
16388 esac
16389 ;;
16390 netbsd*)
16391 ;;
16392 osf3* | osf4* | osf5*)
16393 case $cc_basename in
16394 KCC)
16395 lt_prog_compiler_wl_CXX='--backend -Wl,'
16396 ;;
16397 RCC)
16398 # Rational C++ 2.4.1
16399 lt_prog_compiler_pic_CXX='-pic'
16400 ;;
16401 cxx)
16402 # Digital/Compaq C++
16403 lt_prog_compiler_wl_CXX='-Wl,'
16404 # Make sure the PIC flag is empty. It appears that all Alpha
16405 # Linux and Compaq Tru64 Unix objects are PIC.
16406 lt_prog_compiler_pic_CXX=
16407 lt_prog_compiler_static_CXX='-non_shared'
16408 ;;
16409 *)
16410 ;;
16411 esac
16412 ;;
16413 psos*)
16414 ;;
16415 sco*)
16416 case $cc_basename in
16417 CC)
16418 lt_prog_compiler_pic_CXX='-fPIC'
16419 ;;
16420 *)
16421 ;;
16422 esac
16423 ;;
16424 solaris*)
16425 case $cc_basename in
16426 CC)
16427 # Sun C++ 4.2, 5.x and Centerline C++
16428 lt_prog_compiler_pic_CXX='-KPIC'
16429 lt_prog_compiler_static_CXX='-Bstatic'
16430 lt_prog_compiler_wl_CXX='-Qoption ld '
16431 ;;
16432 gcx)
16433 # Green Hills C++ Compiler
16434 lt_prog_compiler_pic_CXX='-PIC'
16435 ;;
16436 *)
16437 ;;
16438 esac
16439 ;;
16440 sunos4*)
16441 case $cc_basename in
16442 CC)
16443 # Sun C++ 4.x
16444 lt_prog_compiler_pic_CXX='-pic'
16445 lt_prog_compiler_static_CXX='-Bstatic'
16446 ;;
16447 lcc)
16448 # Lucid
16449 lt_prog_compiler_pic_CXX='-pic'
16450 ;;
16451 *)
16452 ;;
16453 esac
16454 ;;
16455 tandem*)
16456 case $cc_basename in
16457 NCC)
16458 # NonStop-UX NCC 3.20
16459 lt_prog_compiler_pic_CXX='-KPIC'
16460 ;;
16461 *)
16462 ;;
16463 esac
16464 ;;
16465 unixware*)
16466 ;;
16467 vxworks*)
16468 ;;
16469 *)
16470 lt_prog_compiler_can_build_shared_CXX=no
16471 ;;
16472 esac
16473 fi
16474
16475echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16476echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16477
16478#
16479# Check to make sure the PIC flag actually works.
16480#
16481if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016482
16483echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016484echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16485if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487else
16488 lt_prog_compiler_pic_works_CXX=no
16489 ac_outfile=conftest.$ac_objext
16490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16491 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16492 # Insert the option either (1) after the last *FLAGS variable, or
16493 # (2) before a word containing "conftest.", or (3) at the end.
16494 # Note that $ac_compile itself does not contain backslashes and begins
16495 # with a dollar sign (not a hyphen), so the echo should work correctly.
16496 # The option is referenced via a variable to avoid confusing sed.
16497 lt_compile=`echo "$ac_compile" | $SED \
16498 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16500 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000016501 (eval echo "\"\$as_me:16501: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016502 (eval "$lt_compile" 2>conftest.err)
16503 ac_status=$?
16504 cat conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000016505 echo "$as_me:16505: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016506 if (exit $ac_status) && test -s "$ac_outfile"; then
16507 # The compiler can only warn and ignore the option if not recognized
16508 # So say no if there are warnings
16509 if test ! -s conftest.err; then
16510 lt_prog_compiler_pic_works_CXX=yes
16511 fi
16512 fi
16513 $rm conftest*
16514
16515fi
16516echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16517echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16518
16519if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16520 case $lt_prog_compiler_pic_CXX in
16521 "" | " "*) ;;
16522 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16523 esac
16524else
16525 lt_prog_compiler_pic_CXX=
16526 lt_prog_compiler_can_build_shared_CXX=no
16527fi
16528
16529fi
16530case "$host_os" in
16531 # For platforms which do not support PIC, -DPIC is meaningless:
16532 *djgpp*)
16533 lt_prog_compiler_pic_CXX=
16534 ;;
16535 *)
16536 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16537 ;;
16538esac
16539
16540echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16541echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16542if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16544else
16545 lt_cv_prog_compiler_c_o_CXX=no
16546 $rm -r conftest 2>/dev/null
16547 mkdir conftest
16548 cd conftest
16549 mkdir out
16550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16551
John Criswell47fdd832003-07-14 16:52:07 +000016552 lt_compiler_flag="-o out/conftest2.$ac_objext"
16553 # Insert the option either (1) after the last *FLAGS variable, or
16554 # (2) before a word containing "conftest.", or (3) at the end.
16555 # Note that $ac_compile itself does not contain backslashes and begins
16556 # with a dollar sign (not a hyphen), so the echo should work correctly.
16557 lt_compile=`echo "$ac_compile" | $SED \
16558 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16560 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000016561 (eval echo "\"\$as_me:16561: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016562 (eval "$lt_compile" 2>out/conftest.err)
16563 ac_status=$?
16564 cat out/conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000016565 echo "$as_me:16565: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16567 then
16568 # The compiler can only warn and ignore the option if not recognized
16569 # So say no if there are warnings
16570 if test ! -s out/conftest.err; then
16571 lt_cv_prog_compiler_c_o_CXX=yes
16572 fi
16573 fi
16574 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016575 $rm conftest*
16576 # SGI C++ compiler will create directory out/ii_files/ for
16577 # template instantiation
16578 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16579 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016580 cd ..
16581 rmdir conftest
16582 $rm conftest*
16583
16584fi
16585echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16586echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16587
16588
16589hard_links="nottested"
16590if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16591 # do not overwrite the value of need_locks provided by the user
16592 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16593echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16594 hard_links=yes
16595 $rm conftest*
16596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16597 touch conftest.a
16598 ln conftest.a conftest.b 2>&5 || hard_links=no
16599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16600 echo "$as_me:$LINENO: result: $hard_links" >&5
16601echo "${ECHO_T}$hard_links" >&6
16602 if test "$hard_links" = no; then
16603 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16604echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16605 need_locks=warn
16606 fi
16607else
16608 need_locks=no
16609fi
16610
16611echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16612echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16613
16614 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16615 case $host_os in
16616 aix4* | aix5*)
16617 # If we're using GNU nm, then we don't want the "-C" option.
16618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16620 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'
16621 else
16622 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'
16623 fi
16624 ;;
16625 pw32*)
16626 export_symbols_cmds_CXX="$ltdll_cmds"
16627 ;;
16628 cygwin* | mingw*)
16629 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16630 ;;
16631 *)
16632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16633 ;;
16634 esac
16635
16636echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16637echo "${ECHO_T}$ld_shlibs_CXX" >&6
16638test "$ld_shlibs_CXX" = no && can_build_shared=no
16639
16640variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16641if test "$GCC" = yes; then
16642 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16643fi
16644
16645#
16646# Do we need to explicitly link libc?
16647#
16648case "x$archive_cmds_need_lc_CXX" in
16649x|xyes)
16650 # Assume -lc should be added
16651 archive_cmds_need_lc_CXX=yes
16652
16653 if test "$enable_shared" = yes && test "$GCC" = yes; then
16654 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016655 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016656 # FIXME: we may have to deal with multi-command sequences.
16657 ;;
16658 '$CC '*)
16659 # Test whether the compiler implicitly links with -lc since on some
16660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16661 # to ld, don't add -lc before -lgcc.
16662 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16663echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16664 $rm conftest*
16665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16666
16667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16668 (eval $ac_compile) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } 2>conftest.err; then
16672 soname=conftest
16673 lib=conftest
16674 libobjs=conftest.$ac_objext
16675 deplibs=
16676 wl=$lt_prog_compiler_wl_CXX
16677 compiler_flags=-v
16678 linker_flags=-v
16679 verstring=
16680 output_objdir=.
16681 libname=conftest
16682 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16683 allow_undefined_flag_CXX=
16684 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16685 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }
16689 then
16690 archive_cmds_need_lc_CXX=no
16691 else
16692 archive_cmds_need_lc_CXX=yes
16693 fi
16694 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16695 else
16696 cat conftest.err 1>&5
16697 fi
16698 $rm conftest*
16699 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16700echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16701 ;;
16702 esac
16703 fi
16704 ;;
16705esac
16706
John Criswell47fdd832003-07-14 16:52:07 +000016707echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16708echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16709library_names_spec=
16710libname_spec='lib$name'
16711soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016712shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016713postinstall_cmds=
16714postuninstall_cmds=
16715finish_cmds=
16716finish_eval=
16717shlibpath_var=
16718shlibpath_overrides_runpath=unknown
16719version_type=none
16720dynamic_linker="$host_os ld.so"
16721sys_lib_dlsearch_path_spec="/lib /usr/lib"
16722if test "$GCC" = yes; then
16723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16724 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16725 # if the path contains ";" then we assume it to be the separator
16726 # otherwise default to the standard path separator (i.e. ":") - it is
16727 # assumed that no part of a normal pathname contains ";" but that should
16728 # okay in the real world where ";" in dirpaths is itself problematic.
16729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16730 else
16731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16732 fi
16733else
16734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16735fi
16736need_lib_prefix=unknown
16737hardcode_into_libs=no
16738
16739# when you set need_version to no, make sure it does not cause -set_version
16740# flags to be left without arguments
16741need_version=unknown
16742
16743case $host_os in
16744aix3*)
16745 version_type=linux
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16747 shlibpath_var=LIBPATH
16748
16749 # AIX 3 has no versioning support, so we append a major version to the name.
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 ;;
16752
16753aix4* | aix5*)
16754 version_type=linux
16755 need_lib_prefix=no
16756 need_version=no
16757 hardcode_into_libs=yes
16758 if test "$host_cpu" = ia64; then
16759 # AIX 5 supports IA64
16760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 else
16763 # With GCC up to 2.95.x, collect2 would create an import file
16764 # for dependence libraries. The import file would start with
16765 # the line `#! .'. This would cause the generated library to
16766 # depend on `.', always an invalid library. This was fixed in
16767 # development snapshots of GCC prior to 3.0.
16768 case $host_os in
16769 aix4 | aix4.[01] | aix4.[01].*)
16770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16771 echo ' yes '
16772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16773 :
16774 else
16775 can_build_shared=no
16776 fi
16777 ;;
16778 esac
16779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16780 # soname into executable. Probably we can add versioning support to
16781 # collect2, so additional links can be useful in future.
16782 if test "$aix_use_runtimelinking" = yes; then
16783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16784 # instead of lib<name>.a to let people know that these are not
16785 # typical AIX shared libraries.
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16787 else
16788 # We preserve .a as extension for shared libraries through AIX4.2
16789 # and later when we are not doing run time linking.
16790 library_names_spec='${libname}${release}.a $libname.a'
16791 soname_spec='${libname}${release}${shared_ext}$major'
16792 fi
16793 shlibpath_var=LIBPATH
16794 fi
16795 ;;
16796
16797amigaos*)
16798 library_names_spec='$libname.ixlibrary $libname.a'
16799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016800 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 +000016801 ;;
16802
16803beos*)
16804 library_names_spec='${libname}${shared_ext}'
16805 dynamic_linker="$host_os ld.so"
16806 shlibpath_var=LIBRARY_PATH
16807 ;;
16808
Reid Spencer2706f8c2004-09-19 23:53:36 +000016809bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016810 version_type=linux
16811 need_version=no
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16818 # the default ld.so.conf also contains /usr/contrib/lib and
16819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16820 # libtool to hard-code these into programs
16821 ;;
16822
16823cygwin* | mingw* | pw32*)
16824 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016825 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016826 need_version=no
16827 need_lib_prefix=no
16828
16829 case $GCC,$host_os in
16830 yes,cygwin* | yes,mingw* | yes,pw32*)
16831 library_names_spec='$libname.dll.a'
16832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016833 postinstall_cmds='base_file=`basename \${file}`~
16834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16835 dldir=$destdir/`dirname \$dlpath`~
16836 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016837 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16839 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016840 $rm \$dlpath'
16841 shlibpath_overrides_runpath=yes
16842
16843 case $host_os in
16844 cygwin*)
16845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16846 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 +000016847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016848 ;;
16849 mingw*)
16850 # MinGW DLLs use traditional 'lib' prefix
16851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16854 # It is most probably a Windows format PATH printed by
16855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16856 # path with ; separators, and with drive letters. We can handle the
16857 # drive letters (cygwin fileutils understands them), so leave them,
16858 # especially as we might pass files found there to a mingw objdump,
16859 # which wouldn't understand a cygwinified path. Ahh.
16860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16861 else
16862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16863 fi
16864 ;;
16865 pw32*)
16866 # pw32 DLLs use 'pw' prefix rather than 'lib'
16867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16868 ;;
16869 esac
16870 ;;
16871
16872 *)
16873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16874 ;;
16875 esac
16876 dynamic_linker='Win32 ld.exe'
16877 # FIXME: first we should search . and the directory the executable is in
16878 shlibpath_var=PATH
16879 ;;
16880
16881darwin* | rhapsody*)
16882 dynamic_linker="$host_os dyld"
16883 version_type=darwin
16884 need_lib_prefix=no
16885 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016886 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016887 soname_spec='${libname}${release}${major}$shared_ext'
16888 shlibpath_overrides_runpath=yes
16889 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016890 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016891 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016892 if test "$GCC" = yes; then
16893 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"`
16894 else
16895 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016896 fi
16897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16898 ;;
16899
16900dgux*)
16901 version_type=linux
16902 need_lib_prefix=no
16903 need_version=no
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 shlibpath_var=LD_LIBRARY_PATH
16907 ;;
16908
16909freebsd1*)
16910 dynamic_linker=no
16911 ;;
16912
Reid Spencer2706f8c2004-09-19 23:53:36 +000016913kfreebsd*-gnu)
16914 version_type=linux
16915 need_lib_prefix=no
16916 need_version=no
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 shlibpath_var=LD_LIBRARY_PATH
16920 shlibpath_overrides_runpath=no
16921 hardcode_into_libs=yes
16922 dynamic_linker='GNU ld.so'
16923 ;;
16924
John Criswell47fdd832003-07-14 16:52:07 +000016925freebsd*)
16926 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16927 version_type=freebsd-$objformat
16928 case $version_type in
16929 freebsd-elf*)
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16931 need_version=no
16932 need_lib_prefix=no
16933 ;;
16934 freebsd-*)
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16936 need_version=yes
16937 ;;
16938 esac
16939 shlibpath_var=LD_LIBRARY_PATH
16940 case $host_os in
16941 freebsd2*)
16942 shlibpath_overrides_runpath=yes
16943 ;;
16944 freebsd3.01* | freebsdelf3.01*)
16945 shlibpath_overrides_runpath=yes
16946 hardcode_into_libs=yes
16947 ;;
16948 *) # from 3.2 on
16949 shlibpath_overrides_runpath=no
16950 hardcode_into_libs=yes
16951 ;;
16952 esac
16953 ;;
16954
16955gnu*)
16956 version_type=linux
16957 need_lib_prefix=no
16958 need_version=no
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 hardcode_into_libs=yes
16963 ;;
16964
16965hpux9* | hpux10* | hpux11*)
16966 # Give a soname corresponding to the major version so that dld.sl refuses to
16967 # link against other versions.
16968 version_type=sunos
16969 need_lib_prefix=no
16970 need_version=no
16971 case "$host_cpu" in
16972 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016973 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016974 hardcode_into_libs=yes
16975 dynamic_linker="$host_os dld.so"
16976 shlibpath_var=LD_LIBRARY_PATH
16977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 if test "X$HPUX_IA64_MODE" = X32; then
16981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16982 else
16983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16984 fi
16985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16986 ;;
16987 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016988 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016989 hardcode_into_libs=yes
16990 dynamic_linker="$host_os dld.sl"
16991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16994 soname_spec='${libname}${release}${shared_ext}$major'
16995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16997 ;;
16998 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016999 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017000 dynamic_linker="$host_os dld.sl"
17001 shlibpath_var=SHLIB_PATH
17002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 ;;
17006 esac
17007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17008 postinstall_cmds='chmod 555 $lib'
17009 ;;
17010
17011irix5* | irix6* | nonstopux*)
17012 case $host_os in
17013 nonstopux*) version_type=nonstopux ;;
17014 *)
17015 if test "$lt_cv_prog_gnu_ld" = yes; then
17016 version_type=linux
17017 else
17018 version_type=irix
17019 fi ;;
17020 esac
17021 need_lib_prefix=no
17022 need_version=no
17023 soname_spec='${libname}${release}${shared_ext}$major'
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17025 case $host_os in
17026 irix5* | nonstopux*)
17027 libsuff= shlibsuff=
17028 ;;
17029 *)
17030 case $LD in # libtool.m4 will add one of these switches to LD
17031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17032 libsuff= shlibsuff= libmagic=32-bit;;
17033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17034 libsuff=32 shlibsuff=N32 libmagic=N32;;
17035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17037 *) libsuff= shlibsuff= libmagic=never-match;;
17038 esac
17039 ;;
17040 esac
17041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17042 shlibpath_overrides_runpath=no
17043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17045 hardcode_into_libs=yes
17046 ;;
17047
17048# No shared lib support for Linux oldld, aout, or coff.
17049linux*oldld* | linux*aout* | linux*coff*)
17050 dynamic_linker=no
17051 ;;
17052
17053# This must be Linux ELF.
17054linux*)
17055 version_type=linux
17056 need_lib_prefix=no
17057 need_version=no
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17061 shlibpath_var=LD_LIBRARY_PATH
17062 shlibpath_overrides_runpath=no
17063 # This implies no fast_install, which is unacceptable.
17064 # Some rework will be needed to allow for fast_install
17065 # before this can be enabled.
17066 hardcode_into_libs=yes
17067
Reid Spencer2706f8c2004-09-19 23:53:36 +000017068 # Append ld.so.conf contents to the search path
17069 if test -f /etc/ld.so.conf; then
17070 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17071 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17072 fi
17073
John Criswell47fdd832003-07-14 16:52:07 +000017074 # We used to test for /lib/ld.so.1 and disable shared libraries on
17075 # powerpc, because MkLinux only supported shared libraries with the
17076 # GNU dynamic linker. Since this was broken with cross compilers,
17077 # most powerpc-linux boxes support dynamic linking these days and
17078 # people can always --disable-shared, the test was removed, and we
17079 # assume the GNU/Linux dynamic linker is in use.
17080 dynamic_linker='GNU/Linux ld.so'
17081 ;;
17082
Reid Spencer2706f8c2004-09-19 23:53:36 +000017083knetbsd*-gnu)
17084 version_type=linux
17085 need_lib_prefix=no
17086 need_version=no
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 shlibpath_overrides_runpath=no
17091 hardcode_into_libs=yes
17092 dynamic_linker='GNU ld.so'
17093 ;;
17094
John Criswell47fdd832003-07-14 16:52:07 +000017095netbsd*)
17096 version_type=sunos
17097 need_lib_prefix=no
17098 need_version=no
17099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17102 dynamic_linker='NetBSD (a.out) ld.so'
17103 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017105 soname_spec='${libname}${release}${shared_ext}$major'
17106 dynamic_linker='NetBSD ld.elf_so'
17107 fi
17108 shlibpath_var=LD_LIBRARY_PATH
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17111 ;;
17112
17113newsos6)
17114 version_type=linux
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116 shlibpath_var=LD_LIBRARY_PATH
17117 shlibpath_overrides_runpath=yes
17118 ;;
17119
Reid Spencer2706f8c2004-09-19 23:53:36 +000017120nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017121 version_type=linux
17122 need_lib_prefix=no
17123 need_version=no
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath=yes
17128 ;;
17129
17130openbsd*)
17131 version_type=sunos
17132 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017133 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17138 case $host_os in
17139 openbsd2.[89] | openbsd2.[89].*)
17140 shlibpath_overrides_runpath=no
17141 ;;
17142 *)
17143 shlibpath_overrides_runpath=yes
17144 ;;
17145 esac
17146 else
17147 shlibpath_overrides_runpath=yes
17148 fi
17149 ;;
17150
17151os2*)
17152 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017153 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017154 need_lib_prefix=no
17155 library_names_spec='$libname${shared_ext} $libname.a'
17156 dynamic_linker='OS/2 ld.exe'
17157 shlibpath_var=LIBPATH
17158 ;;
17159
17160osf3* | osf4* | osf5*)
17161 version_type=osf
17162 need_lib_prefix=no
17163 need_version=no
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17168 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17169 ;;
17170
17171sco3.2v5*)
17172 version_type=osf
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 ;;
17177
17178solaris*)
17179 version_type=linux
17180 need_lib_prefix=no
17181 need_version=no
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=yes
17186 hardcode_into_libs=yes
17187 # ldd complains unless libraries are executable
17188 postinstall_cmds='chmod +x $lib'
17189 ;;
17190
17191sunos4*)
17192 version_type=sunos
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath=yes
17197 if test "$with_gnu_ld" = yes; then
17198 need_lib_prefix=no
17199 fi
17200 need_version=yes
17201 ;;
17202
17203sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17204 version_type=linux
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 case $host_vendor in
17209 sni)
17210 shlibpath_overrides_runpath=no
17211 need_lib_prefix=no
17212 export_dynamic_flag_spec='${wl}-Blargedynsym'
17213 runpath_var=LD_RUN_PATH
17214 ;;
17215 siemens)
17216 need_lib_prefix=no
17217 ;;
17218 motorola)
17219 need_lib_prefix=no
17220 need_version=no
17221 shlibpath_overrides_runpath=no
17222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17223 ;;
17224 esac
17225 ;;
17226
17227sysv4*MP*)
17228 if test -d /usr/nec ;then
17229 version_type=linux
17230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17231 soname_spec='$libname${shared_ext}.$major'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 fi
17234 ;;
17235
17236uts4*)
17237 version_type=linux
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 ;;
17242
17243*)
17244 dynamic_linker=no
17245 ;;
17246esac
17247echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17248echo "${ECHO_T}$dynamic_linker" >&6
17249test "$dynamic_linker" = no && can_build_shared=no
17250
Reid Spencer2706f8c2004-09-19 23:53:36 +000017251echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17252echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17253hardcode_action_CXX=
17254if test -n "$hardcode_libdir_flag_spec_CXX" || \
17255 test -n "$runpath_var_CXX" || \
17256 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17257
17258 # We can hardcode non-existant directories.
17259 if test "$hardcode_direct_CXX" != no &&
17260 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17261 # have to relink, otherwise we might link with an installed library
17262 # when we should be linking with a yet-to-be-installed one
17263 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17264 test "$hardcode_minus_L_CXX" != no; then
17265 # Linking always hardcodes the temporary library directory.
17266 hardcode_action_CXX=relink
17267 else
17268 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17269 hardcode_action_CXX=immediate
17270 fi
17271else
17272 # We cannot hardcode anything, or else we can only hardcode existing
17273 # directories.
17274 hardcode_action_CXX=unsupported
17275fi
17276echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17277echo "${ECHO_T}$hardcode_action_CXX" >&6
17278
17279if test "$hardcode_action_CXX" = relink; then
17280 # Fast installation is not supported
17281 enable_fast_install=no
17282elif test "$shlibpath_overrides_runpath" = yes ||
17283 test "$enable_shared" = no; then
17284 # Fast installation is not necessary
17285 enable_fast_install=needless
17286fi
17287
17288striplib=
17289old_striplib=
17290echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17291echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17292if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17293 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17294 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17295 echo "$as_me:$LINENO: result: yes" >&5
17296echo "${ECHO_T}yes" >&6
17297else
17298# FIXME - insert some real tests, host_os isn't really good enough
17299 case $host_os in
17300 darwin*)
17301 if test -n "$STRIP" ; then
17302 striplib="$STRIP -x"
17303 echo "$as_me:$LINENO: result: yes" >&5
17304echo "${ECHO_T}yes" >&6
17305 else
17306 echo "$as_me:$LINENO: result: no" >&5
17307echo "${ECHO_T}no" >&6
17308fi
17309 ;;
17310 *)
17311 echo "$as_me:$LINENO: result: no" >&5
17312echo "${ECHO_T}no" >&6
17313 ;;
17314 esac
17315fi
17316
John Criswell47fdd832003-07-14 16:52:07 +000017317if test "x$enable_dlopen" != xyes; then
17318 enable_dlopen=unknown
17319 enable_dlopen_self=unknown
17320 enable_dlopen_self_static=unknown
17321else
17322 lt_cv_dlopen=no
17323 lt_cv_dlopen_libs=
17324
17325 case $host_os in
17326 beos*)
17327 lt_cv_dlopen="load_add_on"
17328 lt_cv_dlopen_libs=
17329 lt_cv_dlopen_self=yes
17330 ;;
17331
17332 mingw* | pw32*)
17333 lt_cv_dlopen="LoadLibrary"
17334 lt_cv_dlopen_libs=
17335 ;;
17336
17337 cygwin*)
17338 lt_cv_dlopen="dlopen"
17339 lt_cv_dlopen_libs=
17340 ;;
17341
17342 darwin*)
17343 # if libdl is installed we need to link against it
17344 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17345echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17346if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348else
17349 ac_check_lib_save_LIBS=$LIBS
17350LIBS="-ldl $LIBS"
17351cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017357
17358/* Override any gcc2 internal prototype to avoid an error. */
17359#ifdef __cplusplus
17360extern "C"
17361#endif
17362/* We use char because int might match the return type of a gcc2
17363 builtin and then its argument prototype would still apply. */
17364char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017365int
17366main ()
17367{
17368dlopen ();
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext conftest$ac_exeext
17374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017375 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017382 { ac_try='test -z "$ac_cxx_werror_flag"
17383 || test ! -s conftest.err'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_cv_lib_dl_dlopen=yes
17396else
17397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017398sed 's/^/| /' conftest.$ac_ext >&5
17399
John Criswell47fdd832003-07-14 16:52:07 +000017400ac_cv_lib_dl_dlopen=no
17401fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017402rm -f conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017404LIBS=$ac_check_lib_save_LIBS
17405fi
17406echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17407echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17408if test $ac_cv_lib_dl_dlopen = yes; then
17409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17410else
17411
17412 lt_cv_dlopen="dyld"
17413 lt_cv_dlopen_libs=
17414 lt_cv_dlopen_self=yes
17415
17416fi
17417
17418 ;;
17419
17420 *)
17421 echo "$as_me:$LINENO: checking for shl_load" >&5
17422echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17423if test "${ac_cv_func_shl_load+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17425else
17426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017432/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17434#define shl_load innocuous_shl_load
17435
John Criswell47fdd832003-07-14 16:52:07 +000017436/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017437 which can conflict with char shl_load (); below.
17438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17439 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017440
John Criswell0c38eaf2003-09-10 15:17:25 +000017441#ifdef __STDC__
17442# include <limits.h>
17443#else
17444# include <assert.h>
17445#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017446
17447#undef shl_load
17448
John Criswell47fdd832003-07-14 16:52:07 +000017449/* Override any gcc2 internal prototype to avoid an error. */
17450#ifdef __cplusplus
17451extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017452{
John Criswell47fdd832003-07-14 16:52:07 +000017453#endif
17454/* We use char because int might match the return type of a gcc2
17455 builtin and then its argument prototype would still apply. */
17456char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017457/* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460#if defined (__stub_shl_load) || defined (__stub___shl_load)
17461choke me
17462#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017463char (*f) () = shl_load;
17464#endif
17465#ifdef __cplusplus
17466}
John Criswell47fdd832003-07-14 16:52:07 +000017467#endif
17468
John Criswell0c38eaf2003-09-10 15:17:25 +000017469int
17470main ()
17471{
17472return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017473 ;
17474 return 0;
17475}
17476_ACEOF
17477rm -f conftest.$ac_objext conftest$ac_exeext
17478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017479 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017480 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017486 { ac_try='test -z "$ac_cxx_werror_flag"
17487 || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_cv_func_shl_load=yes
17500else
17501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017502sed 's/^/| /' conftest.$ac_ext >&5
17503
John Criswell47fdd832003-07-14 16:52:07 +000017504ac_cv_func_shl_load=no
17505fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017506rm -f conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017508fi
17509echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17510echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17511if test $ac_cv_func_shl_load = yes; then
17512 lt_cv_dlopen="shl_load"
17513else
17514 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17515echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17516if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17518else
17519 ac_check_lib_save_LIBS=$LIBS
17520LIBS="-ldld $LIBS"
17521cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017527
17528/* Override any gcc2 internal prototype to avoid an error. */
17529#ifdef __cplusplus
17530extern "C"
17531#endif
17532/* We use char because int might match the return type of a gcc2
17533 builtin and then its argument prototype would still apply. */
17534char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017535int
17536main ()
17537{
17538shl_load ();
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext conftest$ac_exeext
17544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017545 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017546 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017552 { ac_try='test -z "$ac_cxx_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_lib_dld_shl_load=yes
17566else
17567 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017568sed 's/^/| /' conftest.$ac_ext >&5
17569
John Criswell47fdd832003-07-14 16:52:07 +000017570ac_cv_lib_dld_shl_load=no
17571fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017572rm -f conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017574LIBS=$ac_check_lib_save_LIBS
17575fi
17576echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17577echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17578if test $ac_cv_lib_dld_shl_load = yes; then
17579 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17580else
17581 echo "$as_me:$LINENO: checking for dlopen" >&5
17582echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17583if test "${ac_cv_func_dlopen+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17585else
17586 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017592/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594#define dlopen innocuous_dlopen
17595
John Criswell47fdd832003-07-14 16:52:07 +000017596/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017597 which can conflict with char dlopen (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017600
John Criswell0c38eaf2003-09-10 15:17:25 +000017601#ifdef __STDC__
17602# include <limits.h>
17603#else
17604# include <assert.h>
17605#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017606
17607#undef dlopen
17608
John Criswell47fdd832003-07-14 16:52:07 +000017609/* Override any gcc2 internal prototype to avoid an error. */
17610#ifdef __cplusplus
17611extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017612{
John Criswell47fdd832003-07-14 16:52:07 +000017613#endif
17614/* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17616char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017617/* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620#if defined (__stub_dlopen) || defined (__stub___dlopen)
17621choke me
17622#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017623char (*f) () = dlopen;
17624#endif
17625#ifdef __cplusplus
17626}
John Criswell47fdd832003-07-14 16:52:07 +000017627#endif
17628
John Criswell0c38eaf2003-09-10 15:17:25 +000017629int
17630main ()
17631{
17632return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext conftest$ac_exeext
17638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017639 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017640 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017646 { ac_try='test -z "$ac_cxx_werror_flag"
17647 || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_func_dlopen=yes
17660else
17661 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017662sed 's/^/| /' conftest.$ac_ext >&5
17663
John Criswell47fdd832003-07-14 16:52:07 +000017664ac_cv_func_dlopen=no
17665fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017666rm -f conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017668fi
17669echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17670echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17671if test $ac_cv_func_dlopen = yes; then
17672 lt_cv_dlopen="dlopen"
17673else
17674 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17675echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17676if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678else
17679 ac_check_lib_save_LIBS=$LIBS
17680LIBS="-ldl $LIBS"
17681cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017682/* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017687
17688/* Override any gcc2 internal prototype to avoid an error. */
17689#ifdef __cplusplus
17690extern "C"
17691#endif
17692/* We use char because int might match the return type of a gcc2
17693 builtin and then its argument prototype would still apply. */
17694char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017695int
17696main ()
17697{
17698dlopen ();
17699 ;
17700 return 0;
17701}
17702_ACEOF
17703rm -f conftest.$ac_objext conftest$ac_exeext
17704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017705 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017712 { ac_try='test -z "$ac_cxx_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_lib_dl_dlopen=yes
17726else
17727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017728sed 's/^/| /' conftest.$ac_ext >&5
17729
John Criswell47fdd832003-07-14 16:52:07 +000017730ac_cv_lib_dl_dlopen=no
17731fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017732rm -f conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017734LIBS=$ac_check_lib_save_LIBS
17735fi
17736echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17737echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17738if test $ac_cv_lib_dl_dlopen = yes; then
17739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17740else
17741 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17742echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17743if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17745else
17746 ac_check_lib_save_LIBS=$LIBS
17747LIBS="-lsvld $LIBS"
17748cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017749/* confdefs.h. */
17750_ACEOF
17751cat confdefs.h >>conftest.$ac_ext
17752cat >>conftest.$ac_ext <<_ACEOF
17753/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017754
17755/* Override any gcc2 internal prototype to avoid an error. */
17756#ifdef __cplusplus
17757extern "C"
17758#endif
17759/* We use char because int might match the return type of a gcc2
17760 builtin and then its argument prototype would still apply. */
17761char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017762int
17763main ()
17764{
17765dlopen ();
17766 ;
17767 return 0;
17768}
17769_ACEOF
17770rm -f conftest.$ac_objext conftest$ac_exeext
17771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017772 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017774 grep -v '^ *+' conftest.er1 >conftest.err
17775 rm -f conftest.er1
17776 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017779 { ac_try='test -z "$ac_cxx_werror_flag"
17780 || test ! -s conftest.err'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ac_cv_lib_svld_dlopen=yes
17793else
17794 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017795sed 's/^/| /' conftest.$ac_ext >&5
17796
John Criswell47fdd832003-07-14 16:52:07 +000017797ac_cv_lib_svld_dlopen=no
17798fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017799rm -f conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017801LIBS=$ac_check_lib_save_LIBS
17802fi
17803echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17804echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17805if test $ac_cv_lib_svld_dlopen = yes; then
17806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17807else
17808 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17809echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17810if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17812else
17813 ac_check_lib_save_LIBS=$LIBS
17814LIBS="-ldld $LIBS"
17815cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017816/* confdefs.h. */
17817_ACEOF
17818cat confdefs.h >>conftest.$ac_ext
17819cat >>conftest.$ac_ext <<_ACEOF
17820/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017821
17822/* Override any gcc2 internal prototype to avoid an error. */
17823#ifdef __cplusplus
17824extern "C"
17825#endif
17826/* We use char because int might match the return type of a gcc2
17827 builtin and then its argument prototype would still apply. */
17828char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017829int
17830main ()
17831{
17832dld_link ();
17833 ;
17834 return 0;
17835}
17836_ACEOF
17837rm -f conftest.$ac_objext conftest$ac_exeext
17838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017839 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017840 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017846 { ac_try='test -z "$ac_cxx_werror_flag"
17847 || test ! -s conftest.err'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859 ac_cv_lib_dld_dld_link=yes
17860else
17861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017862sed 's/^/| /' conftest.$ac_ext >&5
17863
John Criswell47fdd832003-07-14 16:52:07 +000017864ac_cv_lib_dld_dld_link=no
17865fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017866rm -f conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017868LIBS=$ac_check_lib_save_LIBS
17869fi
17870echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17871echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17872if test $ac_cv_lib_dld_dld_link = yes; then
17873 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17874fi
17875
17876
17877fi
17878
17879
17880fi
17881
17882
17883fi
17884
17885
17886fi
17887
17888
17889fi
17890
17891 ;;
17892 esac
17893
17894 if test "x$lt_cv_dlopen" != xno; then
17895 enable_dlopen=yes
17896 else
17897 enable_dlopen=no
17898 fi
17899
17900 case $lt_cv_dlopen in
17901 dlopen)
17902 save_CPPFLAGS="$CPPFLAGS"
17903 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17904
17905 save_LDFLAGS="$LDFLAGS"
17906 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17907
17908 save_LIBS="$LIBS"
17909 LIBS="$lt_cv_dlopen_libs $LIBS"
17910
17911 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17912echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17913if test "${lt_cv_dlopen_self+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915else
17916 if test "$cross_compiling" = yes; then :
17917 lt_cv_dlopen_self=cross
17918else
17919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17920 lt_status=$lt_dlunknown
17921 cat > conftest.$ac_ext <<EOF
Reid Spencer78ba11d2005-02-16 16:21:00 +000017922#line 17922 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017923#include "confdefs.h"
17924
17925#if HAVE_DLFCN_H
17926#include <dlfcn.h>
17927#endif
17928
17929#include <stdio.h>
17930
17931#ifdef RTLD_GLOBAL
17932# define LT_DLGLOBAL RTLD_GLOBAL
17933#else
17934# ifdef DL_GLOBAL
17935# define LT_DLGLOBAL DL_GLOBAL
17936# else
17937# define LT_DLGLOBAL 0
17938# endif
17939#endif
17940
17941/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17942 find out it does not work in some platform. */
17943#ifndef LT_DLLAZY_OR_NOW
17944# ifdef RTLD_LAZY
17945# define LT_DLLAZY_OR_NOW RTLD_LAZY
17946# else
17947# ifdef DL_LAZY
17948# define LT_DLLAZY_OR_NOW DL_LAZY
17949# else
17950# ifdef RTLD_NOW
17951# define LT_DLLAZY_OR_NOW RTLD_NOW
17952# else
17953# ifdef DL_NOW
17954# define LT_DLLAZY_OR_NOW DL_NOW
17955# else
17956# define LT_DLLAZY_OR_NOW 0
17957# endif
17958# endif
17959# endif
17960# endif
17961#endif
17962
17963#ifdef __cplusplus
17964extern "C" void exit (int);
17965#endif
17966
17967void fnord() { int i=42;}
17968int main ()
17969{
17970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17971 int status = $lt_dlunknown;
17972
17973 if (self)
17974 {
17975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17976 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17977 /* dlclose (self); */
17978 }
17979
17980 exit (status);
17981}
17982EOF
17983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984 (eval $ac_link) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17988 (./conftest; exit; ) 2>/dev/null
17989 lt_status=$?
17990 case x$lt_status in
17991 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17992 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17993 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17994 esac
17995 else :
17996 # compilation failed
17997 lt_cv_dlopen_self=no
17998 fi
17999fi
18000rm -fr conftest*
18001
18002
18003fi
18004echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18005echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18006
18007 if test "x$lt_cv_dlopen_self" = xyes; then
18008 LDFLAGS="$LDFLAGS $link_static_flag"
18009 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18010echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18011if test "${lt_cv_dlopen_self_static+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013else
18014 if test "$cross_compiling" = yes; then :
18015 lt_cv_dlopen_self_static=cross
18016else
18017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18018 lt_status=$lt_dlunknown
18019 cat > conftest.$ac_ext <<EOF
Reid Spencer78ba11d2005-02-16 16:21:00 +000018020#line 18020 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018021#include "confdefs.h"
18022
18023#if HAVE_DLFCN_H
18024#include <dlfcn.h>
18025#endif
18026
18027#include <stdio.h>
18028
18029#ifdef RTLD_GLOBAL
18030# define LT_DLGLOBAL RTLD_GLOBAL
18031#else
18032# ifdef DL_GLOBAL
18033# define LT_DLGLOBAL DL_GLOBAL
18034# else
18035# define LT_DLGLOBAL 0
18036# endif
18037#endif
18038
18039/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18040 find out it does not work in some platform. */
18041#ifndef LT_DLLAZY_OR_NOW
18042# ifdef RTLD_LAZY
18043# define LT_DLLAZY_OR_NOW RTLD_LAZY
18044# else
18045# ifdef DL_LAZY
18046# define LT_DLLAZY_OR_NOW DL_LAZY
18047# else
18048# ifdef RTLD_NOW
18049# define LT_DLLAZY_OR_NOW RTLD_NOW
18050# else
18051# ifdef DL_NOW
18052# define LT_DLLAZY_OR_NOW DL_NOW
18053# else
18054# define LT_DLLAZY_OR_NOW 0
18055# endif
18056# endif
18057# endif
18058# endif
18059#endif
18060
18061#ifdef __cplusplus
18062extern "C" void exit (int);
18063#endif
18064
18065void fnord() { int i=42;}
18066int main ()
18067{
18068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18069 int status = $lt_dlunknown;
18070
18071 if (self)
18072 {
18073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18075 /* dlclose (self); */
18076 }
18077
18078 exit (status);
18079}
18080EOF
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18086 (./conftest; exit; ) 2>/dev/null
18087 lt_status=$?
18088 case x$lt_status in
18089 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18090 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18091 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18092 esac
18093 else :
18094 # compilation failed
18095 lt_cv_dlopen_self_static=no
18096 fi
18097fi
18098rm -fr conftest*
18099
18100
18101fi
18102echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18103echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18104 fi
18105
18106 CPPFLAGS="$save_CPPFLAGS"
18107 LDFLAGS="$save_LDFLAGS"
18108 LIBS="$save_LIBS"
18109 ;;
18110 esac
18111
18112 case $lt_cv_dlopen_self in
18113 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18114 *) enable_dlopen_self=unknown ;;
18115 esac
18116
18117 case $lt_cv_dlopen_self_static in
18118 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18119 *) enable_dlopen_self_static=unknown ;;
18120 esac
18121fi
18122
18123
18124# The else clause should only fire when bootstrapping the
18125# libtool distribution, otherwise you forgot to ship ltmain.sh
18126# with your package, and you will get complaints that there are
18127# no rules to generate ltmain.sh.
18128if test -f "$ltmain"; then
18129 # See if we are running on zsh, and set the options which allow our commands through
18130 # without removal of \ escapes.
18131 if test -n "${ZSH_VERSION+set}" ; then
18132 setopt NO_GLOB_SUBST
18133 fi
18134 # Now quote all the things that may contain metacharacters while being
18135 # careful not to overquote the AC_SUBSTed values. We take copies of the
18136 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018137 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18138 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018139 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18140 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18141 deplibs_check_method reload_flag reload_cmds need_locks \
18142 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18143 lt_cv_sys_global_symbol_to_c_name_address \
18144 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18145 old_postinstall_cmds old_postuninstall_cmds \
18146 compiler_CXX \
18147 CC_CXX \
18148 LD_CXX \
18149 lt_prog_compiler_wl_CXX \
18150 lt_prog_compiler_pic_CXX \
18151 lt_prog_compiler_static_CXX \
18152 lt_prog_compiler_no_builtin_flag_CXX \
18153 export_dynamic_flag_spec_CXX \
18154 thread_safe_flag_spec_CXX \
18155 whole_archive_flag_spec_CXX \
18156 enable_shared_with_static_runtimes_CXX \
18157 old_archive_cmds_CXX \
18158 old_archive_from_new_cmds_CXX \
18159 predep_objects_CXX \
18160 postdep_objects_CXX \
18161 predeps_CXX \
18162 postdeps_CXX \
18163 compiler_lib_search_path_CXX \
18164 archive_cmds_CXX \
18165 archive_expsym_cmds_CXX \
18166 postinstall_cmds_CXX \
18167 postuninstall_cmds_CXX \
18168 old_archive_from_expsyms_cmds_CXX \
18169 allow_undefined_flag_CXX \
18170 no_undefined_flag_CXX \
18171 export_symbols_cmds_CXX \
18172 hardcode_libdir_flag_spec_CXX \
18173 hardcode_libdir_flag_spec_ld_CXX \
18174 hardcode_libdir_separator_CXX \
18175 hardcode_automatic_CXX \
18176 module_cmds_CXX \
18177 module_expsym_cmds_CXX \
18178 lt_cv_prog_compiler_c_o_CXX \
18179 exclude_expsyms_CXX \
18180 include_expsyms_CXX; do
18181
18182 case $var in
18183 old_archive_cmds_CXX | \
18184 old_archive_from_new_cmds_CXX | \
18185 archive_cmds_CXX | \
18186 archive_expsym_cmds_CXX | \
18187 module_cmds_CXX | \
18188 module_expsym_cmds_CXX | \
18189 old_archive_from_expsyms_cmds_CXX | \
18190 export_symbols_cmds_CXX | \
18191 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18192 postinstall_cmds | postuninstall_cmds | \
18193 old_postinstall_cmds | old_postuninstall_cmds | \
18194 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18195 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018196 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 +000018197 ;;
18198 *)
18199 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18200 ;;
18201 esac
18202 done
18203
18204 case $lt_echo in
18205 *'\$0 --fallback-echo"')
18206 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18207 ;;
18208 esac
18209
18210cfgfile="$ofile"
18211
18212 cat <<__EOF__ >> "$cfgfile"
18213# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18214
18215# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18216
18217# Shell to use when invoking shell scripts.
18218SHELL=$lt_SHELL
18219
18220# Whether or not to build shared libraries.
18221build_libtool_libs=$enable_shared
18222
18223# Whether or not to build static libraries.
18224build_old_libs=$enable_static
18225
18226# Whether or not to add -lc for building shared libraries.
18227build_libtool_need_lc=$archive_cmds_need_lc_CXX
18228
18229# Whether or not to disallow shared libs when runtime libs are static
18230allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18231
18232# Whether or not to optimize for fast installation.
18233fast_install=$enable_fast_install
18234
18235# The host system.
18236host_alias=$host_alias
18237host=$host
18238
18239# An echo program that does not interpret backslashes.
18240echo=$lt_echo
18241
18242# The archiver.
18243AR=$lt_AR
18244AR_FLAGS=$lt_AR_FLAGS
18245
18246# A C compiler.
18247LTCC=$lt_LTCC
18248
18249# A language-specific compiler.
18250CC=$lt_compiler_CXX
18251
18252# Is the compiler the GNU C compiler?
18253with_gcc=$GCC_CXX
18254
18255# An ERE matcher.
18256EGREP=$lt_EGREP
18257
18258# The linker used to build libraries.
18259LD=$lt_LD_CXX
18260
18261# Whether we need hard or soft links.
18262LN_S=$lt_LN_S
18263
18264# A BSD-compatible nm program.
18265NM=$lt_NM
18266
18267# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018268STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018269
18270# Used to examine libraries when file_magic_cmd begins "file"
18271MAGIC_CMD=$MAGIC_CMD
18272
18273# Used on cygwin: DLL creation program.
18274DLLTOOL="$DLLTOOL"
18275
18276# Used on cygwin: object dumper.
18277OBJDUMP="$OBJDUMP"
18278
18279# Used on cygwin: assembler.
18280AS="$AS"
18281
18282# The name of the directory that contains temporary libtool files.
18283objdir=$objdir
18284
18285# How to create reloadable object files.
18286reload_flag=$lt_reload_flag
18287reload_cmds=$lt_reload_cmds
18288
18289# How to pass a linker flag through the compiler.
18290wl=$lt_lt_prog_compiler_wl_CXX
18291
18292# Object file suffix (normally "o").
18293objext="$ac_objext"
18294
18295# Old archive suffix (normally "a").
18296libext="$libext"
18297
18298# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018299shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018300
18301# Executable file suffix (normally "").
18302exeext="$exeext"
18303
18304# Additional compiler flags for building library objects.
18305pic_flag=$lt_lt_prog_compiler_pic_CXX
18306pic_mode=$pic_mode
18307
18308# What is the maximum length of a command?
18309max_cmd_len=$lt_cv_sys_max_cmd_len
18310
18311# Does compiler simultaneously support -c and -o options?
18312compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18313
18314# Must we lock files when doing compilation ?
18315need_locks=$lt_need_locks
18316
18317# Do we need the lib prefix for modules?
18318need_lib_prefix=$need_lib_prefix
18319
18320# Do we need a version for libraries?
18321need_version=$need_version
18322
18323# Whether dlopen is supported.
18324dlopen_support=$enable_dlopen
18325
18326# Whether dlopen of programs is supported.
18327dlopen_self=$enable_dlopen_self
18328
18329# Whether dlopen of statically linked programs is supported.
18330dlopen_self_static=$enable_dlopen_self_static
18331
18332# Compiler flag to prevent dynamic linking.
18333link_static_flag=$lt_lt_prog_compiler_static_CXX
18334
18335# Compiler flag to turn off builtin functions.
18336no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18337
18338# Compiler flag to allow reflexive dlopens.
18339export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18340
18341# Compiler flag to generate shared objects directly from archives.
18342whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18343
18344# Compiler flag to generate thread-safe objects.
18345thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18346
18347# Library versioning type.
18348version_type=$version_type
18349
18350# Format of library name prefix.
18351libname_spec=$lt_libname_spec
18352
18353# List of archive names. First name is the real one, the rest are links.
18354# The last name is the one that the linker finds with -lNAME.
18355library_names_spec=$lt_library_names_spec
18356
18357# The coded name of the library, if different from the real name.
18358soname_spec=$lt_soname_spec
18359
18360# Commands used to build and install an old-style archive.
18361RANLIB=$lt_RANLIB
18362old_archive_cmds=$lt_old_archive_cmds_CXX
18363old_postinstall_cmds=$lt_old_postinstall_cmds
18364old_postuninstall_cmds=$lt_old_postuninstall_cmds
18365
18366# Create an old-style archive from a shared archive.
18367old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18368
18369# Create a temporary old-style archive to link instead of a shared archive.
18370old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18371
18372# Commands used to build and install a shared archive.
18373archive_cmds=$lt_archive_cmds_CXX
18374archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18375postinstall_cmds=$lt_postinstall_cmds
18376postuninstall_cmds=$lt_postuninstall_cmds
18377
18378# Commands used to build a loadable module (assumed same as above if empty)
18379module_cmds=$lt_module_cmds_CXX
18380module_expsym_cmds=$lt_module_expsym_cmds_CXX
18381
18382# Commands to strip libraries.
18383old_striplib=$lt_old_striplib
18384striplib=$lt_striplib
18385
18386# Dependencies to place before the objects being linked to create a
18387# shared library.
18388predep_objects=$lt_predep_objects_CXX
18389
18390# Dependencies to place after the objects being linked to create a
18391# shared library.
18392postdep_objects=$lt_postdep_objects_CXX
18393
18394# Dependencies to place before the objects being linked to create a
18395# shared library.
18396predeps=$lt_predeps_CXX
18397
18398# Dependencies to place after the objects being linked to create a
18399# shared library.
18400postdeps=$lt_postdeps_CXX
18401
18402# The library search path used internally by the compiler when linking
18403# a shared library.
18404compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18405
18406# Method to check whether dependent libraries are shared objects.
18407deplibs_check_method=$lt_deplibs_check_method
18408
18409# Command to use when deplibs_check_method == file_magic.
18410file_magic_cmd=$lt_file_magic_cmd
18411
18412# Flag that allows shared libraries with undefined symbols to be built.
18413allow_undefined_flag=$lt_allow_undefined_flag_CXX
18414
18415# Flag that forces no undefined symbols.
18416no_undefined_flag=$lt_no_undefined_flag_CXX
18417
18418# Commands used to finish a libtool library installation in a directory.
18419finish_cmds=$lt_finish_cmds
18420
18421# Same as above, but a single script fragment to be evaled but not shown.
18422finish_eval=$lt_finish_eval
18423
18424# Take the output of nm and produce a listing of raw symbols and C names.
18425global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18426
18427# Transform the output of nm in a proper C declaration
18428global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18429
18430# Transform the output of nm in a C name address pair
18431global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18432
18433# This is the shared library runtime path variable.
18434runpath_var=$runpath_var
18435
18436# This is the shared library path variable.
18437shlibpath_var=$shlibpath_var
18438
18439# Is shlibpath searched before the hard-coded library search path?
18440shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18441
18442# How to hardcode a shared library path into an executable.
18443hardcode_action=$hardcode_action_CXX
18444
18445# Whether we should hardcode library paths into libraries.
18446hardcode_into_libs=$hardcode_into_libs
18447
18448# Flag to hardcode \$libdir into a binary during linking.
18449# This must work even if \$libdir does not exist.
18450hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18451
18452# If ld is used when linking, flag to hardcode \$libdir into
18453# a binary during linking. This must work even if \$libdir does
18454# not exist.
18455hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18456
18457# Whether we need a single -rpath flag with a separated argument.
18458hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18459
18460# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18461# resulting binary.
18462hardcode_direct=$hardcode_direct_CXX
18463
18464# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18465# resulting binary.
18466hardcode_minus_L=$hardcode_minus_L_CXX
18467
18468# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18469# the resulting binary.
18470hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18471
18472# Set to yes if building a shared library automatically hardcodes DIR into the library
18473# and all subsequent libraries and executables linked against it.
18474hardcode_automatic=$hardcode_automatic_CXX
18475
18476# Variables whose values should be saved in libtool wrapper scripts and
18477# restored at relink time.
18478variables_saved_for_relink="$variables_saved_for_relink"
18479
18480# Whether libtool must link a program against all its dependency libraries.
18481link_all_deplibs=$link_all_deplibs_CXX
18482
18483# Compile-time system search path for libraries
18484sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18485
18486# Run-time system search path for libraries
18487sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18488
18489# Fix the shell variable \$srcfile for the compiler.
18490fix_srcfile_path="$fix_srcfile_path_CXX"
18491
18492# Set to yes if exported symbols are required.
18493always_export_symbols=$always_export_symbols_CXX
18494
18495# The commands to list exported symbols.
18496export_symbols_cmds=$lt_export_symbols_cmds_CXX
18497
18498# The commands to extract the exported symbol list from a shared archive.
18499extract_expsyms_cmds=$lt_extract_expsyms_cmds
18500
18501# Symbols that should not be listed in the preloaded symbols.
18502exclude_expsyms=$lt_exclude_expsyms_CXX
18503
18504# Symbols that must always be exported.
18505include_expsyms=$lt_include_expsyms_CXX
18506
18507# ### END LIBTOOL TAG CONFIG: $tagname
18508
18509__EOF__
18510
18511
18512else
18513 # If there is no Makefile yet, we rely on a make rule to execute
18514 # `config.status --recheck' to rerun these tests and create the
18515 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018516 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18517 if test -f "$ltmain_in"; then
18518 test -f Makefile && make "$ltmain"
18519 fi
John Criswell47fdd832003-07-14 16:52:07 +000018520fi
18521
18522
18523ac_ext=c
18524ac_cpp='$CPP $CPPFLAGS'
18525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18527ac_compiler_gnu=$ac_cv_c_compiler_gnu
18528
18529CC=$lt_save_CC
18530LDCXX=$LD
18531LD=$lt_save_LD
18532GCC=$lt_save_GCC
18533with_gnu_ldcxx=$with_gnu_ld
18534with_gnu_ld=$lt_save_with_gnu_ld
18535lt_cv_path_LDCXX=$lt_cv_path_LD
18536lt_cv_path_LD=$lt_save_path_LD
18537lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18538lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18539
18540 else
18541 tagname=""
18542 fi
18543 ;;
18544
18545 F77)
18546 if test -n "$F77" && test "X$F77" != "Xno"; then
18547
18548ac_ext=f
18549ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18550ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18552
18553
18554archive_cmds_need_lc_F77=no
18555allow_undefined_flag_F77=
18556always_export_symbols_F77=no
18557archive_expsym_cmds_F77=
18558export_dynamic_flag_spec_F77=
18559hardcode_direct_F77=no
18560hardcode_libdir_flag_spec_F77=
18561hardcode_libdir_flag_spec_ld_F77=
18562hardcode_libdir_separator_F77=
18563hardcode_minus_L_F77=no
18564hardcode_automatic_F77=no
18565module_cmds_F77=
18566module_expsym_cmds_F77=
18567link_all_deplibs_F77=unknown
18568old_archive_cmds_F77=$old_archive_cmds
18569no_undefined_flag_F77=
18570whole_archive_flag_spec_F77=
18571enable_shared_with_static_runtimes_F77=no
18572
18573# Source file extension for f77 test sources.
18574ac_ext=f
18575
18576# Object file extension for compiled f77 test sources.
18577objext=o
18578objext_F77=$objext
18579
18580# Code to be used in simple compile tests
18581lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18582
18583# Code to be used in simple link tests
18584lt_simple_link_test_code=" program t\n end\n"
18585
18586# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18587
18588# If no C compiler was specified, use CC.
18589LTCC=${LTCC-"$CC"}
18590
18591# Allow CC to be a program name with arguments.
18592compiler=$CC
18593
18594
18595# Allow CC to be a program name with arguments.
18596lt_save_CC="$CC"
18597CC=${F77-"f77"}
18598compiler=$CC
18599compiler_F77=$CC
18600cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18601
18602echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18603echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18604echo "$as_me:$LINENO: result: $can_build_shared" >&5
18605echo "${ECHO_T}$can_build_shared" >&6
18606
18607echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18608echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18609test "$can_build_shared" = "no" && enable_shared=no
18610
18611# On AIX, shared libraries and static libraries use the same namespace, and
18612# are all built from PIC.
18613case "$host_os" in
18614aix3*)
18615 test "$enable_shared" = yes && enable_static=no
18616 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018617 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018618 postinstall_cmds='$RANLIB $lib'
18619 fi
18620 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018621aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018622 test "$enable_shared" = yes && enable_static=no
18623 ;;
18624esac
18625echo "$as_me:$LINENO: result: $enable_shared" >&5
18626echo "${ECHO_T}$enable_shared" >&6
18627
18628echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18629echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18630# Make sure either enable_shared or enable_static is yes.
18631test "$enable_shared" = yes || enable_static=yes
18632echo "$as_me:$LINENO: result: $enable_static" >&5
18633echo "${ECHO_T}$enable_static" >&6
18634
18635test "$ld_shlibs_F77" = no && can_build_shared=no
18636
18637GCC_F77="$G77"
18638LD_F77="$LD"
18639
18640lt_prog_compiler_wl_F77=
18641lt_prog_compiler_pic_F77=
18642lt_prog_compiler_static_F77=
18643
18644echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18645echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18646
18647 if test "$GCC" = yes; then
18648 lt_prog_compiler_wl_F77='-Wl,'
18649 lt_prog_compiler_static_F77='-static'
18650
18651 case $host_os in
18652 aix*)
18653 # All AIX code is PIC.
18654 if test "$host_cpu" = ia64; then
18655 # AIX 5 now supports IA64 processor
18656 lt_prog_compiler_static_F77='-Bstatic'
18657 fi
18658 ;;
18659
18660 amigaos*)
18661 # FIXME: we need at least 68020 code to build shared libraries, but
18662 # adding the `-m68020' flag to GCC prevents building anything better,
18663 # like `-m68040'.
18664 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18665 ;;
18666
18667 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18668 # PIC is the default for these OSes.
18669 ;;
18670
18671 mingw* | pw32* | os2*)
18672 # This hack is so that the source file can tell whether it is being
18673 # built for inclusion in a dll (and should export symbols for example).
18674 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18675 ;;
18676
18677 darwin* | rhapsody*)
18678 # PIC is the default on this platform
18679 # Common symbols not allowed in MH_DYLIB files
18680 lt_prog_compiler_pic_F77='-fno-common'
18681 ;;
18682
18683 msdosdjgpp*)
18684 # Just because we use GCC doesn't mean we suddenly get shared libraries
18685 # on systems that don't support them.
18686 lt_prog_compiler_can_build_shared_F77=no
18687 enable_shared=no
18688 ;;
18689
18690 sysv4*MP*)
18691 if test -d /usr/nec; then
18692 lt_prog_compiler_pic_F77=-Kconform_pic
18693 fi
18694 ;;
18695
18696 hpux*)
18697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18698 # not for PA HP-UX.
18699 case "$host_cpu" in
18700 hppa*64*|ia64*)
18701 # +Z the default
18702 ;;
18703 *)
18704 lt_prog_compiler_pic_F77='-fPIC'
18705 ;;
18706 esac
18707 ;;
18708
18709 *)
18710 lt_prog_compiler_pic_F77='-fPIC'
18711 ;;
18712 esac
18713 else
18714 # PORTME Check for flag to pass linker flags through the system compiler.
18715 case $host_os in
18716 aix*)
18717 lt_prog_compiler_wl_F77='-Wl,'
18718 if test "$host_cpu" = ia64; then
18719 # AIX 5 now supports IA64 processor
18720 lt_prog_compiler_static_F77='-Bstatic'
18721 else
18722 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18723 fi
18724 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018725 darwin*)
18726 # PIC is the default on this platform
18727 # Common symbols not allowed in MH_DYLIB files
18728 case "$cc_basename" in
18729 xlc*)
18730 lt_prog_compiler_pic_F77='-qnocommon'
18731 lt_prog_compiler_wl_F77='-Wl,'
18732 ;;
18733 esac
18734 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018735
18736 mingw* | pw32* | os2*)
18737 # This hack is so that the source file can tell whether it is being
18738 # built for inclusion in a dll (and should export symbols for example).
18739 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18740 ;;
18741
18742 hpux9* | hpux10* | hpux11*)
18743 lt_prog_compiler_wl_F77='-Wl,'
18744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18745 # not for PA HP-UX.
18746 case "$host_cpu" in
18747 hppa*64*|ia64*)
18748 # +Z the default
18749 ;;
18750 *)
18751 lt_prog_compiler_pic_F77='+Z'
18752 ;;
18753 esac
18754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18755 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18756 ;;
18757
18758 irix5* | irix6* | nonstopux*)
18759 lt_prog_compiler_wl_F77='-Wl,'
18760 # PIC (with -KPIC) is the default.
18761 lt_prog_compiler_static_F77='-non_shared'
18762 ;;
18763
18764 newsos6)
18765 lt_prog_compiler_pic_F77='-KPIC'
18766 lt_prog_compiler_static_F77='-Bstatic'
18767 ;;
18768
18769 linux*)
18770 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018771 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018772 lt_prog_compiler_wl_F77='-Wl,'
18773 lt_prog_compiler_pic_F77='-KPIC'
18774 lt_prog_compiler_static_F77='-static'
18775 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018776 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018777 lt_prog_compiler_wl_F77='-Wl,'
18778 # All Alpha code is PIC.
18779 lt_prog_compiler_static_F77='-non_shared'
18780 ;;
18781 esac
18782 ;;
18783
18784 osf3* | osf4* | osf5*)
18785 lt_prog_compiler_wl_F77='-Wl,'
18786 # All OSF/1 code is PIC.
18787 lt_prog_compiler_static_F77='-non_shared'
18788 ;;
18789
18790 sco3.2v5*)
18791 lt_prog_compiler_pic_F77='-Kpic'
18792 lt_prog_compiler_static_F77='-dn'
18793 ;;
18794
18795 solaris*)
18796 lt_prog_compiler_wl_F77='-Wl,'
18797 lt_prog_compiler_pic_F77='-KPIC'
18798 lt_prog_compiler_static_F77='-Bstatic'
18799 ;;
18800
18801 sunos4*)
18802 lt_prog_compiler_wl_F77='-Qoption ld '
18803 lt_prog_compiler_pic_F77='-PIC'
18804 lt_prog_compiler_static_F77='-Bstatic'
18805 ;;
18806
18807 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18808 lt_prog_compiler_wl_F77='-Wl,'
18809 lt_prog_compiler_pic_F77='-KPIC'
18810 lt_prog_compiler_static_F77='-Bstatic'
18811 ;;
18812
18813 sysv4*MP*)
18814 if test -d /usr/nec ;then
18815 lt_prog_compiler_pic_F77='-Kconform_pic'
18816 lt_prog_compiler_static_F77='-Bstatic'
18817 fi
18818 ;;
18819
18820 uts4*)
18821 lt_prog_compiler_pic_F77='-pic'
18822 lt_prog_compiler_static_F77='-Bstatic'
18823 ;;
18824
18825 *)
18826 lt_prog_compiler_can_build_shared_F77=no
18827 ;;
18828 esac
18829 fi
18830
18831echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18832echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18833
18834#
18835# Check to make sure the PIC flag actually works.
18836#
18837if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018838
18839echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018840echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18841if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844 lt_prog_compiler_pic_works_F77=no
18845 ac_outfile=conftest.$ac_objext
18846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18847 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18848 # Insert the option either (1) after the last *FLAGS variable, or
18849 # (2) before a word containing "conftest.", or (3) at the end.
18850 # Note that $ac_compile itself does not contain backslashes and begins
18851 # with a dollar sign (not a hyphen), so the echo should work correctly.
18852 # The option is referenced via a variable to avoid confusing sed.
18853 lt_compile=`echo "$ac_compile" | $SED \
18854 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18856 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000018857 (eval echo "\"\$as_me:18857: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018858 (eval "$lt_compile" 2>conftest.err)
18859 ac_status=$?
18860 cat conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000018861 echo "$as_me:18861: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018862 if (exit $ac_status) && test -s "$ac_outfile"; then
18863 # The compiler can only warn and ignore the option if not recognized
18864 # So say no if there are warnings
18865 if test ! -s conftest.err; then
18866 lt_prog_compiler_pic_works_F77=yes
18867 fi
18868 fi
18869 $rm conftest*
18870
18871fi
18872echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18873echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18874
18875if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18876 case $lt_prog_compiler_pic_F77 in
18877 "" | " "*) ;;
18878 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18879 esac
18880else
18881 lt_prog_compiler_pic_F77=
18882 lt_prog_compiler_can_build_shared_F77=no
18883fi
18884
18885fi
18886case "$host_os" in
18887 # For platforms which do not support PIC, -DPIC is meaningless:
18888 *djgpp*)
18889 lt_prog_compiler_pic_F77=
18890 ;;
18891 *)
18892 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18893 ;;
18894esac
18895
18896echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18897echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18898if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900else
18901 lt_cv_prog_compiler_c_o_F77=no
18902 $rm -r conftest 2>/dev/null
18903 mkdir conftest
18904 cd conftest
18905 mkdir out
18906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18907
John Criswell47fdd832003-07-14 16:52:07 +000018908 lt_compiler_flag="-o out/conftest2.$ac_objext"
18909 # Insert the option either (1) after the last *FLAGS variable, or
18910 # (2) before a word containing "conftest.", or (3) at the end.
18911 # Note that $ac_compile itself does not contain backslashes and begins
18912 # with a dollar sign (not a hyphen), so the echo should work correctly.
18913 lt_compile=`echo "$ac_compile" | $SED \
18914 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18916 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000018917 (eval echo "\"\$as_me:18917: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018918 (eval "$lt_compile" 2>out/conftest.err)
18919 ac_status=$?
18920 cat out/conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000018921 echo "$as_me:18921: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18923 then
18924 # The compiler can only warn and ignore the option if not recognized
18925 # So say no if there are warnings
18926 if test ! -s out/conftest.err; then
18927 lt_cv_prog_compiler_c_o_F77=yes
18928 fi
18929 fi
18930 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018931 $rm conftest*
18932 # SGI C++ compiler will create directory out/ii_files/ for
18933 # template instantiation
18934 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18935 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018936 cd ..
18937 rmdir conftest
18938 $rm conftest*
18939
18940fi
18941echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18942echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18943
18944
18945hard_links="nottested"
18946if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18947 # do not overwrite the value of need_locks provided by the user
18948 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18949echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18950 hard_links=yes
18951 $rm conftest*
18952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18953 touch conftest.a
18954 ln conftest.a conftest.b 2>&5 || hard_links=no
18955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18956 echo "$as_me:$LINENO: result: $hard_links" >&5
18957echo "${ECHO_T}$hard_links" >&6
18958 if test "$hard_links" = no; then
18959 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18960echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18961 need_locks=warn
18962 fi
18963else
18964 need_locks=no
18965fi
18966
18967echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18968echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18969
18970 runpath_var=
18971 allow_undefined_flag_F77=
18972 enable_shared_with_static_runtimes_F77=no
18973 archive_cmds_F77=
18974 archive_expsym_cmds_F77=
18975 old_archive_From_new_cmds_F77=
18976 old_archive_from_expsyms_cmds_F77=
18977 export_dynamic_flag_spec_F77=
18978 whole_archive_flag_spec_F77=
18979 thread_safe_flag_spec_F77=
18980 hardcode_libdir_flag_spec_F77=
18981 hardcode_libdir_flag_spec_ld_F77=
18982 hardcode_libdir_separator_F77=
18983 hardcode_direct_F77=no
18984 hardcode_minus_L_F77=no
18985 hardcode_shlibpath_var_F77=unsupported
18986 link_all_deplibs_F77=unknown
18987 hardcode_automatic_F77=no
18988 module_cmds_F77=
18989 module_expsym_cmds_F77=
18990 always_export_symbols_F77=no
18991 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18992 # include_expsyms should be a list of space-separated symbols to be *always*
18993 # included in the symbol list
18994 include_expsyms_F77=
18995 # exclude_expsyms can be an extended regexp of symbols to exclude
18996 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18997 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18998 # as well as any symbol that contains `d'.
18999 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19000 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19001 # platforms (ab)use it in PIC code, but their linkers get confused if
19002 # the symbol is explicitly referenced. Since portable code cannot
19003 # rely on this symbol name, it's probably fine to never include it in
19004 # preloaded symbol tables.
19005 extract_expsyms_cmds=
19006
19007 case $host_os in
19008 cygwin* | mingw* | pw32*)
19009 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19010 # When not using gcc, we currently assume that we are using
19011 # Microsoft Visual C++.
19012 if test "$GCC" != yes; then
19013 with_gnu_ld=no
19014 fi
19015 ;;
19016 openbsd*)
19017 with_gnu_ld=no
19018 ;;
19019 esac
19020
19021 ld_shlibs_F77=yes
19022 if test "$with_gnu_ld" = yes; then
19023 # If archive_cmds runs LD, not CC, wlarc should be empty
19024 wlarc='${wl}'
19025
19026 # See if GNU ld supports shared libraries.
19027 case $host_os in
19028 aix3* | aix4* | aix5*)
19029 # On AIX/PPC, the GNU linker is very broken
19030 if test "$host_cpu" != ia64; then
19031 ld_shlibs_F77=no
19032 cat <<EOF 1>&2
19033
19034*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19035*** to be unable to reliably create shared libraries on AIX.
19036*** Therefore, libtool is disabling shared libraries support. If you
19037*** really care for shared libraries, you may want to modify your PATH
19038*** so that a non-GNU linker is found, and then restart.
19039
19040EOF
19041 fi
19042 ;;
19043
19044 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019045 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 +000019046 hardcode_libdir_flag_spec_F77='-L$libdir'
19047 hardcode_minus_L_F77=yes
19048
19049 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19050 # that the semantics of dynamic libraries on AmigaOS, at least up
19051 # to version 4, is to share data among multiple programs linked
19052 # with the same dynamic library. Since this doesn't match the
19053 # behavior of shared libraries on other platforms, we can't use
19054 # them.
19055 ld_shlibs_F77=no
19056 ;;
19057
19058 beos*)
19059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19060 allow_undefined_flag_F77=unsupported
19061 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19062 # support --undefined. This deserves some investigation. FIXME
19063 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19064 else
19065 ld_shlibs_F77=no
19066 fi
19067 ;;
19068
19069 cygwin* | mingw* | pw32*)
19070 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19071 # as there is no search path for DLLs.
19072 hardcode_libdir_flag_spec_F77='-L$libdir'
19073 allow_undefined_flag_F77=unsupported
19074 always_export_symbols_F77=no
19075 enable_shared_with_static_runtimes_F77=yes
19076 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19077
19078 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19079 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19080 # If the export-symbols file already is a .def file (1st line
19081 # is EXPORTS), use it as is; otherwise, prepend...
19082 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19083 cp $export_symbols $output_objdir/$soname.def;
19084 else
19085 echo EXPORTS > $output_objdir/$soname.def;
19086 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019087 fi~
19088 $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 +000019089 else
19090 ld_shlibs=no
19091 fi
19092 ;;
19093
19094 netbsd*)
19095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19096 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19097 wlarc=
19098 else
19099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19101 fi
19102 ;;
19103
19104 solaris* | sysv5*)
19105 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19106 ld_shlibs_F77=no
19107 cat <<EOF 1>&2
19108
19109*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19110*** create shared libraries on Solaris systems. Therefore, libtool
19111*** is disabling shared libraries support. We urge you to upgrade GNU
19112*** binutils to release 2.9.1 or newer. Another option is to modify
19113*** your PATH or compiler configuration so that the native linker is
19114*** used, and then restart.
19115
19116EOF
19117 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19118 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19119 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19120 else
19121 ld_shlibs_F77=no
19122 fi
19123 ;;
19124
19125 sunos4*)
19126 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19127 wlarc=
19128 hardcode_direct_F77=yes
19129 hardcode_shlibpath_var_F77=no
19130 ;;
19131
Reid Spencer2706f8c2004-09-19 23:53:36 +000019132 linux*)
19133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19134 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19135 archive_cmds_F77="$tmp_archive_cmds"
19136 supports_anon_versioning=no
19137 case `$LD -v 2>/dev/null` in
19138 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19141 *\ 2.11.*) ;; # other 2.11 versions
19142 *) supports_anon_versioning=yes ;;
19143 esac
19144 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019145 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19146cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19147$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019148 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19149 else
19150 archive_expsym_cmds_F77="$tmp_archive_cmds"
19151 fi
19152 else
19153 ld_shlibs_F77=no
19154 fi
19155 ;;
19156
John Criswell47fdd832003-07-14 16:52:07 +000019157 *)
19158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19159 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19160 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19161 else
19162 ld_shlibs_F77=no
19163 fi
19164 ;;
19165 esac
19166
19167 if test "$ld_shlibs_F77" = yes; then
19168 runpath_var=LD_RUN_PATH
19169 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19170 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19171 # ancient GNU ld didn't support --whole-archive et. al.
19172 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19173 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19174 else
19175 whole_archive_flag_spec_F77=
19176 fi
19177 fi
19178 else
19179 # PORTME fill in a description of your system's linker (not GNU ld)
19180 case $host_os in
19181 aix3*)
19182 allow_undefined_flag_F77=unsupported
19183 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019184 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 +000019185 # Note: this linker hardcodes the directories in LIBPATH if there
19186 # are no directories specified by -L.
19187 hardcode_minus_L_F77=yes
19188 if test "$GCC" = yes && test -z "$link_static_flag"; then
19189 # Neither direct hardcoding nor static linking is supported with a
19190 # broken collect2.
19191 hardcode_direct_F77=unsupported
19192 fi
19193 ;;
19194
19195 aix4* | aix5*)
19196 if test "$host_cpu" = ia64; then
19197 # On IA64, the linker does run time linking by default, so we don't
19198 # have to do anything special.
19199 aix_use_runtimelinking=no
19200 exp_sym_flag='-Bexport'
19201 no_entry_flag=""
19202 else
19203 # If we're using GNU nm, then we don't want the "-C" option.
19204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19205 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19206 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'
19207 else
19208 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'
19209 fi
19210 aix_use_runtimelinking=no
19211
19212 # Test if we are trying to use run time linking or normal
19213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19214 # need to do runtime linking.
19215 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19216 for ld_flag in $LDFLAGS; do
19217 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19218 aix_use_runtimelinking=yes
19219 break
19220 fi
19221 done
19222 esac
19223
19224 exp_sym_flag='-bexport'
19225 no_entry_flag='-bnoentry'
19226 fi
19227
19228 # When large executables or shared objects are built, AIX ld can
19229 # have problems creating the table of contents. If linking a library
19230 # or program results in "error TOC overflow" add -mminimal-toc to
19231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19233
19234 archive_cmds_F77=''
19235 hardcode_direct_F77=yes
19236 hardcode_libdir_separator_F77=':'
19237 link_all_deplibs_F77=yes
19238
19239 if test "$GCC" = yes; then
19240 case $host_os in aix4.012|aix4.012.*)
19241 # We only want to do this on AIX 4.2 and lower, the check
19242 # below for broken collect2 doesn't work under 4.3+
19243 collect2name=`${CC} -print-prog-name=collect2`
19244 if test -f "$collect2name" && \
19245 strings "$collect2name" | grep resolve_lib_name >/dev/null
19246 then
19247 # We have reworked collect2
19248 hardcode_direct_F77=yes
19249 else
19250 # We have old collect2
19251 hardcode_direct_F77=unsupported
19252 # It fails to find uninstalled libraries when the uninstalled
19253 # path is not listed in the libpath. Setting hardcode_minus_L
19254 # to unsupported forces relinking
19255 hardcode_minus_L_F77=yes
19256 hardcode_libdir_flag_spec_F77='-L$libdir'
19257 hardcode_libdir_separator_F77=
19258 fi
19259 esac
19260 shared_flag='-shared'
19261 else
19262 # not using gcc
19263 if test "$host_cpu" = ia64; then
19264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19265 # chokes on -Wl,-G. The following line is correct:
19266 shared_flag='-G'
19267 else
19268 if test "$aix_use_runtimelinking" = yes; then
19269 shared_flag='${wl}-G'
19270 else
19271 shared_flag='${wl}-bM:SRE'
19272 fi
19273 fi
19274 fi
19275
19276 # It seems that -bexpall does not export symbols beginning with
19277 # underscore (_), so it is better to generate a list of symbols to export.
19278 always_export_symbols_F77=yes
19279 if test "$aix_use_runtimelinking" = yes; then
19280 # Warning - without using the other runtime loading flags (-brtl),
19281 # -berok will link without error, but may produce a broken library.
19282 allow_undefined_flag_F77='-berok'
19283 # Determine the default libpath from the value encoded in an empty executable.
19284 cat >conftest.$ac_ext <<_ACEOF
19285 program main
19286
19287 end
19288_ACEOF
19289rm -f conftest.$ac_objext conftest$ac_exeext
19290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019291 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019292 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019298 { ac_try='test -z "$ac_f77_werror_flag"
19299 || test ! -s conftest.err'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311
19312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19313}'`
19314# Check for a 64-bit object if we didn't find anything.
19315if 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; }
19316}'`; fi
19317else
19318 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019319sed 's/^/| /' conftest.$ac_ext >&5
19320
John Criswell47fdd832003-07-14 16:52:07 +000019321fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019322rm -f conftest.err conftest.$ac_objext \
19323 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019324if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19325
19326 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19327 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"
19328 else
19329 if test "$host_cpu" = ia64; then
19330 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19331 allow_undefined_flag_F77="-z nodefs"
19332 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"
19333 else
19334 # Determine the default libpath from the value encoded in an empty executable.
19335 cat >conftest.$ac_ext <<_ACEOF
19336 program main
19337
19338 end
19339_ACEOF
19340rm -f conftest.$ac_objext conftest$ac_exeext
19341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019342 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019344 grep -v '^ *+' conftest.er1 >conftest.err
19345 rm -f conftest.er1
19346 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019349 { ac_try='test -z "$ac_f77_werror_flag"
19350 || test ! -s conftest.err'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } &&
19356 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362
19363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19364}'`
19365# Check for a 64-bit object if we didn't find anything.
19366if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19367}'`; fi
19368else
19369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019370sed 's/^/| /' conftest.$ac_ext >&5
19371
John Criswell47fdd832003-07-14 16:52:07 +000019372fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019373rm -f conftest.err conftest.$ac_objext \
19374 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19376
19377 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19378 # Warning - without using the other run time loading flags,
19379 # -berok will link without error, but may produce a broken library.
19380 no_undefined_flag_F77=' ${wl}-bernotok'
19381 allow_undefined_flag_F77=' ${wl}-berok'
19382 # -bexpall does not export symbols beginning with underscore (_)
19383 always_export_symbols_F77=yes
19384 # Exported symbols can be pulled into shared objects from archives
19385 whole_archive_flag_spec_F77=' '
19386 archive_cmds_need_lc_F77=yes
19387 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019388 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 +000019389 fi
19390 fi
19391 ;;
19392
19393 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019394 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 +000019395 hardcode_libdir_flag_spec_F77='-L$libdir'
19396 hardcode_minus_L_F77=yes
19397 # see comment about different semantics on the GNU ld section
19398 ld_shlibs_F77=no
19399 ;;
19400
Reid Spencer2706f8c2004-09-19 23:53:36 +000019401 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019402 export_dynamic_flag_spec_F77=-rdynamic
19403 ;;
19404
19405 cygwin* | mingw* | pw32*)
19406 # When not using gcc, we currently assume that we are using
19407 # Microsoft Visual C++.
19408 # hardcode_libdir_flag_spec is actually meaningless, as there is
19409 # no search path for DLLs.
19410 hardcode_libdir_flag_spec_F77=' '
19411 allow_undefined_flag_F77=unsupported
19412 # Tell ltmain to make .lib files, not .a files.
19413 libext=lib
19414 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019415 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019416 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019417 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 +000019418 # The linker will automatically build a .lib file if we build a DLL.
19419 old_archive_From_new_cmds_F77='true'
19420 # FIXME: Should let the user specify the lib program.
19421 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19422 fix_srcfile_path='`cygpath -w "$srcfile"`'
19423 enable_shared_with_static_runtimes_F77=yes
19424 ;;
19425
19426 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019427 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019428 rhapsody* | darwin1.[012])
19429 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19430 ;;
19431 *) # Darwin 1.3 on
19432 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19433 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19434 else
19435 case ${MACOSX_DEPLOYMENT_TARGET} in
19436 10.[012])
19437 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19438 ;;
19439 10.*)
19440 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19441 ;;
19442 esac
19443 fi
19444 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019445 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019446 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019447 hardcode_direct_F77=no
19448 hardcode_automatic_F77=yes
19449 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019450 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019451 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019452 if test "$GCC" = yes ; then
19453 output_verbose_link_cmd='echo'
19454 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19455 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19456 # 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 +000019457 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}'
19458 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 +000019459 else
19460 case "$cc_basename" in
19461 xlc*)
19462 output_verbose_link_cmd='echo'
19463 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19464 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19465 # 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 +000019466 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}'
19467 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 +000019468 ;;
19469 *)
19470 ld_shlibs_F77=no
19471 ;;
19472 esac
John Criswell47fdd832003-07-14 16:52:07 +000019473 fi
19474 ;;
19475
19476 dgux*)
19477 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19478 hardcode_libdir_flag_spec_F77='-L$libdir'
19479 hardcode_shlibpath_var_F77=no
19480 ;;
19481
19482 freebsd1*)
19483 ld_shlibs_F77=no
19484 ;;
19485
19486 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19487 # support. Future versions do this automatically, but an explicit c++rt0.o
19488 # does not break anything, and helps significantly (at the cost of a little
19489 # extra space).
19490 freebsd2.2*)
19491 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19492 hardcode_libdir_flag_spec_F77='-R$libdir'
19493 hardcode_direct_F77=yes
19494 hardcode_shlibpath_var_F77=no
19495 ;;
19496
19497 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19498 freebsd2*)
19499 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19500 hardcode_direct_F77=yes
19501 hardcode_minus_L_F77=yes
19502 hardcode_shlibpath_var_F77=no
19503 ;;
19504
19505 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019506 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019507 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19508 hardcode_libdir_flag_spec_F77='-R$libdir'
19509 hardcode_direct_F77=yes
19510 hardcode_shlibpath_var_F77=no
19511 ;;
19512
19513 hpux9*)
19514 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019515 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 +000019516 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019517 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 +000019518 fi
19519 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19520 hardcode_libdir_separator_F77=:
19521 hardcode_direct_F77=yes
19522
19523 # hardcode_minus_L: Not really in the search PATH,
19524 # but as the default location of the library.
19525 hardcode_minus_L_F77=yes
19526 export_dynamic_flag_spec_F77='${wl}-E'
19527 ;;
19528
19529 hpux10* | hpux11*)
19530 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19531 case "$host_cpu" in
19532 hppa*64*|ia64*)
19533 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19534 ;;
19535 *)
19536 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19537 ;;
19538 esac
19539 else
19540 case "$host_cpu" in
19541 hppa*64*|ia64*)
19542 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19543 ;;
19544 *)
19545 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19546 ;;
19547 esac
19548 fi
19549 if test "$with_gnu_ld" = no; then
19550 case "$host_cpu" in
19551 hppa*64*)
19552 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19553 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19554 hardcode_libdir_separator_F77=:
19555 hardcode_direct_F77=no
19556 hardcode_shlibpath_var_F77=no
19557 ;;
19558 ia64*)
19559 hardcode_libdir_flag_spec_F77='-L$libdir'
19560 hardcode_direct_F77=no
19561 hardcode_shlibpath_var_F77=no
19562
19563 # hardcode_minus_L: Not really in the search PATH,
19564 # but as the default location of the library.
19565 hardcode_minus_L_F77=yes
19566 ;;
19567 *)
19568 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19569 hardcode_libdir_separator_F77=:
19570 hardcode_direct_F77=yes
19571 export_dynamic_flag_spec_F77='${wl}-E'
19572
19573 # hardcode_minus_L: Not really in the search PATH,
19574 # but as the default location of the library.
19575 hardcode_minus_L_F77=yes
19576 ;;
19577 esac
19578 fi
19579 ;;
19580
19581 irix5* | irix6* | nonstopux*)
19582 if test "$GCC" = yes; then
19583 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'
19584 else
19585 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'
19586 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19587 fi
19588 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19589 hardcode_libdir_separator_F77=:
19590 link_all_deplibs_F77=yes
19591 ;;
19592
19593 netbsd*)
19594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19596 else
19597 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19598 fi
19599 hardcode_libdir_flag_spec_F77='-R$libdir'
19600 hardcode_direct_F77=yes
19601 hardcode_shlibpath_var_F77=no
19602 ;;
19603
19604 newsos6)
19605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19606 hardcode_direct_F77=yes
19607 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19608 hardcode_libdir_separator_F77=:
19609 hardcode_shlibpath_var_F77=no
19610 ;;
19611
19612 openbsd*)
19613 hardcode_direct_F77=yes
19614 hardcode_shlibpath_var_F77=no
19615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19616 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019617 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 +000019618 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19619 export_dynamic_flag_spec_F77='${wl}-E'
19620 else
19621 case $host_os in
19622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19623 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19624 hardcode_libdir_flag_spec_F77='-R$libdir'
19625 ;;
19626 *)
19627 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19628 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19629 ;;
19630 esac
19631 fi
19632 ;;
19633
19634 os2*)
19635 hardcode_libdir_flag_spec_F77='-L$libdir'
19636 hardcode_minus_L_F77=yes
19637 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019638 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 +000019639 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19640 ;;
19641
19642 osf3*)
19643 if test "$GCC" = yes; then
19644 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19645 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'
19646 else
19647 allow_undefined_flag_F77=' -expect_unresolved \*'
19648 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'
19649 fi
19650 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_F77=:
19652 ;;
19653
19654 osf4* | osf5*) # as osf3* with the addition of -msym flag
19655 if test "$GCC" = yes; then
19656 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19657 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'
19658 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19659 else
19660 allow_undefined_flag_F77=' -expect_unresolved \*'
19661 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 +000019662 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~
19663 $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'
19664
John Criswell47fdd832003-07-14 16:52:07 +000019665 # Both c and cxx compiler support -rpath directly
19666 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19667 fi
19668 hardcode_libdir_separator_F77=:
19669 ;;
19670
19671 sco3.2v5*)
19672 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19673 hardcode_shlibpath_var_F77=no
19674 export_dynamic_flag_spec_F77='${wl}-Bexport'
19675 runpath_var=LD_RUN_PATH
19676 hardcode_runpath_var=yes
19677 ;;
19678
19679 solaris*)
19680 no_undefined_flag_F77=' -z text'
19681 if test "$GCC" = yes; then
19682 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019683 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19684 $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 +000019685 else
19686 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019687 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19688 $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 +000019689 fi
19690 hardcode_libdir_flag_spec_F77='-R$libdir'
19691 hardcode_shlibpath_var_F77=no
19692 case $host_os in
19693 solaris2.[0-5] | solaris2.[0-5].*) ;;
19694 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19695 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19696 esac
19697 link_all_deplibs_F77=yes
19698 ;;
19699
19700 sunos4*)
19701 if test "x$host_vendor" = xsequent; then
19702 # Use $CC to link under sequent, because it throws in some extra .o
19703 # files that make .init and .fini sections work.
19704 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19705 else
19706 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19707 fi
19708 hardcode_libdir_flag_spec_F77='-L$libdir'
19709 hardcode_direct_F77=yes
19710 hardcode_minus_L_F77=yes
19711 hardcode_shlibpath_var_F77=no
19712 ;;
19713
19714 sysv4)
19715 case $host_vendor in
19716 sni)
19717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19718 hardcode_direct_F77=yes # is this really true???
19719 ;;
19720 siemens)
19721 ## LD is ld it makes a PLAMLIB
19722 ## CC just makes a GrossModule.
19723 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19724 reload_cmds_F77='$CC -r -o $output$reload_objs'
19725 hardcode_direct_F77=no
19726 ;;
19727 motorola)
19728 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19729 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19730 ;;
19731 esac
19732 runpath_var='LD_RUN_PATH'
19733 hardcode_shlibpath_var_F77=no
19734 ;;
19735
19736 sysv4.3*)
19737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19738 hardcode_shlibpath_var_F77=no
19739 export_dynamic_flag_spec_F77='-Bexport'
19740 ;;
19741
19742 sysv4*MP*)
19743 if test -d /usr/nec; then
19744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19745 hardcode_shlibpath_var_F77=no
19746 runpath_var=LD_RUN_PATH
19747 hardcode_runpath_var=yes
19748 ld_shlibs_F77=yes
19749 fi
19750 ;;
19751
19752 sysv4.2uw2*)
19753 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19754 hardcode_direct_F77=yes
19755 hardcode_minus_L_F77=no
19756 hardcode_shlibpath_var_F77=no
19757 hardcode_runpath_var=yes
19758 runpath_var=LD_RUN_PATH
19759 ;;
19760
19761 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19762 no_undefined_flag_F77='${wl}-z ${wl}text'
19763 if test "$GCC" = yes; then
19764 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19765 else
19766 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19767 fi
19768 runpath_var='LD_RUN_PATH'
19769 hardcode_shlibpath_var_F77=no
19770 ;;
19771
19772 sysv5*)
19773 no_undefined_flag_F77=' -z text'
19774 # $CC -shared without GNU ld will not create a library from C++
19775 # object files and a static libstdc++, better avoid it by now
19776 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019777 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19778 $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 +000019779 hardcode_libdir_flag_spec_F77=
19780 hardcode_shlibpath_var_F77=no
19781 runpath_var='LD_RUN_PATH'
19782 ;;
19783
19784 uts4*)
19785 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19786 hardcode_libdir_flag_spec_F77='-L$libdir'
19787 hardcode_shlibpath_var_F77=no
19788 ;;
19789
19790 *)
19791 ld_shlibs_F77=no
19792 ;;
19793 esac
19794 fi
19795
19796echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19797echo "${ECHO_T}$ld_shlibs_F77" >&6
19798test "$ld_shlibs_F77" = no && can_build_shared=no
19799
19800variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19801if test "$GCC" = yes; then
19802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19803fi
19804
19805#
19806# Do we need to explicitly link libc?
19807#
19808case "x$archive_cmds_need_lc_F77" in
19809x|xyes)
19810 # Assume -lc should be added
19811 archive_cmds_need_lc_F77=yes
19812
19813 if test "$enable_shared" = yes && test "$GCC" = yes; then
19814 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019815 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019816 # FIXME: we may have to deal with multi-command sequences.
19817 ;;
19818 '$CC '*)
19819 # Test whether the compiler implicitly links with -lc since on some
19820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19821 # to ld, don't add -lc before -lgcc.
19822 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19823echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19824 $rm conftest*
19825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19826
19827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19828 (eval $ac_compile) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } 2>conftest.err; then
19832 soname=conftest
19833 lib=conftest
19834 libobjs=conftest.$ac_objext
19835 deplibs=
19836 wl=$lt_prog_compiler_wl_F77
19837 compiler_flags=-v
19838 linker_flags=-v
19839 verstring=
19840 output_objdir=.
19841 libname=conftest
19842 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19843 allow_undefined_flag_F77=
19844 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19845 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }
19849 then
19850 archive_cmds_need_lc_F77=no
19851 else
19852 archive_cmds_need_lc_F77=yes
19853 fi
19854 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19855 else
19856 cat conftest.err 1>&5
19857 fi
19858 $rm conftest*
19859 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19860echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19861 ;;
19862 esac
19863 fi
19864 ;;
19865esac
19866
John Criswell47fdd832003-07-14 16:52:07 +000019867echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19868echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19869library_names_spec=
19870libname_spec='lib$name'
19871soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019872shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019873postinstall_cmds=
19874postuninstall_cmds=
19875finish_cmds=
19876finish_eval=
19877shlibpath_var=
19878shlibpath_overrides_runpath=unknown
19879version_type=none
19880dynamic_linker="$host_os ld.so"
19881sys_lib_dlsearch_path_spec="/lib /usr/lib"
19882if test "$GCC" = yes; then
19883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19884 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19885 # if the path contains ";" then we assume it to be the separator
19886 # otherwise default to the standard path separator (i.e. ":") - it is
19887 # assumed that no part of a normal pathname contains ";" but that should
19888 # okay in the real world where ";" in dirpaths is itself problematic.
19889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19890 else
19891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19892 fi
19893else
19894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19895fi
19896need_lib_prefix=unknown
19897hardcode_into_libs=no
19898
19899# when you set need_version to no, make sure it does not cause -set_version
19900# flags to be left without arguments
19901need_version=unknown
19902
19903case $host_os in
19904aix3*)
19905 version_type=linux
19906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19907 shlibpath_var=LIBPATH
19908
19909 # AIX 3 has no versioning support, so we append a major version to the name.
19910 soname_spec='${libname}${release}${shared_ext}$major'
19911 ;;
19912
19913aix4* | aix5*)
19914 version_type=linux
19915 need_lib_prefix=no
19916 need_version=no
19917 hardcode_into_libs=yes
19918 if test "$host_cpu" = ia64; then
19919 # AIX 5 supports IA64
19920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19921 shlibpath_var=LD_LIBRARY_PATH
19922 else
19923 # With GCC up to 2.95.x, collect2 would create an import file
19924 # for dependence libraries. The import file would start with
19925 # the line `#! .'. This would cause the generated library to
19926 # depend on `.', always an invalid library. This was fixed in
19927 # development snapshots of GCC prior to 3.0.
19928 case $host_os in
19929 aix4 | aix4.[01] | aix4.[01].*)
19930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19931 echo ' yes '
19932 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19933 :
19934 else
19935 can_build_shared=no
19936 fi
19937 ;;
19938 esac
19939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19940 # soname into executable. Probably we can add versioning support to
19941 # collect2, so additional links can be useful in future.
19942 if test "$aix_use_runtimelinking" = yes; then
19943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19944 # instead of lib<name>.a to let people know that these are not
19945 # typical AIX shared libraries.
19946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19947 else
19948 # We preserve .a as extension for shared libraries through AIX4.2
19949 # and later when we are not doing run time linking.
19950 library_names_spec='${libname}${release}.a $libname.a'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19952 fi
19953 shlibpath_var=LIBPATH
19954 fi
19955 ;;
19956
19957amigaos*)
19958 library_names_spec='$libname.ixlibrary $libname.a'
19959 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019960 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 +000019961 ;;
19962
19963beos*)
19964 library_names_spec='${libname}${shared_ext}'
19965 dynamic_linker="$host_os ld.so"
19966 shlibpath_var=LIBRARY_PATH
19967 ;;
19968
Reid Spencer2706f8c2004-09-19 23:53:36 +000019969bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019970 version_type=linux
19971 need_version=no
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973 soname_spec='${libname}${release}${shared_ext}$major'
19974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19975 shlibpath_var=LD_LIBRARY_PATH
19976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19978 # the default ld.so.conf also contains /usr/contrib/lib and
19979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19980 # libtool to hard-code these into programs
19981 ;;
19982
19983cygwin* | mingw* | pw32*)
19984 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019985 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019986 need_version=no
19987 need_lib_prefix=no
19988
19989 case $GCC,$host_os in
19990 yes,cygwin* | yes,mingw* | yes,pw32*)
19991 library_names_spec='$libname.dll.a'
19992 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019993 postinstall_cmds='base_file=`basename \${file}`~
19994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19995 dldir=$destdir/`dirname \$dlpath`~
19996 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000019997 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19999 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020000 $rm \$dlpath'
20001 shlibpath_overrides_runpath=yes
20002
20003 case $host_os in
20004 cygwin*)
20005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20006 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 +000020007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020008 ;;
20009 mingw*)
20010 # MinGW DLLs use traditional 'lib' prefix
20011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20013 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20014 # It is most probably a Windows format PATH printed by
20015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20016 # path with ; separators, and with drive letters. We can handle the
20017 # drive letters (cygwin fileutils understands them), so leave them,
20018 # especially as we might pass files found there to a mingw objdump,
20019 # which wouldn't understand a cygwinified path. Ahh.
20020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20021 else
20022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20023 fi
20024 ;;
20025 pw32*)
20026 # pw32 DLLs use 'pw' prefix rather than 'lib'
20027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20028 ;;
20029 esac
20030 ;;
20031
20032 *)
20033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20034 ;;
20035 esac
20036 dynamic_linker='Win32 ld.exe'
20037 # FIXME: first we should search . and the directory the executable is in
20038 shlibpath_var=PATH
20039 ;;
20040
20041darwin* | rhapsody*)
20042 dynamic_linker="$host_os dyld"
20043 version_type=darwin
20044 need_lib_prefix=no
20045 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020046 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020047 soname_spec='${libname}${release}${major}$shared_ext'
20048 shlibpath_overrides_runpath=yes
20049 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020050 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020051 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020052 if test "$GCC" = yes; then
20053 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"`
20054 else
20055 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020056 fi
20057 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20058 ;;
20059
20060dgux*)
20061 version_type=linux
20062 need_lib_prefix=no
20063 need_version=no
20064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20065 soname_spec='${libname}${release}${shared_ext}$major'
20066 shlibpath_var=LD_LIBRARY_PATH
20067 ;;
20068
20069freebsd1*)
20070 dynamic_linker=no
20071 ;;
20072
Reid Spencer2706f8c2004-09-19 23:53:36 +000020073kfreebsd*-gnu)
20074 version_type=linux
20075 need_lib_prefix=no
20076 need_version=no
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 shlibpath_var=LD_LIBRARY_PATH
20080 shlibpath_overrides_runpath=no
20081 hardcode_into_libs=yes
20082 dynamic_linker='GNU ld.so'
20083 ;;
20084
John Criswell47fdd832003-07-14 16:52:07 +000020085freebsd*)
20086 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20087 version_type=freebsd-$objformat
20088 case $version_type in
20089 freebsd-elf*)
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20091 need_version=no
20092 need_lib_prefix=no
20093 ;;
20094 freebsd-*)
20095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20096 need_version=yes
20097 ;;
20098 esac
20099 shlibpath_var=LD_LIBRARY_PATH
20100 case $host_os in
20101 freebsd2*)
20102 shlibpath_overrides_runpath=yes
20103 ;;
20104 freebsd3.01* | freebsdelf3.01*)
20105 shlibpath_overrides_runpath=yes
20106 hardcode_into_libs=yes
20107 ;;
20108 *) # from 3.2 on
20109 shlibpath_overrides_runpath=no
20110 hardcode_into_libs=yes
20111 ;;
20112 esac
20113 ;;
20114
20115gnu*)
20116 version_type=linux
20117 need_lib_prefix=no
20118 need_version=no
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 shlibpath_var=LD_LIBRARY_PATH
20122 hardcode_into_libs=yes
20123 ;;
20124
20125hpux9* | hpux10* | hpux11*)
20126 # Give a soname corresponding to the major version so that dld.sl refuses to
20127 # link against other versions.
20128 version_type=sunos
20129 need_lib_prefix=no
20130 need_version=no
20131 case "$host_cpu" in
20132 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020133 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020134 hardcode_into_libs=yes
20135 dynamic_linker="$host_os dld.so"
20136 shlibpath_var=LD_LIBRARY_PATH
20137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 if test "X$HPUX_IA64_MODE" = X32; then
20141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20142 else
20143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20144 fi
20145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20146 ;;
20147 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020148 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020149 hardcode_into_libs=yes
20150 dynamic_linker="$host_os dld.sl"
20151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20154 soname_spec='${libname}${release}${shared_ext}$major'
20155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20157 ;;
20158 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020159 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020160 dynamic_linker="$host_os dld.sl"
20161 shlibpath_var=SHLIB_PATH
20162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20165 ;;
20166 esac
20167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20168 postinstall_cmds='chmod 555 $lib'
20169 ;;
20170
20171irix5* | irix6* | nonstopux*)
20172 case $host_os in
20173 nonstopux*) version_type=nonstopux ;;
20174 *)
20175 if test "$lt_cv_prog_gnu_ld" = yes; then
20176 version_type=linux
20177 else
20178 version_type=irix
20179 fi ;;
20180 esac
20181 need_lib_prefix=no
20182 need_version=no
20183 soname_spec='${libname}${release}${shared_ext}$major'
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20185 case $host_os in
20186 irix5* | nonstopux*)
20187 libsuff= shlibsuff=
20188 ;;
20189 *)
20190 case $LD in # libtool.m4 will add one of these switches to LD
20191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20192 libsuff= shlibsuff= libmagic=32-bit;;
20193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20194 libsuff=32 shlibsuff=N32 libmagic=N32;;
20195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20197 *) libsuff= shlibsuff= libmagic=never-match;;
20198 esac
20199 ;;
20200 esac
20201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20202 shlibpath_overrides_runpath=no
20203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20205 hardcode_into_libs=yes
20206 ;;
20207
20208# No shared lib support for Linux oldld, aout, or coff.
20209linux*oldld* | linux*aout* | linux*coff*)
20210 dynamic_linker=no
20211 ;;
20212
20213# This must be Linux ELF.
20214linux*)
20215 version_type=linux
20216 need_lib_prefix=no
20217 need_version=no
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20219 soname_spec='${libname}${release}${shared_ext}$major'
20220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20221 shlibpath_var=LD_LIBRARY_PATH
20222 shlibpath_overrides_runpath=no
20223 # This implies no fast_install, which is unacceptable.
20224 # Some rework will be needed to allow for fast_install
20225 # before this can be enabled.
20226 hardcode_into_libs=yes
20227
Reid Spencer2706f8c2004-09-19 23:53:36 +000020228 # Append ld.so.conf contents to the search path
20229 if test -f /etc/ld.so.conf; then
20230 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20232 fi
20233
John Criswell47fdd832003-07-14 16:52:07 +000020234 # We used to test for /lib/ld.so.1 and disable shared libraries on
20235 # powerpc, because MkLinux only supported shared libraries with the
20236 # GNU dynamic linker. Since this was broken with cross compilers,
20237 # most powerpc-linux boxes support dynamic linking these days and
20238 # people can always --disable-shared, the test was removed, and we
20239 # assume the GNU/Linux dynamic linker is in use.
20240 dynamic_linker='GNU/Linux ld.so'
20241 ;;
20242
Reid Spencer2706f8c2004-09-19 23:53:36 +000020243knetbsd*-gnu)
20244 version_type=linux
20245 need_lib_prefix=no
20246 need_version=no
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 shlibpath_overrides_runpath=no
20251 hardcode_into_libs=yes
20252 dynamic_linker='GNU ld.so'
20253 ;;
20254
John Criswell47fdd832003-07-14 16:52:07 +000020255netbsd*)
20256 version_type=sunos
20257 need_lib_prefix=no
20258 need_version=no
20259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20262 dynamic_linker='NetBSD (a.out) ld.so'
20263 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020265 soname_spec='${libname}${release}${shared_ext}$major'
20266 dynamic_linker='NetBSD ld.elf_so'
20267 fi
20268 shlibpath_var=LD_LIBRARY_PATH
20269 shlibpath_overrides_runpath=yes
20270 hardcode_into_libs=yes
20271 ;;
20272
20273newsos6)
20274 version_type=linux
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 shlibpath_overrides_runpath=yes
20278 ;;
20279
Reid Spencer2706f8c2004-09-19 23:53:36 +000020280nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020281 version_type=linux
20282 need_lib_prefix=no
20283 need_version=no
20284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20285 soname_spec='${libname}${release}${shared_ext}$major'
20286 shlibpath_var=LD_LIBRARY_PATH
20287 shlibpath_overrides_runpath=yes
20288 ;;
20289
20290openbsd*)
20291 version_type=sunos
20292 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020293 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20296 shlibpath_var=LD_LIBRARY_PATH
20297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20298 case $host_os in
20299 openbsd2.[89] | openbsd2.[89].*)
20300 shlibpath_overrides_runpath=no
20301 ;;
20302 *)
20303 shlibpath_overrides_runpath=yes
20304 ;;
20305 esac
20306 else
20307 shlibpath_overrides_runpath=yes
20308 fi
20309 ;;
20310
20311os2*)
20312 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020313 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020314 need_lib_prefix=no
20315 library_names_spec='$libname${shared_ext} $libname.a'
20316 dynamic_linker='OS/2 ld.exe'
20317 shlibpath_var=LIBPATH
20318 ;;
20319
20320osf3* | osf4* | osf5*)
20321 version_type=osf
20322 need_lib_prefix=no
20323 need_version=no
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326 shlibpath_var=LD_LIBRARY_PATH
20327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20328 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20329 ;;
20330
20331sco3.2v5*)
20332 version_type=osf
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 shlibpath_var=LD_LIBRARY_PATH
20336 ;;
20337
20338solaris*)
20339 version_type=linux
20340 need_lib_prefix=no
20341 need_version=no
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 shlibpath_var=LD_LIBRARY_PATH
20345 shlibpath_overrides_runpath=yes
20346 hardcode_into_libs=yes
20347 # ldd complains unless libraries are executable
20348 postinstall_cmds='chmod +x $lib'
20349 ;;
20350
20351sunos4*)
20352 version_type=sunos
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20355 shlibpath_var=LD_LIBRARY_PATH
20356 shlibpath_overrides_runpath=yes
20357 if test "$with_gnu_ld" = yes; then
20358 need_lib_prefix=no
20359 fi
20360 need_version=yes
20361 ;;
20362
20363sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20364 version_type=linux
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 soname_spec='${libname}${release}${shared_ext}$major'
20367 shlibpath_var=LD_LIBRARY_PATH
20368 case $host_vendor in
20369 sni)
20370 shlibpath_overrides_runpath=no
20371 need_lib_prefix=no
20372 export_dynamic_flag_spec='${wl}-Blargedynsym'
20373 runpath_var=LD_RUN_PATH
20374 ;;
20375 siemens)
20376 need_lib_prefix=no
20377 ;;
20378 motorola)
20379 need_lib_prefix=no
20380 need_version=no
20381 shlibpath_overrides_runpath=no
20382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20383 ;;
20384 esac
20385 ;;
20386
20387sysv4*MP*)
20388 if test -d /usr/nec ;then
20389 version_type=linux
20390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20391 soname_spec='$libname${shared_ext}.$major'
20392 shlibpath_var=LD_LIBRARY_PATH
20393 fi
20394 ;;
20395
20396uts4*)
20397 version_type=linux
20398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20399 soname_spec='${libname}${release}${shared_ext}$major'
20400 shlibpath_var=LD_LIBRARY_PATH
20401 ;;
20402
20403*)
20404 dynamic_linker=no
20405 ;;
20406esac
20407echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20408echo "${ECHO_T}$dynamic_linker" >&6
20409test "$dynamic_linker" = no && can_build_shared=no
20410
Reid Spencer2706f8c2004-09-19 23:53:36 +000020411echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20412echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20413hardcode_action_F77=
20414if test -n "$hardcode_libdir_flag_spec_F77" || \
20415 test -n "$runpath_var_F77" || \
20416 test "X$hardcode_automatic_F77" = "Xyes" ; then
20417
20418 # We can hardcode non-existant directories.
20419 if test "$hardcode_direct_F77" != no &&
20420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20421 # have to relink, otherwise we might link with an installed library
20422 # when we should be linking with a yet-to-be-installed one
20423 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20424 test "$hardcode_minus_L_F77" != no; then
20425 # Linking always hardcodes the temporary library directory.
20426 hardcode_action_F77=relink
20427 else
20428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20429 hardcode_action_F77=immediate
20430 fi
20431else
20432 # We cannot hardcode anything, or else we can only hardcode existing
20433 # directories.
20434 hardcode_action_F77=unsupported
20435fi
20436echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20437echo "${ECHO_T}$hardcode_action_F77" >&6
20438
20439if test "$hardcode_action_F77" = relink; then
20440 # Fast installation is not supported
20441 enable_fast_install=no
20442elif test "$shlibpath_overrides_runpath" = yes ||
20443 test "$enable_shared" = no; then
20444 # Fast installation is not necessary
20445 enable_fast_install=needless
20446fi
20447
20448striplib=
20449old_striplib=
20450echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20451echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20452if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20453 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20454 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20455 echo "$as_me:$LINENO: result: yes" >&5
20456echo "${ECHO_T}yes" >&6
20457else
20458# FIXME - insert some real tests, host_os isn't really good enough
20459 case $host_os in
20460 darwin*)
20461 if test -n "$STRIP" ; then
20462 striplib="$STRIP -x"
20463 echo "$as_me:$LINENO: result: yes" >&5
20464echo "${ECHO_T}yes" >&6
20465 else
20466 echo "$as_me:$LINENO: result: no" >&5
20467echo "${ECHO_T}no" >&6
20468fi
20469 ;;
20470 *)
20471 echo "$as_me:$LINENO: result: no" >&5
20472echo "${ECHO_T}no" >&6
20473 ;;
20474 esac
20475fi
20476
20477
John Criswell47fdd832003-07-14 16:52:07 +000020478
20479# The else clause should only fire when bootstrapping the
20480# libtool distribution, otherwise you forgot to ship ltmain.sh
20481# with your package, and you will get complaints that there are
20482# no rules to generate ltmain.sh.
20483if test -f "$ltmain"; then
20484 # See if we are running on zsh, and set the options which allow our commands through
20485 # without removal of \ escapes.
20486 if test -n "${ZSH_VERSION+set}" ; then
20487 setopt NO_GLOB_SUBST
20488 fi
20489 # Now quote all the things that may contain metacharacters while being
20490 # careful not to overquote the AC_SUBSTed values. We take copies of the
20491 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20493 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020494 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20495 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20496 deplibs_check_method reload_flag reload_cmds need_locks \
20497 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20498 lt_cv_sys_global_symbol_to_c_name_address \
20499 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20500 old_postinstall_cmds old_postuninstall_cmds \
20501 compiler_F77 \
20502 CC_F77 \
20503 LD_F77 \
20504 lt_prog_compiler_wl_F77 \
20505 lt_prog_compiler_pic_F77 \
20506 lt_prog_compiler_static_F77 \
20507 lt_prog_compiler_no_builtin_flag_F77 \
20508 export_dynamic_flag_spec_F77 \
20509 thread_safe_flag_spec_F77 \
20510 whole_archive_flag_spec_F77 \
20511 enable_shared_with_static_runtimes_F77 \
20512 old_archive_cmds_F77 \
20513 old_archive_from_new_cmds_F77 \
20514 predep_objects_F77 \
20515 postdep_objects_F77 \
20516 predeps_F77 \
20517 postdeps_F77 \
20518 compiler_lib_search_path_F77 \
20519 archive_cmds_F77 \
20520 archive_expsym_cmds_F77 \
20521 postinstall_cmds_F77 \
20522 postuninstall_cmds_F77 \
20523 old_archive_from_expsyms_cmds_F77 \
20524 allow_undefined_flag_F77 \
20525 no_undefined_flag_F77 \
20526 export_symbols_cmds_F77 \
20527 hardcode_libdir_flag_spec_F77 \
20528 hardcode_libdir_flag_spec_ld_F77 \
20529 hardcode_libdir_separator_F77 \
20530 hardcode_automatic_F77 \
20531 module_cmds_F77 \
20532 module_expsym_cmds_F77 \
20533 lt_cv_prog_compiler_c_o_F77 \
20534 exclude_expsyms_F77 \
20535 include_expsyms_F77; do
20536
20537 case $var in
20538 old_archive_cmds_F77 | \
20539 old_archive_from_new_cmds_F77 | \
20540 archive_cmds_F77 | \
20541 archive_expsym_cmds_F77 | \
20542 module_cmds_F77 | \
20543 module_expsym_cmds_F77 | \
20544 old_archive_from_expsyms_cmds_F77 | \
20545 export_symbols_cmds_F77 | \
20546 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20547 postinstall_cmds | postuninstall_cmds | \
20548 old_postinstall_cmds | old_postuninstall_cmds | \
20549 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20550 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020551 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 +000020552 ;;
20553 *)
20554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20555 ;;
20556 esac
20557 done
20558
20559 case $lt_echo in
20560 *'\$0 --fallback-echo"')
20561 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20562 ;;
20563 esac
20564
20565cfgfile="$ofile"
20566
20567 cat <<__EOF__ >> "$cfgfile"
20568# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20569
20570# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20571
20572# Shell to use when invoking shell scripts.
20573SHELL=$lt_SHELL
20574
20575# Whether or not to build shared libraries.
20576build_libtool_libs=$enable_shared
20577
20578# Whether or not to build static libraries.
20579build_old_libs=$enable_static
20580
20581# Whether or not to add -lc for building shared libraries.
20582build_libtool_need_lc=$archive_cmds_need_lc_F77
20583
20584# Whether or not to disallow shared libs when runtime libs are static
20585allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20586
20587# Whether or not to optimize for fast installation.
20588fast_install=$enable_fast_install
20589
20590# The host system.
20591host_alias=$host_alias
20592host=$host
20593
20594# An echo program that does not interpret backslashes.
20595echo=$lt_echo
20596
20597# The archiver.
20598AR=$lt_AR
20599AR_FLAGS=$lt_AR_FLAGS
20600
20601# A C compiler.
20602LTCC=$lt_LTCC
20603
20604# A language-specific compiler.
20605CC=$lt_compiler_F77
20606
20607# Is the compiler the GNU C compiler?
20608with_gcc=$GCC_F77
20609
20610# An ERE matcher.
20611EGREP=$lt_EGREP
20612
20613# The linker used to build libraries.
20614LD=$lt_LD_F77
20615
20616# Whether we need hard or soft links.
20617LN_S=$lt_LN_S
20618
20619# A BSD-compatible nm program.
20620NM=$lt_NM
20621
20622# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020623STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020624
20625# Used to examine libraries when file_magic_cmd begins "file"
20626MAGIC_CMD=$MAGIC_CMD
20627
20628# Used on cygwin: DLL creation program.
20629DLLTOOL="$DLLTOOL"
20630
20631# Used on cygwin: object dumper.
20632OBJDUMP="$OBJDUMP"
20633
20634# Used on cygwin: assembler.
20635AS="$AS"
20636
20637# The name of the directory that contains temporary libtool files.
20638objdir=$objdir
20639
20640# How to create reloadable object files.
20641reload_flag=$lt_reload_flag
20642reload_cmds=$lt_reload_cmds
20643
20644# How to pass a linker flag through the compiler.
20645wl=$lt_lt_prog_compiler_wl_F77
20646
20647# Object file suffix (normally "o").
20648objext="$ac_objext"
20649
20650# Old archive suffix (normally "a").
20651libext="$libext"
20652
20653# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020654shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020655
20656# Executable file suffix (normally "").
20657exeext="$exeext"
20658
20659# Additional compiler flags for building library objects.
20660pic_flag=$lt_lt_prog_compiler_pic_F77
20661pic_mode=$pic_mode
20662
20663# What is the maximum length of a command?
20664max_cmd_len=$lt_cv_sys_max_cmd_len
20665
20666# Does compiler simultaneously support -c and -o options?
20667compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20668
20669# Must we lock files when doing compilation ?
20670need_locks=$lt_need_locks
20671
20672# Do we need the lib prefix for modules?
20673need_lib_prefix=$need_lib_prefix
20674
20675# Do we need a version for libraries?
20676need_version=$need_version
20677
20678# Whether dlopen is supported.
20679dlopen_support=$enable_dlopen
20680
20681# Whether dlopen of programs is supported.
20682dlopen_self=$enable_dlopen_self
20683
20684# Whether dlopen of statically linked programs is supported.
20685dlopen_self_static=$enable_dlopen_self_static
20686
20687# Compiler flag to prevent dynamic linking.
20688link_static_flag=$lt_lt_prog_compiler_static_F77
20689
20690# Compiler flag to turn off builtin functions.
20691no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20692
20693# Compiler flag to allow reflexive dlopens.
20694export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20695
20696# Compiler flag to generate shared objects directly from archives.
20697whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20698
20699# Compiler flag to generate thread-safe objects.
20700thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20701
20702# Library versioning type.
20703version_type=$version_type
20704
20705# Format of library name prefix.
20706libname_spec=$lt_libname_spec
20707
20708# List of archive names. First name is the real one, the rest are links.
20709# The last name is the one that the linker finds with -lNAME.
20710library_names_spec=$lt_library_names_spec
20711
20712# The coded name of the library, if different from the real name.
20713soname_spec=$lt_soname_spec
20714
20715# Commands used to build and install an old-style archive.
20716RANLIB=$lt_RANLIB
20717old_archive_cmds=$lt_old_archive_cmds_F77
20718old_postinstall_cmds=$lt_old_postinstall_cmds
20719old_postuninstall_cmds=$lt_old_postuninstall_cmds
20720
20721# Create an old-style archive from a shared archive.
20722old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20723
20724# Create a temporary old-style archive to link instead of a shared archive.
20725old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20726
20727# Commands used to build and install a shared archive.
20728archive_cmds=$lt_archive_cmds_F77
20729archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20730postinstall_cmds=$lt_postinstall_cmds
20731postuninstall_cmds=$lt_postuninstall_cmds
20732
20733# Commands used to build a loadable module (assumed same as above if empty)
20734module_cmds=$lt_module_cmds_F77
20735module_expsym_cmds=$lt_module_expsym_cmds_F77
20736
20737# Commands to strip libraries.
20738old_striplib=$lt_old_striplib
20739striplib=$lt_striplib
20740
20741# Dependencies to place before the objects being linked to create a
20742# shared library.
20743predep_objects=$lt_predep_objects_F77
20744
20745# Dependencies to place after the objects being linked to create a
20746# shared library.
20747postdep_objects=$lt_postdep_objects_F77
20748
20749# Dependencies to place before the objects being linked to create a
20750# shared library.
20751predeps=$lt_predeps_F77
20752
20753# Dependencies to place after the objects being linked to create a
20754# shared library.
20755postdeps=$lt_postdeps_F77
20756
20757# The library search path used internally by the compiler when linking
20758# a shared library.
20759compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20760
20761# Method to check whether dependent libraries are shared objects.
20762deplibs_check_method=$lt_deplibs_check_method
20763
20764# Command to use when deplibs_check_method == file_magic.
20765file_magic_cmd=$lt_file_magic_cmd
20766
20767# Flag that allows shared libraries with undefined symbols to be built.
20768allow_undefined_flag=$lt_allow_undefined_flag_F77
20769
20770# Flag that forces no undefined symbols.
20771no_undefined_flag=$lt_no_undefined_flag_F77
20772
20773# Commands used to finish a libtool library installation in a directory.
20774finish_cmds=$lt_finish_cmds
20775
20776# Same as above, but a single script fragment to be evaled but not shown.
20777finish_eval=$lt_finish_eval
20778
20779# Take the output of nm and produce a listing of raw symbols and C names.
20780global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20781
20782# Transform the output of nm in a proper C declaration
20783global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20784
20785# Transform the output of nm in a C name address pair
20786global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20787
20788# This is the shared library runtime path variable.
20789runpath_var=$runpath_var
20790
20791# This is the shared library path variable.
20792shlibpath_var=$shlibpath_var
20793
20794# Is shlibpath searched before the hard-coded library search path?
20795shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20796
20797# How to hardcode a shared library path into an executable.
20798hardcode_action=$hardcode_action_F77
20799
20800# Whether we should hardcode library paths into libraries.
20801hardcode_into_libs=$hardcode_into_libs
20802
20803# Flag to hardcode \$libdir into a binary during linking.
20804# This must work even if \$libdir does not exist.
20805hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20806
20807# If ld is used when linking, flag to hardcode \$libdir into
20808# a binary during linking. This must work even if \$libdir does
20809# not exist.
20810hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20811
20812# Whether we need a single -rpath flag with a separated argument.
20813hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20814
20815# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20816# resulting binary.
20817hardcode_direct=$hardcode_direct_F77
20818
20819# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20820# resulting binary.
20821hardcode_minus_L=$hardcode_minus_L_F77
20822
20823# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20824# the resulting binary.
20825hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20826
20827# Set to yes if building a shared library automatically hardcodes DIR into the library
20828# and all subsequent libraries and executables linked against it.
20829hardcode_automatic=$hardcode_automatic_F77
20830
20831# Variables whose values should be saved in libtool wrapper scripts and
20832# restored at relink time.
20833variables_saved_for_relink="$variables_saved_for_relink"
20834
20835# Whether libtool must link a program against all its dependency libraries.
20836link_all_deplibs=$link_all_deplibs_F77
20837
20838# Compile-time system search path for libraries
20839sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20840
20841# Run-time system search path for libraries
20842sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20843
20844# Fix the shell variable \$srcfile for the compiler.
20845fix_srcfile_path="$fix_srcfile_path_F77"
20846
20847# Set to yes if exported symbols are required.
20848always_export_symbols=$always_export_symbols_F77
20849
20850# The commands to list exported symbols.
20851export_symbols_cmds=$lt_export_symbols_cmds_F77
20852
20853# The commands to extract the exported symbol list from a shared archive.
20854extract_expsyms_cmds=$lt_extract_expsyms_cmds
20855
20856# Symbols that should not be listed in the preloaded symbols.
20857exclude_expsyms=$lt_exclude_expsyms_F77
20858
20859# Symbols that must always be exported.
20860include_expsyms=$lt_include_expsyms_F77
20861
20862# ### END LIBTOOL TAG CONFIG: $tagname
20863
20864__EOF__
20865
20866
20867else
20868 # If there is no Makefile yet, we rely on a make rule to execute
20869 # `config.status --recheck' to rerun these tests and create the
20870 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020871 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20872 if test -f "$ltmain_in"; then
20873 test -f Makefile && make "$ltmain"
20874 fi
John Criswell47fdd832003-07-14 16:52:07 +000020875fi
20876
20877
20878ac_ext=c
20879ac_cpp='$CPP $CPPFLAGS'
20880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882ac_compiler_gnu=$ac_cv_c_compiler_gnu
20883
20884CC="$lt_save_CC"
20885
20886 else
20887 tagname=""
20888 fi
20889 ;;
20890
20891 GCJ)
20892 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020893 ac_ext=c
20894ac_cpp='$CPP $CPPFLAGS'
20895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20897ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020898
20899
20900# Source file extension for Java test sources.
20901ac_ext=java
20902
20903# Object file extension for compiled Java test sources.
20904objext=o
20905objext_GCJ=$objext
20906
20907# Code to be used in simple compile tests
20908lt_simple_compile_test_code="class foo {}\n"
20909
20910# Code to be used in simple link tests
20911lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20912
20913# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20914
20915# If no C compiler was specified, use CC.
20916LTCC=${LTCC-"$CC"}
20917
20918# Allow CC to be a program name with arguments.
20919compiler=$CC
20920
20921
20922# Allow CC to be a program name with arguments.
20923lt_save_CC="$CC"
20924CC=${GCJ-"gcj"}
20925compiler=$CC
20926compiler_GCJ=$CC
20927
20928# GCJ did not exist at the time GCC didn't implicitly link libc in.
20929archive_cmds_need_lc_GCJ=no
20930
John Criswell47fdd832003-07-14 16:52:07 +000020931
20932lt_prog_compiler_no_builtin_flag_GCJ=
20933
20934if test "$GCC" = yes; then
20935 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20936
Reid Spencer2706f8c2004-09-19 23:53:36 +000020937
20938echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020939echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20940if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20942else
20943 lt_cv_prog_compiler_rtti_exceptions=no
20944 ac_outfile=conftest.$ac_objext
20945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20946 lt_compiler_flag="-fno-rtti -fno-exceptions"
20947 # Insert the option either (1) after the last *FLAGS variable, or
20948 # (2) before a word containing "conftest.", or (3) at the end.
20949 # Note that $ac_compile itself does not contain backslashes and begins
20950 # with a dollar sign (not a hyphen), so the echo should work correctly.
20951 # The option is referenced via a variable to avoid confusing sed.
20952 lt_compile=`echo "$ac_compile" | $SED \
20953 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20955 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000020956 (eval echo "\"\$as_me:20956: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020957 (eval "$lt_compile" 2>conftest.err)
20958 ac_status=$?
20959 cat conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000020960 echo "$as_me:20960: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020961 if (exit $ac_status) && test -s "$ac_outfile"; then
20962 # The compiler can only warn and ignore the option if not recognized
20963 # So say no if there are warnings
20964 if test ! -s conftest.err; then
20965 lt_cv_prog_compiler_rtti_exceptions=yes
20966 fi
20967 fi
20968 $rm conftest*
20969
20970fi
20971echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20972echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20973
20974if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20975 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20976else
20977 :
20978fi
20979
20980fi
20981
20982lt_prog_compiler_wl_GCJ=
20983lt_prog_compiler_pic_GCJ=
20984lt_prog_compiler_static_GCJ=
20985
20986echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20987echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20988
20989 if test "$GCC" = yes; then
20990 lt_prog_compiler_wl_GCJ='-Wl,'
20991 lt_prog_compiler_static_GCJ='-static'
20992
20993 case $host_os in
20994 aix*)
20995 # All AIX code is PIC.
20996 if test "$host_cpu" = ia64; then
20997 # AIX 5 now supports IA64 processor
20998 lt_prog_compiler_static_GCJ='-Bstatic'
20999 fi
21000 ;;
21001
21002 amigaos*)
21003 # FIXME: we need at least 68020 code to build shared libraries, but
21004 # adding the `-m68020' flag to GCC prevents building anything better,
21005 # like `-m68040'.
21006 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21007 ;;
21008
21009 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21010 # PIC is the default for these OSes.
21011 ;;
21012
21013 mingw* | pw32* | os2*)
21014 # This hack is so that the source file can tell whether it is being
21015 # built for inclusion in a dll (and should export symbols for example).
21016 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21017 ;;
21018
21019 darwin* | rhapsody*)
21020 # PIC is the default on this platform
21021 # Common symbols not allowed in MH_DYLIB files
21022 lt_prog_compiler_pic_GCJ='-fno-common'
21023 ;;
21024
21025 msdosdjgpp*)
21026 # Just because we use GCC doesn't mean we suddenly get shared libraries
21027 # on systems that don't support them.
21028 lt_prog_compiler_can_build_shared_GCJ=no
21029 enable_shared=no
21030 ;;
21031
21032 sysv4*MP*)
21033 if test -d /usr/nec; then
21034 lt_prog_compiler_pic_GCJ=-Kconform_pic
21035 fi
21036 ;;
21037
21038 hpux*)
21039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21040 # not for PA HP-UX.
21041 case "$host_cpu" in
21042 hppa*64*|ia64*)
21043 # +Z the default
21044 ;;
21045 *)
21046 lt_prog_compiler_pic_GCJ='-fPIC'
21047 ;;
21048 esac
21049 ;;
21050
21051 *)
21052 lt_prog_compiler_pic_GCJ='-fPIC'
21053 ;;
21054 esac
21055 else
21056 # PORTME Check for flag to pass linker flags through the system compiler.
21057 case $host_os in
21058 aix*)
21059 lt_prog_compiler_wl_GCJ='-Wl,'
21060 if test "$host_cpu" = ia64; then
21061 # AIX 5 now supports IA64 processor
21062 lt_prog_compiler_static_GCJ='-Bstatic'
21063 else
21064 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21065 fi
21066 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021067 darwin*)
21068 # PIC is the default on this platform
21069 # Common symbols not allowed in MH_DYLIB files
21070 case "$cc_basename" in
21071 xlc*)
21072 lt_prog_compiler_pic_GCJ='-qnocommon'
21073 lt_prog_compiler_wl_GCJ='-Wl,'
21074 ;;
21075 esac
21076 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021077
21078 mingw* | pw32* | os2*)
21079 # This hack is so that the source file can tell whether it is being
21080 # built for inclusion in a dll (and should export symbols for example).
21081 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21082 ;;
21083
21084 hpux9* | hpux10* | hpux11*)
21085 lt_prog_compiler_wl_GCJ='-Wl,'
21086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21087 # not for PA HP-UX.
21088 case "$host_cpu" in
21089 hppa*64*|ia64*)
21090 # +Z the default
21091 ;;
21092 *)
21093 lt_prog_compiler_pic_GCJ='+Z'
21094 ;;
21095 esac
21096 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21097 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21098 ;;
21099
21100 irix5* | irix6* | nonstopux*)
21101 lt_prog_compiler_wl_GCJ='-Wl,'
21102 # PIC (with -KPIC) is the default.
21103 lt_prog_compiler_static_GCJ='-non_shared'
21104 ;;
21105
21106 newsos6)
21107 lt_prog_compiler_pic_GCJ='-KPIC'
21108 lt_prog_compiler_static_GCJ='-Bstatic'
21109 ;;
21110
21111 linux*)
21112 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021113 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021114 lt_prog_compiler_wl_GCJ='-Wl,'
21115 lt_prog_compiler_pic_GCJ='-KPIC'
21116 lt_prog_compiler_static_GCJ='-static'
21117 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021118 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021119 lt_prog_compiler_wl_GCJ='-Wl,'
21120 # All Alpha code is PIC.
21121 lt_prog_compiler_static_GCJ='-non_shared'
21122 ;;
21123 esac
21124 ;;
21125
21126 osf3* | osf4* | osf5*)
21127 lt_prog_compiler_wl_GCJ='-Wl,'
21128 # All OSF/1 code is PIC.
21129 lt_prog_compiler_static_GCJ='-non_shared'
21130 ;;
21131
21132 sco3.2v5*)
21133 lt_prog_compiler_pic_GCJ='-Kpic'
21134 lt_prog_compiler_static_GCJ='-dn'
21135 ;;
21136
21137 solaris*)
21138 lt_prog_compiler_wl_GCJ='-Wl,'
21139 lt_prog_compiler_pic_GCJ='-KPIC'
21140 lt_prog_compiler_static_GCJ='-Bstatic'
21141 ;;
21142
21143 sunos4*)
21144 lt_prog_compiler_wl_GCJ='-Qoption ld '
21145 lt_prog_compiler_pic_GCJ='-PIC'
21146 lt_prog_compiler_static_GCJ='-Bstatic'
21147 ;;
21148
21149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21150 lt_prog_compiler_wl_GCJ='-Wl,'
21151 lt_prog_compiler_pic_GCJ='-KPIC'
21152 lt_prog_compiler_static_GCJ='-Bstatic'
21153 ;;
21154
21155 sysv4*MP*)
21156 if test -d /usr/nec ;then
21157 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21158 lt_prog_compiler_static_GCJ='-Bstatic'
21159 fi
21160 ;;
21161
21162 uts4*)
21163 lt_prog_compiler_pic_GCJ='-pic'
21164 lt_prog_compiler_static_GCJ='-Bstatic'
21165 ;;
21166
21167 *)
21168 lt_prog_compiler_can_build_shared_GCJ=no
21169 ;;
21170 esac
21171 fi
21172
21173echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21174echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21175
21176#
21177# Check to make sure the PIC flag actually works.
21178#
21179if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021180
21181echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021182echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21183if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185else
21186 lt_prog_compiler_pic_works_GCJ=no
21187 ac_outfile=conftest.$ac_objext
21188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21189 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21190 # Insert the option either (1) after the last *FLAGS variable, or
21191 # (2) before a word containing "conftest.", or (3) at the end.
21192 # Note that $ac_compile itself does not contain backslashes and begins
21193 # with a dollar sign (not a hyphen), so the echo should work correctly.
21194 # The option is referenced via a variable to avoid confusing sed.
21195 lt_compile=`echo "$ac_compile" | $SED \
21196 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21198 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000021199 (eval echo "\"\$as_me:21199: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021200 (eval "$lt_compile" 2>conftest.err)
21201 ac_status=$?
21202 cat conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000021203 echo "$as_me:21203: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021204 if (exit $ac_status) && test -s "$ac_outfile"; then
21205 # The compiler can only warn and ignore the option if not recognized
21206 # So say no if there are warnings
21207 if test ! -s conftest.err; then
21208 lt_prog_compiler_pic_works_GCJ=yes
21209 fi
21210 fi
21211 $rm conftest*
21212
21213fi
21214echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21215echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21216
21217if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21218 case $lt_prog_compiler_pic_GCJ in
21219 "" | " "*) ;;
21220 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21221 esac
21222else
21223 lt_prog_compiler_pic_GCJ=
21224 lt_prog_compiler_can_build_shared_GCJ=no
21225fi
21226
21227fi
21228case "$host_os" in
21229 # For platforms which do not support PIC, -DPIC is meaningless:
21230 *djgpp*)
21231 lt_prog_compiler_pic_GCJ=
21232 ;;
21233 *)
21234 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21235 ;;
21236esac
21237
21238echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21239echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21240if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21242else
21243 lt_cv_prog_compiler_c_o_GCJ=no
21244 $rm -r conftest 2>/dev/null
21245 mkdir conftest
21246 cd conftest
21247 mkdir out
21248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21249
John Criswell47fdd832003-07-14 16:52:07 +000021250 lt_compiler_flag="-o out/conftest2.$ac_objext"
21251 # Insert the option either (1) after the last *FLAGS variable, or
21252 # (2) before a word containing "conftest.", or (3) at the end.
21253 # Note that $ac_compile itself does not contain backslashes and begins
21254 # with a dollar sign (not a hyphen), so the echo should work correctly.
21255 lt_compile=`echo "$ac_compile" | $SED \
21256 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21258 -e 's:$: $lt_compiler_flag:'`
Reid Spencer78ba11d2005-02-16 16:21:00 +000021259 (eval echo "\"\$as_me:21259: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021260 (eval "$lt_compile" 2>out/conftest.err)
21261 ac_status=$?
21262 cat out/conftest.err >&5
Reid Spencer78ba11d2005-02-16 16:21:00 +000021263 echo "$as_me:21263: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21265 then
21266 # The compiler can only warn and ignore the option if not recognized
21267 # So say no if there are warnings
21268 if test ! -s out/conftest.err; then
21269 lt_cv_prog_compiler_c_o_GCJ=yes
21270 fi
21271 fi
21272 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021273 $rm conftest*
21274 # SGI C++ compiler will create directory out/ii_files/ for
21275 # template instantiation
21276 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21277 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021278 cd ..
21279 rmdir conftest
21280 $rm conftest*
21281
21282fi
21283echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21284echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21285
21286
21287hard_links="nottested"
21288if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21289 # do not overwrite the value of need_locks provided by the user
21290 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21291echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21292 hard_links=yes
21293 $rm conftest*
21294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21295 touch conftest.a
21296 ln conftest.a conftest.b 2>&5 || hard_links=no
21297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21298 echo "$as_me:$LINENO: result: $hard_links" >&5
21299echo "${ECHO_T}$hard_links" >&6
21300 if test "$hard_links" = no; then
21301 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21302echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21303 need_locks=warn
21304 fi
21305else
21306 need_locks=no
21307fi
21308
21309echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21310echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21311
21312 runpath_var=
21313 allow_undefined_flag_GCJ=
21314 enable_shared_with_static_runtimes_GCJ=no
21315 archive_cmds_GCJ=
21316 archive_expsym_cmds_GCJ=
21317 old_archive_From_new_cmds_GCJ=
21318 old_archive_from_expsyms_cmds_GCJ=
21319 export_dynamic_flag_spec_GCJ=
21320 whole_archive_flag_spec_GCJ=
21321 thread_safe_flag_spec_GCJ=
21322 hardcode_libdir_flag_spec_GCJ=
21323 hardcode_libdir_flag_spec_ld_GCJ=
21324 hardcode_libdir_separator_GCJ=
21325 hardcode_direct_GCJ=no
21326 hardcode_minus_L_GCJ=no
21327 hardcode_shlibpath_var_GCJ=unsupported
21328 link_all_deplibs_GCJ=unknown
21329 hardcode_automatic_GCJ=no
21330 module_cmds_GCJ=
21331 module_expsym_cmds_GCJ=
21332 always_export_symbols_GCJ=no
21333 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21334 # include_expsyms should be a list of space-separated symbols to be *always*
21335 # included in the symbol list
21336 include_expsyms_GCJ=
21337 # exclude_expsyms can be an extended regexp of symbols to exclude
21338 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21339 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21340 # as well as any symbol that contains `d'.
21341 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21342 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21343 # platforms (ab)use it in PIC code, but their linkers get confused if
21344 # the symbol is explicitly referenced. Since portable code cannot
21345 # rely on this symbol name, it's probably fine to never include it in
21346 # preloaded symbol tables.
21347 extract_expsyms_cmds=
21348
21349 case $host_os in
21350 cygwin* | mingw* | pw32*)
21351 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21352 # When not using gcc, we currently assume that we are using
21353 # Microsoft Visual C++.
21354 if test "$GCC" != yes; then
21355 with_gnu_ld=no
21356 fi
21357 ;;
21358 openbsd*)
21359 with_gnu_ld=no
21360 ;;
21361 esac
21362
21363 ld_shlibs_GCJ=yes
21364 if test "$with_gnu_ld" = yes; then
21365 # If archive_cmds runs LD, not CC, wlarc should be empty
21366 wlarc='${wl}'
21367
21368 # See if GNU ld supports shared libraries.
21369 case $host_os in
21370 aix3* | aix4* | aix5*)
21371 # On AIX/PPC, the GNU linker is very broken
21372 if test "$host_cpu" != ia64; then
21373 ld_shlibs_GCJ=no
21374 cat <<EOF 1>&2
21375
21376*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21377*** to be unable to reliably create shared libraries on AIX.
21378*** Therefore, libtool is disabling shared libraries support. If you
21379*** really care for shared libraries, you may want to modify your PATH
21380*** so that a non-GNU linker is found, and then restart.
21381
21382EOF
21383 fi
21384 ;;
21385
21386 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021387 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 +000021388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21389 hardcode_minus_L_GCJ=yes
21390
21391 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21392 # that the semantics of dynamic libraries on AmigaOS, at least up
21393 # to version 4, is to share data among multiple programs linked
21394 # with the same dynamic library. Since this doesn't match the
21395 # behavior of shared libraries on other platforms, we can't use
21396 # them.
21397 ld_shlibs_GCJ=no
21398 ;;
21399
21400 beos*)
21401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21402 allow_undefined_flag_GCJ=unsupported
21403 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21404 # support --undefined. This deserves some investigation. FIXME
21405 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21406 else
21407 ld_shlibs_GCJ=no
21408 fi
21409 ;;
21410
21411 cygwin* | mingw* | pw32*)
21412 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21413 # as there is no search path for DLLs.
21414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21415 allow_undefined_flag_GCJ=unsupported
21416 always_export_symbols_GCJ=no
21417 enable_shared_with_static_runtimes_GCJ=yes
21418 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21419
21420 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21421 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21422 # If the export-symbols file already is a .def file (1st line
21423 # is EXPORTS), use it as is; otherwise, prepend...
21424 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21425 cp $export_symbols $output_objdir/$soname.def;
21426 else
21427 echo EXPORTS > $output_objdir/$soname.def;
21428 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021429 fi~
21430 $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 +000021431 else
21432 ld_shlibs=no
21433 fi
21434 ;;
21435
21436 netbsd*)
21437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21438 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21439 wlarc=
21440 else
21441 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21442 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21443 fi
21444 ;;
21445
21446 solaris* | sysv5*)
21447 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21448 ld_shlibs_GCJ=no
21449 cat <<EOF 1>&2
21450
21451*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21452*** create shared libraries on Solaris systems. Therefore, libtool
21453*** is disabling shared libraries support. We urge you to upgrade GNU
21454*** binutils to release 2.9.1 or newer. Another option is to modify
21455*** your PATH or compiler configuration so that the native linker is
21456*** used, and then restart.
21457
21458EOF
21459 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21462 else
21463 ld_shlibs_GCJ=no
21464 fi
21465 ;;
21466
21467 sunos4*)
21468 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21469 wlarc=
21470 hardcode_direct_GCJ=yes
21471 hardcode_shlibpath_var_GCJ=no
21472 ;;
21473
Reid Spencer2706f8c2004-09-19 23:53:36 +000021474 linux*)
21475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21476 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21477 archive_cmds_GCJ="$tmp_archive_cmds"
21478 supports_anon_versioning=no
21479 case `$LD -v 2>/dev/null` in
21480 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21481 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21482 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21483 *\ 2.11.*) ;; # other 2.11 versions
21484 *) supports_anon_versioning=yes ;;
21485 esac
21486 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021487 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21488cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21489$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021490 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21491 else
21492 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21493 fi
21494 else
21495 ld_shlibs_GCJ=no
21496 fi
21497 ;;
21498
John Criswell47fdd832003-07-14 16:52:07 +000021499 *)
21500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21502 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21503 else
21504 ld_shlibs_GCJ=no
21505 fi
21506 ;;
21507 esac
21508
21509 if test "$ld_shlibs_GCJ" = yes; then
21510 runpath_var=LD_RUN_PATH
21511 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21512 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21513 # ancient GNU ld didn't support --whole-archive et. al.
21514 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21515 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21516 else
21517 whole_archive_flag_spec_GCJ=
21518 fi
21519 fi
21520 else
21521 # PORTME fill in a description of your system's linker (not GNU ld)
21522 case $host_os in
21523 aix3*)
21524 allow_undefined_flag_GCJ=unsupported
21525 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021526 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 +000021527 # Note: this linker hardcodes the directories in LIBPATH if there
21528 # are no directories specified by -L.
21529 hardcode_minus_L_GCJ=yes
21530 if test "$GCC" = yes && test -z "$link_static_flag"; then
21531 # Neither direct hardcoding nor static linking is supported with a
21532 # broken collect2.
21533 hardcode_direct_GCJ=unsupported
21534 fi
21535 ;;
21536
21537 aix4* | aix5*)
21538 if test "$host_cpu" = ia64; then
21539 # On IA64, the linker does run time linking by default, so we don't
21540 # have to do anything special.
21541 aix_use_runtimelinking=no
21542 exp_sym_flag='-Bexport'
21543 no_entry_flag=""
21544 else
21545 # If we're using GNU nm, then we don't want the "-C" option.
21546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21547 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21548 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'
21549 else
21550 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'
21551 fi
21552 aix_use_runtimelinking=no
21553
21554 # Test if we are trying to use run time linking or normal
21555 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21556 # need to do runtime linking.
21557 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21558 for ld_flag in $LDFLAGS; do
21559 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21560 aix_use_runtimelinking=yes
21561 break
21562 fi
21563 done
21564 esac
21565
21566 exp_sym_flag='-bexport'
21567 no_entry_flag='-bnoentry'
21568 fi
21569
21570 # When large executables or shared objects are built, AIX ld can
21571 # have problems creating the table of contents. If linking a library
21572 # or program results in "error TOC overflow" add -mminimal-toc to
21573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21575
21576 archive_cmds_GCJ=''
21577 hardcode_direct_GCJ=yes
21578 hardcode_libdir_separator_GCJ=':'
21579 link_all_deplibs_GCJ=yes
21580
21581 if test "$GCC" = yes; then
21582 case $host_os in aix4.012|aix4.012.*)
21583 # We only want to do this on AIX 4.2 and lower, the check
21584 # below for broken collect2 doesn't work under 4.3+
21585 collect2name=`${CC} -print-prog-name=collect2`
21586 if test -f "$collect2name" && \
21587 strings "$collect2name" | grep resolve_lib_name >/dev/null
21588 then
21589 # We have reworked collect2
21590 hardcode_direct_GCJ=yes
21591 else
21592 # We have old collect2
21593 hardcode_direct_GCJ=unsupported
21594 # It fails to find uninstalled libraries when the uninstalled
21595 # path is not listed in the libpath. Setting hardcode_minus_L
21596 # to unsupported forces relinking
21597 hardcode_minus_L_GCJ=yes
21598 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21599 hardcode_libdir_separator_GCJ=
21600 fi
21601 esac
21602 shared_flag='-shared'
21603 else
21604 # not using gcc
21605 if test "$host_cpu" = ia64; then
21606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21607 # chokes on -Wl,-G. The following line is correct:
21608 shared_flag='-G'
21609 else
21610 if test "$aix_use_runtimelinking" = yes; then
21611 shared_flag='${wl}-G'
21612 else
21613 shared_flag='${wl}-bM:SRE'
21614 fi
21615 fi
21616 fi
21617
21618 # It seems that -bexpall does not export symbols beginning with
21619 # underscore (_), so it is better to generate a list of symbols to export.
21620 always_export_symbols_GCJ=yes
21621 if test "$aix_use_runtimelinking" = yes; then
21622 # Warning - without using the other runtime loading flags (-brtl),
21623 # -berok will link without error, but may produce a broken library.
21624 allow_undefined_flag_GCJ='-berok'
21625 # Determine the default libpath from the value encoded in an empty executable.
21626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021627/* confdefs.h. */
21628_ACEOF
21629cat confdefs.h >>conftest.$ac_ext
21630cat >>conftest.$ac_ext <<_ACEOF
21631/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021632
John Criswell47fdd832003-07-14 16:52:07 +000021633int
21634main ()
21635{
21636
21637 ;
21638 return 0;
21639}
21640_ACEOF
21641rm -f conftest.$ac_objext conftest$ac_exeext
21642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021643 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021644 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021650 { ac_try='test -z "$ac_c_werror_flag"
21651 || test ! -s conftest.err'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663
21664aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21665}'`
21666# Check for a 64-bit object if we didn't find anything.
21667if 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; }
21668}'`; fi
21669else
21670 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021671sed 's/^/| /' conftest.$ac_ext >&5
21672
John Criswell47fdd832003-07-14 16:52:07 +000021673fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021674rm -f conftest.err conftest.$ac_objext \
21675 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21677
21678 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21679 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"
21680 else
21681 if test "$host_cpu" = ia64; then
21682 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21683 allow_undefined_flag_GCJ="-z nodefs"
21684 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"
21685 else
21686 # Determine the default libpath from the value encoded in an empty executable.
21687 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021688/* confdefs.h. */
21689_ACEOF
21690cat confdefs.h >>conftest.$ac_ext
21691cat >>conftest.$ac_ext <<_ACEOF
21692/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021693
John Criswell47fdd832003-07-14 16:52:07 +000021694int
21695main ()
21696{
21697
21698 ;
21699 return 0;
21700}
21701_ACEOF
21702rm -f conftest.$ac_objext conftest$ac_exeext
21703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021704 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021705 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021711 { ac_try='test -z "$ac_c_werror_flag"
21712 || test ! -s conftest.err'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21715 ac_status=$?
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; } &&
21718 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724
21725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21726}'`
21727# Check for a 64-bit object if we didn't find anything.
21728if 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; }
21729}'`; fi
21730else
21731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021732sed 's/^/| /' conftest.$ac_ext >&5
21733
John Criswell47fdd832003-07-14 16:52:07 +000021734fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021735rm -f conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21738
21739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21740 # Warning - without using the other run time loading flags,
21741 # -berok will link without error, but may produce a broken library.
21742 no_undefined_flag_GCJ=' ${wl}-bernotok'
21743 allow_undefined_flag_GCJ=' ${wl}-berok'
21744 # -bexpall does not export symbols beginning with underscore (_)
21745 always_export_symbols_GCJ=yes
21746 # Exported symbols can be pulled into shared objects from archives
21747 whole_archive_flag_spec_GCJ=' '
21748 archive_cmds_need_lc_GCJ=yes
21749 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021750 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 +000021751 fi
21752 fi
21753 ;;
21754
21755 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021756 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 +000021757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21758 hardcode_minus_L_GCJ=yes
21759 # see comment about different semantics on the GNU ld section
21760 ld_shlibs_GCJ=no
21761 ;;
21762
Reid Spencer2706f8c2004-09-19 23:53:36 +000021763 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021764 export_dynamic_flag_spec_GCJ=-rdynamic
21765 ;;
21766
21767 cygwin* | mingw* | pw32*)
21768 # When not using gcc, we currently assume that we are using
21769 # Microsoft Visual C++.
21770 # hardcode_libdir_flag_spec is actually meaningless, as there is
21771 # no search path for DLLs.
21772 hardcode_libdir_flag_spec_GCJ=' '
21773 allow_undefined_flag_GCJ=unsupported
21774 # Tell ltmain to make .lib files, not .a files.
21775 libext=lib
21776 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021777 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021778 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021779 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 +000021780 # The linker will automatically build a .lib file if we build a DLL.
21781 old_archive_From_new_cmds_GCJ='true'
21782 # FIXME: Should let the user specify the lib program.
21783 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21784 fix_srcfile_path='`cygpath -w "$srcfile"`'
21785 enable_shared_with_static_runtimes_GCJ=yes
21786 ;;
21787
21788 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021789 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021790 rhapsody* | darwin1.[012])
21791 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21792 ;;
21793 *) # Darwin 1.3 on
21794 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21795 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21796 else
21797 case ${MACOSX_DEPLOYMENT_TARGET} in
21798 10.[012])
21799 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21800 ;;
21801 10.*)
21802 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21803 ;;
21804 esac
21805 fi
21806 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021807 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021808 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021809 hardcode_direct_GCJ=no
21810 hardcode_automatic_GCJ=yes
21811 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021812 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021813 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021814 if test "$GCC" = yes ; then
21815 output_verbose_link_cmd='echo'
21816 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21817 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21818 # 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 +000021819 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}'
21820 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 +000021821 else
21822 case "$cc_basename" in
21823 xlc*)
21824 output_verbose_link_cmd='echo'
21825 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21826 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21827 # 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 +000021828 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}'
21829 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 +000021830 ;;
21831 *)
21832 ld_shlibs_GCJ=no
21833 ;;
21834 esac
John Criswell47fdd832003-07-14 16:52:07 +000021835 fi
21836 ;;
21837
21838 dgux*)
21839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21840 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21841 hardcode_shlibpath_var_GCJ=no
21842 ;;
21843
21844 freebsd1*)
21845 ld_shlibs_GCJ=no
21846 ;;
21847
21848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21849 # support. Future versions do this automatically, but an explicit c++rt0.o
21850 # does not break anything, and helps significantly (at the cost of a little
21851 # extra space).
21852 freebsd2.2*)
21853 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21854 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21855 hardcode_direct_GCJ=yes
21856 hardcode_shlibpath_var_GCJ=no
21857 ;;
21858
21859 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21860 freebsd2*)
21861 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21862 hardcode_direct_GCJ=yes
21863 hardcode_minus_L_GCJ=yes
21864 hardcode_shlibpath_var_GCJ=no
21865 ;;
21866
21867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021868 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021869 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21870 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21871 hardcode_direct_GCJ=yes
21872 hardcode_shlibpath_var_GCJ=no
21873 ;;
21874
21875 hpux9*)
21876 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021877 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 +000021878 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021879 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 +000021880 fi
21881 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21882 hardcode_libdir_separator_GCJ=:
21883 hardcode_direct_GCJ=yes
21884
21885 # hardcode_minus_L: Not really in the search PATH,
21886 # but as the default location of the library.
21887 hardcode_minus_L_GCJ=yes
21888 export_dynamic_flag_spec_GCJ='${wl}-E'
21889 ;;
21890
21891 hpux10* | hpux11*)
21892 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21893 case "$host_cpu" in
21894 hppa*64*|ia64*)
21895 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21896 ;;
21897 *)
21898 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21899 ;;
21900 esac
21901 else
21902 case "$host_cpu" in
21903 hppa*64*|ia64*)
21904 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21905 ;;
21906 *)
21907 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21908 ;;
21909 esac
21910 fi
21911 if test "$with_gnu_ld" = no; then
21912 case "$host_cpu" in
21913 hppa*64*)
21914 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21915 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21916 hardcode_libdir_separator_GCJ=:
21917 hardcode_direct_GCJ=no
21918 hardcode_shlibpath_var_GCJ=no
21919 ;;
21920 ia64*)
21921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21922 hardcode_direct_GCJ=no
21923 hardcode_shlibpath_var_GCJ=no
21924
21925 # hardcode_minus_L: Not really in the search PATH,
21926 # but as the default location of the library.
21927 hardcode_minus_L_GCJ=yes
21928 ;;
21929 *)
21930 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21931 hardcode_libdir_separator_GCJ=:
21932 hardcode_direct_GCJ=yes
21933 export_dynamic_flag_spec_GCJ='${wl}-E'
21934
21935 # hardcode_minus_L: Not really in the search PATH,
21936 # but as the default location of the library.
21937 hardcode_minus_L_GCJ=yes
21938 ;;
21939 esac
21940 fi
21941 ;;
21942
21943 irix5* | irix6* | nonstopux*)
21944 if test "$GCC" = yes; then
21945 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'
21946 else
21947 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'
21948 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21949 fi
21950 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21951 hardcode_libdir_separator_GCJ=:
21952 link_all_deplibs_GCJ=yes
21953 ;;
21954
21955 netbsd*)
21956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21957 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21958 else
21959 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21960 fi
21961 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21962 hardcode_direct_GCJ=yes
21963 hardcode_shlibpath_var_GCJ=no
21964 ;;
21965
21966 newsos6)
21967 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21968 hardcode_direct_GCJ=yes
21969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21970 hardcode_libdir_separator_GCJ=:
21971 hardcode_shlibpath_var_GCJ=no
21972 ;;
21973
21974 openbsd*)
21975 hardcode_direct_GCJ=yes
21976 hardcode_shlibpath_var_GCJ=no
21977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21978 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021979 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 +000021980 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21981 export_dynamic_flag_spec_GCJ='${wl}-E'
21982 else
21983 case $host_os in
21984 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21985 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21986 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21987 ;;
21988 *)
21989 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21991 ;;
21992 esac
21993 fi
21994 ;;
21995
21996 os2*)
21997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21998 hardcode_minus_L_GCJ=yes
21999 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022000 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 +000022001 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22002 ;;
22003
22004 osf3*)
22005 if test "$GCC" = yes; then
22006 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22007 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'
22008 else
22009 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22010 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'
22011 fi
22012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22013 hardcode_libdir_separator_GCJ=:
22014 ;;
22015
22016 osf4* | osf5*) # as osf3* with the addition of -msym flag
22017 if test "$GCC" = yes; then
22018 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22019 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'
22020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22021 else
22022 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22023 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 +000022024 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~
22025 $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'
22026
John Criswell47fdd832003-07-14 16:52:07 +000022027 # Both c and cxx compiler support -rpath directly
22028 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22029 fi
22030 hardcode_libdir_separator_GCJ=:
22031 ;;
22032
22033 sco3.2v5*)
22034 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22035 hardcode_shlibpath_var_GCJ=no
22036 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22037 runpath_var=LD_RUN_PATH
22038 hardcode_runpath_var=yes
22039 ;;
22040
22041 solaris*)
22042 no_undefined_flag_GCJ=' -z text'
22043 if test "$GCC" = yes; then
22044 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022045 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22046 $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 +000022047 else
22048 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22050 $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 +000022051 fi
22052 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22053 hardcode_shlibpath_var_GCJ=no
22054 case $host_os in
22055 solaris2.[0-5] | solaris2.[0-5].*) ;;
22056 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22057 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22058 esac
22059 link_all_deplibs_GCJ=yes
22060 ;;
22061
22062 sunos4*)
22063 if test "x$host_vendor" = xsequent; then
22064 # Use $CC to link under sequent, because it throws in some extra .o
22065 # files that make .init and .fini sections work.
22066 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22067 else
22068 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22069 fi
22070 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22071 hardcode_direct_GCJ=yes
22072 hardcode_minus_L_GCJ=yes
22073 hardcode_shlibpath_var_GCJ=no
22074 ;;
22075
22076 sysv4)
22077 case $host_vendor in
22078 sni)
22079 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22080 hardcode_direct_GCJ=yes # is this really true???
22081 ;;
22082 siemens)
22083 ## LD is ld it makes a PLAMLIB
22084 ## CC just makes a GrossModule.
22085 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22086 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22087 hardcode_direct_GCJ=no
22088 ;;
22089 motorola)
22090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22091 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22092 ;;
22093 esac
22094 runpath_var='LD_RUN_PATH'
22095 hardcode_shlibpath_var_GCJ=no
22096 ;;
22097
22098 sysv4.3*)
22099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22100 hardcode_shlibpath_var_GCJ=no
22101 export_dynamic_flag_spec_GCJ='-Bexport'
22102 ;;
22103
22104 sysv4*MP*)
22105 if test -d /usr/nec; then
22106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22107 hardcode_shlibpath_var_GCJ=no
22108 runpath_var=LD_RUN_PATH
22109 hardcode_runpath_var=yes
22110 ld_shlibs_GCJ=yes
22111 fi
22112 ;;
22113
22114 sysv4.2uw2*)
22115 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22116 hardcode_direct_GCJ=yes
22117 hardcode_minus_L_GCJ=no
22118 hardcode_shlibpath_var_GCJ=no
22119 hardcode_runpath_var=yes
22120 runpath_var=LD_RUN_PATH
22121 ;;
22122
22123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22124 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22125 if test "$GCC" = yes; then
22126 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22127 else
22128 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22129 fi
22130 runpath_var='LD_RUN_PATH'
22131 hardcode_shlibpath_var_GCJ=no
22132 ;;
22133
22134 sysv5*)
22135 no_undefined_flag_GCJ=' -z text'
22136 # $CC -shared without GNU ld will not create a library from C++
22137 # object files and a static libstdc++, better avoid it by now
22138 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022139 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22140 $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 +000022141 hardcode_libdir_flag_spec_GCJ=
22142 hardcode_shlibpath_var_GCJ=no
22143 runpath_var='LD_RUN_PATH'
22144 ;;
22145
22146 uts4*)
22147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22149 hardcode_shlibpath_var_GCJ=no
22150 ;;
22151
22152 *)
22153 ld_shlibs_GCJ=no
22154 ;;
22155 esac
22156 fi
22157
22158echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22159echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22160test "$ld_shlibs_GCJ" = no && can_build_shared=no
22161
22162variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22163if test "$GCC" = yes; then
22164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22165fi
22166
22167#
22168# Do we need to explicitly link libc?
22169#
22170case "x$archive_cmds_need_lc_GCJ" in
22171x|xyes)
22172 # Assume -lc should be added
22173 archive_cmds_need_lc_GCJ=yes
22174
22175 if test "$enable_shared" = yes && test "$GCC" = yes; then
22176 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022177 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022178 # FIXME: we may have to deal with multi-command sequences.
22179 ;;
22180 '$CC '*)
22181 # Test whether the compiler implicitly links with -lc since on some
22182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22183 # to ld, don't add -lc before -lgcc.
22184 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22185echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22186 $rm conftest*
22187 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22188
22189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22190 (eval $ac_compile) 2>&5
22191 ac_status=$?
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } 2>conftest.err; then
22194 soname=conftest
22195 lib=conftest
22196 libobjs=conftest.$ac_objext
22197 deplibs=
22198 wl=$lt_prog_compiler_wl_GCJ
22199 compiler_flags=-v
22200 linker_flags=-v
22201 verstring=
22202 output_objdir=.
22203 libname=conftest
22204 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22205 allow_undefined_flag_GCJ=
22206 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22207 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22208 ac_status=$?
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }
22211 then
22212 archive_cmds_need_lc_GCJ=no
22213 else
22214 archive_cmds_need_lc_GCJ=yes
22215 fi
22216 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22217 else
22218 cat conftest.err 1>&5
22219 fi
22220 $rm conftest*
22221 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22222echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22223 ;;
22224 esac
22225 fi
22226 ;;
22227esac
22228
John Criswell47fdd832003-07-14 16:52:07 +000022229echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22230echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22231library_names_spec=
22232libname_spec='lib$name'
22233soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022234shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022235postinstall_cmds=
22236postuninstall_cmds=
22237finish_cmds=
22238finish_eval=
22239shlibpath_var=
22240shlibpath_overrides_runpath=unknown
22241version_type=none
22242dynamic_linker="$host_os ld.so"
22243sys_lib_dlsearch_path_spec="/lib /usr/lib"
22244if test "$GCC" = yes; then
22245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22246 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22247 # if the path contains ";" then we assume it to be the separator
22248 # otherwise default to the standard path separator (i.e. ":") - it is
22249 # assumed that no part of a normal pathname contains ";" but that should
22250 # okay in the real world where ";" in dirpaths is itself problematic.
22251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22252 else
22253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22254 fi
22255else
22256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22257fi
22258need_lib_prefix=unknown
22259hardcode_into_libs=no
22260
22261# when you set need_version to no, make sure it does not cause -set_version
22262# flags to be left without arguments
22263need_version=unknown
22264
22265case $host_os in
22266aix3*)
22267 version_type=linux
22268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22269 shlibpath_var=LIBPATH
22270
22271 # AIX 3 has no versioning support, so we append a major version to the name.
22272 soname_spec='${libname}${release}${shared_ext}$major'
22273 ;;
22274
22275aix4* | aix5*)
22276 version_type=linux
22277 need_lib_prefix=no
22278 need_version=no
22279 hardcode_into_libs=yes
22280 if test "$host_cpu" = ia64; then
22281 # AIX 5 supports IA64
22282 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22283 shlibpath_var=LD_LIBRARY_PATH
22284 else
22285 # With GCC up to 2.95.x, collect2 would create an import file
22286 # for dependence libraries. The import file would start with
22287 # the line `#! .'. This would cause the generated library to
22288 # depend on `.', always an invalid library. This was fixed in
22289 # development snapshots of GCC prior to 3.0.
22290 case $host_os in
22291 aix4 | aix4.[01] | aix4.[01].*)
22292 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22293 echo ' yes '
22294 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22295 :
22296 else
22297 can_build_shared=no
22298 fi
22299 ;;
22300 esac
22301 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22302 # soname into executable. Probably we can add versioning support to
22303 # collect2, so additional links can be useful in future.
22304 if test "$aix_use_runtimelinking" = yes; then
22305 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22306 # instead of lib<name>.a to let people know that these are not
22307 # typical AIX shared libraries.
22308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22309 else
22310 # We preserve .a as extension for shared libraries through AIX4.2
22311 # and later when we are not doing run time linking.
22312 library_names_spec='${libname}${release}.a $libname.a'
22313 soname_spec='${libname}${release}${shared_ext}$major'
22314 fi
22315 shlibpath_var=LIBPATH
22316 fi
22317 ;;
22318
22319amigaos*)
22320 library_names_spec='$libname.ixlibrary $libname.a'
22321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022322 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 +000022323 ;;
22324
22325beos*)
22326 library_names_spec='${libname}${shared_ext}'
22327 dynamic_linker="$host_os ld.so"
22328 shlibpath_var=LIBRARY_PATH
22329 ;;
22330
Reid Spencer2706f8c2004-09-19 23:53:36 +000022331bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022332 version_type=linux
22333 need_version=no
22334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22335 soname_spec='${libname}${release}${shared_ext}$major'
22336 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22337 shlibpath_var=LD_LIBRARY_PATH
22338 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22339 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22340 # the default ld.so.conf also contains /usr/contrib/lib and
22341 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22342 # libtool to hard-code these into programs
22343 ;;
22344
22345cygwin* | mingw* | pw32*)
22346 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022347 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022348 need_version=no
22349 need_lib_prefix=no
22350
22351 case $GCC,$host_os in
22352 yes,cygwin* | yes,mingw* | yes,pw32*)
22353 library_names_spec='$libname.dll.a'
22354 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022355 postinstall_cmds='base_file=`basename \${file}`~
22356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22357 dldir=$destdir/`dirname \$dlpath`~
22358 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022359 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22361 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022362 $rm \$dlpath'
22363 shlibpath_overrides_runpath=yes
22364
22365 case $host_os in
22366 cygwin*)
22367 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22368 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 +000022369 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022370 ;;
22371 mingw*)
22372 # MinGW DLLs use traditional 'lib' prefix
22373 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22374 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22375 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22376 # It is most probably a Windows format PATH printed by
22377 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22378 # path with ; separators, and with drive letters. We can handle the
22379 # drive letters (cygwin fileutils understands them), so leave them,
22380 # especially as we might pass files found there to a mingw objdump,
22381 # which wouldn't understand a cygwinified path. Ahh.
22382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22383 else
22384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22385 fi
22386 ;;
22387 pw32*)
22388 # pw32 DLLs use 'pw' prefix rather than 'lib'
22389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22390 ;;
22391 esac
22392 ;;
22393
22394 *)
22395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22396 ;;
22397 esac
22398 dynamic_linker='Win32 ld.exe'
22399 # FIXME: first we should search . and the directory the executable is in
22400 shlibpath_var=PATH
22401 ;;
22402
22403darwin* | rhapsody*)
22404 dynamic_linker="$host_os dyld"
22405 version_type=darwin
22406 need_lib_prefix=no
22407 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022408 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022409 soname_spec='${libname}${release}${major}$shared_ext'
22410 shlibpath_overrides_runpath=yes
22411 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022412 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022413 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022414 if test "$GCC" = yes; then
22415 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"`
22416 else
22417 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022418 fi
22419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22420 ;;
22421
22422dgux*)
22423 version_type=linux
22424 need_lib_prefix=no
22425 need_version=no
22426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22427 soname_spec='${libname}${release}${shared_ext}$major'
22428 shlibpath_var=LD_LIBRARY_PATH
22429 ;;
22430
22431freebsd1*)
22432 dynamic_linker=no
22433 ;;
22434
Reid Spencer2706f8c2004-09-19 23:53:36 +000022435kfreebsd*-gnu)
22436 version_type=linux
22437 need_lib_prefix=no
22438 need_version=no
22439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22440 soname_spec='${libname}${release}${shared_ext}$major'
22441 shlibpath_var=LD_LIBRARY_PATH
22442 shlibpath_overrides_runpath=no
22443 hardcode_into_libs=yes
22444 dynamic_linker='GNU ld.so'
22445 ;;
22446
John Criswell47fdd832003-07-14 16:52:07 +000022447freebsd*)
22448 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22449 version_type=freebsd-$objformat
22450 case $version_type in
22451 freebsd-elf*)
22452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22453 need_version=no
22454 need_lib_prefix=no
22455 ;;
22456 freebsd-*)
22457 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22458 need_version=yes
22459 ;;
22460 esac
22461 shlibpath_var=LD_LIBRARY_PATH
22462 case $host_os in
22463 freebsd2*)
22464 shlibpath_overrides_runpath=yes
22465 ;;
22466 freebsd3.01* | freebsdelf3.01*)
22467 shlibpath_overrides_runpath=yes
22468 hardcode_into_libs=yes
22469 ;;
22470 *) # from 3.2 on
22471 shlibpath_overrides_runpath=no
22472 hardcode_into_libs=yes
22473 ;;
22474 esac
22475 ;;
22476
22477gnu*)
22478 version_type=linux
22479 need_lib_prefix=no
22480 need_version=no
22481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22482 soname_spec='${libname}${release}${shared_ext}$major'
22483 shlibpath_var=LD_LIBRARY_PATH
22484 hardcode_into_libs=yes
22485 ;;
22486
22487hpux9* | hpux10* | hpux11*)
22488 # Give a soname corresponding to the major version so that dld.sl refuses to
22489 # link against other versions.
22490 version_type=sunos
22491 need_lib_prefix=no
22492 need_version=no
22493 case "$host_cpu" in
22494 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022495 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022496 hardcode_into_libs=yes
22497 dynamic_linker="$host_os dld.so"
22498 shlibpath_var=LD_LIBRARY_PATH
22499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22501 soname_spec='${libname}${release}${shared_ext}$major'
22502 if test "X$HPUX_IA64_MODE" = X32; then
22503 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22504 else
22505 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22506 fi
22507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22508 ;;
22509 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022510 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022511 hardcode_into_libs=yes
22512 dynamic_linker="$host_os dld.sl"
22513 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22516 soname_spec='${libname}${release}${shared_ext}$major'
22517 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22519 ;;
22520 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022521 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022522 dynamic_linker="$host_os dld.sl"
22523 shlibpath_var=SHLIB_PATH
22524 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22526 soname_spec='${libname}${release}${shared_ext}$major'
22527 ;;
22528 esac
22529 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22530 postinstall_cmds='chmod 555 $lib'
22531 ;;
22532
22533irix5* | irix6* | nonstopux*)
22534 case $host_os in
22535 nonstopux*) version_type=nonstopux ;;
22536 *)
22537 if test "$lt_cv_prog_gnu_ld" = yes; then
22538 version_type=linux
22539 else
22540 version_type=irix
22541 fi ;;
22542 esac
22543 need_lib_prefix=no
22544 need_version=no
22545 soname_spec='${libname}${release}${shared_ext}$major'
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22547 case $host_os in
22548 irix5* | nonstopux*)
22549 libsuff= shlibsuff=
22550 ;;
22551 *)
22552 case $LD in # libtool.m4 will add one of these switches to LD
22553 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22554 libsuff= shlibsuff= libmagic=32-bit;;
22555 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22556 libsuff=32 shlibsuff=N32 libmagic=N32;;
22557 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22558 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22559 *) libsuff= shlibsuff= libmagic=never-match;;
22560 esac
22561 ;;
22562 esac
22563 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22564 shlibpath_overrides_runpath=no
22565 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22566 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22567 hardcode_into_libs=yes
22568 ;;
22569
22570# No shared lib support for Linux oldld, aout, or coff.
22571linux*oldld* | linux*aout* | linux*coff*)
22572 dynamic_linker=no
22573 ;;
22574
22575# This must be Linux ELF.
22576linux*)
22577 version_type=linux
22578 need_lib_prefix=no
22579 need_version=no
22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22581 soname_spec='${libname}${release}${shared_ext}$major'
22582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22583 shlibpath_var=LD_LIBRARY_PATH
22584 shlibpath_overrides_runpath=no
22585 # This implies no fast_install, which is unacceptable.
22586 # Some rework will be needed to allow for fast_install
22587 # before this can be enabled.
22588 hardcode_into_libs=yes
22589
Reid Spencer2706f8c2004-09-19 23:53:36 +000022590 # Append ld.so.conf contents to the search path
22591 if test -f /etc/ld.so.conf; then
22592 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22594 fi
22595
John Criswell47fdd832003-07-14 16:52:07 +000022596 # We used to test for /lib/ld.so.1 and disable shared libraries on
22597 # powerpc, because MkLinux only supported shared libraries with the
22598 # GNU dynamic linker. Since this was broken with cross compilers,
22599 # most powerpc-linux boxes support dynamic linking these days and
22600 # people can always --disable-shared, the test was removed, and we
22601 # assume the GNU/Linux dynamic linker is in use.
22602 dynamic_linker='GNU/Linux ld.so'
22603 ;;
22604
Reid Spencer2706f8c2004-09-19 23:53:36 +000022605knetbsd*-gnu)
22606 version_type=linux
22607 need_lib_prefix=no
22608 need_version=no
22609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22610 soname_spec='${libname}${release}${shared_ext}$major'
22611 shlibpath_var=LD_LIBRARY_PATH
22612 shlibpath_overrides_runpath=no
22613 hardcode_into_libs=yes
22614 dynamic_linker='GNU ld.so'
22615 ;;
22616
John Criswell47fdd832003-07-14 16:52:07 +000022617netbsd*)
22618 version_type=sunos
22619 need_lib_prefix=no
22620 need_version=no
22621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22624 dynamic_linker='NetBSD (a.out) ld.so'
22625 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022627 soname_spec='${libname}${release}${shared_ext}$major'
22628 dynamic_linker='NetBSD ld.elf_so'
22629 fi
22630 shlibpath_var=LD_LIBRARY_PATH
22631 shlibpath_overrides_runpath=yes
22632 hardcode_into_libs=yes
22633 ;;
22634
22635newsos6)
22636 version_type=linux
22637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22638 shlibpath_var=LD_LIBRARY_PATH
22639 shlibpath_overrides_runpath=yes
22640 ;;
22641
Reid Spencer2706f8c2004-09-19 23:53:36 +000022642nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022643 version_type=linux
22644 need_lib_prefix=no
22645 need_version=no
22646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 shlibpath_var=LD_LIBRARY_PATH
22649 shlibpath_overrides_runpath=yes
22650 ;;
22651
22652openbsd*)
22653 version_type=sunos
22654 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022655 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22658 shlibpath_var=LD_LIBRARY_PATH
22659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22660 case $host_os in
22661 openbsd2.[89] | openbsd2.[89].*)
22662 shlibpath_overrides_runpath=no
22663 ;;
22664 *)
22665 shlibpath_overrides_runpath=yes
22666 ;;
22667 esac
22668 else
22669 shlibpath_overrides_runpath=yes
22670 fi
22671 ;;
22672
22673os2*)
22674 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022675 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022676 need_lib_prefix=no
22677 library_names_spec='$libname${shared_ext} $libname.a'
22678 dynamic_linker='OS/2 ld.exe'
22679 shlibpath_var=LIBPATH
22680 ;;
22681
22682osf3* | osf4* | osf5*)
22683 version_type=osf
22684 need_lib_prefix=no
22685 need_version=no
22686 soname_spec='${libname}${release}${shared_ext}$major'
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688 shlibpath_var=LD_LIBRARY_PATH
22689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22691 ;;
22692
22693sco3.2v5*)
22694 version_type=osf
22695 soname_spec='${libname}${release}${shared_ext}$major'
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 ;;
22699
22700solaris*)
22701 version_type=linux
22702 need_lib_prefix=no
22703 need_version=no
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22705 soname_spec='${libname}${release}${shared_ext}$major'
22706 shlibpath_var=LD_LIBRARY_PATH
22707 shlibpath_overrides_runpath=yes
22708 hardcode_into_libs=yes
22709 # ldd complains unless libraries are executable
22710 postinstall_cmds='chmod +x $lib'
22711 ;;
22712
22713sunos4*)
22714 version_type=sunos
22715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22717 shlibpath_var=LD_LIBRARY_PATH
22718 shlibpath_overrides_runpath=yes
22719 if test "$with_gnu_ld" = yes; then
22720 need_lib_prefix=no
22721 fi
22722 need_version=yes
22723 ;;
22724
22725sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22726 version_type=linux
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 soname_spec='${libname}${release}${shared_ext}$major'
22729 shlibpath_var=LD_LIBRARY_PATH
22730 case $host_vendor in
22731 sni)
22732 shlibpath_overrides_runpath=no
22733 need_lib_prefix=no
22734 export_dynamic_flag_spec='${wl}-Blargedynsym'
22735 runpath_var=LD_RUN_PATH
22736 ;;
22737 siemens)
22738 need_lib_prefix=no
22739 ;;
22740 motorola)
22741 need_lib_prefix=no
22742 need_version=no
22743 shlibpath_overrides_runpath=no
22744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22745 ;;
22746 esac
22747 ;;
22748
22749sysv4*MP*)
22750 if test -d /usr/nec ;then
22751 version_type=linux
22752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22753 soname_spec='$libname${shared_ext}.$major'
22754 shlibpath_var=LD_LIBRARY_PATH
22755 fi
22756 ;;
22757
22758uts4*)
22759 version_type=linux
22760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22761 soname_spec='${libname}${release}${shared_ext}$major'
22762 shlibpath_var=LD_LIBRARY_PATH
22763 ;;
22764
22765*)
22766 dynamic_linker=no
22767 ;;
22768esac
22769echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22770echo "${ECHO_T}$dynamic_linker" >&6
22771test "$dynamic_linker" = no && can_build_shared=no
22772
Reid Spencer2706f8c2004-09-19 23:53:36 +000022773echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22774echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22775hardcode_action_GCJ=
22776if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22777 test -n "$runpath_var_GCJ" || \
22778 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22779
22780 # We can hardcode non-existant directories.
22781 if test "$hardcode_direct_GCJ" != no &&
22782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22783 # have to relink, otherwise we might link with an installed library
22784 # when we should be linking with a yet-to-be-installed one
22785 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22786 test "$hardcode_minus_L_GCJ" != no; then
22787 # Linking always hardcodes the temporary library directory.
22788 hardcode_action_GCJ=relink
22789 else
22790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22791 hardcode_action_GCJ=immediate
22792 fi
22793else
22794 # We cannot hardcode anything, or else we can only hardcode existing
22795 # directories.
22796 hardcode_action_GCJ=unsupported
22797fi
22798echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22799echo "${ECHO_T}$hardcode_action_GCJ" >&6
22800
22801if test "$hardcode_action_GCJ" = relink; then
22802 # Fast installation is not supported
22803 enable_fast_install=no
22804elif test "$shlibpath_overrides_runpath" = yes ||
22805 test "$enable_shared" = no; then
22806 # Fast installation is not necessary
22807 enable_fast_install=needless
22808fi
22809
22810striplib=
22811old_striplib=
22812echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22813echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22814if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22816 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22817 echo "$as_me:$LINENO: result: yes" >&5
22818echo "${ECHO_T}yes" >&6
22819else
22820# FIXME - insert some real tests, host_os isn't really good enough
22821 case $host_os in
22822 darwin*)
22823 if test -n "$STRIP" ; then
22824 striplib="$STRIP -x"
22825 echo "$as_me:$LINENO: result: yes" >&5
22826echo "${ECHO_T}yes" >&6
22827 else
22828 echo "$as_me:$LINENO: result: no" >&5
22829echo "${ECHO_T}no" >&6
22830fi
22831 ;;
22832 *)
22833 echo "$as_me:$LINENO: result: no" >&5
22834echo "${ECHO_T}no" >&6
22835 ;;
22836 esac
22837fi
22838
John Criswell47fdd832003-07-14 16:52:07 +000022839if test "x$enable_dlopen" != xyes; then
22840 enable_dlopen=unknown
22841 enable_dlopen_self=unknown
22842 enable_dlopen_self_static=unknown
22843else
22844 lt_cv_dlopen=no
22845 lt_cv_dlopen_libs=
22846
22847 case $host_os in
22848 beos*)
22849 lt_cv_dlopen="load_add_on"
22850 lt_cv_dlopen_libs=
22851 lt_cv_dlopen_self=yes
22852 ;;
22853
22854 mingw* | pw32*)
22855 lt_cv_dlopen="LoadLibrary"
22856 lt_cv_dlopen_libs=
22857 ;;
22858
22859 cygwin*)
22860 lt_cv_dlopen="dlopen"
22861 lt_cv_dlopen_libs=
22862 ;;
22863
22864 darwin*)
22865 # if libdl is installed we need to link against it
22866 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22867echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22868if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22870else
22871 ac_check_lib_save_LIBS=$LIBS
22872LIBS="-ldl $LIBS"
22873cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022874/* confdefs.h. */
22875_ACEOF
22876cat confdefs.h >>conftest.$ac_ext
22877cat >>conftest.$ac_ext <<_ACEOF
22878/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022879
22880/* Override any gcc2 internal prototype to avoid an error. */
22881#ifdef __cplusplus
22882extern "C"
22883#endif
22884/* We use char because int might match the return type of a gcc2
22885 builtin and then its argument prototype would still apply. */
22886char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022887int
22888main ()
22889{
22890dlopen ();
22891 ;
22892 return 0;
22893}
22894_ACEOF
22895rm -f conftest.$ac_objext conftest$ac_exeext
22896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022897 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022898 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022899 grep -v '^ *+' conftest.er1 >conftest.err
22900 rm -f conftest.er1
22901 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022904 { ac_try='test -z "$ac_c_werror_flag"
22905 || test ! -s conftest.err'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; } &&
22911 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913 (eval $ac_try) 2>&5
22914 ac_status=$?
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; }; then
22917 ac_cv_lib_dl_dlopen=yes
22918else
22919 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022920sed 's/^/| /' conftest.$ac_ext >&5
22921
John Criswell47fdd832003-07-14 16:52:07 +000022922ac_cv_lib_dl_dlopen=no
22923fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022924rm -f conftest.err conftest.$ac_objext \
22925 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022926LIBS=$ac_check_lib_save_LIBS
22927fi
22928echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22929echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22930if test $ac_cv_lib_dl_dlopen = yes; then
22931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22932else
22933
22934 lt_cv_dlopen="dyld"
22935 lt_cv_dlopen_libs=
22936 lt_cv_dlopen_self=yes
22937
22938fi
22939
22940 ;;
22941
22942 *)
22943 echo "$as_me:$LINENO: checking for shl_load" >&5
22944echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22945if test "${ac_cv_func_shl_load+set}" = set; then
22946 echo $ECHO_N "(cached) $ECHO_C" >&6
22947else
22948 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022949/* confdefs.h. */
22950_ACEOF
22951cat confdefs.h >>conftest.$ac_ext
22952cat >>conftest.$ac_ext <<_ACEOF
22953/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022954/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22956#define shl_load innocuous_shl_load
22957
John Criswell47fdd832003-07-14 16:52:07 +000022958/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022959 which can conflict with char shl_load (); below.
22960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22961 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022962
John Criswell0c38eaf2003-09-10 15:17:25 +000022963#ifdef __STDC__
22964# include <limits.h>
22965#else
22966# include <assert.h>
22967#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022968
22969#undef shl_load
22970
John Criswell47fdd832003-07-14 16:52:07 +000022971/* Override any gcc2 internal prototype to avoid an error. */
22972#ifdef __cplusplus
22973extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022974{
John Criswell47fdd832003-07-14 16:52:07 +000022975#endif
22976/* We use char because int might match the return type of a gcc2
22977 builtin and then its argument prototype would still apply. */
22978char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022979/* The GNU C library defines this for functions which it implements
22980 to always fail with ENOSYS. Some functions are actually named
22981 something starting with __ and the normal name is an alias. */
22982#if defined (__stub_shl_load) || defined (__stub___shl_load)
22983choke me
22984#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022985char (*f) () = shl_load;
22986#endif
22987#ifdef __cplusplus
22988}
John Criswell47fdd832003-07-14 16:52:07 +000022989#endif
22990
John Criswell0c38eaf2003-09-10 15:17:25 +000022991int
22992main ()
22993{
22994return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000022995 ;
22996 return 0;
22997}
22998_ACEOF
22999rm -f conftest.$ac_objext conftest$ac_exeext
23000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023001 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023002 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023008 { ac_try='test -z "$ac_c_werror_flag"
23009 || test ! -s conftest.err'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23012 ac_status=$?
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23018 ac_status=$?
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_func_shl_load=yes
23022else
23023 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023024sed 's/^/| /' conftest.$ac_ext >&5
23025
John Criswell47fdd832003-07-14 16:52:07 +000023026ac_cv_func_shl_load=no
23027fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023028rm -f conftest.err conftest.$ac_objext \
23029 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023030fi
23031echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23032echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23033if test $ac_cv_func_shl_load = yes; then
23034 lt_cv_dlopen="shl_load"
23035else
23036 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23037echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23038if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040else
23041 ac_check_lib_save_LIBS=$LIBS
23042LIBS="-ldld $LIBS"
23043cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023044/* confdefs.h. */
23045_ACEOF
23046cat confdefs.h >>conftest.$ac_ext
23047cat >>conftest.$ac_ext <<_ACEOF
23048/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023049
23050/* Override any gcc2 internal prototype to avoid an error. */
23051#ifdef __cplusplus
23052extern "C"
23053#endif
23054/* We use char because int might match the return type of a gcc2
23055 builtin and then its argument prototype would still apply. */
23056char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023057int
23058main ()
23059{
23060shl_load ();
23061 ;
23062 return 0;
23063}
23064_ACEOF
23065rm -f conftest.$ac_objext conftest$ac_exeext
23066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023067 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023069 grep -v '^ *+' conftest.er1 >conftest.err
23070 rm -f conftest.er1
23071 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023074 { ac_try='test -z "$ac_c_werror_flag"
23075 || test ! -s conftest.err'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; } &&
23081 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23084 ac_status=$?
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 ac_cv_lib_dld_shl_load=yes
23088else
23089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023090sed 's/^/| /' conftest.$ac_ext >&5
23091
John Criswell47fdd832003-07-14 16:52:07 +000023092ac_cv_lib_dld_shl_load=no
23093fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023094rm -f conftest.err conftest.$ac_objext \
23095 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023096LIBS=$ac_check_lib_save_LIBS
23097fi
23098echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23099echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23100if test $ac_cv_lib_dld_shl_load = yes; then
23101 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23102else
23103 echo "$as_me:$LINENO: checking for dlopen" >&5
23104echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23105if test "${ac_cv_func_dlopen+set}" = set; then
23106 echo $ECHO_N "(cached) $ECHO_C" >&6
23107else
23108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023109/* confdefs.h. */
23110_ACEOF
23111cat confdefs.h >>conftest.$ac_ext
23112cat >>conftest.$ac_ext <<_ACEOF
23113/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023114/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23116#define dlopen innocuous_dlopen
23117
John Criswell47fdd832003-07-14 16:52:07 +000023118/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023119 which can conflict with char dlopen (); below.
23120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23121 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023122
John Criswell0c38eaf2003-09-10 15:17:25 +000023123#ifdef __STDC__
23124# include <limits.h>
23125#else
23126# include <assert.h>
23127#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023128
23129#undef dlopen
23130
John Criswell47fdd832003-07-14 16:52:07 +000023131/* Override any gcc2 internal prototype to avoid an error. */
23132#ifdef __cplusplus
23133extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023134{
John Criswell47fdd832003-07-14 16:52:07 +000023135#endif
23136/* We use char because int might match the return type of a gcc2
23137 builtin and then its argument prototype would still apply. */
23138char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023139/* The GNU C library defines this for functions which it implements
23140 to always fail with ENOSYS. Some functions are actually named
23141 something starting with __ and the normal name is an alias. */
23142#if defined (__stub_dlopen) || defined (__stub___dlopen)
23143choke me
23144#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023145char (*f) () = dlopen;
23146#endif
23147#ifdef __cplusplus
23148}
John Criswell47fdd832003-07-14 16:52:07 +000023149#endif
23150
John Criswell0c38eaf2003-09-10 15:17:25 +000023151int
23152main ()
23153{
23154return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023155 ;
23156 return 0;
23157}
23158_ACEOF
23159rm -f conftest.$ac_objext conftest$ac_exeext
23160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023161 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023162 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023163 grep -v '^ *+' conftest.er1 >conftest.err
23164 rm -f conftest.er1
23165 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023168 { ac_try='test -z "$ac_c_werror_flag"
23169 || test ! -s conftest.err'
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23172 ac_status=$?
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; } &&
23175 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 ac_cv_func_dlopen=yes
23182else
23183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023184sed 's/^/| /' conftest.$ac_ext >&5
23185
John Criswell47fdd832003-07-14 16:52:07 +000023186ac_cv_func_dlopen=no
23187fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023188rm -f conftest.err conftest.$ac_objext \
23189 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023190fi
23191echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23192echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23193if test $ac_cv_func_dlopen = yes; then
23194 lt_cv_dlopen="dlopen"
23195else
23196 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23197echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23198if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23200else
23201 ac_check_lib_save_LIBS=$LIBS
23202LIBS="-ldl $LIBS"
23203cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023204/* confdefs.h. */
23205_ACEOF
23206cat confdefs.h >>conftest.$ac_ext
23207cat >>conftest.$ac_ext <<_ACEOF
23208/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023209
23210/* Override any gcc2 internal prototype to avoid an error. */
23211#ifdef __cplusplus
23212extern "C"
23213#endif
23214/* We use char because int might match the return type of a gcc2
23215 builtin and then its argument prototype would still apply. */
23216char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023217int
23218main ()
23219{
23220dlopen ();
23221 ;
23222 return 0;
23223}
23224_ACEOF
23225rm -f conftest.$ac_objext conftest$ac_exeext
23226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023227 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023229 grep -v '^ *+' conftest.er1 >conftest.err
23230 rm -f conftest.er1
23231 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023234 { ac_try='test -z "$ac_c_werror_flag"
23235 || test ! -s conftest.err'
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; } &&
23241 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23244 ac_status=$?
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; }; then
23247 ac_cv_lib_dl_dlopen=yes
23248else
23249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023250sed 's/^/| /' conftest.$ac_ext >&5
23251
John Criswell47fdd832003-07-14 16:52:07 +000023252ac_cv_lib_dl_dlopen=no
23253fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023254rm -f conftest.err conftest.$ac_objext \
23255 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023256LIBS=$ac_check_lib_save_LIBS
23257fi
23258echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23259echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23260if test $ac_cv_lib_dl_dlopen = yes; then
23261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23262else
23263 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23264echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23265if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23266 echo $ECHO_N "(cached) $ECHO_C" >&6
23267else
23268 ac_check_lib_save_LIBS=$LIBS
23269LIBS="-lsvld $LIBS"
23270cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023271/* confdefs.h. */
23272_ACEOF
23273cat confdefs.h >>conftest.$ac_ext
23274cat >>conftest.$ac_ext <<_ACEOF
23275/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023276
23277/* Override any gcc2 internal prototype to avoid an error. */
23278#ifdef __cplusplus
23279extern "C"
23280#endif
23281/* We use char because int might match the return type of a gcc2
23282 builtin and then its argument prototype would still apply. */
23283char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023284int
23285main ()
23286{
23287dlopen ();
23288 ;
23289 return 0;
23290}
23291_ACEOF
23292rm -f conftest.$ac_objext conftest$ac_exeext
23293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023294 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023295 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023296 grep -v '^ *+' conftest.er1 >conftest.err
23297 rm -f conftest.er1
23298 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023301 { ac_try='test -z "$ac_c_werror_flag"
23302 || test ! -s conftest.err'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } &&
23308 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); }; }; then
23314 ac_cv_lib_svld_dlopen=yes
23315else
23316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023317sed 's/^/| /' conftest.$ac_ext >&5
23318
John Criswell47fdd832003-07-14 16:52:07 +000023319ac_cv_lib_svld_dlopen=no
23320fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023321rm -f conftest.err conftest.$ac_objext \
23322 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023323LIBS=$ac_check_lib_save_LIBS
23324fi
23325echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23326echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23327if test $ac_cv_lib_svld_dlopen = yes; then
23328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23329else
23330 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23331echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23332if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23333 echo $ECHO_N "(cached) $ECHO_C" >&6
23334else
23335 ac_check_lib_save_LIBS=$LIBS
23336LIBS="-ldld $LIBS"
23337cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023338/* confdefs.h. */
23339_ACEOF
23340cat confdefs.h >>conftest.$ac_ext
23341cat >>conftest.$ac_ext <<_ACEOF
23342/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023343
23344/* Override any gcc2 internal prototype to avoid an error. */
23345#ifdef __cplusplus
23346extern "C"
23347#endif
23348/* We use char because int might match the return type of a gcc2
23349 builtin and then its argument prototype would still apply. */
23350char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023351int
23352main ()
23353{
23354dld_link ();
23355 ;
23356 return 0;
23357}
23358_ACEOF
23359rm -f conftest.$ac_objext conftest$ac_exeext
23360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023361 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023362 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023363 grep -v '^ *+' conftest.er1 >conftest.err
23364 rm -f conftest.er1
23365 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023368 { ac_try='test -z "$ac_c_werror_flag"
23369 || test ! -s conftest.err'
23370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; } &&
23375 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377 (eval $ac_try) 2>&5
23378 ac_status=$?
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; }; then
23381 ac_cv_lib_dld_dld_link=yes
23382else
23383 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023384sed 's/^/| /' conftest.$ac_ext >&5
23385
John Criswell47fdd832003-07-14 16:52:07 +000023386ac_cv_lib_dld_dld_link=no
23387fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023388rm -f conftest.err conftest.$ac_objext \
23389 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023390LIBS=$ac_check_lib_save_LIBS
23391fi
23392echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23393echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23394if test $ac_cv_lib_dld_dld_link = yes; then
23395 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23396fi
23397
23398
23399fi
23400
23401
23402fi
23403
23404
23405fi
23406
23407
23408fi
23409
23410
23411fi
23412
23413 ;;
23414 esac
23415
23416 if test "x$lt_cv_dlopen" != xno; then
23417 enable_dlopen=yes
23418 else
23419 enable_dlopen=no
23420 fi
23421
23422 case $lt_cv_dlopen in
23423 dlopen)
23424 save_CPPFLAGS="$CPPFLAGS"
23425 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23426
23427 save_LDFLAGS="$LDFLAGS"
23428 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23429
23430 save_LIBS="$LIBS"
23431 LIBS="$lt_cv_dlopen_libs $LIBS"
23432
23433 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23434echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23435if test "${lt_cv_dlopen_self+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23437else
23438 if test "$cross_compiling" = yes; then :
23439 lt_cv_dlopen_self=cross
23440else
23441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23442 lt_status=$lt_dlunknown
23443 cat > conftest.$ac_ext <<EOF
Reid Spencer78ba11d2005-02-16 16:21:00 +000023444#line 23444 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023445#include "confdefs.h"
23446
23447#if HAVE_DLFCN_H
23448#include <dlfcn.h>
23449#endif
23450
23451#include <stdio.h>
23452
23453#ifdef RTLD_GLOBAL
23454# define LT_DLGLOBAL RTLD_GLOBAL
23455#else
23456# ifdef DL_GLOBAL
23457# define LT_DLGLOBAL DL_GLOBAL
23458# else
23459# define LT_DLGLOBAL 0
23460# endif
23461#endif
23462
23463/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23464 find out it does not work in some platform. */
23465#ifndef LT_DLLAZY_OR_NOW
23466# ifdef RTLD_LAZY
23467# define LT_DLLAZY_OR_NOW RTLD_LAZY
23468# else
23469# ifdef DL_LAZY
23470# define LT_DLLAZY_OR_NOW DL_LAZY
23471# else
23472# ifdef RTLD_NOW
23473# define LT_DLLAZY_OR_NOW RTLD_NOW
23474# else
23475# ifdef DL_NOW
23476# define LT_DLLAZY_OR_NOW DL_NOW
23477# else
23478# define LT_DLLAZY_OR_NOW 0
23479# endif
23480# endif
23481# endif
23482# endif
23483#endif
23484
23485#ifdef __cplusplus
23486extern "C" void exit (int);
23487#endif
23488
23489void fnord() { int i=42;}
23490int main ()
23491{
23492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23493 int status = $lt_dlunknown;
23494
23495 if (self)
23496 {
23497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23498 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23499 /* dlclose (self); */
23500 }
23501
23502 exit (status);
23503}
23504EOF
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506 (eval $ac_link) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23510 (./conftest; exit; ) 2>/dev/null
23511 lt_status=$?
23512 case x$lt_status in
23513 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23514 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23515 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23516 esac
23517 else :
23518 # compilation failed
23519 lt_cv_dlopen_self=no
23520 fi
23521fi
23522rm -fr conftest*
23523
23524
23525fi
23526echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23527echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23528
23529 if test "x$lt_cv_dlopen_self" = xyes; then
23530 LDFLAGS="$LDFLAGS $link_static_flag"
23531 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23532echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23533if test "${lt_cv_dlopen_self_static+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23535else
23536 if test "$cross_compiling" = yes; then :
23537 lt_cv_dlopen_self_static=cross
23538else
23539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23540 lt_status=$lt_dlunknown
23541 cat > conftest.$ac_ext <<EOF
Reid Spencer78ba11d2005-02-16 16:21:00 +000023542#line 23542 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023543#include "confdefs.h"
23544
23545#if HAVE_DLFCN_H
23546#include <dlfcn.h>
23547#endif
23548
23549#include <stdio.h>
23550
23551#ifdef RTLD_GLOBAL
23552# define LT_DLGLOBAL RTLD_GLOBAL
23553#else
23554# ifdef DL_GLOBAL
23555# define LT_DLGLOBAL DL_GLOBAL
23556# else
23557# define LT_DLGLOBAL 0
23558# endif
23559#endif
23560
23561/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23562 find out it does not work in some platform. */
23563#ifndef LT_DLLAZY_OR_NOW
23564# ifdef RTLD_LAZY
23565# define LT_DLLAZY_OR_NOW RTLD_LAZY
23566# else
23567# ifdef DL_LAZY
23568# define LT_DLLAZY_OR_NOW DL_LAZY
23569# else
23570# ifdef RTLD_NOW
23571# define LT_DLLAZY_OR_NOW RTLD_NOW
23572# else
23573# ifdef DL_NOW
23574# define LT_DLLAZY_OR_NOW DL_NOW
23575# else
23576# define LT_DLLAZY_OR_NOW 0
23577# endif
23578# endif
23579# endif
23580# endif
23581#endif
23582
23583#ifdef __cplusplus
23584extern "C" void exit (int);
23585#endif
23586
23587void fnord() { int i=42;}
23588int main ()
23589{
23590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23591 int status = $lt_dlunknown;
23592
23593 if (self)
23594 {
23595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23596 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23597 /* dlclose (self); */
23598 }
23599
23600 exit (status);
23601}
23602EOF
23603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23604 (eval $ac_link) 2>&5
23605 ac_status=$?
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23608 (./conftest; exit; ) 2>/dev/null
23609 lt_status=$?
23610 case x$lt_status in
23611 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23612 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23613 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23614 esac
23615 else :
23616 # compilation failed
23617 lt_cv_dlopen_self_static=no
23618 fi
23619fi
23620rm -fr conftest*
23621
23622
23623fi
23624echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23625echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23626 fi
23627
23628 CPPFLAGS="$save_CPPFLAGS"
23629 LDFLAGS="$save_LDFLAGS"
23630 LIBS="$save_LIBS"
23631 ;;
23632 esac
23633
23634 case $lt_cv_dlopen_self in
23635 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23636 *) enable_dlopen_self=unknown ;;
23637 esac
23638
23639 case $lt_cv_dlopen_self_static in
23640 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23641 *) enable_dlopen_self_static=unknown ;;
23642 esac
23643fi
23644
23645
23646# The else clause should only fire when bootstrapping the
23647# libtool distribution, otherwise you forgot to ship ltmain.sh
23648# with your package, and you will get complaints that there are
23649# no rules to generate ltmain.sh.
23650if test -f "$ltmain"; then
23651 # See if we are running on zsh, and set the options which allow our commands through
23652 # without removal of \ escapes.
23653 if test -n "${ZSH_VERSION+set}" ; then
23654 setopt NO_GLOB_SUBST
23655 fi
23656 # Now quote all the things that may contain metacharacters while being
23657 # careful not to overquote the AC_SUBSTed values. We take copies of the
23658 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023659 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23660 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023661 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23662 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23663 deplibs_check_method reload_flag reload_cmds need_locks \
23664 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23665 lt_cv_sys_global_symbol_to_c_name_address \
23666 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23667 old_postinstall_cmds old_postuninstall_cmds \
23668 compiler_GCJ \
23669 CC_GCJ \
23670 LD_GCJ \
23671 lt_prog_compiler_wl_GCJ \
23672 lt_prog_compiler_pic_GCJ \
23673 lt_prog_compiler_static_GCJ \
23674 lt_prog_compiler_no_builtin_flag_GCJ \
23675 export_dynamic_flag_spec_GCJ \
23676 thread_safe_flag_spec_GCJ \
23677 whole_archive_flag_spec_GCJ \
23678 enable_shared_with_static_runtimes_GCJ \
23679 old_archive_cmds_GCJ \
23680 old_archive_from_new_cmds_GCJ \
23681 predep_objects_GCJ \
23682 postdep_objects_GCJ \
23683 predeps_GCJ \
23684 postdeps_GCJ \
23685 compiler_lib_search_path_GCJ \
23686 archive_cmds_GCJ \
23687 archive_expsym_cmds_GCJ \
23688 postinstall_cmds_GCJ \
23689 postuninstall_cmds_GCJ \
23690 old_archive_from_expsyms_cmds_GCJ \
23691 allow_undefined_flag_GCJ \
23692 no_undefined_flag_GCJ \
23693 export_symbols_cmds_GCJ \
23694 hardcode_libdir_flag_spec_GCJ \
23695 hardcode_libdir_flag_spec_ld_GCJ \
23696 hardcode_libdir_separator_GCJ \
23697 hardcode_automatic_GCJ \
23698 module_cmds_GCJ \
23699 module_expsym_cmds_GCJ \
23700 lt_cv_prog_compiler_c_o_GCJ \
23701 exclude_expsyms_GCJ \
23702 include_expsyms_GCJ; do
23703
23704 case $var in
23705 old_archive_cmds_GCJ | \
23706 old_archive_from_new_cmds_GCJ | \
23707 archive_cmds_GCJ | \
23708 archive_expsym_cmds_GCJ | \
23709 module_cmds_GCJ | \
23710 module_expsym_cmds_GCJ | \
23711 old_archive_from_expsyms_cmds_GCJ | \
23712 export_symbols_cmds_GCJ | \
23713 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23714 postinstall_cmds | postuninstall_cmds | \
23715 old_postinstall_cmds | old_postuninstall_cmds | \
23716 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23717 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023718 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 +000023719 ;;
23720 *)
23721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23722 ;;
23723 esac
23724 done
23725
23726 case $lt_echo in
23727 *'\$0 --fallback-echo"')
23728 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23729 ;;
23730 esac
23731
23732cfgfile="$ofile"
23733
23734 cat <<__EOF__ >> "$cfgfile"
23735# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23736
23737# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23738
23739# Shell to use when invoking shell scripts.
23740SHELL=$lt_SHELL
23741
23742# Whether or not to build shared libraries.
23743build_libtool_libs=$enable_shared
23744
23745# Whether or not to build static libraries.
23746build_old_libs=$enable_static
23747
23748# Whether or not to add -lc for building shared libraries.
23749build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23750
23751# Whether or not to disallow shared libs when runtime libs are static
23752allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23753
23754# Whether or not to optimize for fast installation.
23755fast_install=$enable_fast_install
23756
23757# The host system.
23758host_alias=$host_alias
23759host=$host
23760
23761# An echo program that does not interpret backslashes.
23762echo=$lt_echo
23763
23764# The archiver.
23765AR=$lt_AR
23766AR_FLAGS=$lt_AR_FLAGS
23767
23768# A C compiler.
23769LTCC=$lt_LTCC
23770
23771# A language-specific compiler.
23772CC=$lt_compiler_GCJ
23773
23774# Is the compiler the GNU C compiler?
23775with_gcc=$GCC_GCJ
23776
23777# An ERE matcher.
23778EGREP=$lt_EGREP
23779
23780# The linker used to build libraries.
23781LD=$lt_LD_GCJ
23782
23783# Whether we need hard or soft links.
23784LN_S=$lt_LN_S
23785
23786# A BSD-compatible nm program.
23787NM=$lt_NM
23788
23789# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023790STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023791
23792# Used to examine libraries when file_magic_cmd begins "file"
23793MAGIC_CMD=$MAGIC_CMD
23794
23795# Used on cygwin: DLL creation program.
23796DLLTOOL="$DLLTOOL"
23797
23798# Used on cygwin: object dumper.
23799OBJDUMP="$OBJDUMP"
23800
23801# Used on cygwin: assembler.
23802AS="$AS"
23803
23804# The name of the directory that contains temporary libtool files.
23805objdir=$objdir
23806
23807# How to create reloadable object files.
23808reload_flag=$lt_reload_flag
23809reload_cmds=$lt_reload_cmds
23810
23811# How to pass a linker flag through the compiler.
23812wl=$lt_lt_prog_compiler_wl_GCJ
23813
23814# Object file suffix (normally "o").
23815objext="$ac_objext"
23816
23817# Old archive suffix (normally "a").
23818libext="$libext"
23819
23820# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023821shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023822
23823# Executable file suffix (normally "").
23824exeext="$exeext"
23825
23826# Additional compiler flags for building library objects.
23827pic_flag=$lt_lt_prog_compiler_pic_GCJ
23828pic_mode=$pic_mode
23829
23830# What is the maximum length of a command?
23831max_cmd_len=$lt_cv_sys_max_cmd_len
23832
23833# Does compiler simultaneously support -c and -o options?
23834compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23835
23836# Must we lock files when doing compilation ?
23837need_locks=$lt_need_locks
23838
23839# Do we need the lib prefix for modules?
23840need_lib_prefix=$need_lib_prefix
23841
23842# Do we need a version for libraries?
23843need_version=$need_version
23844
23845# Whether dlopen is supported.
23846dlopen_support=$enable_dlopen
23847
23848# Whether dlopen of programs is supported.
23849dlopen_self=$enable_dlopen_self
23850
23851# Whether dlopen of statically linked programs is supported.
23852dlopen_self_static=$enable_dlopen_self_static
23853
23854# Compiler flag to prevent dynamic linking.
23855link_static_flag=$lt_lt_prog_compiler_static_GCJ
23856
23857# Compiler flag to turn off builtin functions.
23858no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23859
23860# Compiler flag to allow reflexive dlopens.
23861export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23862
23863# Compiler flag to generate shared objects directly from archives.
23864whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23865
23866# Compiler flag to generate thread-safe objects.
23867thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23868
23869# Library versioning type.
23870version_type=$version_type
23871
23872# Format of library name prefix.
23873libname_spec=$lt_libname_spec
23874
23875# List of archive names. First name is the real one, the rest are links.
23876# The last name is the one that the linker finds with -lNAME.
23877library_names_spec=$lt_library_names_spec
23878
23879# The coded name of the library, if different from the real name.
23880soname_spec=$lt_soname_spec
23881
23882# Commands used to build and install an old-style archive.
23883RANLIB=$lt_RANLIB
23884old_archive_cmds=$lt_old_archive_cmds_GCJ
23885old_postinstall_cmds=$lt_old_postinstall_cmds
23886old_postuninstall_cmds=$lt_old_postuninstall_cmds
23887
23888# Create an old-style archive from a shared archive.
23889old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23890
23891# Create a temporary old-style archive to link instead of a shared archive.
23892old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23893
23894# Commands used to build and install a shared archive.
23895archive_cmds=$lt_archive_cmds_GCJ
23896archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23897postinstall_cmds=$lt_postinstall_cmds
23898postuninstall_cmds=$lt_postuninstall_cmds
23899
23900# Commands used to build a loadable module (assumed same as above if empty)
23901module_cmds=$lt_module_cmds_GCJ
23902module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23903
23904# Commands to strip libraries.
23905old_striplib=$lt_old_striplib
23906striplib=$lt_striplib
23907
23908# Dependencies to place before the objects being linked to create a
23909# shared library.
23910predep_objects=$lt_predep_objects_GCJ
23911
23912# Dependencies to place after the objects being linked to create a
23913# shared library.
23914postdep_objects=$lt_postdep_objects_GCJ
23915
23916# Dependencies to place before the objects being linked to create a
23917# shared library.
23918predeps=$lt_predeps_GCJ
23919
23920# Dependencies to place after the objects being linked to create a
23921# shared library.
23922postdeps=$lt_postdeps_GCJ
23923
23924# The library search path used internally by the compiler when linking
23925# a shared library.
23926compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23927
23928# Method to check whether dependent libraries are shared objects.
23929deplibs_check_method=$lt_deplibs_check_method
23930
23931# Command to use when deplibs_check_method == file_magic.
23932file_magic_cmd=$lt_file_magic_cmd
23933
23934# Flag that allows shared libraries with undefined symbols to be built.
23935allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23936
23937# Flag that forces no undefined symbols.
23938no_undefined_flag=$lt_no_undefined_flag_GCJ
23939
23940# Commands used to finish a libtool library installation in a directory.
23941finish_cmds=$lt_finish_cmds
23942
23943# Same as above, but a single script fragment to be evaled but not shown.
23944finish_eval=$lt_finish_eval
23945
23946# Take the output of nm and produce a listing of raw symbols and C names.
23947global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23948
23949# Transform the output of nm in a proper C declaration
23950global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23951
23952# Transform the output of nm in a C name address pair
23953global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23954
23955# This is the shared library runtime path variable.
23956runpath_var=$runpath_var
23957
23958# This is the shared library path variable.
23959shlibpath_var=$shlibpath_var
23960
23961# Is shlibpath searched before the hard-coded library search path?
23962shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23963
23964# How to hardcode a shared library path into an executable.
23965hardcode_action=$hardcode_action_GCJ
23966
23967# Whether we should hardcode library paths into libraries.
23968hardcode_into_libs=$hardcode_into_libs
23969
23970# Flag to hardcode \$libdir into a binary during linking.
23971# This must work even if \$libdir does not exist.
23972hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23973
23974# If ld is used when linking, flag to hardcode \$libdir into
23975# a binary during linking. This must work even if \$libdir does
23976# not exist.
23977hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23978
23979# Whether we need a single -rpath flag with a separated argument.
23980hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23981
23982# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23983# resulting binary.
23984hardcode_direct=$hardcode_direct_GCJ
23985
23986# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23987# resulting binary.
23988hardcode_minus_L=$hardcode_minus_L_GCJ
23989
23990# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23991# the resulting binary.
23992hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23993
23994# Set to yes if building a shared library automatically hardcodes DIR into the library
23995# and all subsequent libraries and executables linked against it.
23996hardcode_automatic=$hardcode_automatic_GCJ
23997
23998# Variables whose values should be saved in libtool wrapper scripts and
23999# restored at relink time.
24000variables_saved_for_relink="$variables_saved_for_relink"
24001
24002# Whether libtool must link a program against all its dependency libraries.
24003link_all_deplibs=$link_all_deplibs_GCJ
24004
24005# Compile-time system search path for libraries
24006sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24007
24008# Run-time system search path for libraries
24009sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24010
24011# Fix the shell variable \$srcfile for the compiler.
24012fix_srcfile_path="$fix_srcfile_path_GCJ"
24013
24014# Set to yes if exported symbols are required.
24015always_export_symbols=$always_export_symbols_GCJ
24016
24017# The commands to list exported symbols.
24018export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24019
24020# The commands to extract the exported symbol list from a shared archive.
24021extract_expsyms_cmds=$lt_extract_expsyms_cmds
24022
24023# Symbols that should not be listed in the preloaded symbols.
24024exclude_expsyms=$lt_exclude_expsyms_GCJ
24025
24026# Symbols that must always be exported.
24027include_expsyms=$lt_include_expsyms_GCJ
24028
24029# ### END LIBTOOL TAG CONFIG: $tagname
24030
24031__EOF__
24032
24033
24034else
24035 # If there is no Makefile yet, we rely on a make rule to execute
24036 # `config.status --recheck' to rerun these tests and create the
24037 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024038 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24039 if test -f "$ltmain_in"; then
24040 test -f Makefile && make "$ltmain"
24041 fi
John Criswell47fdd832003-07-14 16:52:07 +000024042fi
24043
24044
24045ac_ext=c
24046ac_cpp='$CPP $CPPFLAGS'
24047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24049ac_compiler_gnu=$ac_cv_c_compiler_gnu
24050
24051CC="$lt_save_CC"
24052
24053 else
24054 tagname=""
24055 fi
24056 ;;
24057
24058 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024059 ac_ext=c
24060ac_cpp='$CPP $CPPFLAGS'
24061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24063ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024064
24065
24066# Source file extension for RC test sources.
24067ac_ext=rc
24068
24069# Object file extension for compiled RC test sources.
24070objext=o
24071objext_RC=$objext
24072
24073# Code to be used in simple compile tests
24074lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24075
24076# Code to be used in simple link tests
24077lt_simple_link_test_code="$lt_simple_compile_test_code"
24078
24079# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24080
24081# If no C compiler was specified, use CC.
24082LTCC=${LTCC-"$CC"}
24083
24084# Allow CC to be a program name with arguments.
24085compiler=$CC
24086
24087
24088# Allow CC to be a program name with arguments.
24089lt_save_CC="$CC"
24090CC=${RC-"windres"}
24091compiler=$CC
24092compiler_RC=$CC
24093lt_cv_prog_compiler_c_o_RC=yes
24094
24095# The else clause should only fire when bootstrapping the
24096# libtool distribution, otherwise you forgot to ship ltmain.sh
24097# with your package, and you will get complaints that there are
24098# no rules to generate ltmain.sh.
24099if test -f "$ltmain"; then
24100 # See if we are running on zsh, and set the options which allow our commands through
24101 # without removal of \ escapes.
24102 if test -n "${ZSH_VERSION+set}" ; then
24103 setopt NO_GLOB_SUBST
24104 fi
24105 # Now quote all the things that may contain metacharacters while being
24106 # careful not to overquote the AC_SUBSTed values. We take copies of the
24107 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024108 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24109 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024110 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24111 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24112 deplibs_check_method reload_flag reload_cmds need_locks \
24113 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24114 lt_cv_sys_global_symbol_to_c_name_address \
24115 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24116 old_postinstall_cmds old_postuninstall_cmds \
24117 compiler_RC \
24118 CC_RC \
24119 LD_RC \
24120 lt_prog_compiler_wl_RC \
24121 lt_prog_compiler_pic_RC \
24122 lt_prog_compiler_static_RC \
24123 lt_prog_compiler_no_builtin_flag_RC \
24124 export_dynamic_flag_spec_RC \
24125 thread_safe_flag_spec_RC \
24126 whole_archive_flag_spec_RC \
24127 enable_shared_with_static_runtimes_RC \
24128 old_archive_cmds_RC \
24129 old_archive_from_new_cmds_RC \
24130 predep_objects_RC \
24131 postdep_objects_RC \
24132 predeps_RC \
24133 postdeps_RC \
24134 compiler_lib_search_path_RC \
24135 archive_cmds_RC \
24136 archive_expsym_cmds_RC \
24137 postinstall_cmds_RC \
24138 postuninstall_cmds_RC \
24139 old_archive_from_expsyms_cmds_RC \
24140 allow_undefined_flag_RC \
24141 no_undefined_flag_RC \
24142 export_symbols_cmds_RC \
24143 hardcode_libdir_flag_spec_RC \
24144 hardcode_libdir_flag_spec_ld_RC \
24145 hardcode_libdir_separator_RC \
24146 hardcode_automatic_RC \
24147 module_cmds_RC \
24148 module_expsym_cmds_RC \
24149 lt_cv_prog_compiler_c_o_RC \
24150 exclude_expsyms_RC \
24151 include_expsyms_RC; do
24152
24153 case $var in
24154 old_archive_cmds_RC | \
24155 old_archive_from_new_cmds_RC | \
24156 archive_cmds_RC | \
24157 archive_expsym_cmds_RC | \
24158 module_cmds_RC | \
24159 module_expsym_cmds_RC | \
24160 old_archive_from_expsyms_cmds_RC | \
24161 export_symbols_cmds_RC | \
24162 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24163 postinstall_cmds | postuninstall_cmds | \
24164 old_postinstall_cmds | old_postuninstall_cmds | \
24165 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24166 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024167 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 +000024168 ;;
24169 *)
24170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24171 ;;
24172 esac
24173 done
24174
24175 case $lt_echo in
24176 *'\$0 --fallback-echo"')
24177 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24178 ;;
24179 esac
24180
24181cfgfile="$ofile"
24182
24183 cat <<__EOF__ >> "$cfgfile"
24184# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24185
24186# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24187
24188# Shell to use when invoking shell scripts.
24189SHELL=$lt_SHELL
24190
24191# Whether or not to build shared libraries.
24192build_libtool_libs=$enable_shared
24193
24194# Whether or not to build static libraries.
24195build_old_libs=$enable_static
24196
24197# Whether or not to add -lc for building shared libraries.
24198build_libtool_need_lc=$archive_cmds_need_lc_RC
24199
24200# Whether or not to disallow shared libs when runtime libs are static
24201allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24202
24203# Whether or not to optimize for fast installation.
24204fast_install=$enable_fast_install
24205
24206# The host system.
24207host_alias=$host_alias
24208host=$host
24209
24210# An echo program that does not interpret backslashes.
24211echo=$lt_echo
24212
24213# The archiver.
24214AR=$lt_AR
24215AR_FLAGS=$lt_AR_FLAGS
24216
24217# A C compiler.
24218LTCC=$lt_LTCC
24219
24220# A language-specific compiler.
24221CC=$lt_compiler_RC
24222
24223# Is the compiler the GNU C compiler?
24224with_gcc=$GCC_RC
24225
24226# An ERE matcher.
24227EGREP=$lt_EGREP
24228
24229# The linker used to build libraries.
24230LD=$lt_LD_RC
24231
24232# Whether we need hard or soft links.
24233LN_S=$lt_LN_S
24234
24235# A BSD-compatible nm program.
24236NM=$lt_NM
24237
24238# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024239STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024240
24241# Used to examine libraries when file_magic_cmd begins "file"
24242MAGIC_CMD=$MAGIC_CMD
24243
24244# Used on cygwin: DLL creation program.
24245DLLTOOL="$DLLTOOL"
24246
24247# Used on cygwin: object dumper.
24248OBJDUMP="$OBJDUMP"
24249
24250# Used on cygwin: assembler.
24251AS="$AS"
24252
24253# The name of the directory that contains temporary libtool files.
24254objdir=$objdir
24255
24256# How to create reloadable object files.
24257reload_flag=$lt_reload_flag
24258reload_cmds=$lt_reload_cmds
24259
24260# How to pass a linker flag through the compiler.
24261wl=$lt_lt_prog_compiler_wl_RC
24262
24263# Object file suffix (normally "o").
24264objext="$ac_objext"
24265
24266# Old archive suffix (normally "a").
24267libext="$libext"
24268
24269# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024270shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024271
24272# Executable file suffix (normally "").
24273exeext="$exeext"
24274
24275# Additional compiler flags for building library objects.
24276pic_flag=$lt_lt_prog_compiler_pic_RC
24277pic_mode=$pic_mode
24278
24279# What is the maximum length of a command?
24280max_cmd_len=$lt_cv_sys_max_cmd_len
24281
24282# Does compiler simultaneously support -c and -o options?
24283compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24284
24285# Must we lock files when doing compilation ?
24286need_locks=$lt_need_locks
24287
24288# Do we need the lib prefix for modules?
24289need_lib_prefix=$need_lib_prefix
24290
24291# Do we need a version for libraries?
24292need_version=$need_version
24293
24294# Whether dlopen is supported.
24295dlopen_support=$enable_dlopen
24296
24297# Whether dlopen of programs is supported.
24298dlopen_self=$enable_dlopen_self
24299
24300# Whether dlopen of statically linked programs is supported.
24301dlopen_self_static=$enable_dlopen_self_static
24302
24303# Compiler flag to prevent dynamic linking.
24304link_static_flag=$lt_lt_prog_compiler_static_RC
24305
24306# Compiler flag to turn off builtin functions.
24307no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24308
24309# Compiler flag to allow reflexive dlopens.
24310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24311
24312# Compiler flag to generate shared objects directly from archives.
24313whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24314
24315# Compiler flag to generate thread-safe objects.
24316thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24317
24318# Library versioning type.
24319version_type=$version_type
24320
24321# Format of library name prefix.
24322libname_spec=$lt_libname_spec
24323
24324# List of archive names. First name is the real one, the rest are links.
24325# The last name is the one that the linker finds with -lNAME.
24326library_names_spec=$lt_library_names_spec
24327
24328# The coded name of the library, if different from the real name.
24329soname_spec=$lt_soname_spec
24330
24331# Commands used to build and install an old-style archive.
24332RANLIB=$lt_RANLIB
24333old_archive_cmds=$lt_old_archive_cmds_RC
24334old_postinstall_cmds=$lt_old_postinstall_cmds
24335old_postuninstall_cmds=$lt_old_postuninstall_cmds
24336
24337# Create an old-style archive from a shared archive.
24338old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24339
24340# Create a temporary old-style archive to link instead of a shared archive.
24341old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24342
24343# Commands used to build and install a shared archive.
24344archive_cmds=$lt_archive_cmds_RC
24345archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24346postinstall_cmds=$lt_postinstall_cmds
24347postuninstall_cmds=$lt_postuninstall_cmds
24348
24349# Commands used to build a loadable module (assumed same as above if empty)
24350module_cmds=$lt_module_cmds_RC
24351module_expsym_cmds=$lt_module_expsym_cmds_RC
24352
24353# Commands to strip libraries.
24354old_striplib=$lt_old_striplib
24355striplib=$lt_striplib
24356
24357# Dependencies to place before the objects being linked to create a
24358# shared library.
24359predep_objects=$lt_predep_objects_RC
24360
24361# Dependencies to place after the objects being linked to create a
24362# shared library.
24363postdep_objects=$lt_postdep_objects_RC
24364
24365# Dependencies to place before the objects being linked to create a
24366# shared library.
24367predeps=$lt_predeps_RC
24368
24369# Dependencies to place after the objects being linked to create a
24370# shared library.
24371postdeps=$lt_postdeps_RC
24372
24373# The library search path used internally by the compiler when linking
24374# a shared library.
24375compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24376
24377# Method to check whether dependent libraries are shared objects.
24378deplibs_check_method=$lt_deplibs_check_method
24379
24380# Command to use when deplibs_check_method == file_magic.
24381file_magic_cmd=$lt_file_magic_cmd
24382
24383# Flag that allows shared libraries with undefined symbols to be built.
24384allow_undefined_flag=$lt_allow_undefined_flag_RC
24385
24386# Flag that forces no undefined symbols.
24387no_undefined_flag=$lt_no_undefined_flag_RC
24388
24389# Commands used to finish a libtool library installation in a directory.
24390finish_cmds=$lt_finish_cmds
24391
24392# Same as above, but a single script fragment to be evaled but not shown.
24393finish_eval=$lt_finish_eval
24394
24395# Take the output of nm and produce a listing of raw symbols and C names.
24396global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24397
24398# Transform the output of nm in a proper C declaration
24399global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24400
24401# Transform the output of nm in a C name address pair
24402global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24403
24404# This is the shared library runtime path variable.
24405runpath_var=$runpath_var
24406
24407# This is the shared library path variable.
24408shlibpath_var=$shlibpath_var
24409
24410# Is shlibpath searched before the hard-coded library search path?
24411shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24412
24413# How to hardcode a shared library path into an executable.
24414hardcode_action=$hardcode_action_RC
24415
24416# Whether we should hardcode library paths into libraries.
24417hardcode_into_libs=$hardcode_into_libs
24418
24419# Flag to hardcode \$libdir into a binary during linking.
24420# This must work even if \$libdir does not exist.
24421hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24422
24423# If ld is used when linking, flag to hardcode \$libdir into
24424# a binary during linking. This must work even if \$libdir does
24425# not exist.
24426hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24427
24428# Whether we need a single -rpath flag with a separated argument.
24429hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24430
24431# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24432# resulting binary.
24433hardcode_direct=$hardcode_direct_RC
24434
24435# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24436# resulting binary.
24437hardcode_minus_L=$hardcode_minus_L_RC
24438
24439# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24440# the resulting binary.
24441hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24442
24443# Set to yes if building a shared library automatically hardcodes DIR into the library
24444# and all subsequent libraries and executables linked against it.
24445hardcode_automatic=$hardcode_automatic_RC
24446
24447# Variables whose values should be saved in libtool wrapper scripts and
24448# restored at relink time.
24449variables_saved_for_relink="$variables_saved_for_relink"
24450
24451# Whether libtool must link a program against all its dependency libraries.
24452link_all_deplibs=$link_all_deplibs_RC
24453
24454# Compile-time system search path for libraries
24455sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24456
24457# Run-time system search path for libraries
24458sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24459
24460# Fix the shell variable \$srcfile for the compiler.
24461fix_srcfile_path="$fix_srcfile_path_RC"
24462
24463# Set to yes if exported symbols are required.
24464always_export_symbols=$always_export_symbols_RC
24465
24466# The commands to list exported symbols.
24467export_symbols_cmds=$lt_export_symbols_cmds_RC
24468
24469# The commands to extract the exported symbol list from a shared archive.
24470extract_expsyms_cmds=$lt_extract_expsyms_cmds
24471
24472# Symbols that should not be listed in the preloaded symbols.
24473exclude_expsyms=$lt_exclude_expsyms_RC
24474
24475# Symbols that must always be exported.
24476include_expsyms=$lt_include_expsyms_RC
24477
24478# ### END LIBTOOL TAG CONFIG: $tagname
24479
24480__EOF__
24481
24482
24483else
24484 # If there is no Makefile yet, we rely on a make rule to execute
24485 # `config.status --recheck' to rerun these tests and create the
24486 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024487 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24488 if test -f "$ltmain_in"; then
24489 test -f Makefile && make "$ltmain"
24490 fi
John Criswell47fdd832003-07-14 16:52:07 +000024491fi
24492
24493
24494ac_ext=c
24495ac_cpp='$CPP $CPPFLAGS'
24496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24498ac_compiler_gnu=$ac_cv_c_compiler_gnu
24499
24500CC="$lt_save_CC"
24501
24502 ;;
24503
24504 *)
24505 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24506echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24507 { (exit 1); exit 1; }; }
24508 ;;
24509 esac
24510
24511 # Append the new tag name to the list of available tags.
24512 if test -n "$tagname" ; then
24513 available_tags="$available_tags $tagname"
24514 fi
24515 fi
24516 done
24517 IFS="$lt_save_ifs"
24518
24519 # Now substitute the updated list of available tags.
24520 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24521 mv "${ofile}T" "$ofile"
24522 chmod +x "$ofile"
24523 else
24524 rm -f "${ofile}T"
24525 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24526echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24527 { (exit 1); exit 1; }; }
24528 fi
24529fi
John Criswell7a73b802003-06-30 21:59:07 +000024530
24531
24532
24533# This can be used to rebuild libtool when needed
24534LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24535
24536# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024537LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024538
24539# Prevent multiple expansion
24540
24541
24542
John Criswell47fdd832003-07-14 16:52:07 +000024543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024560
Reid Spencer582a23c2004-12-29 07:07:57 +000024561if test "$lt_cv_dlopen_self" = "yes" ; then
24562
24563cat >>confdefs.h <<\_ACEOF
24564#define CAN_DLOPEN_SELF 1
24565_ACEOF
24566
24567fi
24568
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024569etags_version=`$ETAGS --version 2>&1`
24570case "$etags_version" in
24571 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24572 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24573 *) ETAGSFLAGS="" ;;
24574esac
24575ETAGSFLAGS=$ETAGSFLAGS
24576
24577
Reid Spencer7931a782004-12-27 06:15:02 +000024578if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencer59473af2004-12-25 07:31:29 +000024579 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24580set dummy llvm-gcc; ac_word=$2
24581echo "$as_me:$LINENO: checking for $ac_word" >&5
24582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24583if test "${ac_cv_path_LLVMGCC+set}" = set; then
24584 echo $ECHO_N "(cached) $ECHO_C" >&6
24585else
24586 case $LLVMGCC in
24587 [\\/]* | ?:[\\/]*)
24588 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24589 ;;
24590 *)
24591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24592for as_dir in $PATH
24593do
24594 IFS=$as_save_IFS
24595 test -z "$as_dir" && as_dir=.
24596 for ac_exec_ext in '' $ac_executable_extensions; do
24597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24598 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24600 break 2
24601 fi
24602done
24603done
24604
24605 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24606 ;;
24607esac
24608fi
24609LLVMGCC=$ac_cv_path_LLVMGCC
24610
24611if test -n "$LLVMGCC"; then
24612 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24613echo "${ECHO_T}$LLVMGCC" >&6
24614else
24615 echo "$as_me:$LINENO: result: no" >&5
24616echo "${ECHO_T}no" >&6
24617fi
24618
24619 # Extract the first word of "llvm-g++", so it can be a program name with args.
24620set dummy llvm-g++; ac_word=$2
24621echo "$as_me:$LINENO: checking for $ac_word" >&5
24622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24623if test "${ac_cv_path_LLVMGXX+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24625else
24626 case $LLVMGXX in
24627 [\\/]* | ?:[\\/]*)
24628 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24629 ;;
24630 *)
24631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24632for as_dir in $PATH
24633do
24634 IFS=$as_save_IFS
24635 test -z "$as_dir" && as_dir=.
24636 for ac_exec_ext in '' $ac_executable_extensions; do
24637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24640 break 2
24641 fi
24642done
24643done
24644
24645 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24646 ;;
24647esac
24648fi
24649LLVMGXX=$ac_cv_path_LLVMGXX
24650
24651if test -n "$LLVMGXX"; then
24652 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24653echo "${ECHO_T}$LLVMGXX" >&6
24654else
24655 echo "$as_me:$LINENO: result: no" >&5
24656echo "${ECHO_T}no" >&6
24657fi
24658
24659else
24660 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24661 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24662 LLVMGCC=$LLVMGCC
24663
24664 LLVMGXX=$LLVMGXX
24665
24666fi
24667
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024668echo "$as_me:$LINENO: checking tool compatibility" >&5
24669echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24670
Reid Spencer86901802004-12-08 23:07:27 +000024671ICC=no
24672IXX=no
24673case $CC in
24674 icc*|icpc*)
24675 ICC=yes
24676 IXX=yes
24677 ;;
24678 *)
24679 ;;
24680esac
24681
24682if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024683then
Reid Spencer86901802004-12-08 23:07:27 +000024684 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24685echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024686 { (exit 1); exit 1; }; }
24687fi
24688
Reid Spencer86901802004-12-08 23:07:27 +000024689if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024690then
Reid Spencer86901802004-12-08 23:07:27 +000024691 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24692echo "$as_me: error: g++|icc required but not found" >&2;}
24693 { (exit 1); exit 1; }; }
24694fi
24695
24696if test "$GCC" = "yes"
24697then
24698 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24699 if test "$gccmajor" -lt "3"
24700 then
24701 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024702echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24703 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024704 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024705fi
24706
24707if test -z "$llvm_cv_gnu_make_command"
24708then
24709 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24710echo "$as_me: error: GNU Make required but not found" >&2;}
24711 { (exit 1); exit 1; }; }
24712fi
24713
24714echo "$as_me:$LINENO: result: ok" >&5
24715echo "${ECHO_T}ok" >&6
24716
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024717
John Criswell7a73b802003-06-30 21:59:07 +000024718
John Criswell7a73b802003-06-30 21:59:07 +000024719echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24720echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24721if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24722 echo $ECHO_N "(cached) $ECHO_C" >&6
24723else
24724 ac_check_lib_save_LIBS=$LIBS
24725LIBS="-lelf $LIBS"
24726cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024727/* confdefs.h. */
24728_ACEOF
24729cat confdefs.h >>conftest.$ac_ext
24730cat >>conftest.$ac_ext <<_ACEOF
24731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024732
24733/* Override any gcc2 internal prototype to avoid an error. */
24734#ifdef __cplusplus
24735extern "C"
24736#endif
24737/* We use char because int might match the return type of a gcc2
24738 builtin and then its argument prototype would still apply. */
24739char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024740int
24741main ()
24742{
24743elf_begin ();
24744 ;
24745 return 0;
24746}
24747_ACEOF
24748rm -f conftest.$ac_objext conftest$ac_exeext
24749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024750 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024751 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024752 grep -v '^ *+' conftest.er1 >conftest.err
24753 rm -f conftest.er1
24754 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024757 { ac_try='test -z "$ac_c_werror_flag"
24758 || test ! -s conftest.err'
24759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24760 (eval $ac_try) 2>&5
24761 ac_status=$?
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); }; } &&
24764 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; }; then
24770 ac_cv_lib_elf_elf_begin=yes
24771else
24772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024773sed 's/^/| /' conftest.$ac_ext >&5
24774
John Criswell7a73b802003-06-30 21:59:07 +000024775ac_cv_lib_elf_elf_begin=no
24776fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024777rm -f conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024779LIBS=$ac_check_lib_save_LIBS
24780fi
24781echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24782echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24783if test $ac_cv_lib_elf_elf_begin = yes; then
24784 cat >>confdefs.h <<_ACEOF
24785#define HAVE_LIBELF 1
24786_ACEOF
24787
24788 LIBS="-lelf $LIBS"
24789
24790fi
24791
24792
Reid Spencer17795972004-11-18 09:47:37 +000024793echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24794echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24795if test "${ac_cv_search_lt_dlopen+set}" = set; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24797else
24798 ac_func_search_save_LIBS=$LIBS
24799ac_cv_search_lt_dlopen=no
24800cat >conftest.$ac_ext <<_ACEOF
24801/* confdefs.h. */
24802_ACEOF
24803cat confdefs.h >>conftest.$ac_ext
24804cat >>conftest.$ac_ext <<_ACEOF
24805/* end confdefs.h. */
24806
24807/* Override any gcc2 internal prototype to avoid an error. */
24808#ifdef __cplusplus
24809extern "C"
24810#endif
24811/* We use char because int might match the return type of a gcc2
24812 builtin and then its argument prototype would still apply. */
24813char lt_dlopen ();
24814int
24815main ()
24816{
24817lt_dlopen ();
24818 ;
24819 return 0;
24820}
24821_ACEOF
24822rm -f conftest.$ac_objext conftest$ac_exeext
24823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24824 (eval $ac_link) 2>conftest.er1
24825 ac_status=$?
24826 grep -v '^ *+' conftest.er1 >conftest.err
24827 rm -f conftest.er1
24828 cat conftest.err >&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } &&
24831 { ac_try='test -z "$ac_c_werror_flag"
24832 || test ! -s conftest.err'
24833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834 (eval $ac_try) 2>&5
24835 ac_status=$?
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); }; } &&
24838 { ac_try='test -s conftest$ac_exeext'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24841 ac_status=$?
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
24844 ac_cv_search_lt_dlopen="none required"
24845else
24846 echo "$as_me: failed program was:" >&5
24847sed 's/^/| /' conftest.$ac_ext >&5
24848
24849fi
24850rm -f conftest.err conftest.$ac_objext \
24851 conftest$ac_exeext conftest.$ac_ext
24852if test "$ac_cv_search_lt_dlopen" = no; then
24853 for ac_lib in ltdl; do
24854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24855 cat >conftest.$ac_ext <<_ACEOF
24856/* confdefs.h. */
24857_ACEOF
24858cat confdefs.h >>conftest.$ac_ext
24859cat >>conftest.$ac_ext <<_ACEOF
24860/* end confdefs.h. */
24861
24862/* Override any gcc2 internal prototype to avoid an error. */
24863#ifdef __cplusplus
24864extern "C"
24865#endif
24866/* We use char because int might match the return type of a gcc2
24867 builtin and then its argument prototype would still apply. */
24868char lt_dlopen ();
24869int
24870main ()
24871{
24872lt_dlopen ();
24873 ;
24874 return 0;
24875}
24876_ACEOF
24877rm -f conftest.$ac_objext conftest$ac_exeext
24878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24879 (eval $ac_link) 2>conftest.er1
24880 ac_status=$?
24881 grep -v '^ *+' conftest.er1 >conftest.err
24882 rm -f conftest.er1
24883 cat conftest.err >&5
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } &&
24886 { ac_try='test -z "$ac_c_werror_flag"
24887 || test ! -s conftest.err'
24888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889 (eval $ac_try) 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; } &&
24893 { ac_try='test -s conftest$ac_exeext'
24894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895 (eval $ac_try) 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
24899 ac_cv_search_lt_dlopen="-l$ac_lib"
24900break
24901else
24902 echo "$as_me: failed program was:" >&5
24903sed 's/^/| /' conftest.$ac_ext >&5
24904
24905fi
24906rm -f conftest.err conftest.$ac_objext \
24907 conftest$ac_exeext conftest.$ac_ext
24908 done
24909fi
24910LIBS=$ac_func_search_save_LIBS
24911fi
24912echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24913echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24914if test "$ac_cv_search_lt_dlopen" != no; then
24915 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24916
24917cat >>confdefs.h <<\_ACEOF
24918#define HAVE_LT_DLOPEN 1
24919_ACEOF
24920
24921else
24922 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24923 not be available" >&5
24924echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24925 not be available" >&2;}
24926fi
24927
24928
John Criswell7a73b802003-06-30 21:59:07 +000024929echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24930echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24931if test "${ac_cv_search_dlopen+set}" = set; then
24932 echo $ECHO_N "(cached) $ECHO_C" >&6
24933else
24934 ac_func_search_save_LIBS=$LIBS
24935ac_cv_search_dlopen=no
24936cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024937/* confdefs.h. */
24938_ACEOF
24939cat confdefs.h >>conftest.$ac_ext
24940cat >>conftest.$ac_ext <<_ACEOF
24941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024942
24943/* Override any gcc2 internal prototype to avoid an error. */
24944#ifdef __cplusplus
24945extern "C"
24946#endif
24947/* We use char because int might match the return type of a gcc2
24948 builtin and then its argument prototype would still apply. */
24949char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024950int
24951main ()
24952{
24953dlopen ();
24954 ;
24955 return 0;
24956}
24957_ACEOF
24958rm -f conftest.$ac_objext conftest$ac_exeext
24959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024960 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024962 grep -v '^ *+' conftest.er1 >conftest.err
24963 rm -f conftest.er1
24964 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024967 { ac_try='test -z "$ac_c_werror_flag"
24968 || test ! -s conftest.err'
24969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970 (eval $ac_try) 2>&5
24971 ac_status=$?
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; } &&
24974 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
24980 ac_cv_search_dlopen="none required"
24981else
24982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024983sed 's/^/| /' conftest.$ac_ext >&5
24984
John Criswell7a73b802003-06-30 21:59:07 +000024985fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024986rm -f conftest.err conftest.$ac_objext \
24987 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024988if test "$ac_cv_search_dlopen" = no; then
24989 for ac_lib in dl; do
24990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24991 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024992/* confdefs.h. */
24993_ACEOF
24994cat confdefs.h >>conftest.$ac_ext
24995cat >>conftest.$ac_ext <<_ACEOF
24996/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024997
24998/* Override any gcc2 internal prototype to avoid an error. */
24999#ifdef __cplusplus
25000extern "C"
25001#endif
25002/* We use char because int might match the return type of a gcc2
25003 builtin and then its argument prototype would still apply. */
25004char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025005int
25006main ()
25007{
25008dlopen ();
25009 ;
25010 return 0;
25011}
25012_ACEOF
25013rm -f conftest.$ac_objext conftest$ac_exeext
25014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025015 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025017 grep -v '^ *+' conftest.er1 >conftest.err
25018 rm -f conftest.er1
25019 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025022 { ac_try='test -z "$ac_c_werror_flag"
25023 || test ! -s conftest.err'
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25026 ac_status=$?
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
25029 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25032 ac_status=$?
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
25035 ac_cv_search_dlopen="-l$ac_lib"
25036break
25037else
25038 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025039sed 's/^/| /' conftest.$ac_ext >&5
25040
John Criswell7a73b802003-06-30 21:59:07 +000025041fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025042rm -f conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025044 done
25045fi
25046LIBS=$ac_func_search_save_LIBS
25047fi
25048echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25049echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25050if test "$ac_cv_search_dlopen" != no; then
25051 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025052
25053cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025054#define HAVE_DLOPEN 1
25055_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025056
25057else
Brian Gaekec45be042003-10-07 06:01:34 +000025058 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25059echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025060fi
25061
25062
25063echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25064echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25065if test "${ac_cv_search_mallinfo+set}" = set; then
25066 echo $ECHO_N "(cached) $ECHO_C" >&6
25067else
25068 ac_func_search_save_LIBS=$LIBS
25069ac_cv_search_mallinfo=no
25070cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025071/* confdefs.h. */
25072_ACEOF
25073cat confdefs.h >>conftest.$ac_ext
25074cat >>conftest.$ac_ext <<_ACEOF
25075/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025076
25077/* Override any gcc2 internal prototype to avoid an error. */
25078#ifdef __cplusplus
25079extern "C"
25080#endif
25081/* We use char because int might match the return type of a gcc2
25082 builtin and then its argument prototype would still apply. */
25083char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025084int
25085main ()
25086{
25087mallinfo ();
25088 ;
25089 return 0;
25090}
25091_ACEOF
25092rm -f conftest.$ac_objext conftest$ac_exeext
25093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025094 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025095 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025096 grep -v '^ *+' conftest.er1 >conftest.err
25097 rm -f conftest.er1
25098 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025101 { ac_try='test -z "$ac_c_werror_flag"
25102 || test ! -s conftest.err'
25103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104 (eval $ac_try) 2>&5
25105 ac_status=$?
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; } &&
25108 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110 (eval $ac_try) 2>&5
25111 ac_status=$?
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); }; }; then
25114 ac_cv_search_mallinfo="none required"
25115else
25116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025117sed 's/^/| /' conftest.$ac_ext >&5
25118
John Criswell7a73b802003-06-30 21:59:07 +000025119fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025120rm -f conftest.err conftest.$ac_objext \
25121 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025122if test "$ac_cv_search_mallinfo" = no; then
25123 for ac_lib in malloc; do
25124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25125 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025126/* confdefs.h. */
25127_ACEOF
25128cat confdefs.h >>conftest.$ac_ext
25129cat >>conftest.$ac_ext <<_ACEOF
25130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025131
25132/* Override any gcc2 internal prototype to avoid an error. */
25133#ifdef __cplusplus
25134extern "C"
25135#endif
25136/* We use char because int might match the return type of a gcc2
25137 builtin and then its argument prototype would still apply. */
25138char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025139int
25140main ()
25141{
25142mallinfo ();
25143 ;
25144 return 0;
25145}
25146_ACEOF
25147rm -f conftest.$ac_objext conftest$ac_exeext
25148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025149 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025151 grep -v '^ *+' conftest.er1 >conftest.err
25152 rm -f conftest.er1
25153 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025156 { ac_try='test -z "$ac_c_werror_flag"
25157 || test ! -s conftest.err'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; } &&
25163 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; }; then
25169 ac_cv_search_mallinfo="-l$ac_lib"
25170break
25171else
25172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025173sed 's/^/| /' conftest.$ac_ext >&5
25174
John Criswell7a73b802003-06-30 21:59:07 +000025175fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025176rm -f conftest.err conftest.$ac_objext \
25177 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025178 done
25179fi
25180LIBS=$ac_func_search_save_LIBS
25181fi
25182echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25183echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25184if test "$ac_cv_search_mallinfo" != no; then
25185 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025186
25187cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025188#define HAVE_MALLINFO 1
25189_ACEOF
25190
25191fi
25192
25193
Brian Gaeke5f268f72003-12-05 19:29:01 +000025194echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25195echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25196if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25197 echo $ECHO_N "(cached) $ECHO_C" >&6
25198else
25199 ac_func_search_save_LIBS=$LIBS
25200ac_cv_search_pthread_mutex_lock=no
25201cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025202/* confdefs.h. */
25203_ACEOF
25204cat confdefs.h >>conftest.$ac_ext
25205cat >>conftest.$ac_ext <<_ACEOF
25206/* end confdefs.h. */
25207
25208/* Override any gcc2 internal prototype to avoid an error. */
25209#ifdef __cplusplus
25210extern "C"
25211#endif
25212/* We use char because int might match the return type of a gcc2
25213 builtin and then its argument prototype would still apply. */
25214char pthread_mutex_lock ();
25215int
25216main ()
25217{
25218pthread_mutex_lock ();
25219 ;
25220 return 0;
25221}
25222_ACEOF
25223rm -f conftest.$ac_objext conftest$ac_exeext
25224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025225 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025226 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025227 grep -v '^ *+' conftest.er1 >conftest.err
25228 rm -f conftest.er1
25229 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025232 { ac_try='test -z "$ac_c_werror_flag"
25233 || test ! -s conftest.err'
25234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235 (eval $ac_try) 2>&5
25236 ac_status=$?
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); }; } &&
25239 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241 (eval $ac_try) 2>&5
25242 ac_status=$?
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); }; }; then
25245 ac_cv_search_pthread_mutex_lock="none required"
25246else
25247 echo "$as_me: failed program was:" >&5
25248sed 's/^/| /' conftest.$ac_ext >&5
25249
25250fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025251rm -f conftest.err conftest.$ac_objext \
25252 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025253if test "$ac_cv_search_pthread_mutex_lock" = no; then
25254 for ac_lib in pthread; do
25255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25256 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025257/* confdefs.h. */
25258_ACEOF
25259cat confdefs.h >>conftest.$ac_ext
25260cat >>conftest.$ac_ext <<_ACEOF
25261/* end confdefs.h. */
25262
25263/* Override any gcc2 internal prototype to avoid an error. */
25264#ifdef __cplusplus
25265extern "C"
25266#endif
25267/* We use char because int might match the return type of a gcc2
25268 builtin and then its argument prototype would still apply. */
25269char pthread_mutex_lock ();
25270int
25271main ()
25272{
25273pthread_mutex_lock ();
25274 ;
25275 return 0;
25276}
25277_ACEOF
25278rm -f conftest.$ac_objext conftest$ac_exeext
25279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025280 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025282 grep -v '^ *+' conftest.er1 >conftest.err
25283 rm -f conftest.er1
25284 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025287 { ac_try='test -z "$ac_c_werror_flag"
25288 || test ! -s conftest.err'
25289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25291 ac_status=$?
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; } &&
25294 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25297 ac_status=$?
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25300 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25301break
25302else
25303 echo "$as_me: failed program was:" >&5
25304sed 's/^/| /' conftest.$ac_ext >&5
25305
25306fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025307rm -f conftest.err conftest.$ac_objext \
25308 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025309 done
25310fi
25311LIBS=$ac_func_search_save_LIBS
25312fi
25313echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25314echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25315if test "$ac_cv_search_pthread_mutex_lock" != no; then
25316 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025317
John Criswell40468462004-09-24 21:19:06 +000025318cat >>confdefs.h <<\_ACEOF
25319#define HAVE_PTHREAD_MUTEX_LOCK 1
25320_ACEOF
25321
25322fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025323
Brian Gaekec9a410c2004-02-23 21:30:37 +000025324
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025325
Reid Spencer59473af2004-12-25 07:31:29 +000025326
25327
25328
25329
25330
25331ac_header_dirent=no
25332for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25333 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25334echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25335echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25336if eval "test \"\${$as_ac_Header+set}\" = set"; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25338else
25339 cat >conftest.$ac_ext <<_ACEOF
25340/* confdefs.h. */
25341_ACEOF
25342cat confdefs.h >>conftest.$ac_ext
25343cat >>conftest.$ac_ext <<_ACEOF
25344/* end confdefs.h. */
25345#include <sys/types.h>
25346#include <$ac_hdr>
25347
25348int
25349main ()
25350{
25351if ((DIR *) 0)
25352return 0;
25353 ;
25354 return 0;
25355}
25356_ACEOF
25357rm -f conftest.$ac_objext
25358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25359 (eval $ac_compile) 2>conftest.er1
25360 ac_status=$?
25361 grep -v '^ *+' conftest.er1 >conftest.err
25362 rm -f conftest.er1
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } &&
25366 { ac_try='test -z "$ac_c_werror_flag"
25367 || test ! -s conftest.err'
25368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369 (eval $ac_try) 2>&5
25370 ac_status=$?
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); }; } &&
25373 { ac_try='test -s conftest.$ac_objext'
25374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375 (eval $ac_try) 2>&5
25376 ac_status=$?
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); }; }; then
25379 eval "$as_ac_Header=yes"
25380else
25381 echo "$as_me: failed program was:" >&5
25382sed 's/^/| /' conftest.$ac_ext >&5
25383
25384eval "$as_ac_Header=no"
25385fi
25386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25387fi
25388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25390if test `eval echo '${'$as_ac_Header'}'` = yes; then
25391 cat >>confdefs.h <<_ACEOF
25392#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25393_ACEOF
25394
25395ac_header_dirent=$ac_hdr; break
25396fi
25397
25398done
25399# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25400if test $ac_header_dirent = dirent.h; then
25401 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25402echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25403if test "${ac_cv_search_opendir+set}" = set; then
25404 echo $ECHO_N "(cached) $ECHO_C" >&6
25405else
25406 ac_func_search_save_LIBS=$LIBS
25407ac_cv_search_opendir=no
25408cat >conftest.$ac_ext <<_ACEOF
25409/* confdefs.h. */
25410_ACEOF
25411cat confdefs.h >>conftest.$ac_ext
25412cat >>conftest.$ac_ext <<_ACEOF
25413/* end confdefs.h. */
25414
25415/* Override any gcc2 internal prototype to avoid an error. */
25416#ifdef __cplusplus
25417extern "C"
25418#endif
25419/* We use char because int might match the return type of a gcc2
25420 builtin and then its argument prototype would still apply. */
25421char opendir ();
25422int
25423main ()
25424{
25425opendir ();
25426 ;
25427 return 0;
25428}
25429_ACEOF
25430rm -f conftest.$ac_objext conftest$ac_exeext
25431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25432 (eval $ac_link) 2>conftest.er1
25433 ac_status=$?
25434 grep -v '^ *+' conftest.er1 >conftest.err
25435 rm -f conftest.er1
25436 cat conftest.err >&5
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); } &&
25439 { ac_try='test -z "$ac_c_werror_flag"
25440 || test ! -s conftest.err'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; } &&
25446 { ac_try='test -s conftest$ac_exeext'
25447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448 (eval $ac_try) 2>&5
25449 ac_status=$?
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; }; then
25452 ac_cv_search_opendir="none required"
25453else
25454 echo "$as_me: failed program was:" >&5
25455sed 's/^/| /' conftest.$ac_ext >&5
25456
25457fi
25458rm -f conftest.err conftest.$ac_objext \
25459 conftest$ac_exeext conftest.$ac_ext
25460if test "$ac_cv_search_opendir" = no; then
25461 for ac_lib in dir; do
25462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25463 cat >conftest.$ac_ext <<_ACEOF
25464/* confdefs.h. */
25465_ACEOF
25466cat confdefs.h >>conftest.$ac_ext
25467cat >>conftest.$ac_ext <<_ACEOF
25468/* end confdefs.h. */
25469
25470/* Override any gcc2 internal prototype to avoid an error. */
25471#ifdef __cplusplus
25472extern "C"
25473#endif
25474/* We use char because int might match the return type of a gcc2
25475 builtin and then its argument prototype would still apply. */
25476char opendir ();
25477int
25478main ()
25479{
25480opendir ();
25481 ;
25482 return 0;
25483}
25484_ACEOF
25485rm -f conftest.$ac_objext conftest$ac_exeext
25486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25487 (eval $ac_link) 2>conftest.er1
25488 ac_status=$?
25489 grep -v '^ *+' conftest.er1 >conftest.err
25490 rm -f conftest.er1
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } &&
25494 { ac_try='test -z "$ac_c_werror_flag"
25495 || test ! -s conftest.err'
25496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25497 (eval $ac_try) 2>&5
25498 ac_status=$?
25499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); }; } &&
25501 { ac_try='test -s conftest$ac_exeext'
25502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25503 (eval $ac_try) 2>&5
25504 ac_status=$?
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; }; then
25507 ac_cv_search_opendir="-l$ac_lib"
25508break
25509else
25510 echo "$as_me: failed program was:" >&5
25511sed 's/^/| /' conftest.$ac_ext >&5
25512
25513fi
25514rm -f conftest.err conftest.$ac_objext \
25515 conftest$ac_exeext conftest.$ac_ext
25516 done
25517fi
25518LIBS=$ac_func_search_save_LIBS
25519fi
25520echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25521echo "${ECHO_T}$ac_cv_search_opendir" >&6
25522if test "$ac_cv_search_opendir" != no; then
25523 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25524
25525fi
25526
25527else
25528 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25529echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25530if test "${ac_cv_search_opendir+set}" = set; then
25531 echo $ECHO_N "(cached) $ECHO_C" >&6
25532else
25533 ac_func_search_save_LIBS=$LIBS
25534ac_cv_search_opendir=no
25535cat >conftest.$ac_ext <<_ACEOF
25536/* confdefs.h. */
25537_ACEOF
25538cat confdefs.h >>conftest.$ac_ext
25539cat >>conftest.$ac_ext <<_ACEOF
25540/* end confdefs.h. */
25541
25542/* Override any gcc2 internal prototype to avoid an error. */
25543#ifdef __cplusplus
25544extern "C"
25545#endif
25546/* We use char because int might match the return type of a gcc2
25547 builtin and then its argument prototype would still apply. */
25548char opendir ();
25549int
25550main ()
25551{
25552opendir ();
25553 ;
25554 return 0;
25555}
25556_ACEOF
25557rm -f conftest.$ac_objext conftest$ac_exeext
25558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25559 (eval $ac_link) 2>conftest.er1
25560 ac_status=$?
25561 grep -v '^ *+' conftest.er1 >conftest.err
25562 rm -f conftest.er1
25563 cat conftest.err >&5
25564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565 (exit $ac_status); } &&
25566 { ac_try='test -z "$ac_c_werror_flag"
25567 || test ! -s conftest.err'
25568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; } &&
25573 { ac_try='test -s conftest$ac_exeext'
25574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575 (eval $ac_try) 2>&5
25576 ac_status=$?
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; }; then
25579 ac_cv_search_opendir="none required"
25580else
25581 echo "$as_me: failed program was:" >&5
25582sed 's/^/| /' conftest.$ac_ext >&5
25583
25584fi
25585rm -f conftest.err conftest.$ac_objext \
25586 conftest$ac_exeext conftest.$ac_ext
25587if test "$ac_cv_search_opendir" = no; then
25588 for ac_lib in x; do
25589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25590 cat >conftest.$ac_ext <<_ACEOF
25591/* confdefs.h. */
25592_ACEOF
25593cat confdefs.h >>conftest.$ac_ext
25594cat >>conftest.$ac_ext <<_ACEOF
25595/* end confdefs.h. */
25596
25597/* Override any gcc2 internal prototype to avoid an error. */
25598#ifdef __cplusplus
25599extern "C"
25600#endif
25601/* We use char because int might match the return type of a gcc2
25602 builtin and then its argument prototype would still apply. */
25603char opendir ();
25604int
25605main ()
25606{
25607opendir ();
25608 ;
25609 return 0;
25610}
25611_ACEOF
25612rm -f conftest.$ac_objext conftest$ac_exeext
25613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25614 (eval $ac_link) 2>conftest.er1
25615 ac_status=$?
25616 grep -v '^ *+' conftest.er1 >conftest.err
25617 rm -f conftest.er1
25618 cat conftest.err >&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); } &&
25621 { ac_try='test -z "$ac_c_werror_flag"
25622 || test ! -s conftest.err'
25623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; } &&
25628 { ac_try='test -s conftest$ac_exeext'
25629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630 (eval $ac_try) 2>&5
25631 ac_status=$?
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); }; }; then
25634 ac_cv_search_opendir="-l$ac_lib"
25635break
25636else
25637 echo "$as_me: failed program was:" >&5
25638sed 's/^/| /' conftest.$ac_ext >&5
25639
25640fi
25641rm -f conftest.err conftest.$ac_objext \
25642 conftest$ac_exeext conftest.$ac_ext
25643 done
25644fi
25645LIBS=$ac_func_search_save_LIBS
25646fi
25647echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25648echo "${ECHO_T}$ac_cv_search_opendir" >&6
25649if test "$ac_cv_search_opendir" != no; then
25650 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25651
25652fi
25653
25654fi
25655
25656echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25657echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25658if test "${ac_cv_header_mmap_anon+set}" = set; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25660else
25661 ac_ext=c
25662ac_cpp='$CPP $CPPFLAGS'
25663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25665ac_compiler_gnu=$ac_cv_c_compiler_gnu
25666
25667 cat >conftest.$ac_ext <<_ACEOF
25668/* confdefs.h. */
25669_ACEOF
25670cat confdefs.h >>conftest.$ac_ext
25671cat >>conftest.$ac_ext <<_ACEOF
25672/* end confdefs.h. */
25673#include <sys/mman.h>
25674#include <unistd.h>
25675#include <fcntl.h>
25676int
25677main ()
25678{
25679mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25680 ;
25681 return 0;
25682}
25683_ACEOF
25684rm -f conftest.$ac_objext
25685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25686 (eval $ac_compile) 2>conftest.er1
25687 ac_status=$?
25688 grep -v '^ *+' conftest.er1 >conftest.err
25689 rm -f conftest.er1
25690 cat conftest.err >&5
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); } &&
25693 { ac_try='test -z "$ac_c_werror_flag"
25694 || test ! -s conftest.err'
25695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696 (eval $ac_try) 2>&5
25697 ac_status=$?
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); }; } &&
25700 { ac_try='test -s conftest.$ac_objext'
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; }; then
25706 ac_cv_header_mmap_anon=yes
25707else
25708 echo "$as_me: failed program was:" >&5
25709sed 's/^/| /' conftest.$ac_ext >&5
25710
25711ac_cv_header_mmap_anon=no
25712fi
25713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25714 ac_ext=c
25715ac_cpp='$CPP $CPPFLAGS'
25716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25718ac_compiler_gnu=$ac_cv_c_compiler_gnu
25719
25720
25721fi
25722echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25723echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25724if test "$ac_cv_header_mmap_anon" = yes; then
25725
25726cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025727#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025728_ACEOF
25729
25730fi
25731
25732echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25733echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25734if test "${ac_cv_header_stat_broken+set}" = set; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
25736else
25737 cat >conftest.$ac_ext <<_ACEOF
25738/* confdefs.h. */
25739_ACEOF
25740cat confdefs.h >>conftest.$ac_ext
25741cat >>conftest.$ac_ext <<_ACEOF
25742/* end confdefs.h. */
25743#include <sys/types.h>
25744#include <sys/stat.h>
25745
25746#if defined(S_ISBLK) && defined(S_IFDIR)
25747# if S_ISBLK (S_IFDIR)
25748You lose.
25749# endif
25750#endif
25751
25752#if defined(S_ISBLK) && defined(S_IFCHR)
25753# if S_ISBLK (S_IFCHR)
25754You lose.
25755# endif
25756#endif
25757
25758#if defined(S_ISLNK) && defined(S_IFREG)
25759# if S_ISLNK (S_IFREG)
25760You lose.
25761# endif
25762#endif
25763
25764#if defined(S_ISSOCK) && defined(S_IFREG)
25765# if S_ISSOCK (S_IFREG)
25766You lose.
25767# endif
25768#endif
25769
25770_ACEOF
25771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25772 $EGREP "You lose" >/dev/null 2>&1; then
25773 ac_cv_header_stat_broken=yes
25774else
25775 ac_cv_header_stat_broken=no
25776fi
25777rm -f conftest*
25778
25779fi
25780echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25781echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25782if test $ac_cv_header_stat_broken = yes; then
25783
25784cat >>confdefs.h <<\_ACEOF
25785#define STAT_MACROS_BROKEN 1
25786_ACEOF
25787
25788fi
25789
John Criswell7a73b802003-06-30 21:59:07 +000025790echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25791echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25792if test "${ac_cv_header_stdc+set}" = set; then
25793 echo $ECHO_N "(cached) $ECHO_C" >&6
25794else
25795 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025796/* confdefs.h. */
25797_ACEOF
25798cat confdefs.h >>conftest.$ac_ext
25799cat >>conftest.$ac_ext <<_ACEOF
25800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025801#include <stdlib.h>
25802#include <stdarg.h>
25803#include <string.h>
25804#include <float.h>
25805
John Criswell0c38eaf2003-09-10 15:17:25 +000025806int
25807main ()
25808{
25809
25810 ;
25811 return 0;
25812}
John Criswell7a73b802003-06-30 21:59:07 +000025813_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025814rm -f conftest.$ac_objext
25815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025816 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025817 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025818 grep -v '^ *+' conftest.er1 >conftest.err
25819 rm -f conftest.er1
25820 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025822 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025823 { ac_try='test -z "$ac_c_werror_flag"
25824 || test ! -s conftest.err'
25825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826 (eval $ac_try) 2>&5
25827 ac_status=$?
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); }; } &&
25830 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025836 ac_cv_header_stdc=yes
25837else
25838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025839sed 's/^/| /' conftest.$ac_ext >&5
25840
25841ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025842fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025844
25845if test $ac_cv_header_stdc = yes; then
25846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25847 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025848/* confdefs.h. */
25849_ACEOF
25850cat confdefs.h >>conftest.$ac_ext
25851cat >>conftest.$ac_ext <<_ACEOF
25852/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025853#include <string.h>
25854
25855_ACEOF
25856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025857 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025858 :
25859else
25860 ac_cv_header_stdc=no
25861fi
25862rm -f conftest*
25863
25864fi
25865
25866if test $ac_cv_header_stdc = yes; then
25867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25868 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025874#include <stdlib.h>
25875
25876_ACEOF
25877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025878 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025879 :
25880else
25881 ac_cv_header_stdc=no
25882fi
25883rm -f conftest*
25884
25885fi
25886
25887if test $ac_cv_header_stdc = yes; then
25888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25889 if test "$cross_compiling" = yes; then
25890 :
25891else
25892 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025893/* confdefs.h. */
25894_ACEOF
25895cat confdefs.h >>conftest.$ac_ext
25896cat >>conftest.$ac_ext <<_ACEOF
25897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025898#include <ctype.h>
25899#if ((' ' & 0x0FF) == 0x020)
25900# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25901# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25902#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025903# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025904 (('a' <= (c) && (c) <= 'i') \
25905 || ('j' <= (c) && (c) <= 'r') \
25906 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25908#endif
25909
25910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25911int
25912main ()
25913{
25914 int i;
25915 for (i = 0; i < 256; i++)
25916 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025917 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025918 exit(2);
25919 exit (0);
25920}
25921_ACEOF
25922rm -f conftest$ac_exeext
25923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25924 (eval $ac_link) 2>&5
25925 ac_status=$?
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929 (eval $ac_try) 2>&5
25930 ac_status=$?
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); }; }; then
25933 :
25934else
25935 echo "$as_me: program exited with status $ac_status" >&5
25936echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025937sed 's/^/| /' conftest.$ac_ext >&5
25938
John Criswell7a73b802003-06-30 21:59:07 +000025939( exit $ac_status )
25940ac_cv_header_stdc=no
25941fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025942rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025943fi
25944fi
25945fi
25946echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25947echo "${ECHO_T}$ac_cv_header_stdc" >&6
25948if test $ac_cv_header_stdc = yes; then
25949
25950cat >>confdefs.h <<\_ACEOF
25951#define STDC_HEADERS 1
25952_ACEOF
25953
25954fi
25955
25956echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25957echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25958if test "${ac_cv_header_sys_wait_h+set}" = set; then
25959 echo $ECHO_N "(cached) $ECHO_C" >&6
25960else
25961 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025962/* confdefs.h. */
25963_ACEOF
25964cat confdefs.h >>conftest.$ac_ext
25965cat >>conftest.$ac_ext <<_ACEOF
25966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025967#include <sys/types.h>
25968#include <sys/wait.h>
25969#ifndef WEXITSTATUS
25970# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25971#endif
25972#ifndef WIFEXITED
25973# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25974#endif
25975
John Criswell7a73b802003-06-30 21:59:07 +000025976int
25977main ()
25978{
25979 int s;
25980 wait (&s);
25981 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25982 ;
25983 return 0;
25984}
25985_ACEOF
25986rm -f conftest.$ac_objext
25987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025988 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025989 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025990 grep -v '^ *+' conftest.er1 >conftest.err
25991 rm -f conftest.er1
25992 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025995 { ac_try='test -z "$ac_c_werror_flag"
25996 || test ! -s conftest.err'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
25999 ac_status=$?
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; } &&
26002 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; }; then
26008 ac_cv_header_sys_wait_h=yes
26009else
26010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026011sed 's/^/| /' conftest.$ac_ext >&5
26012
John Criswell7a73b802003-06-30 21:59:07 +000026013ac_cv_header_sys_wait_h=no
26014fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026016fi
26017echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26018echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26019if test $ac_cv_header_sys_wait_h = yes; then
26020
26021cat >>confdefs.h <<\_ACEOF
26022#define HAVE_SYS_WAIT_H 1
26023_ACEOF
26024
26025fi
26026
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026027echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26028echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26029if test "${ac_cv_header_time+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26031else
26032 cat >conftest.$ac_ext <<_ACEOF
26033/* confdefs.h. */
26034_ACEOF
26035cat confdefs.h >>conftest.$ac_ext
26036cat >>conftest.$ac_ext <<_ACEOF
26037/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026038#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026039#include <sys/time.h>
26040#include <time.h>
26041
26042int
26043main ()
26044{
26045if ((struct tm *) 0)
26046return 0;
26047 ;
26048 return 0;
26049}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026050_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026051rm -f conftest.$ac_objext
26052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26053 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026054 ac_status=$?
26055 grep -v '^ *+' conftest.er1 >conftest.err
26056 rm -f conftest.er1
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026059 (exit $ac_status); } &&
26060 { ac_try='test -z "$ac_c_werror_flag"
26061 || test ! -s conftest.err'
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; } &&
26067 { ac_try='test -s conftest.$ac_objext'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026074else
26075 echo "$as_me: failed program was:" >&5
26076sed 's/^/| /' conftest.$ac_ext >&5
26077
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026078ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026079fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26081fi
26082echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26083echo "${ECHO_T}$ac_cv_header_time" >&6
26084if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026085
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026086cat >>confdefs.h <<\_ACEOF
26087#define TIME_WITH_SYS_TIME 1
26088_ACEOF
26089
26090fi
26091
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026092
Reid Spencer59473af2004-12-25 07:31:29 +000026093
26094
26095
26096
26097
26098
26099for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26100do
26101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26102if eval "test \"\${$as_ac_Header+set}\" = set"; then
26103 echo "$as_me:$LINENO: checking for $ac_header" >&5
26104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26105if eval "test \"\${$as_ac_Header+set}\" = set"; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26107fi
26108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26110else
26111 # Is the header compilable?
26112echo "$as_me:$LINENO: checking $ac_header usability" >&5
26113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26114cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
26119/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026120$ac_includes_default
26121#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026122_ACEOF
26123rm -f conftest.$ac_objext
26124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26125 (eval $ac_compile) 2>conftest.er1
26126 ac_status=$?
26127 grep -v '^ *+' conftest.er1 >conftest.err
26128 rm -f conftest.er1
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } &&
26132 { ac_try='test -z "$ac_c_werror_flag"
26133 || test ! -s conftest.err'
26134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); }; } &&
26139 { ac_try='test -s conftest.$ac_objext'
26140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026145 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026146else
26147 echo "$as_me: failed program was:" >&5
26148sed 's/^/| /' conftest.$ac_ext >&5
26149
Reid Spencer59473af2004-12-25 07:31:29 +000026150ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026151fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26154echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026155
Reid Spencer59473af2004-12-25 07:31:29 +000026156# Is the header present?
26157echo "$as_me:$LINENO: checking $ac_header presence" >&5
26158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26159cat >conftest.$ac_ext <<_ACEOF
26160/* confdefs.h. */
26161_ACEOF
26162cat confdefs.h >>conftest.$ac_ext
26163cat >>conftest.$ac_ext <<_ACEOF
26164/* end confdefs.h. */
26165#include <$ac_header>
26166_ACEOF
26167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26169 ac_status=$?
26170 grep -v '^ *+' conftest.er1 >conftest.err
26171 rm -f conftest.er1
26172 cat conftest.err >&5
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); } >/dev/null; then
26175 if test -s conftest.err; then
26176 ac_cpp_err=$ac_c_preproc_warn_flag
26177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26178 else
26179 ac_cpp_err=
26180 fi
26181else
26182 ac_cpp_err=yes
26183fi
26184if test -z "$ac_cpp_err"; then
26185 ac_header_preproc=yes
26186else
26187 echo "$as_me: failed program was:" >&5
26188sed 's/^/| /' conftest.$ac_ext >&5
26189
26190 ac_header_preproc=no
26191fi
26192rm -f conftest.err conftest.$ac_ext
26193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26194echo "${ECHO_T}$ac_header_preproc" >&6
26195
26196# So? What about this header?
26197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26198 yes:no: )
26199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26203 ac_header_preproc=yes
26204 ;;
26205 no:yes:* )
26206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26218 (
26219 cat <<\_ASBOX
26220## ----------------------------------- ##
26221## Report this to llvmbugs@cs.uiuc.edu ##
26222## ----------------------------------- ##
26223_ASBOX
26224 ) |
26225 sed "s/^/$as_me: WARNING: /" >&2
26226 ;;
26227esac
26228echo "$as_me:$LINENO: checking for $ac_header" >&5
26229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26230if eval "test \"\${$as_ac_Header+set}\" = set"; then
26231 echo $ECHO_N "(cached) $ECHO_C" >&6
26232else
26233 eval "$as_ac_Header=\$ac_header_preproc"
26234fi
26235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026237
26238fi
Reid Spencer59473af2004-12-25 07:31:29 +000026239if test `eval echo '${'$as_ac_Header'}'` = yes; then
26240 cat >>confdefs.h <<_ACEOF
26241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026242_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026243
26244fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026245
Reid Spencer59473af2004-12-25 07:31:29 +000026246done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026247
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026248
26249
Reid Spencer59473af2004-12-25 07:31:29 +000026250
26251
26252
26253
26254for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26255do
26256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26257if eval "test \"\${$as_ac_Header+set}\" = set"; then
26258 echo "$as_me:$LINENO: checking for $ac_header" >&5
26259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26260if eval "test \"\${$as_ac_Header+set}\" = set"; then
26261 echo $ECHO_N "(cached) $ECHO_C" >&6
26262fi
26263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26265else
26266 # Is the header compilable?
26267echo "$as_me:$LINENO: checking $ac_header usability" >&5
26268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26269cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275$ac_includes_default
26276#include <$ac_header>
26277_ACEOF
26278rm -f conftest.$ac_objext
26279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26280 (eval $ac_compile) 2>conftest.er1
26281 ac_status=$?
26282 grep -v '^ *+' conftest.er1 >conftest.err
26283 rm -f conftest.er1
26284 cat conftest.err >&5
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); } &&
26287 { ac_try='test -z "$ac_c_werror_flag"
26288 || test ! -s conftest.err'
26289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26290 (eval $ac_try) 2>&5
26291 ac_status=$?
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; } &&
26294 { ac_try='test -s conftest.$ac_objext'
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26297 ac_status=$?
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; }; then
26300 ac_header_compiler=yes
26301else
26302 echo "$as_me: failed program was:" >&5
26303sed 's/^/| /' conftest.$ac_ext >&5
26304
26305ac_header_compiler=no
26306fi
26307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26308echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26309echo "${ECHO_T}$ac_header_compiler" >&6
26310
26311# Is the header present?
26312echo "$as_me:$LINENO: checking $ac_header presence" >&5
26313echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26314cat >conftest.$ac_ext <<_ACEOF
26315/* confdefs.h. */
26316_ACEOF
26317cat confdefs.h >>conftest.$ac_ext
26318cat >>conftest.$ac_ext <<_ACEOF
26319/* end confdefs.h. */
26320#include <$ac_header>
26321_ACEOF
26322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26324 ac_status=$?
26325 grep -v '^ *+' conftest.er1 >conftest.err
26326 rm -f conftest.er1
26327 cat conftest.err >&5
26328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); } >/dev/null; then
26330 if test -s conftest.err; then
26331 ac_cpp_err=$ac_c_preproc_warn_flag
26332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26333 else
26334 ac_cpp_err=
26335 fi
26336else
26337 ac_cpp_err=yes
26338fi
26339if test -z "$ac_cpp_err"; then
26340 ac_header_preproc=yes
26341else
26342 echo "$as_me: failed program was:" >&5
26343sed 's/^/| /' conftest.$ac_ext >&5
26344
26345 ac_header_preproc=no
26346fi
26347rm -f conftest.err conftest.$ac_ext
26348echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26349echo "${ECHO_T}$ac_header_preproc" >&6
26350
26351# So? What about this header?
26352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26353 yes:no: )
26354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26358 ac_header_preproc=yes
26359 ;;
26360 no:yes:* )
26361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26368echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26373 (
26374 cat <<\_ASBOX
26375## ----------------------------------- ##
26376## Report this to llvmbugs@cs.uiuc.edu ##
26377## ----------------------------------- ##
26378_ASBOX
26379 ) |
26380 sed "s/^/$as_me: WARNING: /" >&2
26381 ;;
26382esac
26383echo "$as_me:$LINENO: checking for $ac_header" >&5
26384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26385if eval "test \"\${$as_ac_Header+set}\" = set"; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388 eval "$as_ac_Header=\$ac_header_preproc"
26389fi
26390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26392
26393fi
26394if test `eval echo '${'$as_ac_Header'}'` = yes; then
26395 cat >>confdefs.h <<_ACEOF
26396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26397_ACEOF
26398
26399fi
26400
26401done
26402
26403
26404
26405
26406
26407
26408for 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 +000026409do
26410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26411if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412 echo "$as_me:$LINENO: checking for $ac_header" >&5
26413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26414if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026415 echo $ECHO_N "(cached) $ECHO_C" >&6
26416fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026419else
26420 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026421echo "$as_me:$LINENO: checking $ac_header usability" >&5
26422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026423cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026424/* confdefs.h. */
26425_ACEOF
26426cat confdefs.h >>conftest.$ac_ext
26427cat >>conftest.$ac_ext <<_ACEOF
26428/* end confdefs.h. */
26429$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026430#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026431_ACEOF
26432rm -f conftest.$ac_objext
26433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026434 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026436 grep -v '^ *+' conftest.er1 >conftest.err
26437 rm -f conftest.er1
26438 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026441 { ac_try='test -z "$ac_c_werror_flag"
26442 || test ! -s conftest.err'
26443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444 (eval $ac_try) 2>&5
26445 ac_status=$?
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); }; } &&
26448 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26451 ac_status=$?
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; }; then
26454 ac_header_compiler=yes
26455else
26456 echo "$as_me: failed program was:" >&5
26457sed 's/^/| /' conftest.$ac_ext >&5
26458
26459ac_header_compiler=no
26460fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026462echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26463echo "${ECHO_T}$ac_header_compiler" >&6
26464
26465# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026466echo "$as_me:$LINENO: checking $ac_header presence" >&5
26467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026468cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026469/* confdefs.h. */
26470_ACEOF
26471cat confdefs.h >>conftest.$ac_ext
26472cat >>conftest.$ac_ext <<_ACEOF
26473/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026474#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026475_ACEOF
26476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26478 ac_status=$?
26479 grep -v '^ *+' conftest.er1 >conftest.err
26480 rm -f conftest.er1
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } >/dev/null; then
26484 if test -s conftest.err; then
26485 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026487 else
26488 ac_cpp_err=
26489 fi
26490else
26491 ac_cpp_err=yes
26492fi
26493if test -z "$ac_cpp_err"; then
26494 ac_header_preproc=yes
26495else
26496 echo "$as_me: failed program was:" >&5
26497sed 's/^/| /' conftest.$ac_ext >&5
26498
26499 ac_header_preproc=no
26500fi
26501rm -f conftest.err conftest.$ac_ext
26502echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26503echo "${ECHO_T}$ac_header_preproc" >&6
26504
26505# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26507 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026512 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026513 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026514 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26518echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26522echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026527 (
26528 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026529## ----------------------------------- ##
26530## Report this to llvmbugs@cs.uiuc.edu ##
26531## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026532_ASBOX
26533 ) |
26534 sed "s/^/$as_me: WARNING: /" >&2
26535 ;;
26536esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026537echo "$as_me:$LINENO: checking for $ac_header" >&5
26538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26539if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026540 echo $ECHO_N "(cached) $ECHO_C" >&6
26541else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026542 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026543fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026546
26547fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026548if test `eval echo '${'$as_ac_Header'}'` = yes; then
26549 cat >>confdefs.h <<_ACEOF
26550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026551_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026552
26553fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026554
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026555done
26556
John Criswell7ed43ad2004-07-19 16:12:29 +000026557
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026558
Reid Spencer8085cff2005-01-16 02:58:39 +000026559for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26560do
26561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26562if eval "test \"\${$as_ac_Header+set}\" = set"; then
26563 echo "$as_me:$LINENO: checking for $ac_header" >&5
26564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26565if eval "test \"\${$as_ac_Header+set}\" = set"; then
26566 echo $ECHO_N "(cached) $ECHO_C" >&6
26567fi
26568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26570else
26571 # Is the header compilable?
26572echo "$as_me:$LINENO: checking $ac_header usability" >&5
26573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26574cat >conftest.$ac_ext <<_ACEOF
26575/* confdefs.h. */
26576_ACEOF
26577cat confdefs.h >>conftest.$ac_ext
26578cat >>conftest.$ac_ext <<_ACEOF
26579/* end confdefs.h. */
26580$ac_includes_default
26581#include <$ac_header>
26582_ACEOF
26583rm -f conftest.$ac_objext
26584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26585 (eval $ac_compile) 2>conftest.er1
26586 ac_status=$?
26587 grep -v '^ *+' conftest.er1 >conftest.err
26588 rm -f conftest.er1
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } &&
26592 { ac_try='test -z "$ac_c_werror_flag"
26593 || test ! -s conftest.err'
26594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595 (eval $ac_try) 2>&5
26596 ac_status=$?
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); }; } &&
26599 { ac_try='test -s conftest.$ac_objext'
26600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601 (eval $ac_try) 2>&5
26602 ac_status=$?
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); }; }; then
26605 ac_header_compiler=yes
26606else
26607 echo "$as_me: failed program was:" >&5
26608sed 's/^/| /' conftest.$ac_ext >&5
26609
26610ac_header_compiler=no
26611fi
26612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26614echo "${ECHO_T}$ac_header_compiler" >&6
26615
26616# Is the header present?
26617echo "$as_me:$LINENO: checking $ac_header presence" >&5
26618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26619cat >conftest.$ac_ext <<_ACEOF
26620/* confdefs.h. */
26621_ACEOF
26622cat confdefs.h >>conftest.$ac_ext
26623cat >>conftest.$ac_ext <<_ACEOF
26624/* end confdefs.h. */
26625#include <$ac_header>
26626_ACEOF
26627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26629 ac_status=$?
26630 grep -v '^ *+' conftest.er1 >conftest.err
26631 rm -f conftest.er1
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } >/dev/null; then
26635 if test -s conftest.err; then
26636 ac_cpp_err=$ac_c_preproc_warn_flag
26637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26638 else
26639 ac_cpp_err=
26640 fi
26641else
26642 ac_cpp_err=yes
26643fi
26644if test -z "$ac_cpp_err"; then
26645 ac_header_preproc=yes
26646else
26647 echo "$as_me: failed program was:" >&5
26648sed 's/^/| /' conftest.$ac_ext >&5
26649
26650 ac_header_preproc=no
26651fi
26652rm -f conftest.err conftest.$ac_ext
26653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26654echo "${ECHO_T}$ac_header_preproc" >&6
26655
26656# So? What about this header?
26657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26658 yes:no: )
26659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26660echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26662echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26663 ac_header_preproc=yes
26664 ;;
26665 no:yes:* )
26666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26669echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26671echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26673echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26678 (
26679 cat <<\_ASBOX
26680## ----------------------------------- ##
26681## Report this to llvmbugs@cs.uiuc.edu ##
26682## ----------------------------------- ##
26683_ASBOX
26684 ) |
26685 sed "s/^/$as_me: WARNING: /" >&2
26686 ;;
26687esac
26688echo "$as_me:$LINENO: checking for $ac_header" >&5
26689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26690if eval "test \"\${$as_ac_Header+set}\" = set"; then
26691 echo $ECHO_N "(cached) $ECHO_C" >&6
26692else
26693 eval "$as_ac_Header=\$ac_header_preproc"
26694fi
26695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26697
26698fi
26699if test `eval echo '${'$as_ac_Header'}'` = yes; then
26700 cat >>confdefs.h <<_ACEOF
26701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26702_ACEOF
26703
26704fi
26705
26706done
26707
26708
26709
John Criswell7a73b802003-06-30 21:59:07 +000026710echo "$as_me:$LINENO: checking for pid_t" >&5
26711echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26712if test "${ac_cv_type_pid_t+set}" = set; then
26713 echo $ECHO_N "(cached) $ECHO_C" >&6
26714else
26715 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026716/* confdefs.h. */
26717_ACEOF
26718cat confdefs.h >>conftest.$ac_ext
26719cat >>conftest.$ac_ext <<_ACEOF
26720/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026721$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026722int
26723main ()
26724{
26725if ((pid_t *) 0)
26726 return 0;
26727if (sizeof (pid_t))
26728 return 0;
26729 ;
26730 return 0;
26731}
26732_ACEOF
26733rm -f conftest.$ac_objext
26734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026735 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026737 grep -v '^ *+' conftest.er1 >conftest.err
26738 rm -f conftest.er1
26739 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026742 { ac_try='test -z "$ac_c_werror_flag"
26743 || test ! -s conftest.err'
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; } &&
26749 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751 (eval $ac_try) 2>&5
26752 ac_status=$?
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; }; then
26755 ac_cv_type_pid_t=yes
26756else
26757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026758sed 's/^/| /' conftest.$ac_ext >&5
26759
John Criswell7a73b802003-06-30 21:59:07 +000026760ac_cv_type_pid_t=no
26761fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026763fi
26764echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26765echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26766if test $ac_cv_type_pid_t = yes; then
26767 :
26768else
26769
26770cat >>confdefs.h <<_ACEOF
26771#define pid_t int
26772_ACEOF
26773
26774fi
26775
26776echo "$as_me:$LINENO: checking for size_t" >&5
26777echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26778if test "${ac_cv_type_size_t+set}" = set; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26780else
26781 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026782/* confdefs.h. */
26783_ACEOF
26784cat confdefs.h >>conftest.$ac_ext
26785cat >>conftest.$ac_ext <<_ACEOF
26786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026787$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026788int
26789main ()
26790{
26791if ((size_t *) 0)
26792 return 0;
26793if (sizeof (size_t))
26794 return 0;
26795 ;
26796 return 0;
26797}
26798_ACEOF
26799rm -f conftest.$ac_objext
26800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026801 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026803 grep -v '^ *+' conftest.er1 >conftest.err
26804 rm -f conftest.er1
26805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026808 { ac_try='test -z "$ac_c_werror_flag"
26809 || test ! -s conftest.err'
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; } &&
26815 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 (eval $ac_try) 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }; then
26821 ac_cv_type_size_t=yes
26822else
26823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026824sed 's/^/| /' conftest.$ac_ext >&5
26825
John Criswell7a73b802003-06-30 21:59:07 +000026826ac_cv_type_size_t=no
26827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026829fi
26830echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26831echo "${ECHO_T}$ac_cv_type_size_t" >&6
26832if test $ac_cv_type_size_t = yes; then
26833 :
26834else
26835
26836cat >>confdefs.h <<_ACEOF
26837#define size_t unsigned
26838_ACEOF
26839
26840fi
26841
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026842echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26843echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26844if test "${ac_cv_type_signal+set}" = set; then
26845 echo $ECHO_N "(cached) $ECHO_C" >&6
26846else
26847 cat >conftest.$ac_ext <<_ACEOF
26848/* confdefs.h. */
26849_ACEOF
26850cat confdefs.h >>conftest.$ac_ext
26851cat >>conftest.$ac_ext <<_ACEOF
26852/* end confdefs.h. */
26853#include <sys/types.h>
26854#include <signal.h>
26855#ifdef signal
26856# undef signal
26857#endif
26858#ifdef __cplusplus
26859extern "C" void (*signal (int, void (*)(int)))(int);
26860#else
26861void (*signal ()) ();
26862#endif
26863
26864int
26865main ()
26866{
26867int i;
26868 ;
26869 return 0;
26870}
26871_ACEOF
26872rm -f conftest.$ac_objext
26873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26874 (eval $ac_compile) 2>conftest.er1
26875 ac_status=$?
26876 grep -v '^ *+' conftest.er1 >conftest.err
26877 rm -f conftest.er1
26878 cat conftest.err >&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } &&
26881 { ac_try='test -z "$ac_c_werror_flag"
26882 || test ! -s conftest.err'
26883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26885 ac_status=$?
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; } &&
26888 { ac_try='test -s conftest.$ac_objext'
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; }; then
26894 ac_cv_type_signal=void
26895else
26896 echo "$as_me: failed program was:" >&5
26897sed 's/^/| /' conftest.$ac_ext >&5
26898
26899ac_cv_type_signal=int
26900fi
26901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26902fi
26903echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26904echo "${ECHO_T}$ac_cv_type_signal" >&6
26905
26906cat >>confdefs.h <<_ACEOF
26907#define RETSIGTYPE $ac_cv_type_signal
26908_ACEOF
26909
26910
26911echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26912echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26913if test "${ac_cv_struct_tm+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26915else
26916 cat >conftest.$ac_ext <<_ACEOF
26917/* confdefs.h. */
26918_ACEOF
26919cat confdefs.h >>conftest.$ac_ext
26920cat >>conftest.$ac_ext <<_ACEOF
26921/* end confdefs.h. */
26922#include <sys/types.h>
26923#include <time.h>
26924
26925int
26926main ()
26927{
26928struct tm *tp; tp->tm_sec;
26929 ;
26930 return 0;
26931}
26932_ACEOF
26933rm -f conftest.$ac_objext
26934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26935 (eval $ac_compile) 2>conftest.er1
26936 ac_status=$?
26937 grep -v '^ *+' conftest.er1 >conftest.err
26938 rm -f conftest.er1
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } &&
26942 { ac_try='test -z "$ac_c_werror_flag"
26943 || test ! -s conftest.err'
26944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26945 (eval $ac_try) 2>&5
26946 ac_status=$?
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); }; } &&
26949 { ac_try='test -s conftest.$ac_objext'
26950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26951 (eval $ac_try) 2>&5
26952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; }; then
26955 ac_cv_struct_tm=time.h
26956else
26957 echo "$as_me: failed program was:" >&5
26958sed 's/^/| /' conftest.$ac_ext >&5
26959
26960ac_cv_struct_tm=sys/time.h
26961fi
26962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26963fi
26964echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26965echo "${ECHO_T}$ac_cv_struct_tm" >&6
26966if test $ac_cv_struct_tm = sys/time.h; then
26967
26968cat >>confdefs.h <<\_ACEOF
26969#define TM_IN_SYS_TIME 1
26970_ACEOF
26971
26972fi
26973
John Criswell7a73b802003-06-30 21:59:07 +000026974echo "$as_me:$LINENO: checking for int64_t" >&5
26975echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26976if test "${ac_cv_type_int64_t+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26978else
26979 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026980/* confdefs.h. */
26981_ACEOF
26982cat confdefs.h >>conftest.$ac_ext
26983cat >>conftest.$ac_ext <<_ACEOF
26984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026985$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026986int
26987main ()
26988{
26989if ((int64_t *) 0)
26990 return 0;
26991if (sizeof (int64_t))
26992 return 0;
26993 ;
26994 return 0;
26995}
26996_ACEOF
26997rm -f conftest.$ac_objext
26998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026999 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027000 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027001 grep -v '^ *+' conftest.er1 >conftest.err
27002 rm -f conftest.er1
27003 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027006 { ac_try='test -z "$ac_c_werror_flag"
27007 || test ! -s conftest.err'
27008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27009 (eval $ac_try) 2>&5
27010 ac_status=$?
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); }; } &&
27013 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015 (eval $ac_try) 2>&5
27016 ac_status=$?
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); }; }; then
27019 ac_cv_type_int64_t=yes
27020else
27021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027022sed 's/^/| /' conftest.$ac_ext >&5
27023
John Criswell7a73b802003-06-30 21:59:07 +000027024ac_cv_type_int64_t=no
27025fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027027fi
27028echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27029echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27030if test $ac_cv_type_int64_t = yes; then
27031
27032cat >>confdefs.h <<_ACEOF
27033#define HAVE_INT64_T 1
27034_ACEOF
27035
27036
27037else
27038 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27039echo "$as_me: error: Type int64_t required but not found" >&2;}
27040 { (exit 1); exit 1; }; }
27041fi
27042
27043echo "$as_me:$LINENO: checking for uint64_t" >&5
27044echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27045if test "${ac_cv_type_uint64_t+set}" = set; then
27046 echo $ECHO_N "(cached) $ECHO_C" >&6
27047else
27048 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027049/* confdefs.h. */
27050_ACEOF
27051cat confdefs.h >>conftest.$ac_ext
27052cat >>conftest.$ac_ext <<_ACEOF
27053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027054$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027055int
27056main ()
27057{
27058if ((uint64_t *) 0)
27059 return 0;
27060if (sizeof (uint64_t))
27061 return 0;
27062 ;
27063 return 0;
27064}
27065_ACEOF
27066rm -f conftest.$ac_objext
27067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027068 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027070 grep -v '^ *+' conftest.er1 >conftest.err
27071 rm -f conftest.er1
27072 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027075 { ac_try='test -z "$ac_c_werror_flag"
27076 || test ! -s conftest.err'
27077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; } &&
27082 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084 (eval $ac_try) 2>&5
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
27088 ac_cv_type_uint64_t=yes
27089else
27090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027091sed 's/^/| /' conftest.$ac_ext >&5
27092
John Criswell7a73b802003-06-30 21:59:07 +000027093ac_cv_type_uint64_t=no
27094fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027096fi
27097echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27098echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27099if test $ac_cv_type_uint64_t = yes; then
27100
27101cat >>confdefs.h <<_ACEOF
27102#define HAVE_UINT64_T 1
27103_ACEOF
27104
27105
27106else
Misha Brukmanceca9042004-09-02 23:02:30 +000027107 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027108echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27109if test "${ac_cv_type_u_int64_t+set}" = set; then
27110 echo $ECHO_N "(cached) $ECHO_C" >&6
27111else
27112 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027113/* confdefs.h. */
27114_ACEOF
27115cat confdefs.h >>conftest.$ac_ext
27116cat >>conftest.$ac_ext <<_ACEOF
27117/* end confdefs.h. */
27118$ac_includes_default
27119int
27120main ()
27121{
27122if ((u_int64_t *) 0)
27123 return 0;
27124if (sizeof (u_int64_t))
27125 return 0;
27126 ;
27127 return 0;
27128}
27129_ACEOF
27130rm -f conftest.$ac_objext
27131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027132 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027133 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027134 grep -v '^ *+' conftest.er1 >conftest.err
27135 rm -f conftest.er1
27136 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027139 { ac_try='test -z "$ac_c_werror_flag"
27140 || test ! -s conftest.err'
27141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; } &&
27146 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; }; then
27152 ac_cv_type_u_int64_t=yes
27153else
27154 echo "$as_me: failed program was:" >&5
27155sed 's/^/| /' conftest.$ac_ext >&5
27156
27157ac_cv_type_u_int64_t=no
27158fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027160fi
27161echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27162echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27163if test $ac_cv_type_u_int64_t = yes; then
27164
27165cat >>confdefs.h <<_ACEOF
27166#define HAVE_U_INT64_T 1
27167_ACEOF
27168
27169
Misha Brukmanceca9042004-09-02 23:02:30 +000027170else
27171 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27172echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27173 { (exit 1); exit 1; }; }
27174fi
27175
John Criswell679ff312004-09-02 18:44:44 +000027176fi
27177
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027178
27179
27180
27181
27182
27183
27184
27185
Reid Spencerab5eaea2004-12-20 00:59:04 +000027186for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27187do
27188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27189echo "$as_me:$LINENO: checking for $ac_func" >&5
27190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27191if eval "test \"\${$as_ac_var+set}\" = set"; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
27194 cat >conftest.$ac_ext <<_ACEOF
27195/* confdefs.h. */
27196_ACEOF
27197cat confdefs.h >>conftest.$ac_ext
27198cat >>conftest.$ac_ext <<_ACEOF
27199/* end confdefs.h. */
27200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27202#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027203
Reid Spencerab5eaea2004-12-20 00:59:04 +000027204/* System header to define __stub macros and hopefully few prototypes,
27205 which can conflict with char $ac_func (); below.
27206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27207 <limits.h> exists even on freestanding compilers. */
27208
27209#ifdef __STDC__
27210# include <limits.h>
27211#else
27212# include <assert.h>
27213#endif
27214
27215#undef $ac_func
27216
27217/* Override any gcc2 internal prototype to avoid an error. */
27218#ifdef __cplusplus
27219extern "C"
27220{
27221#endif
27222/* We use char because int might match the return type of a gcc2
27223 builtin and then its argument prototype would still apply. */
27224char $ac_func ();
27225/* The GNU C library defines this for functions which it implements
27226 to always fail with ENOSYS. Some functions are actually named
27227 something starting with __ and the normal name is an alias. */
27228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27229choke me
27230#else
27231char (*f) () = $ac_func;
27232#endif
27233#ifdef __cplusplus
27234}
27235#endif
27236
27237int
27238main ()
27239{
27240return f != $ac_func;
27241 ;
27242 return 0;
27243}
27244_ACEOF
27245rm -f conftest.$ac_objext conftest$ac_exeext
27246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27247 (eval $ac_link) 2>conftest.er1
27248 ac_status=$?
27249 grep -v '^ *+' conftest.er1 >conftest.err
27250 rm -f conftest.er1
27251 cat conftest.err >&5
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); } &&
27254 { ac_try='test -z "$ac_c_werror_flag"
27255 || test ! -s conftest.err'
27256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257 (eval $ac_try) 2>&5
27258 ac_status=$?
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); }; } &&
27261 { ac_try='test -s conftest$ac_exeext'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 eval "$as_ac_var=yes"
27268else
27269 echo "$as_me: failed program was:" >&5
27270sed 's/^/| /' conftest.$ac_ext >&5
27271
27272eval "$as_ac_var=no"
27273fi
27274rm -f conftest.err conftest.$ac_objext \
27275 conftest$ac_exeext conftest.$ac_ext
27276fi
27277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27279if test `eval echo '${'$as_ac_var'}'` = yes; then
27280 cat >>confdefs.h <<_ACEOF
27281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27282_ACEOF
27283
27284fi
27285done
27286
27287
27288
27289
27290for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027291do
27292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27293echo "$as_me:$LINENO: checking for $ac_func" >&5
27294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27295if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027296 echo $ECHO_N "(cached) $ECHO_C" >&6
27297else
27298 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027299/* confdefs.h. */
27300_ACEOF
27301cat confdefs.h >>conftest.$ac_ext
27302cat >>conftest.$ac_ext <<_ACEOF
27303/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27306#define $ac_func innocuous_$ac_func
27307
27308/* System header to define __stub macros and hopefully few prototypes,
27309 which can conflict with char $ac_func (); below.
27310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27311 <limits.h> exists even on freestanding compilers. */
27312
27313#ifdef __STDC__
27314# include <limits.h>
27315#else
27316# include <assert.h>
27317#endif
27318
27319#undef $ac_func
27320
27321/* Override any gcc2 internal prototype to avoid an error. */
27322#ifdef __cplusplus
27323extern "C"
27324{
27325#endif
27326/* We use char because int might match the return type of a gcc2
27327 builtin and then its argument prototype would still apply. */
27328char $ac_func ();
27329/* The GNU C library defines this for functions which it implements
27330 to always fail with ENOSYS. Some functions are actually named
27331 something starting with __ and the normal name is an alias. */
27332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27333choke me
27334#else
27335char (*f) () = $ac_func;
27336#endif
27337#ifdef __cplusplus
27338}
27339#endif
John Criswell7a73b802003-06-30 21:59:07 +000027340
John Criswell7a73b802003-06-30 21:59:07 +000027341int
27342main ()
27343{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027344return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027345 ;
27346 return 0;
27347}
27348_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027349rm -f conftest.$ac_objext conftest$ac_exeext
27350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27351 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027353 grep -v '^ *+' conftest.er1 >conftest.err
27354 rm -f conftest.er1
27355 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027358 { ac_try='test -z "$ac_c_werror_flag"
27359 || test ! -s conftest.err'
27360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361 (eval $ac_try) 2>&5
27362 ac_status=$?
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027365 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367 (eval $ac_try) 2>&5
27368 ac_status=$?
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027371 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027372else
27373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027374sed 's/^/| /' conftest.$ac_ext >&5
27375
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027376eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027377fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027378rm -f conftest.err conftest.$ac_objext \
27379 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027380fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27382echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27383if test `eval echo '${'$as_ac_var'}'` = yes; then
27384 cat >>confdefs.h <<_ACEOF
27385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027386_ACEOF
27387
27388fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027389done
John Criswell7a73b802003-06-30 21:59:07 +000027390
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027391
27392
27393
Reid Spencer6af3d262004-12-15 04:01:48 +000027394
27395
Reid Spencer59473af2004-12-25 07:31:29 +000027396
Reid Spencerba46ca32004-12-31 05:49:15 +000027397for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027398do
27399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27400echo "$as_me:$LINENO: checking for $ac_func" >&5
27401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27402if eval "test \"\${$as_ac_var+set}\" = set"; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27404else
27405 cat >conftest.$ac_ext <<_ACEOF
27406/* confdefs.h. */
27407_ACEOF
27408cat confdefs.h >>conftest.$ac_ext
27409cat >>conftest.$ac_ext <<_ACEOF
27410/* end confdefs.h. */
27411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27413#define $ac_func innocuous_$ac_func
27414
27415/* System header to define __stub macros and hopefully few prototypes,
27416 which can conflict with char $ac_func (); below.
27417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27418 <limits.h> exists even on freestanding compilers. */
27419
27420#ifdef __STDC__
27421# include <limits.h>
27422#else
27423# include <assert.h>
27424#endif
27425
27426#undef $ac_func
27427
27428/* Override any gcc2 internal prototype to avoid an error. */
27429#ifdef __cplusplus
27430extern "C"
27431{
27432#endif
27433/* We use char because int might match the return type of a gcc2
27434 builtin and then its argument prototype would still apply. */
27435char $ac_func ();
27436/* The GNU C library defines this for functions which it implements
27437 to always fail with ENOSYS. Some functions are actually named
27438 something starting with __ and the normal name is an alias. */
27439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27440choke me
27441#else
27442char (*f) () = $ac_func;
27443#endif
27444#ifdef __cplusplus
27445}
27446#endif
27447
27448int
27449main ()
27450{
27451return f != $ac_func;
27452 ;
27453 return 0;
27454}
27455_ACEOF
27456rm -f conftest.$ac_objext conftest$ac_exeext
27457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27458 (eval $ac_link) 2>conftest.er1
27459 ac_status=$?
27460 grep -v '^ *+' conftest.er1 >conftest.err
27461 rm -f conftest.er1
27462 cat conftest.err >&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } &&
27465 { ac_try='test -z "$ac_c_werror_flag"
27466 || test ! -s conftest.err'
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27469 ac_status=$?
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; } &&
27472 { ac_try='test -s conftest$ac_exeext'
27473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474 (eval $ac_try) 2>&5
27475 ac_status=$?
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; }; then
27478 eval "$as_ac_var=yes"
27479else
27480 echo "$as_me: failed program was:" >&5
27481sed 's/^/| /' conftest.$ac_ext >&5
27482
27483eval "$as_ac_var=no"
27484fi
27485rm -f conftest.err conftest.$ac_objext \
27486 conftest$ac_exeext conftest.$ac_ext
27487fi
27488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27490if test `eval echo '${'$as_ac_var'}'` = yes; then
27491 cat >>confdefs.h <<_ACEOF
27492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27493_ACEOF
27494
27495fi
27496done
27497
27498
Reid Spencerba46ca32004-12-31 05:49:15 +000027499
27500
27501for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027502do
27503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27504echo "$as_me:$LINENO: checking for $ac_func" >&5
27505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27506if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027507 echo $ECHO_N "(cached) $ECHO_C" >&6
27508else
27509 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027510/* confdefs.h. */
27511_ACEOF
27512cat confdefs.h >>conftest.$ac_ext
27513cat >>conftest.$ac_ext <<_ACEOF
27514/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27517#define $ac_func innocuous_$ac_func
27518
27519/* System header to define __stub macros and hopefully few prototypes,
27520 which can conflict with char $ac_func (); below.
27521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27522 <limits.h> exists even on freestanding compilers. */
27523
27524#ifdef __STDC__
27525# include <limits.h>
27526#else
27527# include <assert.h>
27528#endif
27529
27530#undef $ac_func
27531
27532/* Override any gcc2 internal prototype to avoid an error. */
27533#ifdef __cplusplus
27534extern "C"
27535{
27536#endif
27537/* We use char because int might match the return type of a gcc2
27538 builtin and then its argument prototype would still apply. */
27539char $ac_func ();
27540/* The GNU C library defines this for functions which it implements
27541 to always fail with ENOSYS. Some functions are actually named
27542 something starting with __ and the normal name is an alias. */
27543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27544choke me
27545#else
27546char (*f) () = $ac_func;
27547#endif
27548#ifdef __cplusplus
27549}
27550#endif
John Criswell7a73b802003-06-30 21:59:07 +000027551
John Criswell7a73b802003-06-30 21:59:07 +000027552int
27553main ()
27554{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027555return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027556 ;
27557 return 0;
27558}
27559_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027560rm -f conftest.$ac_objext conftest$ac_exeext
27561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27562 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027564 grep -v '^ *+' conftest.er1 >conftest.err
27565 rm -f conftest.er1
27566 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027569 { ac_try='test -z "$ac_c_werror_flag"
27570 || test ! -s conftest.err'
27571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572 (eval $ac_try) 2>&5
27573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027576 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027582 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027583else
27584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027585sed 's/^/| /' conftest.$ac_ext >&5
27586
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027587eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027588fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027589rm -f conftest.err conftest.$ac_objext \
27590 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027591fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27594if test `eval echo '${'$as_ac_var'}'` = yes; then
27595 cat >>confdefs.h <<_ACEOF
27596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027597_ACEOF
27598
27599fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027600done
John Criswell7a73b802003-06-30 21:59:07 +000027601
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027602echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27603echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027604if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027605 echo $ECHO_N "(cached) $ECHO_C" >&6
27606else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027607 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027608ac_cpp='$CPP $CPPFLAGS'
27609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27611ac_compiler_gnu=$ac_cv_c_compiler_gnu
27612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027613 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027614 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027615else
27616 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027617
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027618 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027619_ACEOF
27620cat confdefs.h >>conftest.$ac_ext
27621cat >>conftest.$ac_ext <<_ACEOF
27622/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027623
John Criswella0137d32003-10-13 16:22:01 +000027624#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027625#include <stdlib.h>
27626
John Criswella0137d32003-10-13 16:22:01 +000027627int
27628main ()
27629{
27630
Reid Spencer2706f8c2004-09-19 23:53:36 +000027631volatile double A, B;
27632char Buffer[100];
27633A = 1;
27634A /= 10.0;
27635sprintf(Buffer, "%a", A);
27636B = atof(Buffer);
27637if (A != B)
27638 return (1);
27639if (A != 0x1.999999999999ap-4)
27640 return (1);
27641return (0);
John Criswella0137d32003-10-13 16:22:01 +000027642 ;
27643 return 0;
27644}
27645_ACEOF
27646rm -f conftest$ac_exeext
27647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27648 (eval $ac_link) 2>&5
27649 ac_status=$?
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027657 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027658else
27659 echo "$as_me: program exited with status $ac_status" >&5
27660echo "$as_me: failed program was:" >&5
27661sed 's/^/| /' conftest.$ac_ext >&5
27662
27663( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027664llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027665fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027667fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027668 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027669ac_cpp='$CPP $CPPFLAGS'
27670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27672ac_compiler_gnu=$ac_cv_c_compiler_gnu
27673
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027674fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027675echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27676echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27677 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027678
27679cat >>confdefs.h <<\_ACEOF
27680#define HAVE_PRINTF_A 1
27681_ACEOF
27682
Reid Spencer2706f8c2004-09-19 23:53:36 +000027683 fi
John Criswella0137d32003-10-13 16:22:01 +000027684
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027685# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27686# for constant arguments. Useless!
27687echo "$as_me:$LINENO: checking for working alloca.h" >&5
27688echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27689if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027690 echo $ECHO_N "(cached) $ECHO_C" >&6
27691else
John Criswell0021c312004-02-13 21:57:29 +000027692 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027693/* confdefs.h. */
27694_ACEOF
27695cat confdefs.h >>conftest.$ac_ext
27696cat >>conftest.$ac_ext <<_ACEOF
27697/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027698#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027699int
27700main ()
27701{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027702char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027703 ;
27704 return 0;
27705}
27706_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027707rm -f conftest.$ac_objext conftest$ac_exeext
27708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027711 grep -v '^ *+' conftest.er1 >conftest.err
27712 rm -f conftest.er1
27713 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027716 { ac_try='test -z "$ac_c_werror_flag"
27717 || test ! -s conftest.err'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027723 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27726 ac_status=$?
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027729 ac_cv_working_alloca_h=yes
27730else
27731 echo "$as_me: failed program was:" >&5
27732sed 's/^/| /' conftest.$ac_ext >&5
27733
27734ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027735fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027736rm -f conftest.err conftest.$ac_objext \
27737 conftest$ac_exeext conftest.$ac_ext
27738fi
27739echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27740echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27741if test $ac_cv_working_alloca_h = yes; then
27742
27743cat >>confdefs.h <<\_ACEOF
27744#define HAVE_ALLOCA_H 1
27745_ACEOF
27746
27747fi
27748
27749echo "$as_me:$LINENO: checking for alloca" >&5
27750echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27751if test "${ac_cv_func_alloca_works+set}" = set; then
27752 echo $ECHO_N "(cached) $ECHO_C" >&6
27753else
27754 cat >conftest.$ac_ext <<_ACEOF
27755/* confdefs.h. */
27756_ACEOF
27757cat confdefs.h >>conftest.$ac_ext
27758cat >>conftest.$ac_ext <<_ACEOF
27759/* end confdefs.h. */
27760#ifdef __GNUC__
27761# define alloca __builtin_alloca
27762#else
27763# ifdef _MSC_VER
27764# include <malloc.h>
27765# define alloca _alloca
27766# else
27767# if HAVE_ALLOCA_H
27768# include <alloca.h>
27769# else
27770# ifdef _AIX
27771 #pragma alloca
27772# else
27773# ifndef alloca /* predefined by HP cc +Olibcalls */
27774char *alloca ();
27775# endif
27776# endif
27777# endif
27778# endif
27779#endif
27780
27781int
27782main ()
27783{
27784char *p = (char *) alloca (1);
27785 ;
27786 return 0;
27787}
27788_ACEOF
27789rm -f conftest.$ac_objext conftest$ac_exeext
27790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27791 (eval $ac_link) 2>conftest.er1
27792 ac_status=$?
27793 grep -v '^ *+' conftest.er1 >conftest.err
27794 rm -f conftest.er1
27795 cat conftest.err >&5
27796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); } &&
27798 { ac_try='test -z "$ac_c_werror_flag"
27799 || test ! -s conftest.err'
27800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27801 (eval $ac_try) 2>&5
27802 ac_status=$?
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); }; } &&
27805 { ac_try='test -s conftest$ac_exeext'
27806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27807 (eval $ac_try) 2>&5
27808 ac_status=$?
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_func_alloca_works=yes
27812else
27813 echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
27816ac_cv_func_alloca_works=no
27817fi
27818rm -f conftest.err conftest.$ac_objext \
27819 conftest$ac_exeext conftest.$ac_ext
27820fi
27821echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27822echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27823
27824if test $ac_cv_func_alloca_works = yes; then
27825
27826cat >>confdefs.h <<\_ACEOF
27827#define HAVE_ALLOCA 1
27828_ACEOF
27829
27830else
27831 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27832# that cause trouble. Some versions do not even contain alloca or
27833# contain a buggy version. If you still want to use their alloca,
27834# use ar to extract alloca.o from them instead of compiling alloca.c.
27835
27836ALLOCA=alloca.$ac_objext
27837
27838cat >>confdefs.h <<\_ACEOF
27839#define C_ALLOCA 1
27840_ACEOF
27841
27842
27843echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27844echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27845if test "${ac_cv_os_cray+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
27847else
27848 cat >conftest.$ac_ext <<_ACEOF
27849/* confdefs.h. */
27850_ACEOF
27851cat confdefs.h >>conftest.$ac_ext
27852cat >>conftest.$ac_ext <<_ACEOF
27853/* end confdefs.h. */
27854#if defined(CRAY) && ! defined(CRAY2)
27855webecray
27856#else
27857wenotbecray
27858#endif
27859
27860_ACEOF
27861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27862 $EGREP "webecray" >/dev/null 2>&1; then
27863 ac_cv_os_cray=yes
27864else
27865 ac_cv_os_cray=no
27866fi
27867rm -f conftest*
27868
27869fi
27870echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27871echo "${ECHO_T}$ac_cv_os_cray" >&6
27872if test $ac_cv_os_cray = yes; then
27873 for ac_func in _getb67 GETB67 getb67; do
27874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27875echo "$as_me:$LINENO: checking for $ac_func" >&5
27876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27877if eval "test \"\${$as_ac_var+set}\" = set"; then
27878 echo $ECHO_N "(cached) $ECHO_C" >&6
27879else
27880 cat >conftest.$ac_ext <<_ACEOF
27881/* confdefs.h. */
27882_ACEOF
27883cat confdefs.h >>conftest.$ac_ext
27884cat >>conftest.$ac_ext <<_ACEOF
27885/* end confdefs.h. */
27886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27888#define $ac_func innocuous_$ac_func
27889
27890/* System header to define __stub macros and hopefully few prototypes,
27891 which can conflict with char $ac_func (); below.
27892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27893 <limits.h> exists even on freestanding compilers. */
27894
27895#ifdef __STDC__
27896# include <limits.h>
27897#else
27898# include <assert.h>
27899#endif
27900
27901#undef $ac_func
27902
27903/* Override any gcc2 internal prototype to avoid an error. */
27904#ifdef __cplusplus
27905extern "C"
27906{
27907#endif
27908/* We use char because int might match the return type of a gcc2
27909 builtin and then its argument prototype would still apply. */
27910char $ac_func ();
27911/* The GNU C library defines this for functions which it implements
27912 to always fail with ENOSYS. Some functions are actually named
27913 something starting with __ and the normal name is an alias. */
27914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27915choke me
27916#else
27917char (*f) () = $ac_func;
27918#endif
27919#ifdef __cplusplus
27920}
27921#endif
27922
27923int
27924main ()
27925{
27926return f != $ac_func;
27927 ;
27928 return 0;
27929}
27930_ACEOF
27931rm -f conftest.$ac_objext conftest$ac_exeext
27932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27933 (eval $ac_link) 2>conftest.er1
27934 ac_status=$?
27935 grep -v '^ *+' conftest.er1 >conftest.err
27936 rm -f conftest.er1
27937 cat conftest.err >&5
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); } &&
27940 { ac_try='test -z "$ac_c_werror_flag"
27941 || test ! -s conftest.err'
27942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27943 (eval $ac_try) 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; } &&
27947 { ac_try='test -s conftest$ac_exeext'
27948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; }; then
27953 eval "$as_ac_var=yes"
27954else
27955 echo "$as_me: failed program was:" >&5
27956sed 's/^/| /' conftest.$ac_ext >&5
27957
27958eval "$as_ac_var=no"
27959fi
27960rm -f conftest.err conftest.$ac_objext \
27961 conftest$ac_exeext conftest.$ac_ext
27962fi
27963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27965if test `eval echo '${'$as_ac_var'}'` = yes; then
27966
27967cat >>confdefs.h <<_ACEOF
27968#define CRAY_STACKSEG_END $ac_func
27969_ACEOF
27970
27971 break
27972fi
27973
27974 done
27975fi
27976
27977echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27978echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27979if test "${ac_cv_c_stack_direction+set}" = set; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27981else
27982 if test "$cross_compiling" = yes; then
27983 ac_cv_c_stack_direction=0
27984else
27985 cat >conftest.$ac_ext <<_ACEOF
27986/* confdefs.h. */
27987_ACEOF
27988cat confdefs.h >>conftest.$ac_ext
27989cat >>conftest.$ac_ext <<_ACEOF
27990/* end confdefs.h. */
27991int
27992find_stack_direction ()
27993{
27994 static char *addr = 0;
27995 auto char dummy;
27996 if (addr == 0)
27997 {
27998 addr = &dummy;
27999 return find_stack_direction ();
28000 }
John Criswell0021c312004-02-13 21:57:29 +000028001 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028002 return (&dummy > addr) ? 1 : -1;
28003}
John Criswell0021c312004-02-13 21:57:29 +000028004
John Criswell0021c312004-02-13 21:57:29 +000028005int
28006main ()
28007{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028008 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028009}
28010_ACEOF
28011rm -f conftest$ac_exeext
28012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28013 (eval $ac_link) 2>&5
28014 ac_status=$?
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28019 ac_status=$?
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028022 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028023else
28024 echo "$as_me: program exited with status $ac_status" >&5
28025echo "$as_me: failed program was:" >&5
28026sed 's/^/| /' conftest.$ac_ext >&5
28027
28028( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028029ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028030fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028031rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028032fi
28033fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028034echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28035echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28036
28037cat >>confdefs.h <<_ACEOF
28038#define STACK_DIRECTION $ac_cv_c_stack_direction
28039_ACEOF
28040
28041
John Criswell0021c312004-02-13 21:57:29 +000028042fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028043
28044
28045echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28046echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28047if test "${ac_cv_func_rand48+set}" = set; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
28049else
28050 ac_ext=cc
28051ac_cpp='$CXXCPP $CPPFLAGS'
28052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28055
28056 cat >conftest.$ac_ext <<_ACEOF
28057/* confdefs.h. */
28058_ACEOF
28059cat confdefs.h >>conftest.$ac_ext
28060cat >>conftest.$ac_ext <<_ACEOF
28061/* end confdefs.h. */
28062#include <stdlib.h>
28063int
28064main ()
28065{
28066srand48(0);lrand48();drand48();
28067 ;
28068 return 0;
28069}
28070_ACEOF
28071rm -f conftest.$ac_objext
28072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28073 (eval $ac_compile) 2>conftest.er1
28074 ac_status=$?
28075 grep -v '^ *+' conftest.er1 >conftest.err
28076 rm -f conftest.er1
28077 cat conftest.err >&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); } &&
28080 { ac_try='test -z "$ac_cxx_werror_flag"
28081 || test ! -s conftest.err'
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28084 ac_status=$?
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest.$ac_objext'
28088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089 (eval $ac_try) 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
28093 ac_cv_func_rand48=yes
28094else
28095 echo "$as_me: failed program was:" >&5
28096sed 's/^/| /' conftest.$ac_ext >&5
28097
28098ac_cv_func_rand48=no
28099fi
28100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28101 ac_ext=c
28102ac_cpp='$CPP $CPPFLAGS'
28103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28105ac_compiler_gnu=$ac_cv_c_compiler_gnu
28106
28107fi
28108echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28109echo "${ECHO_T}$ac_cv_func_rand48" >&6
28110
28111if test "$ac_cv_func_rand48" = "yes" ; then
28112
28113cat >>confdefs.h <<\_ACEOF
28114#define HAVE_RAND48 1
28115_ACEOF
28116
28117fi
John Criswell0021c312004-02-13 21:57:29 +000028118
28119
John Criswell7a73b802003-06-30 21:59:07 +000028120echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28121echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28122if test "${ac_cv_cxx_namespaces+set}" = set; then
28123 echo $ECHO_N "(cached) $ECHO_C" >&6
28124else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028125 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028126ac_cpp='$CXXCPP $CPPFLAGS'
28127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28130
28131 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028132/* confdefs.h. */
28133_ACEOF
28134cat confdefs.h >>conftest.$ac_ext
28135cat >>conftest.$ac_ext <<_ACEOF
28136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028137namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028138int
28139main ()
28140{
28141using namespace Outer::Inner; return i;
28142 ;
28143 return 0;
28144}
28145_ACEOF
28146rm -f conftest.$ac_objext
28147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028148 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028150 grep -v '^ *+' conftest.er1 >conftest.err
28151 rm -f conftest.er1
28152 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028155 { ac_try='test -z "$ac_cxx_werror_flag"
28156 || test ! -s conftest.err'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; }; then
28168 ac_cv_cxx_namespaces=yes
28169else
28170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028171sed 's/^/| /' conftest.$ac_ext >&5
28172
John Criswell7a73b802003-06-30 21:59:07 +000028173ac_cv_cxx_namespaces=no
28174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028176 ac_ext=c
28177ac_cpp='$CPP $CPPFLAGS'
28178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28180ac_compiler_gnu=$ac_cv_c_compiler_gnu
28181
28182
28183fi
28184echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28185echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28186if test "$ac_cv_cxx_namespaces" = yes; then
28187
28188cat >>confdefs.h <<\_ACEOF
28189#define HAVE_NAMESPACES
28190_ACEOF
28191
28192fi
28193
Brian Gaeke90583492003-11-10 03:06:28 +000028194echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28195echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28196if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198else
28199
John Criswell7a73b802003-06-30 21:59:07 +000028200 ac_ext=cc
28201ac_cpp='$CXXCPP $CPPFLAGS'
28202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28205
28206 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028207/* confdefs.h. */
28208_ACEOF
28209cat confdefs.h >>conftest.$ac_ext
28210cat >>conftest.$ac_ext <<_ACEOF
28211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028212#include <ext/hash_map>
28213#ifdef HAVE_NAMESPACES
28214using namespace std;
28215#endif
John Criswell7a73b802003-06-30 21:59:07 +000028216int
28217main ()
28218{
Brian Gaeke90583492003-11-10 03:06:28 +000028219hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028220 ;
28221 return 0;
28222}
28223_ACEOF
28224rm -f conftest.$ac_objext
28225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028226 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028228 grep -v '^ *+' conftest.er1 >conftest.err
28229 rm -f conftest.er1
28230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028233 { ac_try='test -z "$ac_cxx_werror_flag"
28234 || test ! -s conftest.err'
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028246 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028247else
28248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028249sed 's/^/| /' conftest.$ac_ext >&5
28250
Brian Gaeke90583492003-11-10 03:06:28 +000028251ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028254 ac_ext=c
28255ac_cpp='$CPP $CPPFLAGS'
28256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258ac_compiler_gnu=$ac_cv_c_compiler_gnu
28259
John Criswell7a73b802003-06-30 21:59:07 +000028260fi
Brian Gaeke90583492003-11-10 03:06:28 +000028261echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28262echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028263 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28264 then
John Criswell9f011862004-09-24 18:28:00 +000028265
28266cat >>confdefs.h <<\_ACEOF
28267#define HAVE_STD_EXT_HASH_MAP 1
28268_ACEOF
28269
28270 else
28271
28272cat >>confdefs.h <<\_ACEOF
28273#define HAVE_STD_EXT_HASH_MAP 0
28274_ACEOF
28275
Brian Gaeke90583492003-11-10 03:06:28 +000028276 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028277
Brian Gaeke90583492003-11-10 03:06:28 +000028278 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28279echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28280if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28282else
28283
Brian Gaeke90583492003-11-10 03:06:28 +000028284 ac_ext=cc
28285ac_cpp='$CXXCPP $CPPFLAGS'
28286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28289
28290 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028291/* confdefs.h. */
28292_ACEOF
28293cat confdefs.h >>conftest.$ac_ext
28294cat >>conftest.$ac_ext <<_ACEOF
28295/* end confdefs.h. */
28296#include <ext/hash_map>
28297#ifdef HAVE_NAMESPACES
28298using namespace __gnu_cxx;
28299#endif
28300int
28301main ()
28302{
28303hash_map<int,int> t;
28304 ;
28305 return 0;
28306}
28307_ACEOF
28308rm -f conftest.$ac_objext
28309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028310 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028312 grep -v '^ *+' conftest.er1 >conftest.err
28313 rm -f conftest.er1
28314 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028317 { ac_try='test -z "$ac_cxx_werror_flag"
28318 || test ! -s conftest.err'
28319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); }; } &&
28324 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326 (eval $ac_try) 2>&5
28327 ac_status=$?
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); }; }; then
28330 ac_cv_cxx_have_gnu_ext_hash_map=yes
28331else
28332 echo "$as_me: failed program was:" >&5
28333sed 's/^/| /' conftest.$ac_ext >&5
28334
28335ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028336fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028338 ac_ext=c
28339ac_cpp='$CPP $CPPFLAGS'
28340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28342ac_compiler_gnu=$ac_cv_c_compiler_gnu
28343
28344fi
28345echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28346echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028347 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28348 then
John Criswell9f011862004-09-24 18:28:00 +000028349
28350cat >>confdefs.h <<\_ACEOF
28351#define HAVE_GNU_EXT_HASH_MAP 1
28352_ACEOF
28353
28354 else
28355
28356cat >>confdefs.h <<\_ACEOF
28357#define HAVE_GNU_EXT_HASH_MAP 0
28358_ACEOF
28359
Brian Gaeke90583492003-11-10 03:06:28 +000028360 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028361
Brian Gaeke90583492003-11-10 03:06:28 +000028362 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28363echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28364if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28366else
John Criswell7a73b802003-06-30 21:59:07 +000028367
Brian Gaeke90583492003-11-10 03:06:28 +000028368 ac_ext=cc
28369ac_cpp='$CXXCPP $CPPFLAGS'
28370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28373
28374 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028375/* confdefs.h. */
28376_ACEOF
28377cat confdefs.h >>conftest.$ac_ext
28378cat >>conftest.$ac_ext <<_ACEOF
28379/* end confdefs.h. */
28380#include <hash_map>
28381int
28382main ()
28383{
28384hash_map<int,int> t;
28385 ;
28386 return 0;
28387}
28388_ACEOF
28389rm -f conftest.$ac_objext
28390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028391 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028393 grep -v '^ *+' conftest.er1 >conftest.err
28394 rm -f conftest.er1
28395 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028398 { ac_try='test -z "$ac_cxx_werror_flag"
28399 || test ! -s conftest.err'
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28402 ac_status=$?
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; } &&
28405 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28407 (eval $ac_try) 2>&5
28408 ac_status=$?
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); }; }; then
28411 ac_cv_cxx_have_global_hash_map=yes
28412else
28413 echo "$as_me: failed program was:" >&5
28414sed 's/^/| /' conftest.$ac_ext >&5
28415
28416ac_cv_cxx_have_global_hash_map=no
28417fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028419 ac_ext=c
28420ac_cpp='$CPP $CPPFLAGS'
28421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28423ac_compiler_gnu=$ac_cv_c_compiler_gnu
28424
28425fi
28426echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28427echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028428 if test "$ac_cv_cxx_have_global_hash_map" = yes
28429 then
John Criswell9f011862004-09-24 18:28:00 +000028430
28431cat >>confdefs.h <<\_ACEOF
28432#define HAVE_GLOBAL_HASH_MAP 1
28433_ACEOF
28434
28435 else
28436
28437cat >>confdefs.h <<\_ACEOF
28438#define HAVE_GLOBAL_HASH_MAP 0
28439_ACEOF
28440
Brian Gaeke90583492003-11-10 03:06:28 +000028441 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028442
Brian Gaeke90583492003-11-10 03:06:28 +000028443echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28444echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28445if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028446 echo $ECHO_N "(cached) $ECHO_C" >&6
28447else
28448
John Criswell7a73b802003-06-30 21:59:07 +000028449 ac_ext=cc
28450ac_cpp='$CXXCPP $CPPFLAGS'
28451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28454
28455 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028461#include <ext/hash_set>
28462#ifdef HAVE_NAMESPACES
28463using namespace std;
28464#endif
John Criswell7a73b802003-06-30 21:59:07 +000028465int
28466main ()
28467{
Brian Gaeke90583492003-11-10 03:06:28 +000028468hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028469 ;
28470 return 0;
28471}
28472_ACEOF
28473rm -f conftest.$ac_objext
28474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028475 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028476 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028477 grep -v '^ *+' conftest.er1 >conftest.err
28478 rm -f conftest.er1
28479 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028482 { ac_try='test -z "$ac_cxx_werror_flag"
28483 || test ! -s conftest.err'
28484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485 (eval $ac_try) 2>&5
28486 ac_status=$?
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; } &&
28489 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28491 (eval $ac_try) 2>&5
28492 ac_status=$?
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028495 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028496else
28497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028498sed 's/^/| /' conftest.$ac_ext >&5
28499
Brian Gaeke90583492003-11-10 03:06:28 +000028500ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028501fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028503 ac_ext=c
28504ac_cpp='$CPP $CPPFLAGS'
28505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28507ac_compiler_gnu=$ac_cv_c_compiler_gnu
28508
28509fi
28510echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28511echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028512 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28513 then
John Criswell9f011862004-09-24 18:28:00 +000028514
28515cat >>confdefs.h <<\_ACEOF
28516#define HAVE_STD_EXT_HASH_SET 1
28517_ACEOF
28518
28519 else
28520
28521cat >>confdefs.h <<\_ACEOF
28522#define HAVE_STD_EXT_HASH_SET 0
28523_ACEOF
28524
Brian Gaeke90583492003-11-10 03:06:28 +000028525 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028526
Brian Gaeke90583492003-11-10 03:06:28 +000028527 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28528echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28529if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28530 echo $ECHO_N "(cached) $ECHO_C" >&6
28531else
28532
Brian Gaeke90583492003-11-10 03:06:28 +000028533 ac_ext=cc
28534ac_cpp='$CXXCPP $CPPFLAGS'
28535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28538
John Criswell7a73b802003-06-30 21:59:07 +000028539 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028540/* confdefs.h. */
28541_ACEOF
28542cat confdefs.h >>conftest.$ac_ext
28543cat >>conftest.$ac_ext <<_ACEOF
28544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028545#include <ext/hash_set>
28546#ifdef HAVE_NAMESPACES
28547using namespace __gnu_cxx;
28548#endif
John Criswell7a73b802003-06-30 21:59:07 +000028549int
28550main ()
28551{
Brian Gaeke90583492003-11-10 03:06:28 +000028552hash_set<int> t;
28553 ;
28554 return 0;
28555}
28556_ACEOF
28557rm -f conftest.$ac_objext
28558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028559 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028560 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028561 grep -v '^ *+' conftest.er1 >conftest.err
28562 rm -f conftest.er1
28563 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028566 { ac_try='test -z "$ac_cxx_werror_flag"
28567 || test ! -s conftest.err'
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
28579 ac_cv_cxx_have_gnu_ext_hash_set=yes
28580else
28581 echo "$as_me: failed program was:" >&5
28582sed 's/^/| /' conftest.$ac_ext >&5
28583
28584ac_cv_cxx_have_gnu_ext_hash_set=no
28585fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028587 ac_ext=c
28588ac_cpp='$CPP $CPPFLAGS'
28589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28591ac_compiler_gnu=$ac_cv_c_compiler_gnu
28592
28593fi
28594echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28595echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028596 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28597 then
John Criswell9f011862004-09-24 18:28:00 +000028598
28599cat >>confdefs.h <<\_ACEOF
28600#define HAVE_GNU_EXT_HASH_SET 1
28601_ACEOF
28602
28603 else
28604
28605cat >>confdefs.h <<\_ACEOF
28606#define HAVE_GNU_EXT_HASH_SET 0
28607_ACEOF
28608
Brian Gaeke90583492003-11-10 03:06:28 +000028609 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028610
Brian Gaeke90583492003-11-10 03:06:28 +000028611 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28612echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28613if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28614 echo $ECHO_N "(cached) $ECHO_C" >&6
28615else
28616
Brian Gaeke90583492003-11-10 03:06:28 +000028617 ac_ext=cc
28618ac_cpp='$CXXCPP $CPPFLAGS'
28619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28622
28623 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028624/* confdefs.h. */
28625_ACEOF
28626cat confdefs.h >>conftest.$ac_ext
28627cat >>conftest.$ac_ext <<_ACEOF
28628/* end confdefs.h. */
28629#include <hash_set>
28630int
28631main ()
28632{
John Criswell7a73b802003-06-30 21:59:07 +000028633hash_set<int> t; return 0;
28634 ;
28635 return 0;
28636}
28637_ACEOF
28638rm -f conftest.$ac_objext
28639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028640 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028642 grep -v '^ *+' conftest.er1 >conftest.err
28643 rm -f conftest.er1
28644 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028647 { ac_try='test -z "$ac_cxx_werror_flag"
28648 || test ! -s conftest.err'
28649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650 (eval $ac_try) 2>&5
28651 ac_status=$?
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; } &&
28654 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656 (eval $ac_try) 2>&5
28657 ac_status=$?
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028660 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028661else
28662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028663sed 's/^/| /' conftest.$ac_ext >&5
28664
Brian Gaeke90583492003-11-10 03:06:28 +000028665ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028668 ac_ext=c
28669ac_cpp='$CPP $CPPFLAGS'
28670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28672ac_compiler_gnu=$ac_cv_c_compiler_gnu
28673
John Criswell7a73b802003-06-30 21:59:07 +000028674fi
Brian Gaeke90583492003-11-10 03:06:28 +000028675echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28676echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028677 if test "$ac_cv_cxx_have_global_hash_set" = yes
28678 then
John Criswell9f011862004-09-24 18:28:00 +000028679
28680cat >>confdefs.h <<\_ACEOF
28681#define HAVE_GLOBAL_HASH_SET 1
28682_ACEOF
28683
28684 else
28685
28686cat >>confdefs.h <<\_ACEOF
28687#define HAVE_GLOBAL_HASH_SET 0
28688_ACEOF
28689
Brian Gaeke90583492003-11-10 03:06:28 +000028690 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028691
John Criswell7a73b802003-06-30 21:59:07 +000028692echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28693echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28694if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28696else
28697
John Criswell7a73b802003-06-30 21:59:07 +000028698 ac_ext=cc
28699ac_cpp='$CXXCPP $CPPFLAGS'
28700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28703
28704 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028705/* confdefs.h. */
28706_ACEOF
28707cat confdefs.h >>conftest.$ac_ext
28708cat >>conftest.$ac_ext <<_ACEOF
28709/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028710#include <iterator>
28711#ifdef HAVE_NAMESPACES
28712using namespace std;
28713#endif
John Criswell7a73b802003-06-30 21:59:07 +000028714int
28715main ()
28716{
28717iterator<int,int,int> t; return 0;
28718 ;
28719 return 0;
28720}
28721_ACEOF
28722rm -f conftest.$ac_objext
28723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028724 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028725 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028726 grep -v '^ *+' conftest.er1 >conftest.err
28727 rm -f conftest.er1
28728 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028731 { ac_try='test -z "$ac_cxx_werror_flag"
28732 || test ! -s conftest.err'
28733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734 (eval $ac_try) 2>&5
28735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740 (eval $ac_try) 2>&5
28741 ac_status=$?
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; }; then
28744 ac_cv_cxx_have_std_iterator=yes
28745else
28746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028747sed 's/^/| /' conftest.$ac_ext >&5
28748
John Criswell7a73b802003-06-30 21:59:07 +000028749ac_cv_cxx_have_std_iterator=no
28750fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028752 ac_ext=c
28753ac_cpp='$CPP $CPPFLAGS'
28754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28756ac_compiler_gnu=$ac_cv_c_compiler_gnu
28757
28758
28759fi
28760echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28761echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028762if test "$ac_cv_cxx_have_std_iterator" = yes
28763then
John Criswell40468462004-09-24 21:19:06 +000028764
28765cat >>confdefs.h <<\_ACEOF
28766#define HAVE_STD_ITERATOR 1
28767_ACEOF
28768
28769else
28770
28771cat >>confdefs.h <<\_ACEOF
28772#define HAVE_STD_ITERATOR 0
28773_ACEOF
28774
John Criswell7a73b802003-06-30 21:59:07 +000028775fi
28776
28777echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28778echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28779if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28781else
28782
John Criswell7a73b802003-06-30 21:59:07 +000028783 ac_ext=cc
28784ac_cpp='$CXXCPP $CPPFLAGS'
28785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28788
28789 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028790/* confdefs.h. */
28791_ACEOF
28792cat confdefs.h >>conftest.$ac_ext
28793cat >>conftest.$ac_ext <<_ACEOF
28794/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028795#include <iterator>
28796#ifdef HAVE_NAMESPACES
28797using namespace std;
28798#endif
John Criswell7a73b802003-06-30 21:59:07 +000028799int
28800main ()
28801{
John Criswellc78022e2003-07-29 19:11:58 +000028802bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028803 ;
28804 return 0;
28805}
28806_ACEOF
28807rm -f conftest.$ac_objext
28808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028809 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028810 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028811 grep -v '^ *+' conftest.er1 >conftest.err
28812 rm -f conftest.er1
28813 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028816 { ac_try='test -z "$ac_cxx_werror_flag"
28817 || test ! -s conftest.err'
28818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28819 (eval $ac_try) 2>&5
28820 ac_status=$?
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); }; } &&
28823 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28826 ac_status=$?
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; }; then
28829 ac_cv_cxx_have_bi_iterator=yes
28830else
28831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028832sed 's/^/| /' conftest.$ac_ext >&5
28833
John Criswell7a73b802003-06-30 21:59:07 +000028834ac_cv_cxx_have_bi_iterator=no
28835fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028837 ac_ext=c
28838ac_cpp='$CPP $CPPFLAGS'
28839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28841ac_compiler_gnu=$ac_cv_c_compiler_gnu
28842
28843
28844fi
28845echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28846echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028847if test "$ac_cv_cxx_have_bi_iterator" = yes
28848then
John Criswell40468462004-09-24 21:19:06 +000028849
28850cat >>confdefs.h <<\_ACEOF
28851#define HAVE_BI_ITERATOR 1
28852_ACEOF
28853
28854else
28855
28856cat >>confdefs.h <<\_ACEOF
28857#define HAVE_BI_ITERATOR 0
28858_ACEOF
28859
John Criswell7a73b802003-06-30 21:59:07 +000028860fi
28861
28862echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28863echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28864if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28865 echo $ECHO_N "(cached) $ECHO_C" >&6
28866else
28867
John Criswell7a73b802003-06-30 21:59:07 +000028868 ac_ext=cc
28869ac_cpp='$CXXCPP $CPPFLAGS'
28870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28873
28874 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028875/* confdefs.h. */
28876_ACEOF
28877cat confdefs.h >>conftest.$ac_ext
28878cat >>conftest.$ac_ext <<_ACEOF
28879/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028880#include <iterator>
28881#ifdef HAVE_NAMESPACES
28882using namespace std;
28883#endif
John Criswell7a73b802003-06-30 21:59:07 +000028884int
28885main ()
28886{
John Criswellc78022e2003-07-29 19:11:58 +000028887forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028888 ;
28889 return 0;
28890}
28891_ACEOF
28892rm -f conftest.$ac_objext
28893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028894 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028896 grep -v '^ *+' conftest.er1 >conftest.err
28897 rm -f conftest.er1
28898 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028901 { ac_try='test -z "$ac_cxx_werror_flag"
28902 || test ! -s conftest.err'
28903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28905 ac_status=$?
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; } &&
28908 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910 (eval $ac_try) 2>&5
28911 ac_status=$?
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; }; then
28914 ac_cv_cxx_have_fwd_iterator=yes
28915else
28916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028917sed 's/^/| /' conftest.$ac_ext >&5
28918
John Criswell7a73b802003-06-30 21:59:07 +000028919ac_cv_cxx_have_fwd_iterator=no
28920fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028922 ac_ext=c
28923ac_cpp='$CPP $CPPFLAGS'
28924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28926ac_compiler_gnu=$ac_cv_c_compiler_gnu
28927
28928
28929fi
28930echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28931echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028932if test "$ac_cv_cxx_have_fwd_iterator" = yes
28933then
John Criswell40468462004-09-24 21:19:06 +000028934
28935cat >>confdefs.h <<\_ACEOF
28936#define HAVE_FWD_ITERATOR 1
28937_ACEOF
28938
28939else
28940
28941cat >>confdefs.h <<\_ACEOF
28942#define HAVE_FWD_ITERATOR 0
28943_ACEOF
28944
John Criswell7a73b802003-06-30 21:59:07 +000028945fi
28946
28947
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028948echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28949echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28950if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28952else
28953 ac_ext=cc
28954ac_cpp='$CXXCPP $CPPFLAGS'
28955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28958
Reid Spencerabec8f92004-10-27 23:03:44 +000028959 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028960/* confdefs.h. */
28961_ACEOF
28962cat confdefs.h >>conftest.$ac_ext
28963cat >>conftest.$ac_ext <<_ACEOF
28964/* end confdefs.h. */
28965#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028966int
28967main ()
28968{
28969float f; isnan(f);
28970 ;
28971 return 0;
28972}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028973_ACEOF
28974rm -f conftest.$ac_objext
28975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028976 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028978 grep -v '^ *+' conftest.er1 >conftest.err
28979 rm -f conftest.er1
28980 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028983 { ac_try='test -z "$ac_cxx_werror_flag"
28984 || test ! -s conftest.err'
28985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28986 (eval $ac_try) 2>&5
28987 ac_status=$?
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); }; } &&
28990 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28992 (eval $ac_try) 2>&5
28993 ac_status=$?
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); }; }; then
28996 ac_cv_func_isnan_in_math_h=yes
28997else
28998 echo "$as_me: failed program was:" >&5
28999sed 's/^/| /' conftest.$ac_ext >&5
29000
29001ac_cv_func_isnan_in_math_h=no
29002fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029004 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029005ac_cpp='$CPP $CPPFLAGS'
29006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29008ac_compiler_gnu=$ac_cv_c_compiler_gnu
29009
29010fi
29011echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29012echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029013
29014
29015if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029016
29017cat >>confdefs.h <<\_ACEOF
29018#define HAVE_ISNAN_IN_MATH_H 1
29019_ACEOF
29020
Reid Spencerabec8f92004-10-27 23:03:44 +000029021fi
29022
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029023echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29024echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29025if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29027else
29028 ac_ext=cc
29029ac_cpp='$CXXCPP $CPPFLAGS'
29030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29033
Reid Spencerabec8f92004-10-27 23:03:44 +000029034 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029035/* confdefs.h. */
29036_ACEOF
29037cat confdefs.h >>conftest.$ac_ext
29038cat >>conftest.$ac_ext <<_ACEOF
29039/* end confdefs.h. */
29040#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029041int
29042main ()
29043{
29044float f; isnan(f);
29045 ;
29046 return 0;
29047}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029048_ACEOF
29049rm -f conftest.$ac_objext
29050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029051 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029053 grep -v '^ *+' conftest.er1 >conftest.err
29054 rm -f conftest.er1
29055 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029058 { ac_try='test -z "$ac_cxx_werror_flag"
29059 || test ! -s conftest.err'
29060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061 (eval $ac_try) 2>&5
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; } &&
29065 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; }; then
29071 ac_cv_func_isnan_in_cmath=yes
29072else
29073 echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
29076ac_cv_func_isnan_in_cmath=no
29077fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029079 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029080ac_cpp='$CPP $CPPFLAGS'
29081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29083ac_compiler_gnu=$ac_cv_c_compiler_gnu
29084
29085fi
29086echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29087echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029088
29089if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029090
29091cat >>confdefs.h <<\_ACEOF
29092#define HAVE_ISNAN_IN_CMATH 1
29093_ACEOF
29094
Reid Spencerabec8f92004-10-27 23:03:44 +000029095fi
29096
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029097echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29098echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29099if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29101else
29102 ac_ext=cc
29103ac_cpp='$CXXCPP $CPPFLAGS'
29104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29107
Reid Spencerabec8f92004-10-27 23:03:44 +000029108 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029109/* confdefs.h. */
29110_ACEOF
29111cat confdefs.h >>conftest.$ac_ext
29112cat >>conftest.$ac_ext <<_ACEOF
29113/* end confdefs.h. */
29114#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029115int
29116main ()
29117{
29118float f; std::isnan(f);
29119 ;
29120 return 0;
29121}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029122_ACEOF
29123rm -f conftest.$ac_objext
29124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029125 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029126 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029127 grep -v '^ *+' conftest.er1 >conftest.err
29128 rm -f conftest.er1
29129 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029132 { ac_try='test -z "$ac_cxx_werror_flag"
29133 || test ! -s conftest.err'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29136 ac_status=$?
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; } &&
29139 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141 (eval $ac_try) 2>&5
29142 ac_status=$?
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29145 ac_cv_func_std_isnan_in_cmath=yes
29146else
29147 echo "$as_me: failed program was:" >&5
29148sed 's/^/| /' conftest.$ac_ext >&5
29149
29150ac_cv_func_std_isnan_in_cmath=no
29151fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029153 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029154ac_cpp='$CPP $CPPFLAGS'
29155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29157ac_compiler_gnu=$ac_cv_c_compiler_gnu
29158
29159fi
29160echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29161echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029162
29163if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029164
29165cat >>confdefs.h <<\_ACEOF
29166#define HAVE_STD_ISNAN_IN_CMATH 1
29167_ACEOF
29168
Reid Spencerabec8f92004-10-27 23:03:44 +000029169fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029170
29171
Brian Gaeke52a551d2004-07-21 03:14:12 +000029172echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29173echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29174if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29175 echo $ECHO_N "(cached) $ECHO_C" >&6
29176else
29177 ac_ext=cc
29178ac_cpp='$CXXCPP $CPPFLAGS'
29179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29182
Reid Spencerabec8f92004-10-27 23:03:44 +000029183 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029184/* confdefs.h. */
29185_ACEOF
29186cat confdefs.h >>conftest.$ac_ext
29187cat >>conftest.$ac_ext <<_ACEOF
29188/* end confdefs.h. */
29189#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029190int
29191main ()
29192{
29193float f; isinf(f);
29194 ;
29195 return 0;
29196}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029197_ACEOF
29198rm -f conftest.$ac_objext
29199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029200 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029202 grep -v '^ *+' conftest.er1 >conftest.err
29203 rm -f conftest.er1
29204 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029207 { ac_try='test -z "$ac_cxx_werror_flag"
29208 || test ! -s conftest.err'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 ac_cv_func_isinf_in_math_h=yes
29221else
29222 echo "$as_me: failed program was:" >&5
29223sed 's/^/| /' conftest.$ac_ext >&5
29224
29225ac_cv_func_isinf_in_math_h=no
29226fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029228 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029229ac_cpp='$CPP $CPPFLAGS'
29230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232ac_compiler_gnu=$ac_cv_c_compiler_gnu
29233
29234fi
29235echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29236echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029237
29238if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029239
29240cat >>confdefs.h <<\_ACEOF
29241#define HAVE_ISINF_IN_MATH_H 1
29242_ACEOF
29243
Reid Spencerabec8f92004-10-27 23:03:44 +000029244fi
29245
Brian Gaeke52a551d2004-07-21 03:14:12 +000029246echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29247echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29248if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250else
29251 ac_ext=cc
29252ac_cpp='$CXXCPP $CPPFLAGS'
29253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29256
Reid Spencerabec8f92004-10-27 23:03:44 +000029257 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029258/* confdefs.h. */
29259_ACEOF
29260cat confdefs.h >>conftest.$ac_ext
29261cat >>conftest.$ac_ext <<_ACEOF
29262/* end confdefs.h. */
29263#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029264int
29265main ()
29266{
29267float f; isinf(f);
29268 ;
29269 return 0;
29270}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029271_ACEOF
29272rm -f conftest.$ac_objext
29273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029274 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029275 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029276 grep -v '^ *+' conftest.er1 >conftest.err
29277 rm -f conftest.er1
29278 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029281 { ac_try='test -z "$ac_cxx_werror_flag"
29282 || test ! -s conftest.err'
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29285 ac_status=$?
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; } &&
29288 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290 (eval $ac_try) 2>&5
29291 ac_status=$?
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); }; }; then
29294 ac_cv_func_isinf_in_cmath=yes
29295else
29296 echo "$as_me: failed program was:" >&5
29297sed 's/^/| /' conftest.$ac_ext >&5
29298
29299ac_cv_func_isinf_in_cmath=no
29300fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029302 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029303ac_cpp='$CPP $CPPFLAGS'
29304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29306ac_compiler_gnu=$ac_cv_c_compiler_gnu
29307
29308fi
29309echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29310echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029311
29312if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029313
29314cat >>confdefs.h <<\_ACEOF
29315#define HAVE_ISINF_IN_CMATH 1
29316_ACEOF
29317
Reid Spencerabec8f92004-10-27 23:03:44 +000029318fi
29319
Brian Gaeke52a551d2004-07-21 03:14:12 +000029320echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29321echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29322if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29324else
29325 ac_ext=cc
29326ac_cpp='$CXXCPP $CPPFLAGS'
29327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29330
Reid Spencerabec8f92004-10-27 23:03:44 +000029331 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
29337#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029338int
29339main ()
29340{
29341float f; std::isinf(f)}
29342 ;
29343 return 0;
29344}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029345_ACEOF
29346rm -f conftest.$ac_objext
29347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029348 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029349 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029350 grep -v '^ *+' conftest.er1 >conftest.err
29351 rm -f conftest.er1
29352 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029355 { ac_try='test -z "$ac_cxx_werror_flag"
29356 || test ! -s conftest.err'
29357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358 (eval $ac_try) 2>&5
29359 ac_status=$?
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; } &&
29362 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364 (eval $ac_try) 2>&5
29365 ac_status=$?
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); }; }; then
29368 ac_cv_func_std_isinf_in_cmath=yes
29369else
29370 echo "$as_me: failed program was:" >&5
29371sed 's/^/| /' conftest.$ac_ext >&5
29372
29373ac_cv_func_std_isinf_in_cmath=no
29374fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029376 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029377ac_cpp='$CPP $CPPFLAGS'
29378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380ac_compiler_gnu=$ac_cv_c_compiler_gnu
29381
29382fi
29383echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29384echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029385
29386if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029387
29388cat >>confdefs.h <<\_ACEOF
29389#define HAVE_STD_ISINF_IN_CMATH 1
29390_ACEOF
29391
Reid Spencerabec8f92004-10-27 23:03:44 +000029392fi
29393
Brian Gaeked59a6472004-07-21 03:33:58 +000029394echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29395echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29396if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399 ac_ext=cc
29400ac_cpp='$CXXCPP $CPPFLAGS'
29401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29404
Reid Spencerabec8f92004-10-27 23:03:44 +000029405 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029406/* confdefs.h. */
29407_ACEOF
29408cat confdefs.h >>conftest.$ac_ext
29409cat >>conftest.$ac_ext <<_ACEOF
29410/* end confdefs.h. */
29411#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029412int
29413main ()
29414{
29415float f; finite(f);
29416 ;
29417 return 0;
29418}
Brian Gaeked59a6472004-07-21 03:33:58 +000029419_ACEOF
29420rm -f conftest.$ac_objext
29421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029422 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029423 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029424 grep -v '^ *+' conftest.er1 >conftest.err
29425 rm -f conftest.er1
29426 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029429 { ac_try='test -z "$ac_cxx_werror_flag"
29430 || test ! -s conftest.err'
29431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29432 (eval $ac_try) 2>&5
29433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; }; then
29442 ac_cv_func_finite_in_ieeefp_h=yes
29443else
29444 echo "$as_me: failed program was:" >&5
29445sed 's/^/| /' conftest.$ac_ext >&5
29446
29447ac_cv_func_finite_in_ieeefp_h=no
29448fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029450 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029451ac_cpp='$CPP $CPPFLAGS'
29452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454ac_compiler_gnu=$ac_cv_c_compiler_gnu
29455
29456fi
29457echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29458echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029459
Brian Gaeke6802b552004-10-28 05:06:45 +000029460if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029461
29462cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029463#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029464_ACEOF
29465
Reid Spencerabec8f92004-10-27 23:03:44 +000029466fi
29467
29468
29469
John Criswell7a73b802003-06-30 21:59:07 +000029470
29471
29472for ac_header in stdlib.h unistd.h
29473do
29474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29475if eval "test \"\${$as_ac_Header+set}\" = set"; then
29476 echo "$as_me:$LINENO: checking for $ac_header" >&5
29477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29478if eval "test \"\${$as_ac_Header+set}\" = set"; then
29479 echo $ECHO_N "(cached) $ECHO_C" >&6
29480fi
29481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29483else
29484 # Is the header compilable?
29485echo "$as_me:$LINENO: checking $ac_header usability" >&5
29486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29487cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029488/* confdefs.h. */
29489_ACEOF
29490cat confdefs.h >>conftest.$ac_ext
29491cat >>conftest.$ac_ext <<_ACEOF
29492/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029493$ac_includes_default
29494#include <$ac_header>
29495_ACEOF
29496rm -f conftest.$ac_objext
29497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029498 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029499 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029500 grep -v '^ *+' conftest.er1 >conftest.err
29501 rm -f conftest.er1
29502 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029505 { ac_try='test -z "$ac_c_werror_flag"
29506 || test ! -s conftest.err'
29507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508 (eval $ac_try) 2>&5
29509 ac_status=$?
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; } &&
29512 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; }; then
29518 ac_header_compiler=yes
29519else
29520 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029521sed 's/^/| /' conftest.$ac_ext >&5
29522
John Criswell7a73b802003-06-30 21:59:07 +000029523ac_header_compiler=no
29524fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29527echo "${ECHO_T}$ac_header_compiler" >&6
29528
29529# Is the header present?
29530echo "$as_me:$LINENO: checking $ac_header presence" >&5
29531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29532cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029533/* confdefs.h. */
29534_ACEOF
29535cat confdefs.h >>conftest.$ac_ext
29536cat >>conftest.$ac_ext <<_ACEOF
29537/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029538#include <$ac_header>
29539_ACEOF
29540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29542 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029543 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029544 rm -f conftest.er1
29545 cat conftest.err >&5
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); } >/dev/null; then
29548 if test -s conftest.err; then
29549 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029551 else
29552 ac_cpp_err=
29553 fi
29554else
29555 ac_cpp_err=yes
29556fi
29557if test -z "$ac_cpp_err"; then
29558 ac_header_preproc=yes
29559else
29560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029561sed 's/^/| /' conftest.$ac_ext >&5
29562
John Criswell7a73b802003-06-30 21:59:07 +000029563 ac_header_preproc=no
29564fi
29565rm -f conftest.err conftest.$ac_ext
29566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29567echo "${ECHO_T}$ac_header_preproc" >&6
29568
29569# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29571 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29576 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029577 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029578 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029591 (
29592 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029593## ----------------------------------- ##
29594## Report this to llvmbugs@cs.uiuc.edu ##
29595## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029596_ASBOX
29597 ) |
29598 sed "s/^/$as_me: WARNING: /" >&2
29599 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029600esac
29601echo "$as_me:$LINENO: checking for $ac_header" >&5
29602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29603if eval "test \"\${$as_ac_Header+set}\" = set"; then
29604 echo $ECHO_N "(cached) $ECHO_C" >&6
29605else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029606 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029607fi
29608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29610
29611fi
29612if test `eval echo '${'$as_ac_Header'}'` = yes; then
29613 cat >>confdefs.h <<_ACEOF
29614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29615_ACEOF
29616
29617fi
29618
29619done
29620
29621
29622for ac_func in getpagesize
29623do
29624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29625echo "$as_me:$LINENO: checking for $ac_func" >&5
29626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29627if eval "test \"\${$as_ac_var+set}\" = set"; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29629else
29630 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029631/* confdefs.h. */
29632_ACEOF
29633cat confdefs.h >>conftest.$ac_ext
29634cat >>conftest.$ac_ext <<_ACEOF
29635/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029636/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29638#define $ac_func innocuous_$ac_func
29639
John Criswell7a73b802003-06-30 21:59:07 +000029640/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029641 which can conflict with char $ac_func (); below.
29642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29643 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029644
John Criswell0c38eaf2003-09-10 15:17:25 +000029645#ifdef __STDC__
29646# include <limits.h>
29647#else
29648# include <assert.h>
29649#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029650
29651#undef $ac_func
29652
John Criswell7a73b802003-06-30 21:59:07 +000029653/* Override any gcc2 internal prototype to avoid an error. */
29654#ifdef __cplusplus
29655extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029656{
John Criswell7a73b802003-06-30 21:59:07 +000029657#endif
29658/* We use char because int might match the return type of a gcc2
29659 builtin and then its argument prototype would still apply. */
29660char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029661/* The GNU C library defines this for functions which it implements
29662 to always fail with ENOSYS. Some functions are actually named
29663 something starting with __ and the normal name is an alias. */
29664#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29665choke me
29666#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029667char (*f) () = $ac_func;
29668#endif
29669#ifdef __cplusplus
29670}
John Criswell7a73b802003-06-30 21:59:07 +000029671#endif
29672
John Criswell0c38eaf2003-09-10 15:17:25 +000029673int
29674main ()
29675{
29676return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029677 ;
29678 return 0;
29679}
29680_ACEOF
29681rm -f conftest.$ac_objext conftest$ac_exeext
29682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029683 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029684 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029685 grep -v '^ *+' conftest.er1 >conftest.err
29686 rm -f conftest.er1
29687 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029690 { ac_try='test -z "$ac_c_werror_flag"
29691 || test ! -s conftest.err'
29692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693 (eval $ac_try) 2>&5
29694 ac_status=$?
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; } &&
29697 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29699 (eval $ac_try) 2>&5
29700 ac_status=$?
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); }; }; then
29703 eval "$as_ac_var=yes"
29704else
29705 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029706sed 's/^/| /' conftest.$ac_ext >&5
29707
John Criswell7a73b802003-06-30 21:59:07 +000029708eval "$as_ac_var=no"
29709fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029710rm -f conftest.err conftest.$ac_objext \
29711 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029712fi
29713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29714echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29715if test `eval echo '${'$as_ac_var'}'` = yes; then
29716 cat >>confdefs.h <<_ACEOF
29717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29718_ACEOF
29719
29720fi
29721done
29722
29723echo "$as_me:$LINENO: checking for working mmap" >&5
29724echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29725if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29726 echo $ECHO_N "(cached) $ECHO_C" >&6
29727else
29728 if test "$cross_compiling" = yes; then
29729 ac_cv_func_mmap_fixed_mapped=no
29730else
29731 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029732/* confdefs.h. */
29733_ACEOF
29734cat confdefs.h >>conftest.$ac_ext
29735cat >>conftest.$ac_ext <<_ACEOF
29736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029737$ac_includes_default
29738/* malloc might have been renamed as rpl_malloc. */
29739#undef malloc
29740
29741/* Thanks to Mike Haertel and Jim Avera for this test.
29742 Here is a matrix of mmap possibilities:
29743 mmap private not fixed
29744 mmap private fixed at somewhere currently unmapped
29745 mmap private fixed at somewhere already mapped
29746 mmap shared not fixed
29747 mmap shared fixed at somewhere currently unmapped
29748 mmap shared fixed at somewhere already mapped
29749 For private mappings, we should verify that changes cannot be read()
29750 back from the file, nor mmap's back from the file at a different
29751 address. (There have been systems where private was not correctly
29752 implemented like the infamous i386 svr4.0, and systems where the
29753 VM page cache was not coherent with the file system buffer cache
29754 like early versions of FreeBSD and possibly contemporary NetBSD.)
29755 For shared mappings, we should conversely verify that changes get
29756 propagated back to all the places they're supposed to be.
29757
29758 Grep wants private fixed already mapped.
29759 The main things grep needs to know about mmap are:
29760 * does it exist and is it safe to write into the mmap'd area
29761 * how to use it (BSD variants) */
29762
29763#include <fcntl.h>
29764#include <sys/mman.h>
29765
29766#if !STDC_HEADERS && !HAVE_STDLIB_H
29767char *malloc ();
29768#endif
29769
29770/* This mess was copied from the GNU getpagesize.h. */
29771#if !HAVE_GETPAGESIZE
29772/* Assume that all systems that can run configure have sys/param.h. */
29773# if !HAVE_SYS_PARAM_H
29774# define HAVE_SYS_PARAM_H 1
29775# endif
29776
29777# ifdef _SC_PAGESIZE
29778# define getpagesize() sysconf(_SC_PAGESIZE)
29779# else /* no _SC_PAGESIZE */
29780# if HAVE_SYS_PARAM_H
29781# include <sys/param.h>
29782# ifdef EXEC_PAGESIZE
29783# define getpagesize() EXEC_PAGESIZE
29784# else /* no EXEC_PAGESIZE */
29785# ifdef NBPG
29786# define getpagesize() NBPG * CLSIZE
29787# ifndef CLSIZE
29788# define CLSIZE 1
29789# endif /* no CLSIZE */
29790# else /* no NBPG */
29791# ifdef NBPC
29792# define getpagesize() NBPC
29793# else /* no NBPC */
29794# ifdef PAGESIZE
29795# define getpagesize() PAGESIZE
29796# endif /* PAGESIZE */
29797# endif /* no NBPC */
29798# endif /* no NBPG */
29799# endif /* no EXEC_PAGESIZE */
29800# else /* no HAVE_SYS_PARAM_H */
29801# define getpagesize() 8192 /* punt totally */
29802# endif /* no HAVE_SYS_PARAM_H */
29803# endif /* no _SC_PAGESIZE */
29804
29805#endif /* no HAVE_GETPAGESIZE */
29806
29807int
29808main ()
29809{
29810 char *data, *data2, *data3;
29811 int i, pagesize;
29812 int fd;
29813
29814 pagesize = getpagesize ();
29815
29816 /* First, make a file with some known garbage in it. */
29817 data = (char *) malloc (pagesize);
29818 if (!data)
29819 exit (1);
29820 for (i = 0; i < pagesize; ++i)
29821 *(data + i) = rand ();
29822 umask (0);
29823 fd = creat ("conftest.mmap", 0600);
29824 if (fd < 0)
29825 exit (1);
29826 if (write (fd, data, pagesize) != pagesize)
29827 exit (1);
29828 close (fd);
29829
29830 /* Next, try to mmap the file at a fixed address which already has
29831 something else allocated at it. If we can, also make sure that
29832 we see the same garbage. */
29833 fd = open ("conftest.mmap", O_RDWR);
29834 if (fd < 0)
29835 exit (1);
29836 data2 = (char *) malloc (2 * pagesize);
29837 if (!data2)
29838 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029839 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029840 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029841 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029842 exit (1);
29843 for (i = 0; i < pagesize; ++i)
29844 if (*(data + i) != *(data2 + i))
29845 exit (1);
29846
29847 /* Finally, make sure that changes to the mapped area do not
29848 percolate back to the file as seen by read(). (This is a bug on
29849 some variants of i386 svr4.0.) */
29850 for (i = 0; i < pagesize; ++i)
29851 *(data2 + i) = *(data2 + i) + 1;
29852 data3 = (char *) malloc (pagesize);
29853 if (!data3)
29854 exit (1);
29855 if (read (fd, data3, pagesize) != pagesize)
29856 exit (1);
29857 for (i = 0; i < pagesize; ++i)
29858 if (*(data + i) != *(data3 + i))
29859 exit (1);
29860 close (fd);
29861 exit (0);
29862}
29863_ACEOF
29864rm -f conftest$ac_exeext
29865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29866 (eval $ac_link) 2>&5
29867 ac_status=$?
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871 (eval $ac_try) 2>&5
29872 ac_status=$?
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; }; then
29875 ac_cv_func_mmap_fixed_mapped=yes
29876else
29877 echo "$as_me: program exited with status $ac_status" >&5
29878echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029879sed 's/^/| /' conftest.$ac_ext >&5
29880
John Criswell7a73b802003-06-30 21:59:07 +000029881( exit $ac_status )
29882ac_cv_func_mmap_fixed_mapped=no
29883fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029885fi
29886fi
29887echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29888echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29889if test $ac_cv_func_mmap_fixed_mapped = yes; then
29890
29891cat >>confdefs.h <<\_ACEOF
29892#define HAVE_MMAP 1
29893_ACEOF
29894
29895fi
29896rm -f conftest.mmap
29897
29898echo "$as_me:$LINENO: checking for mmap of files" >&5
29899echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29900if test "${ac_cv_func_mmap_file+set}" = set; then
29901 echo $ECHO_N "(cached) $ECHO_C" >&6
29902else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029903 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029904ac_cpp='$CPP $CPPFLAGS'
29905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29907ac_compiler_gnu=$ac_cv_c_compiler_gnu
29908
29909 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029910 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029911else
29912 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029913
Reid Spencer777ce172004-09-20 04:09:56 +000029914 /* confdefs.h. */
29915_ACEOF
29916cat confdefs.h >>conftest.$ac_ext
29917cat >>conftest.$ac_ext <<_ACEOF
29918/* end confdefs.h. */
29919
John Criswell7a73b802003-06-30 21:59:07 +000029920#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029921#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029922#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029923
29924int
29925main ()
29926{
John Criswell7a73b802003-06-30 21:59:07 +000029927
29928 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029929 fd = creat ("foo",0777);
29930 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29931 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029932 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029933 ;
29934 return 0;
29935}
John Criswell7a73b802003-06-30 21:59:07 +000029936_ACEOF
29937rm -f conftest$ac_exeext
29938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29939 (eval $ac_link) 2>&5
29940 ac_status=$?
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29945 ac_status=$?
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; }; then
29948 ac_cv_func_mmap_file=yes
29949else
29950 echo "$as_me: program exited with status $ac_status" >&5
29951echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029952sed 's/^/| /' conftest.$ac_ext >&5
29953
John Criswell7a73b802003-06-30 21:59:07 +000029954( exit $ac_status )
29955ac_cv_func_mmap_file=no
29956fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029957rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029958fi
29959 ac_ext=c
29960ac_cpp='$CPP $CPPFLAGS'
29961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29963ac_compiler_gnu=$ac_cv_c_compiler_gnu
29964
29965
29966fi
29967echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29968echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29969if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029970
29971cat >>confdefs.h <<\_ACEOF
29972#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029973_ACEOF
29974
29975 MMAP_FILE=yes
29976
29977fi
29978
Reid Spencer7931a782004-12-27 06:15:02 +000029979echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29980echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29981if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29982 echo $ECHO_N "(cached) $ECHO_C" >&6
29983else
Reid Spencer582a23c2004-12-29 07:07:57 +000029984 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000029985 ac_cv_need_dev_zero_for_mmap=yes
29986 else
29987 ac_cv_need_dev_zero_for_mmap=no
29988 fi
29989
29990fi
29991echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29992echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29993if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29994
29995cat >>confdefs.h <<\_ACEOF
29996#define NEED_DEV_ZERO_FOR_MMAP 1
29997_ACEOF
29998
29999fi
John Criswell7a73b802003-06-30 21:59:07 +000030000echo "$as_me:$LINENO: checking for mprotect" >&5
30001echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30002if test "${ac_cv_func_mprotect+set}" = set; then
30003 echo $ECHO_N "(cached) $ECHO_C" >&6
30004else
30005 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030006/* confdefs.h. */
30007_ACEOF
30008cat confdefs.h >>conftest.$ac_ext
30009cat >>conftest.$ac_ext <<_ACEOF
30010/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030011/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30013#define mprotect innocuous_mprotect
30014
John Criswell7a73b802003-06-30 21:59:07 +000030015/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030016 which can conflict with char mprotect (); below.
30017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30018 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030019
John Criswell0c38eaf2003-09-10 15:17:25 +000030020#ifdef __STDC__
30021# include <limits.h>
30022#else
30023# include <assert.h>
30024#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030025
30026#undef mprotect
30027
John Criswell7a73b802003-06-30 21:59:07 +000030028/* Override any gcc2 internal prototype to avoid an error. */
30029#ifdef __cplusplus
30030extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030031{
John Criswell7a73b802003-06-30 21:59:07 +000030032#endif
30033/* We use char because int might match the return type of a gcc2
30034 builtin and then its argument prototype would still apply. */
30035char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030036/* The GNU C library defines this for functions which it implements
30037 to always fail with ENOSYS. Some functions are actually named
30038 something starting with __ and the normal name is an alias. */
30039#if defined (__stub_mprotect) || defined (__stub___mprotect)
30040choke me
30041#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030042char (*f) () = mprotect;
30043#endif
30044#ifdef __cplusplus
30045}
John Criswell7a73b802003-06-30 21:59:07 +000030046#endif
30047
John Criswell0c38eaf2003-09-10 15:17:25 +000030048int
30049main ()
30050{
30051return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030052 ;
30053 return 0;
30054}
30055_ACEOF
30056rm -f conftest.$ac_objext conftest$ac_exeext
30057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030058 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030060 grep -v '^ *+' conftest.er1 >conftest.err
30061 rm -f conftest.er1
30062 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030065 { ac_try='test -z "$ac_c_werror_flag"
30066 || test ! -s conftest.err'
30067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068 (eval $ac_try) 2>&5
30069 ac_status=$?
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); }; } &&
30072 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30074 (eval $ac_try) 2>&5
30075 ac_status=$?
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); }; }; then
30078 ac_cv_func_mprotect=yes
30079else
30080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030081sed 's/^/| /' conftest.$ac_ext >&5
30082
John Criswell7a73b802003-06-30 21:59:07 +000030083ac_cv_func_mprotect=no
30084fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030085rm -f conftest.err conftest.$ac_objext \
30086 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030087fi
30088echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30089echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30090if test $ac_cv_func_mprotect = yes; then
30091 :
30092else
30093 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30094echo "$as_me: error: Function mprotect() required but not found" >&2;}
30095 { (exit 1); exit 1; }; }
30096fi
30097
30098
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030099if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030100then
Reid Spencer582a23c2004-12-29 07:07:57 +000030101 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30102echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030103fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030104if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030105then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030106 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30107echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030108fi
John Criswell7a73b802003-06-30 21:59:07 +000030109
30110
Brian Gaekef3b24102003-11-16 18:38:14 +000030111echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30112echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030113if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30115else
30116 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030117if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030118 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030119 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030120 if test $? -eq 0 ; then
30121 llvm_cv_llvmgcc_sanity="yes"
30122 fi
30123 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030124fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030125fi
30126echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30127echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30128
30129if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030130 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030131 LLVMCC1=$llvmcc1path
30132
Reid Spencer502935f2004-12-22 05:56:56 +000030133 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030134 LLVMCC1PLUS=$llvmcc1pluspath
30135
Reid Spencer502935f2004-12-22 05:56:56 +000030136 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30137 LLVMGCCDIR=$llvmgccdir
30138
Brian Gaekef3b24102003-11-16 18:38:14 +000030139fi
30140
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030141SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030142
30143
Reid Spencere9de0912004-08-20 09:03:57 +000030144# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030145# information into substitutions that will end up in Makefile.config.in
30146# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030147eval LLVM_PREFIX="${prefix}";
30148eval LLVM_BINDIR="${prefix}/bin";
30149eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030150eval LLVM_DATADIR="${prefix}/share/llvm";
30151eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30152eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030153eval LLVM_INCLUDEDIR="${prefix}/include";
30154eval LLVM_INFODIR="${prefix}/info";
30155eval LLVM_MANDIR="${prefix}/man";
30156LLVM_CONFIGTIME=`date`
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030168# Place the various directores into the config.h file as #defines so that we
30169# can know about the installation paths within LLVM.
30170
Reid Spencere9de0912004-08-20 09:03:57 +000030171cat >>confdefs.h <<_ACEOF
30172#define LLVM_PREFIX "$LLVM_PREFIX"
30173_ACEOF
30174
30175
30176cat >>confdefs.h <<_ACEOF
30177#define LLVM_BINDIR "$LLVM_BINDIR"
30178_ACEOF
30179
30180
30181cat >>confdefs.h <<_ACEOF
30182#define LLVM_LIBDIR "$LLVM_LIBDIR"
30183_ACEOF
30184
30185
30186cat >>confdefs.h <<_ACEOF
30187#define LLVM_DATADIR "$LLVM_DATADIR"
30188_ACEOF
30189
30190
30191cat >>confdefs.h <<_ACEOF
30192#define LLVM_DATADIR "$LLVM_DOCSDIR"
30193_ACEOF
30194
30195
30196cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030197#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030198_ACEOF
30199
30200
30201cat >>confdefs.h <<_ACEOF
30202#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30203_ACEOF
30204
30205
30206cat >>confdefs.h <<_ACEOF
30207#define LLVM_INFODIR "$LLVM_INFODIR"
30208_ACEOF
30209
30210
30211cat >>confdefs.h <<_ACEOF
30212#define LLVM_MANDIR "$LLVM_MANDIR"
30213_ACEOF
30214
30215
30216cat >>confdefs.h <<_ACEOF
30217#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30218_ACEOF
30219
30220
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030221
30222 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30223
30224
30225 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30226
30227 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30228
30229 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30230
30231 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30232
30233 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30234
30235
30236 ac_config_files="$ac_config_files Makefile.config"
30237
30238
30239 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30240
30241
Reid Spencer1f319422004-11-29 04:56:35 +000030242 ac_config_files="$ac_config_files docs/doxygen.cfg"
30243
30244
Reid Spencerc0682832005-02-24 19:05:19 +000030245 ac_config_commands="$ac_config_commands setup"
30246
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030247 ac_config_commands="$ac_config_commands Makefile"
30248
30249
30250 ac_config_commands="$ac_config_commands Makefile.common"
30251
30252
30253 ac_config_commands="$ac_config_commands examples/Makefile"
30254
30255
30256 ac_config_commands="$ac_config_commands lib/Makefile"
30257
30258
30259 ac_config_commands="$ac_config_commands runtime/Makefile"
30260
30261
30262 ac_config_commands="$ac_config_commands test/Makefile"
30263
30264
30265 ac_config_commands="$ac_config_commands test/Makefile.tests"
30266
30267
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030268 ac_config_commands="$ac_config_commands tools/Makefile"
30269
30270
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030271 ac_config_commands="$ac_config_commands utils/Makefile"
30272
30273
30274 ac_config_commands="$ac_config_commands projects/Makefile"
30275
30276
30277
John Criswell7a73b802003-06-30 21:59:07 +000030278cat >confcache <<\_ACEOF
30279# This file is a shell script that caches the results of configure
30280# tests run on this system so they can be shared between configure
30281# scripts and configure runs, see configure's option --config-cache.
30282# It is not useful on other systems. If it contains results you don't
30283# want to keep, you may remove or edit it.
30284#
30285# config.status only pays attention to the cache file if you give it
30286# the --recheck option to rerun configure.
30287#
John Criswell0c38eaf2003-09-10 15:17:25 +000030288# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030289# loading this file, other *unset* `ac_cv_foo' will be assigned the
30290# following values.
30291
30292_ACEOF
30293
30294# The following way of writing the cache mishandles newlines in values,
30295# but we know of no workaround that is simple, portable, and efficient.
30296# So, don't put newlines in cache variables' values.
30297# Ultrix sh set writes to stderr and can't be redirected directly,
30298# and sets the high bit in the cache file unless we assign to the vars.
30299{
30300 (set) 2>&1 |
30301 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30302 *ac_space=\ *)
30303 # `set' does not quote correctly, so add quotes (double-quote
30304 # substitution turns \\\\ into \\, and sed turns \\ into \).
30305 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030306 "s/'/'\\\\''/g;
30307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030308 ;;
30309 *)
30310 # `set' quotes correctly as required by POSIX, so do not add quotes.
30311 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030313 ;;
30314 esac;
30315} |
30316 sed '
30317 t clear
30318 : clear
30319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30320 t end
30321 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30322 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030323if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030324 if test -w $cache_file; then
30325 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30326 cat confcache >$cache_file
30327 else
30328 echo "not updating unwritable cache $cache_file"
30329 fi
30330fi
30331rm -f confcache
30332
30333test "x$prefix" = xNONE && prefix=$ac_default_prefix
30334# Let make expand exec_prefix.
30335test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30336
30337# VPATH may cause trouble with some makes, so we remove $(srcdir),
30338# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30339# trailing colons and then remove the whole line if VPATH becomes empty
30340# (actually we leave an empty line to preserve line numbers).
30341if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030342 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030343s/:*\$(srcdir):*/:/;
30344s/:*\${srcdir}:*/:/;
30345s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030346s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030347s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030348s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030349}'
30350fi
30351
30352DEFS=-DHAVE_CONFIG_H
30353
John Criswell0c38eaf2003-09-10 15:17:25 +000030354ac_libobjs=
30355ac_ltlibobjs=
30356for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30357 # 1. Remove the extension, and $U if already installed.
30358 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030359 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030360 # 2. Add them.
30361 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30362 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30363done
30364LIBOBJS=$ac_libobjs
30365
30366LTLIBOBJS=$ac_ltlibobjs
30367
30368
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030369if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30370 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30371Usually this means the macro was only invoked conditionally." >&5
30372echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30373Usually this means the macro was only invoked conditionally." >&2;}
30374 { (exit 1); exit 1; }; }
30375fi
30376if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30377 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30378Usually this means the macro was only invoked conditionally." >&5
30379echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30380Usually this means the macro was only invoked conditionally." >&2;}
30381 { (exit 1); exit 1; }; }
30382fi
John Criswell7a73b802003-06-30 21:59:07 +000030383
30384: ${CONFIG_STATUS=./config.status}
30385ac_clean_files_save=$ac_clean_files
30386ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30387{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30388echo "$as_me: creating $CONFIG_STATUS" >&6;}
30389cat >$CONFIG_STATUS <<_ACEOF
30390#! $SHELL
30391# Generated by $as_me.
30392# Run this file to recreate the current configuration.
30393# Compiler output produced by configure, useful for debugging
30394# configure, is in config.log if it exists.
30395
30396debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030397ac_cs_recheck=false
30398ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030399SHELL=\${CONFIG_SHELL-$SHELL}
30400_ACEOF
30401
30402cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030403## --------------------- ##
30404## M4sh Initialization. ##
30405## --------------------- ##
30406
30407# Be Bourne compatible
30408if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30409 emulate sh
30410 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030411 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30412 # is contrary to our usage. Disable this feature.
30413 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030414elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30415 set -o posix
30416fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030417DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030418
John Criswell7a73b802003-06-30 21:59:07 +000030419# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030420if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030421 as_unset=unset
30422else
30423 as_unset=false
30424fi
30425
John Criswell0c38eaf2003-09-10 15:17:25 +000030426
30427# Work around bugs in pre-3.0 UWIN ksh.
30428$as_unset ENV MAIL MAILPATH
30429PS1='$ '
30430PS2='> '
30431PS4='+ '
30432
30433# NLS nuisances.
30434for as_var in \
30435 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30436 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30437 LC_TELEPHONE LC_TIME
30438do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030439 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030440 eval $as_var=C; export $as_var
30441 else
30442 $as_unset $as_var
30443 fi
30444done
30445
30446# Required to use basename.
30447if expr a : '\(a\)' >/dev/null 2>&1; then
30448 as_expr=expr
30449else
30450 as_expr=false
30451fi
30452
30453if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30454 as_basename=basename
30455else
30456 as_basename=false
30457fi
John Criswell7a73b802003-06-30 21:59:07 +000030458
30459
30460# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030461as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30463 X"$0" : 'X\(//\)$' \| \
30464 X"$0" : 'X\(/\)$' \| \
30465 . : '\(.\)' 2>/dev/null ||
30466echo X/"$0" |
30467 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30468 /^X\/\(\/\/\)$/{ s//\1/; q; }
30469 /^X\/\(\/\).*/{ s//\1/; q; }
30470 s/.*/./; q'`
30471
John Criswell0c38eaf2003-09-10 15:17:25 +000030472
John Criswell7a73b802003-06-30 21:59:07 +000030473# PATH needs CR, and LINENO needs CR and PATH.
30474# Avoid depending upon Character Ranges.
30475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30478as_cr_digits='0123456789'
30479as_cr_alnum=$as_cr_Letters$as_cr_digits
30480
30481# The user is always right.
30482if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030483 echo "#! /bin/sh" >conf$$.sh
30484 echo "exit 0" >>conf$$.sh
30485 chmod +x conf$$.sh
30486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030487 PATH_SEPARATOR=';'
30488 else
30489 PATH_SEPARATOR=:
30490 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030491 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030492fi
30493
30494
30495 as_lineno_1=$LINENO
30496 as_lineno_2=$LINENO
30497 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30498 test "x$as_lineno_1" != "x$as_lineno_2" &&
30499 test "x$as_lineno_3" = "x$as_lineno_2" || {
30500 # Find who we are. Look in the path if we contain no path at all
30501 # relative or not.
30502 case $0 in
30503 *[\\/]* ) as_myself=$0 ;;
30504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30505for as_dir in $PATH
30506do
30507 IFS=$as_save_IFS
30508 test -z "$as_dir" && as_dir=.
30509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30510done
30511
30512 ;;
30513 esac
30514 # We did not find ourselves, most probably we were run as `sh COMMAND'
30515 # in which case we are not to be found in the path.
30516 if test "x$as_myself" = x; then
30517 as_myself=$0
30518 fi
30519 if test ! -f "$as_myself"; then
30520 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30521echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30522 { (exit 1); exit 1; }; }
30523 fi
30524 case $CONFIG_SHELL in
30525 '')
30526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30527for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30528do
30529 IFS=$as_save_IFS
30530 test -z "$as_dir" && as_dir=.
30531 for as_base in sh bash ksh sh5; do
30532 case $as_dir in
30533 /*)
30534 if ("$as_dir/$as_base" -c '
30535 as_lineno_1=$LINENO
30536 as_lineno_2=$LINENO
30537 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30538 test "x$as_lineno_1" != "x$as_lineno_2" &&
30539 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030540 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30541 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030542 CONFIG_SHELL=$as_dir/$as_base
30543 export CONFIG_SHELL
30544 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30545 fi;;
30546 esac
30547 done
30548done
30549;;
30550 esac
30551
30552 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30553 # uniformly replaced by the line number. The first 'sed' inserts a
30554 # line-number line before each line; the second 'sed' does the real
30555 # work. The second script uses 'N' to pair each line-number line
30556 # with the numbered line, and appends trailing '-' during
30557 # substitution so that $LINENO is not a special case at line end.
30558 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30559 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30560 sed '=' <$as_myself |
30561 sed '
30562 N
30563 s,$,-,
30564 : loop
30565 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30566 t loop
30567 s,-$,,
30568 s,^['$as_cr_digits']*\n,,
30569 ' >$as_me.lineno &&
30570 chmod +x $as_me.lineno ||
30571 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30572echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30573 { (exit 1); exit 1; }; }
30574
30575 # Don't try to exec as it changes $[0], causing all sort of problems
30576 # (the dirname of $[0] is not the place where we might find the
30577 # original and so on. Autoconf is especially sensible to this).
30578 . ./$as_me.lineno
30579 # Exit status is that of the last command.
30580 exit
30581}
30582
30583
30584case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30585 *c*,-n*) ECHO_N= ECHO_C='
30586' ECHO_T=' ' ;;
30587 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30588 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30589esac
30590
30591if expr a : '\(a\)' >/dev/null 2>&1; then
30592 as_expr=expr
30593else
30594 as_expr=false
30595fi
30596
30597rm -f conf$$ conf$$.exe conf$$.file
30598echo >conf$$.file
30599if ln -s conf$$.file conf$$ 2>/dev/null; then
30600 # We could just check for DJGPP; but this test a) works b) is more generic
30601 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30602 if test -f conf$$.exe; then
30603 # Don't use ln at all; we don't have any links
30604 as_ln_s='cp -p'
30605 else
30606 as_ln_s='ln -s'
30607 fi
30608elif ln conf$$.file conf$$ 2>/dev/null; then
30609 as_ln_s=ln
30610else
30611 as_ln_s='cp -p'
30612fi
30613rm -f conf$$ conf$$.exe conf$$.file
30614
John Criswell0c38eaf2003-09-10 15:17:25 +000030615if mkdir -p . 2>/dev/null; then
30616 as_mkdir_p=:
30617else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030618 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030619 as_mkdir_p=false
30620fi
30621
John Criswell7a73b802003-06-30 21:59:07 +000030622as_executable_p="test -f"
30623
30624# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030625as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030626
30627# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030628as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030629
30630
30631# IFS
30632# We need space, tab and new line, in precisely that order.
30633as_nl='
30634'
30635IFS=" $as_nl"
30636
30637# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030638$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030639
30640exec 6>&1
30641
30642# Open the log real soon, to keep \$[0] and so on meaningful, and to
30643# report actual input values of CONFIG_FILES etc. instead of their
30644# values after options handling. Logging --version etc. is OK.
30645exec 5>>config.log
30646{
30647 echo
30648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30649## Running $as_me. ##
30650_ASBOX
30651} >&5
30652cat >&5 <<_CSEOF
30653
Reid Spencer78ba11d2005-02-16 16:21:00 +000030654This file was extended by llvm $as_me 1.5cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030655generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030656
30657 CONFIG_FILES = $CONFIG_FILES
30658 CONFIG_HEADERS = $CONFIG_HEADERS
30659 CONFIG_LINKS = $CONFIG_LINKS
30660 CONFIG_COMMANDS = $CONFIG_COMMANDS
30661 $ $0 $@
30662
30663_CSEOF
30664echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30665echo >&5
30666_ACEOF
30667
30668# Files that config.status was made for.
30669if test -n "$ac_config_files"; then
30670 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30671fi
30672
30673if test -n "$ac_config_headers"; then
30674 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30675fi
30676
30677if test -n "$ac_config_links"; then
30678 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30679fi
30680
30681if test -n "$ac_config_commands"; then
30682 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30683fi
30684
30685cat >>$CONFIG_STATUS <<\_ACEOF
30686
30687ac_cs_usage="\
30688\`$as_me' instantiates files from templates according to the
30689current configuration.
30690
30691Usage: $0 [OPTIONS] [FILE]...
30692
30693 -h, --help print this help, then exit
30694 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030695 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030696 -d, --debug don't remove temporary files
30697 --recheck update $as_me by reconfiguring in the same conditions
30698 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030699 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030700 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030701 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030702
30703Configuration files:
30704$config_files
30705
30706Configuration headers:
30707$config_headers
30708
John Criswellc764fbc2003-09-06 15:17:13 +000030709Configuration commands:
30710$config_commands
30711
John Criswell7a73b802003-06-30 21:59:07 +000030712Report bugs to <bug-autoconf@gnu.org>."
30713_ACEOF
30714
30715cat >>$CONFIG_STATUS <<_ACEOF
30716ac_cs_version="\\
Reid Spencer78ba11d2005-02-16 16:21:00 +000030717llvm config.status 1.5cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000030718configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030719 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30720
Reid Spencer2706f8c2004-09-19 23:53:36 +000030721Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030722This config.status script is free software; the Free Software Foundation
30723gives unlimited permission to copy, distribute and modify it."
30724srcdir=$srcdir
30725INSTALL="$INSTALL"
30726_ACEOF
30727
30728cat >>$CONFIG_STATUS <<\_ACEOF
30729# If no file are specified by the user, then we need to provide default
30730# value. By we need to know if files were specified by the user.
30731ac_need_defaults=:
30732while test $# != 0
30733do
30734 case $1 in
30735 --*=*)
30736 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30737 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030738 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030739 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030740 -*)
30741 ac_option=$1
30742 ac_optarg=$2
30743 ac_shift=shift
30744 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030745 *) # This is not an option, so the user has probably given explicit
30746 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030747 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030748 ac_need_defaults=false;;
30749 esac
30750
John Criswell0c38eaf2003-09-10 15:17:25 +000030751 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030752 # Handling of the options.
30753_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030754cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30756 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030757 --version | --vers* | -V )
30758 echo "$ac_cs_version"; exit 0 ;;
30759 --he | --h)
30760 # Conflict between --help and --header
30761 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30762Try \`$0 --help' for more information." >&5
30763echo "$as_me: error: ambiguous option: $1
30764Try \`$0 --help' for more information." >&2;}
30765 { (exit 1); exit 1; }; };;
30766 --help | --hel | -h )
30767 echo "$ac_cs_usage"; exit 0 ;;
30768 --debug | --d* | -d )
30769 debug=: ;;
30770 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030771 $ac_shift
30772 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030773 ac_need_defaults=false;;
30774 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030775 $ac_shift
30776 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030777 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30779 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30780 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030781
30782 # This is an error.
30783 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30784Try \`$0 --help' for more information." >&5
30785echo "$as_me: error: unrecognized option: $1
30786Try \`$0 --help' for more information." >&2;}
30787 { (exit 1); exit 1; }; } ;;
30788
30789 *) ac_config_targets="$ac_config_targets $1" ;;
30790
30791 esac
30792 shift
30793done
30794
John Criswell0c38eaf2003-09-10 15:17:25 +000030795ac_configure_extra_args=
30796
30797if $ac_cs_silent; then
30798 exec 6>/dev/null
30799 ac_configure_extra_args="$ac_configure_extra_args --silent"
30800fi
30801
30802_ACEOF
30803cat >>$CONFIG_STATUS <<_ACEOF
30804if \$ac_cs_recheck; then
30805 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30806 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30807fi
30808
John Criswell7a73b802003-06-30 21:59:07 +000030809_ACEOF
30810
John Criswellc764fbc2003-09-06 15:17:13 +000030811cat >>$CONFIG_STATUS <<_ACEOF
30812#
30813# INIT-COMMANDS section.
30814#
John Criswell7a73b802003-06-30 21:59:07 +000030815
Reid Spencerc0682832005-02-24 19:05:19 +000030816llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000030817
30818_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030819
30820
30821
30822cat >>$CONFIG_STATUS <<\_ACEOF
30823for ac_config_target in $ac_config_targets
30824do
30825 case "$ac_config_target" in
30826 # Handling of arguments.
30827 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030828 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30829 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30830 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30831 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030832 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000030833 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030834 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30835 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030836 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030837 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030838 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030839 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30840 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030841 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030842 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030843 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030844 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030845 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030846 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30847 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030848 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30849 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30851echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30852 { (exit 1); exit 1; }; };;
30853 esac
30854done
30855
30856# If the user did not use the arguments to specify the items to instantiate,
30857# then the envvar interface is used. Set only those that are not.
30858# We use the long form for the default assignment because of an extremely
30859# bizarre bug on SunOS 4.1.3.
30860if $ac_need_defaults; then
30861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000030863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030864fi
30865
John Criswell0c38eaf2003-09-10 15:17:25 +000030866# Have a temporary directory for convenience. Make it in the build tree
30867# simply because there is no reason to put it here, and in addition,
30868# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030869# Create a temporary directory, and hook for its removal unless debugging.
30870$debug ||
30871{
30872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30873 trap '{ (exit 1); exit 1; }' 1 2 13 15
30874}
30875
30876# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030877
John Criswell7a73b802003-06-30 21:59:07 +000030878{
John Criswell0c38eaf2003-09-10 15:17:25 +000030879 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030880 test -n "$tmp" && test -d "$tmp"
30881} ||
30882{
John Criswell0c38eaf2003-09-10 15:17:25 +000030883 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030884 (umask 077 && mkdir $tmp)
30885} ||
30886{
John Criswell0c38eaf2003-09-10 15:17:25 +000030887 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030888 { (exit 1); exit 1; }
30889}
30890
30891_ACEOF
30892
30893cat >>$CONFIG_STATUS <<_ACEOF
30894
30895#
30896# CONFIG_FILES section.
30897#
30898
30899# No need to generate the scripts if there are no CONFIG_FILES.
30900# This happens for instance when ./config.status config.h
30901if test -n "\$CONFIG_FILES"; then
30902 # Protect against being on the right side of a sed subst in config.status.
30903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30905s,@SHELL@,$SHELL,;t t
30906s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30907s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30908s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30909s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30910s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30911s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30912s,@exec_prefix@,$exec_prefix,;t t
30913s,@prefix@,$prefix,;t t
30914s,@program_transform_name@,$program_transform_name,;t t
30915s,@bindir@,$bindir,;t t
30916s,@sbindir@,$sbindir,;t t
30917s,@libexecdir@,$libexecdir,;t t
30918s,@datadir@,$datadir,;t t
30919s,@sysconfdir@,$sysconfdir,;t t
30920s,@sharedstatedir@,$sharedstatedir,;t t
30921s,@localstatedir@,$localstatedir,;t t
30922s,@libdir@,$libdir,;t t
30923s,@includedir@,$includedir,;t t
30924s,@oldincludedir@,$oldincludedir,;t t
30925s,@infodir@,$infodir,;t t
30926s,@mandir@,$mandir,;t t
30927s,@build_alias@,$build_alias,;t t
30928s,@host_alias@,$host_alias,;t t
30929s,@target_alias@,$target_alias,;t t
30930s,@DEFS@,$DEFS,;t t
30931s,@ECHO_C@,$ECHO_C,;t t
30932s,@ECHO_N@,$ECHO_N,;t t
30933s,@ECHO_T@,$ECHO_T,;t t
30934s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030935s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030936s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030937s,@build@,$build,;t t
30938s,@build_cpu@,$build_cpu,;t t
30939s,@build_vendor@,$build_vendor,;t t
30940s,@build_os@,$build_os,;t t
30941s,@host@,$host,;t t
30942s,@host_cpu@,$host_cpu,;t t
30943s,@host_vendor@,$host_vendor,;t t
30944s,@host_os@,$host_os,;t t
30945s,@target@,$target,;t t
30946s,@target_cpu@,$target_cpu,;t t
30947s,@target_vendor@,$target_vendor,;t t
30948s,@target_os@,$target_os,;t t
30949s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000030950s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30951s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000030952s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030953s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030954s,@CC@,$CC,;t t
30955s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030956s,@LDFLAGS@,$LDFLAGS,;t t
30957s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030958s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030959s,@EXEEXT@,$EXEEXT,;t t
30960s,@OBJEXT@,$OBJEXT,;t t
30961s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30962s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030963s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030964s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030965s,@CXX@,$CXX,;t t
30966s,@CXXFLAGS@,$CXXFLAGS,;t t
30967s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030968s,@LEX@,$LEX,;t t
30969s,@LEXLIB@,$LEXLIB,;t t
30970s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030971s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030972s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030973s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030974s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030975s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030976s,@CMP@,$CMP,;t t
30977s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030978s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030979s,@FIND@,$FIND,;t t
30980s,@GREP@,$GREP,;t t
30981s,@MKDIR@,$MKDIR,;t t
30982s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030983s,@RANLIB@,$RANLIB,;t t
30984s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030985s,@RM@,$RM,;t t
30986s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030987s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030988s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30989s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30990s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030991s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030992s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030993s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030994s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030995s,@GROFF@,$GROFF,;t t
30996s,@GZIP@,$GZIP,;t t
30997s,@POD2HTML@,$POD2HTML,;t t
30998s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030999s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031000s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031001s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031002s,@EGREP@,$EGREP,;t t
31003s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31004s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31005s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31006s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31007s,@LIBADD_DL@,$LIBADD_DL,;t t
31008s,@ECHO@,$ECHO,;t t
31009s,@AR@,$AR,;t t
31010s,@ac_ct_AR@,$ac_ct_AR,;t t
31011s,@STRIP@,$STRIP,;t t
31012s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31013s,@CXXCPP@,$CXXCPP,;t t
31014s,@F77@,$F77,;t t
31015s,@FFLAGS@,$FFLAGS,;t t
31016s,@ac_ct_F77@,$ac_ct_F77,;t t
31017s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031018s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031019s,@LLVMGCC@,$LLVMGCC,;t t
31020s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031021s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031022s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031023s,@LLVMCC1@,$LLVMCC1,;t t
31024s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031025s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031026s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031027s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31028s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31029s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31030s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31031s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31032s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31033s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31034s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31035s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31036s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031037s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031038s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031039CEOF
31040
31041_ACEOF
31042
31043 cat >>$CONFIG_STATUS <<\_ACEOF
31044 # Split the substitutions into bite-sized pieces for seds with
31045 # small command number limits, like on Digital OSF/1 and HP-UX.
31046 ac_max_sed_lines=48
31047 ac_sed_frag=1 # Number of current file.
31048 ac_beg=1 # First line for current file.
31049 ac_end=$ac_max_sed_lines # Line after last line for current file.
31050 ac_more_lines=:
31051 ac_sed_cmds=
31052 while $ac_more_lines; do
31053 if test $ac_beg -gt 1; then
31054 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31055 else
31056 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31057 fi
31058 if test ! -s $tmp/subs.frag; then
31059 ac_more_lines=false
31060 else
31061 # The purpose of the label and of the branching condition is to
31062 # speed up the sed processing (if there are no `@' at all, there
31063 # is no need to browse any of the substitutions).
31064 # These are the two extra sed commands mentioned above.
31065 (echo ':t
31066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31067 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031068 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031069 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031070 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031071 fi
31072 ac_sed_frag=`expr $ac_sed_frag + 1`
31073 ac_beg=$ac_end
31074 ac_end=`expr $ac_end + $ac_max_sed_lines`
31075 fi
31076 done
31077 if test -z "$ac_sed_cmds"; then
31078 ac_sed_cmds=cat
31079 fi
31080fi # test -n "$CONFIG_FILES"
31081
31082_ACEOF
31083cat >>$CONFIG_STATUS <<\_ACEOF
31084for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31086 case $ac_file in
31087 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031088 cat >$tmp/stdin
31089 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031091 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031093 * ) ac_file_in=$ac_file.in ;;
31094 esac
31095
31096 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31097 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31098$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031099 X"$ac_file" : 'X\(//\)[^/]' \| \
31100 X"$ac_file" : 'X\(//\)$' \| \
31101 X"$ac_file" : 'X\(/\)' \| \
31102 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031103echo X"$ac_file" |
31104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31106 /^X\(\/\/\)$/{ s//\1/; q; }
31107 /^X\(\/\).*/{ s//\1/; q; }
31108 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031109 { if $as_mkdir_p; then
31110 mkdir -p "$ac_dir"
31111 else
31112 as_dir="$ac_dir"
31113 as_dirs=
31114 while test ! -d "$as_dir"; do
31115 as_dirs="$as_dir $as_dirs"
31116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031118 X"$as_dir" : 'X\(//\)[^/]' \| \
31119 X"$as_dir" : 'X\(//\)$' \| \
31120 X"$as_dir" : 'X\(/\)' \| \
31121 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031122echo X"$as_dir" |
31123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31125 /^X\(\/\/\)$/{ s//\1/; q; }
31126 /^X\(\/\).*/{ s//\1/; q; }
31127 s/.*/./; q'`
31128 done
31129 test ! -n "$as_dirs" || mkdir $as_dirs
31130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31131echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31132 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031133
31134 ac_builddir=.
31135
31136if test "$ac_dir" != .; then
31137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31138 # A "../" for each directory in $ac_dir_suffix.
31139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31140else
31141 ac_dir_suffix= ac_top_builddir=
31142fi
31143
31144case $srcdir in
31145 .) # No --srcdir option. We are building in place.
31146 ac_srcdir=.
31147 if test -z "$ac_top_builddir"; then
31148 ac_top_srcdir=.
31149 else
31150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31151 fi ;;
31152 [\\/]* | ?:[\\/]* ) # Absolute path.
31153 ac_srcdir=$srcdir$ac_dir_suffix;
31154 ac_top_srcdir=$srcdir ;;
31155 *) # Relative path.
31156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31158esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031159
31160# Do not use `cd foo && pwd` to compute absolute paths, because
31161# the directories may not exist.
31162case `pwd` in
31163.) ac_abs_builddir="$ac_dir";;
31164*)
31165 case "$ac_dir" in
31166 .) ac_abs_builddir=`pwd`;;
31167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31169 esac;;
31170esac
31171case $ac_abs_builddir in
31172.) ac_abs_top_builddir=${ac_top_builddir}.;;
31173*)
31174 case ${ac_top_builddir}. in
31175 .) ac_abs_top_builddir=$ac_abs_builddir;;
31176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31178 esac;;
31179esac
31180case $ac_abs_builddir in
31181.) ac_abs_srcdir=$ac_srcdir;;
31182*)
31183 case $ac_srcdir in
31184 .) ac_abs_srcdir=$ac_abs_builddir;;
31185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31187 esac;;
31188esac
31189case $ac_abs_builddir in
31190.) ac_abs_top_srcdir=$ac_top_srcdir;;
31191*)
31192 case $ac_top_srcdir in
31193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31196 esac;;
31197esac
John Criswell7a73b802003-06-30 21:59:07 +000031198
31199
31200 case $INSTALL in
31201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31202 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31203 esac
31204
31205 if test x"$ac_file" != x-; then
31206 { echo "$as_me:$LINENO: creating $ac_file" >&5
31207echo "$as_me: creating $ac_file" >&6;}
31208 rm -f "$ac_file"
31209 fi
31210 # Let's still pretend it is `configure' which instantiates (i.e., don't
31211 # use $as_me), people would be surprised to read:
31212 # /* config.h. Generated by config.status. */
31213 if test x"$ac_file" = x-; then
31214 configure_input=
31215 else
31216 configure_input="$ac_file. "
31217 fi
31218 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031219 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031220
31221 # First look for the input files in the build tree, otherwise in the
31222 # src tree.
31223 ac_file_inputs=`IFS=:
31224 for f in $ac_file_in; do
31225 case $f in
31226 -) echo $tmp/stdin ;;
31227 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031228 # Absolute (can't be DOS-style, as IFS=:)
31229 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031230echo "$as_me: error: cannot find input file: $f" >&2;}
31231 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031232 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031233 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031234 if test -f "$f"; then
31235 # Build tree
31236 echo "$f"
31237 elif test -f "$srcdir/$f"; then
31238 # Source tree
31239 echo "$srcdir/$f"
31240 else
31241 # /dev/null tree
31242 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031243echo "$as_me: error: cannot find input file: $f" >&2;}
31244 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031245 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031246 esac
31247 done` || { (exit 1); exit 1; }
31248_ACEOF
31249cat >>$CONFIG_STATUS <<_ACEOF
31250 sed "$ac_vpsub
31251$extrasub
31252_ACEOF
31253cat >>$CONFIG_STATUS <<\_ACEOF
31254:t
31255/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31256s,@configure_input@,$configure_input,;t t
31257s,@srcdir@,$ac_srcdir,;t t
31258s,@abs_srcdir@,$ac_abs_srcdir,;t t
31259s,@top_srcdir@,$ac_top_srcdir,;t t
31260s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31261s,@builddir@,$ac_builddir,;t t
31262s,@abs_builddir@,$ac_abs_builddir,;t t
31263s,@top_builddir@,$ac_top_builddir,;t t
31264s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31265s,@INSTALL@,$ac_INSTALL,;t t
31266" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31267 rm -f $tmp/stdin
31268 if test x"$ac_file" != x-; then
31269 mv $tmp/out $ac_file
31270 else
31271 cat $tmp/out
31272 rm -f $tmp/out
31273 fi
31274
31275done
31276_ACEOF
31277cat >>$CONFIG_STATUS <<\_ACEOF
31278
31279#
31280# CONFIG_HEADER section.
31281#
31282
31283# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31284# NAME is the cpp macro being defined and VALUE is the value it is being given.
31285#
31286# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031287ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31288ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031289ac_dC=' '
31290ac_dD=',;t'
31291# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031292ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031293ac_uB='$,\1#\2define\3'
31294ac_uC=' '
31295ac_uD=',;t'
31296
31297for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31299 case $ac_file in
31300 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031301 cat >$tmp/stdin
31302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031306 * ) ac_file_in=$ac_file.in ;;
31307 esac
31308
31309 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31310echo "$as_me: creating $ac_file" >&6;}
31311
31312 # First look for the input files in the build tree, otherwise in the
31313 # src tree.
31314 ac_file_inputs=`IFS=:
31315 for f in $ac_file_in; do
31316 case $f in
31317 -) echo $tmp/stdin ;;
31318 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031319 # Absolute (can't be DOS-style, as IFS=:)
31320 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031321echo "$as_me: error: cannot find input file: $f" >&2;}
31322 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031323 # Do quote $f, to prevent DOS paths from being IFS'd.
31324 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031325 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031326 if test -f "$f"; then
31327 # Build tree
31328 echo "$f"
31329 elif test -f "$srcdir/$f"; then
31330 # Source tree
31331 echo "$srcdir/$f"
31332 else
31333 # /dev/null tree
31334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031335echo "$as_me: error: cannot find input file: $f" >&2;}
31336 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031337 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031338 esac
31339 done` || { (exit 1); exit 1; }
31340 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031341 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031342
31343_ACEOF
31344
31345# Transform confdefs.h into two sed scripts, `conftest.defines' and
31346# `conftest.undefs', that substitutes the proper values into
31347# config.h.in to produce config.h. The first handles `#define'
31348# templates, and the second `#undef' templates.
31349# And first: Protect against being on the right side of a sed subst in
31350# config.status. Protect against being in an unquoted here document
31351# in config.status.
31352rm -f conftest.defines conftest.undefs
31353# Using a here document instead of a string reduces the quoting nightmare.
31354# Putting comments in sed scripts is not portable.
31355#
31356# `end' is used to avoid that the second main sed command (meant for
31357# 0-ary CPP macros) applies to n-ary macro definitions.
31358# See the Autoconf documentation for `clear'.
31359cat >confdef2sed.sed <<\_ACEOF
31360s/[\\&,]/\\&/g
31361s,[\\$`],\\&,g
31362t clear
31363: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031364s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031365t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031366s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031367: end
31368_ACEOF
31369# If some macros were called several times there might be several times
31370# the same #defines, which is useless. Nevertheless, we may not want to
31371# sort them, since we want the *last* AC-DEFINE to be honored.
31372uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31373sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31374rm -f confdef2sed.sed
31375
31376# This sed command replaces #undef with comments. This is necessary, for
31377# example, in the case of _POSIX_SOURCE, which is predefined and required
31378# on some systems where configure will not decide to define it.
31379cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031380s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031381_ACEOF
31382
31383# Break up conftest.defines because some shells have a limit on the size
31384# of here documents, and old seds have small limits too (100 cmds).
31385echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031386echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031387echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31388echo ' :' >>$CONFIG_STATUS
31389rm -f conftest.tail
31390while grep . conftest.defines >/dev/null
31391do
31392 # Write a limited-size here document to $tmp/defines.sed.
31393 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31394 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031395 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031396 # Work around the forget-to-reset-the-flag bug.
31397 echo 't clr' >>$CONFIG_STATUS
31398 echo ': clr' >>$CONFIG_STATUS
31399 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31400 echo 'CEOF
31401 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31402 rm -f $tmp/in
31403 mv $tmp/out $tmp/in
31404' >>$CONFIG_STATUS
31405 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31406 rm -f conftest.defines
31407 mv conftest.tail conftest.defines
31408done
31409rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031410echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031411echo >>$CONFIG_STATUS
31412
31413# Break up conftest.undefs because some shells have a limit on the size
31414# of here documents, and old seds have small limits too (100 cmds).
31415echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31416rm -f conftest.tail
31417while grep . conftest.undefs >/dev/null
31418do
31419 # Write a limited-size here document to $tmp/undefs.sed.
31420 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31421 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031422 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031423 # Work around the forget-to-reset-the-flag bug.
31424 echo 't clr' >>$CONFIG_STATUS
31425 echo ': clr' >>$CONFIG_STATUS
31426 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31427 echo 'CEOF
31428 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31429 rm -f $tmp/in
31430 mv $tmp/out $tmp/in
31431' >>$CONFIG_STATUS
31432 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31433 rm -f conftest.undefs
31434 mv conftest.tail conftest.undefs
31435done
31436rm -f conftest.undefs
31437
31438cat >>$CONFIG_STATUS <<\_ACEOF
31439 # Let's still pretend it is `configure' which instantiates (i.e., don't
31440 # use $as_me), people would be surprised to read:
31441 # /* config.h. Generated by config.status. */
31442 if test x"$ac_file" = x-; then
31443 echo "/* Generated by configure. */" >$tmp/config.h
31444 else
31445 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31446 fi
31447 cat $tmp/in >>$tmp/config.h
31448 rm -f $tmp/in
31449 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031450 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031451 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31452echo "$as_me: $ac_file is unchanged" >&6;}
31453 else
31454 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31455$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031456 X"$ac_file" : 'X\(//\)[^/]' \| \
31457 X"$ac_file" : 'X\(//\)$' \| \
31458 X"$ac_file" : 'X\(/\)' \| \
31459 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031460echo X"$ac_file" |
31461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31463 /^X\(\/\/\)$/{ s//\1/; q; }
31464 /^X\(\/\).*/{ s//\1/; q; }
31465 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031466 { if $as_mkdir_p; then
31467 mkdir -p "$ac_dir"
31468 else
31469 as_dir="$ac_dir"
31470 as_dirs=
31471 while test ! -d "$as_dir"; do
31472 as_dirs="$as_dir $as_dirs"
31473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031475 X"$as_dir" : 'X\(//\)[^/]' \| \
31476 X"$as_dir" : 'X\(//\)$' \| \
31477 X"$as_dir" : 'X\(/\)' \| \
31478 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031479echo X"$as_dir" |
31480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31482 /^X\(\/\/\)$/{ s//\1/; q; }
31483 /^X\(\/\).*/{ s//\1/; q; }
31484 s/.*/./; q'`
31485 done
31486 test ! -n "$as_dirs" || mkdir $as_dirs
31487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31488echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31489 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031490
31491 rm -f $ac_file
31492 mv $tmp/config.h $ac_file
31493 fi
31494 else
31495 cat $tmp/config.h
31496 rm -f $tmp/config.h
31497 fi
31498done
31499_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031500cat >>$CONFIG_STATUS <<\_ACEOF
31501
31502#
31503# CONFIG_COMMANDS section.
31504#
31505for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31506 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31507 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31508 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31509$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031510 X"$ac_dest" : 'X\(//\)[^/]' \| \
31511 X"$ac_dest" : 'X\(//\)$' \| \
31512 X"$ac_dest" : 'X\(/\)' \| \
31513 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031514echo X"$ac_dest" |
31515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31517 /^X\(\/\/\)$/{ s//\1/; q; }
31518 /^X\(\/\).*/{ s//\1/; q; }
31519 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031520 { if $as_mkdir_p; then
31521 mkdir -p "$ac_dir"
31522 else
31523 as_dir="$ac_dir"
31524 as_dirs=
31525 while test ! -d "$as_dir"; do
31526 as_dirs="$as_dir $as_dirs"
31527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31528$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31529 X"$as_dir" : 'X\(//\)[^/]' \| \
31530 X"$as_dir" : 'X\(//\)$' \| \
31531 X"$as_dir" : 'X\(/\)' \| \
31532 . : '\(.\)' 2>/dev/null ||
31533echo X"$as_dir" |
31534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31536 /^X\(\/\/\)$/{ s//\1/; q; }
31537 /^X\(\/\).*/{ s//\1/; q; }
31538 s/.*/./; q'`
31539 done
31540 test ! -n "$as_dirs" || mkdir $as_dirs
31541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31542echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31543 { (exit 1); exit 1; }; }; }
31544
John Criswellc764fbc2003-09-06 15:17:13 +000031545 ac_builddir=.
31546
31547if test "$ac_dir" != .; then
31548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31549 # A "../" for each directory in $ac_dir_suffix.
31550 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31551else
31552 ac_dir_suffix= ac_top_builddir=
31553fi
31554
31555case $srcdir in
31556 .) # No --srcdir option. We are building in place.
31557 ac_srcdir=.
31558 if test -z "$ac_top_builddir"; then
31559 ac_top_srcdir=.
31560 else
31561 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31562 fi ;;
31563 [\\/]* | ?:[\\/]* ) # Absolute path.
31564 ac_srcdir=$srcdir$ac_dir_suffix;
31565 ac_top_srcdir=$srcdir ;;
31566 *) # Relative path.
31567 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31568 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31569esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031570
31571# Do not use `cd foo && pwd` to compute absolute paths, because
31572# the directories may not exist.
31573case `pwd` in
31574.) ac_abs_builddir="$ac_dir";;
31575*)
31576 case "$ac_dir" in
31577 .) ac_abs_builddir=`pwd`;;
31578 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31579 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31580 esac;;
31581esac
31582case $ac_abs_builddir in
31583.) ac_abs_top_builddir=${ac_top_builddir}.;;
31584*)
31585 case ${ac_top_builddir}. in
31586 .) ac_abs_top_builddir=$ac_abs_builddir;;
31587 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31588 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31589 esac;;
31590esac
31591case $ac_abs_builddir in
31592.) ac_abs_srcdir=$ac_srcdir;;
31593*)
31594 case $ac_srcdir in
31595 .) ac_abs_srcdir=$ac_abs_builddir;;
31596 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31597 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31598 esac;;
31599esac
31600case $ac_abs_builddir in
31601.) ac_abs_top_srcdir=$ac_top_srcdir;;
31602*)
31603 case $ac_top_srcdir in
31604 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31605 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31606 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31607 esac;;
31608esac
John Criswellc764fbc2003-09-06 15:17:13 +000031609
31610
31611 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31612echo "$as_me: executing $ac_dest commands" >&6;}
31613 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031614 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31615 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31616 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31617 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31618 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31619 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31620 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31621 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31622 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31623 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31624 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31625 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31626 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31627 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31628 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31629 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31630 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31631 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31632 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31633 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031634 esac
31635done
31636_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031637
31638cat >>$CONFIG_STATUS <<\_ACEOF
31639
31640{ (exit 0); exit 0; }
31641_ACEOF
31642chmod +x $CONFIG_STATUS
31643ac_clean_files=$ac_clean_files_save
31644
31645
31646# configure is writing to config.log, and then calls config.status.
31647# config.status does its own redirection, appending to config.log.
31648# Unfortunately, on DOS this fails, as config.log is still kept open
31649# by configure, so config.status won't be able to write to it; its
31650# output is simply discarded. So we exec the FD to /dev/null,
31651# effectively closing config.log, so it can be properly (re)opened and
31652# appended to by config.status. When coming back to configure, we
31653# need to make the FD available again.
31654if test "$no_create" != yes; then
31655 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031656 ac_config_status_args=
31657 test "$silent" = yes &&
31658 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031659 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031661 exec 5>>config.log
31662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31663 # would make configure fail if this is the last instruction.
31664 $ac_cs_success || { (exit 1); exit 1; }
31665fi
31666
John Criswell12399a12003-09-30 15:55:44 +000031667#
31668# CONFIG_SUBDIRS section.
31669#
31670if test "$no_recursion" != yes; then
31671
31672 # Remove --cache-file and --srcdir arguments so they do not pile up.
31673 ac_sub_configure_args=
31674 ac_prev=
31675 for ac_arg in $ac_configure_args; do
31676 if test -n "$ac_prev"; then
31677 ac_prev=
31678 continue
31679 fi
31680 case $ac_arg in
31681 -cache-file | --cache-file | --cache-fil | --cache-fi \
31682 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31683 ac_prev=cache_file ;;
31684 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31685 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31686 | --c=*)
31687 ;;
31688 --config-cache | -C)
31689 ;;
31690 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31691 ac_prev=srcdir ;;
31692 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31693 ;;
31694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31695 ac_prev=prefix ;;
31696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31697 ;;
31698 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31699 esac
31700 done
31701
31702 # Always prepend --prefix to ensure using the same prefix
31703 # in subdir configurations.
31704 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31705
31706 ac_popdir=`pwd`
31707 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31708
31709 # Do not complain, so a configure script can configure whichever
31710 # parts of a large source tree are present.
31711 test -d $srcdir/$ac_dir || continue
31712
31713 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31714echo "$as_me: configuring in $ac_dir" >&6;}
31715 { if $as_mkdir_p; then
31716 mkdir -p "$ac_dir"
31717 else
31718 as_dir="$ac_dir"
31719 as_dirs=
31720 while test ! -d "$as_dir"; do
31721 as_dirs="$as_dir $as_dirs"
31722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31723$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031724 X"$as_dir" : 'X\(//\)[^/]' \| \
31725 X"$as_dir" : 'X\(//\)$' \| \
31726 X"$as_dir" : 'X\(/\)' \| \
31727 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031728echo X"$as_dir" |
31729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31731 /^X\(\/\/\)$/{ s//\1/; q; }
31732 /^X\(\/\).*/{ s//\1/; q; }
31733 s/.*/./; q'`
31734 done
31735 test ! -n "$as_dirs" || mkdir $as_dirs
31736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31737echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31738 { (exit 1); exit 1; }; }; }
31739
31740 ac_builddir=.
31741
31742if test "$ac_dir" != .; then
31743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31744 # A "../" for each directory in $ac_dir_suffix.
31745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31746else
31747 ac_dir_suffix= ac_top_builddir=
31748fi
31749
31750case $srcdir in
31751 .) # No --srcdir option. We are building in place.
31752 ac_srcdir=.
31753 if test -z "$ac_top_builddir"; then
31754 ac_top_srcdir=.
31755 else
31756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31757 fi ;;
31758 [\\/]* | ?:[\\/]* ) # Absolute path.
31759 ac_srcdir=$srcdir$ac_dir_suffix;
31760 ac_top_srcdir=$srcdir ;;
31761 *) # Relative path.
31762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31764esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031765
31766# Do not use `cd foo && pwd` to compute absolute paths, because
31767# the directories may not exist.
31768case `pwd` in
31769.) ac_abs_builddir="$ac_dir";;
31770*)
31771 case "$ac_dir" in
31772 .) ac_abs_builddir=`pwd`;;
31773 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31774 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31775 esac;;
31776esac
31777case $ac_abs_builddir in
31778.) ac_abs_top_builddir=${ac_top_builddir}.;;
31779*)
31780 case ${ac_top_builddir}. in
31781 .) ac_abs_top_builddir=$ac_abs_builddir;;
31782 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31783 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31784 esac;;
31785esac
31786case $ac_abs_builddir in
31787.) ac_abs_srcdir=$ac_srcdir;;
31788*)
31789 case $ac_srcdir in
31790 .) ac_abs_srcdir=$ac_abs_builddir;;
31791 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31792 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31793 esac;;
31794esac
31795case $ac_abs_builddir in
31796.) ac_abs_top_srcdir=$ac_top_srcdir;;
31797*)
31798 case $ac_top_srcdir in
31799 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31800 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31801 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31802 esac;;
31803esac
John Criswell12399a12003-09-30 15:55:44 +000031804
31805
31806 cd $ac_dir
31807
31808 # Check for guested configure; otherwise get Cygnus style configure.
31809 if test -f $ac_srcdir/configure.gnu; then
31810 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31811 elif test -f $ac_srcdir/configure; then
31812 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31813 elif test -f $ac_srcdir/configure.in; then
31814 ac_sub_configure=$ac_configure
31815 else
31816 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31817echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31818 ac_sub_configure=
31819 fi
31820
31821 # The recursion is here.
31822 if test -n "$ac_sub_configure"; then
31823 # Make the cache file name correct relative to the subdirectory.
31824 case $cache_file in
31825 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31826 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031827 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031828 esac
31829
31830 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31831echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31832 # The eval makes quoting arguments work.
31833 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031834 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31835 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031836echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31837 { (exit 1); exit 1; }; }
31838 fi
31839
31840 cd $ac_popdir
31841 done
31842fi
31843
Brian Gaekef3b24102003-11-16 18:38:14 +000031844
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031845if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031846 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31847echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031848 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31849echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31850 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31851echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31852 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31853echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31854 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31855echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031856fi